* device/include/pic16/adc.h,
[fw/sdcc] / ChangeLog
1 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4           for optimization
5
6 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
7
8         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
9         to a char variable. Fixed bug #1504211
10         * device/include/pic16/adc.h,
11         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
12         and fixed bug #1364390
13
14 2006-06-10 Borut Razem <borut.razem AT siol.net>
15
16         * CVSROOT: removed the CVS left-over
17
18 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
19
20         * as/hc08/asmain.c (asexit),
21         * as/hc08/lkmain.c (lkexit),
22         * as/mcs51/asmain.c (asexit),
23         * as/mcs51/lkmain.c (lkexit),
24         * src/SDCCglue.c (DEFSETFUNC),
25         * src/SDCCmain.c (linkEdit, assemble),
26         * support/librarian/sdcclib.c (AddRel),
27           replaced unlink() by standard C remove()
28         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
29         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
30           gatherImplicitVariables): new, added to fix bug 608752,
31           (createFunction): added gatherImplicitVariables()
32         * src/SDCCast.h: added createRMW prototype
33         * src/SDCCsymt.h (struct symbol): added infertype
34         * support/regression/tests/bug608752.c: new, added
35
36 2006-06-10 Raphael Neider <rneider AT web.de>
37
38         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
39           multibyte dummy reads (fixes #1503234)
40
41 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
42
43         * device/include/mcs51/compiler.h: new, added header file to enable
44           creating common sfr definition header files for different compilers
45
46 2006-06-05 Raphael Neider <rneider AT web.de>
47
48         * src/pic16/{pcode.h,genarith.c}:
49           introduced pCodeOp combining any two pCodeOps (previously only
50           two register operands could be combined), removed pcop2 from
51           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
52         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
53         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
54           rewritten to use new PO_TWO_OPS
55         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
56         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
57           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
58           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
59           (pic16_get_op): embraced return arg to allow #define return(x),
60             added new case for combined opcodes
61           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
62           (pic16_pCode2str,pic16_getRegFrompCodeOp,
63            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
64
65 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
66
67         * src/SDCCval.c (checkConstantRange): added
68         * src/SDCCval.h: added checkConstantRange
69         * support/Util/SDCCerr.c,
70         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
71         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
72         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
73         * src/SDCCast.c (decorateType): added checkConstantRange,
74         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
75         can be emitted with the correct always true/false warning,
76         added optimization for double '!';
77         result of decorateType() must be assigned back to the tree, because
78         decorateType() can change the tree
79         * src/SDCCicode.c (geniCodeLogic),
80         (geniCodeAssign): replaced new checkConstantRange, added warnings,
81         (checkConstantRange): removed, it was only a fragment which never
82         emitted a warning
83         * src/SDCCsymt.c (computeType): fixed promotion for
84         "-1 < (unsigned bit) b"
85         * src/pic/ralloc.c (packRegsForAssign),
86         * src/pic16/ralloc.c (packRegsForAssign),
87         * src/hc08/ralloc.c (packRegsForAssign),
88         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
89         from mcs51
90         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
91         * support/regression/tests/constantRange.c: added
92         * support/valdiag/tests/constantRange.c: added
93         * support/valdiag/valdiag.py: added -DPORT_HOST=1
94
95 2006-06-02 Borut Razem <borut.razem AT siol.net>
96
97         * support/regression/ports/pic16/support.c: increase stack size
98           to 255 bytes
99         * support/regression/Makefile.in: sort tests by name so that the
100           resutlts can be compared on different machines / platforms
101
102 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
103
104         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
105         * src/ds390/gen.c (emitLabel): new, added,
106           (genDjnz): fixed stack overflow bug,
107           (throughout): cosmetic changes to sync with mcs51/gen.c,
108           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
109         * src/mcs51/gen.c (genEndFunction): small optimization,
110           (throughout): cosmetic changes to sync with ds390/gen.c
111
112 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
113
114         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
115           (_print_format): fixed printing pointers
116         * src/mcs51/gen.c (emitLabel, movb): new, added,
117           (genAssign): small optimization,
118           (genDjnz): fixed stack overflow bug,
119           (throughout): replaced sprintf with SNPRINTF,
120           replaced mcs51_regWithIdx with REG_WITH_INDEX,
121           replaced emitcode("mov", "b,...") with MOVB(...),
122           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
123           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
124         * src/mcs51/peeph.def: added rules 140 and 264
125         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
126           so they may get optimized into registers
127
128 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
129
130         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
131           immediately when encountered,
132           (printUsage): always use stderr even on windows
133
134 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
135
136         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
137         (processParms): fixed bug #1247551
138         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
139         parseCmdLine, main): print '--version' to stdout,
140         print 'help' to stdout if --help is given,
141         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
142         arguments are given; fixed --help
143
144 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
145
146         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
147         * support/regression/tests/bug-1493710.c: added
148
149 2006-05-27 Borut Razem <borut.razem AT siol.net>
150
151         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
152           static instead auto
153         * support/regression/ports/pic16/support.c: increase stack size
154           from default 64 bytes to 128 bytes
155         * support/regression/tests/staticinit.c,
156           support/regression/tests/float.c: regression tests fully enabled
157           for pic16 port by putting the initialized data arrays into the code
158           section
159         * support/regression/ports/pic16/spec.mk: don't link default libraries.
160           This was changed by mistake in the previous version.
161
162 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
163
164         * src/pic16/gen.c (genFunction, genEndFunction): some
165         beautifications, fixed bug with falsely restoring FSR2 in large
166         stack model, thanks to Beau E. Cox for reporting the bug
167
168 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
169
170         * debugger/mcs51/break.c,
171         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
172           use %p to print pointers, made address variables unsigned
173         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
174         * debugger/mcs51/symtab.c (parseSymbol): must return something
175         * src/mcs51/gen.c (aopForSym): small optimization,
176            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
177           (freeAsmop): added missing break,
178           (aopPut): removed parameter bvolatile, determine it inside the function,
179           (saveRegisters, unsaveRegisters): small optimization,
180           (genIpush): removed pointless check,
181           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
182           replaced sprintf with SNPRINTF,
183           replaced strcpy with strncpyz,
184           updated aopPut calls,
185           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
186         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
187
188 2006-05-24 Borut Razem <borut.razem AT siol.net>
189
190         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
191           modification of test for the pic16 port, put the array to the code
192           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
193
194 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
195
196         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
197         * support/Util/pstdint.h: added
198
199 2006-05-22 Borut Razem <borut.razem AT siol.net>
200
201         * src/regression/Makefile: removed bool2.c test, added -q linker option
202         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
203           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
204           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
205           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
206           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
207           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
208           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
209           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
210           define SUPPORT_BIT_TYPES 0, removed unused bit variables
211
212 2006-05-22 Raphael Neider <rneider AT web.de>
213
214         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
215           bug #1492360 (problematic due to generic pointers, see code)
216
217 2006-05-22 Borut Razem <borut.razem AT siol.net>
218
219         * support/regression/ports/pic16/specs.mk: removed stack size linker
220           directive
221         * support/regression/tests/array.c,
222           support/regression/tests/bitopcse.c,
223           support/regression/tests/bug-908454.c,
224           support/regression/tests/malloc.c: modified for pic16 regression test
225         * support/regression/tests/bitfields.c:
226           pic16 - excluded bitfileds of size > 8
227         * support/regression/tests/bp.c: pic16 - reduced data size
228         * support/regression/tests/bug-221100.c: pic16 - reduced data size
229         * support/regression/tests/bug-460010.c:
230           pic16 - used the absolute address the fits in memory
231         * support/regression/tests/bug-716242.c:
232           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
233         * support/regression/tests/float.c:
234           pic16 - excluded - data size too big
235         * support/regression/tests/onebyte.c:
236           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
237         * support/regression/tests/shifts.c:
238           pic16 - function names probably have to differ in first X characters
239           (gpasm limitation?)
240         * support/regression/tests/staticinit.c:
241           pic16 - excluded some tests due error: no target memory available for
242           section ".idata"
243
244 2006-05-22 Borut Razem <borut.razem AT siol.net>
245
246         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
247           second try. Thanks Stas Sergeev once more.
248
249 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
250
251         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
252           (genLeftShift, genRightShift): fixed bug 1491627
253         * src/hc08/peeph.def (rules 7, 8.x): added
254         * support/regression/tests/shifts.c (ShiftLeftByParam,
255           ShiftRightByParam, testShiftByParam): added to test variable shifting
256
257 2006-05-20 Raphael Neider <rneider AT web.de>
258
259         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
260         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
261           (allocReg): add only new registers to dynAllocRegs,
262           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
263             #1489055, #1445850, and probably #1483693
264
265 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
266
267         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
268         bug in for-loop that didn't emit the last of CONFIG and ID registers
269
270 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
271
272         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
273           with offset
274         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
275           1489016, 1434401 and 1490124
276         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
277           1489016, 1434401 and 1490124
278
279 2006-05-17 Borut Razem <borut.razem AT siol.net>
280
281         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
282           thanks Stas Sergeev
283
284 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
285
286         * device/include/mcs51/P89c51RD2.h,
287         * device/include/mcs51/P89LPC901.h,
288         * device/include/mcs51/P89LPC922.h,
289         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
290
291 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
292
293         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
294         to fix missing stack pragma in compiled binary object file,
295
296 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
297
298         * support/packihx/configure.in,
299         * support/packihx/configure: removed warning, autoconf >= 2.5x can
300         determine sizeof basic types even while cross compiling
301
302 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
303
304         * src/avr/gen.c (aopop),
305         * src/ds390/gen.c (aopOp),
306         * src/hc08/gen.c (aopOp),
307         * src/mcs51/gen.c (aopop),
308         * src/pic16/gen.c (pic16_aopOp),
309         * src/pic/gen.c (aopOp),
310         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
311         if size of operand is smaller than spill location
312
313 2006-05-12 Borut Razem <borut.razem AT siol.net>
314
315         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
316           have to have CR/LF line endings even if they are checked out on *nix
317           or on WIN32 in cygwin binmode
318
319 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
320
321         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
322         * device/include/ds80c390.h: added sfr16 definitions
323         * src/ds390/gen.c,
324         * src/ds390/gen.h,
325         * src/ds390/main.c,
326         * src/ds390/ralloc.c,
327         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
328           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
329           bit returning functions
330         * support/regression/tests/sfr16.c: enabled test on ds390
331
332 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
333
334         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
335         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
336
337 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
338
339         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
340         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
341           (cl_address_space constructor): removed expensive initialization,
342           (cl_address_space::get_cell): extended for late initialization,
343           (cl_address_space::*): use late initialization,
344           (cl_address_decoder::activate): removed expensive initialization,
345           This reduced regression test running time by 25%
346
347 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
348
349         * packihx/,
350         * configure.in,
351         * configure,
352         * sdcc.dsw,
353         * Makefile.bcc,
354         * Makefile.in,
355         * support/packihx/Makefile.in,
356         * support/packihx/clean.mk,
357         * support/packihx/Makefile.bcc,
358         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
359
360 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
361
362         * src/SDCCval.c (valNot): fix for regression test failure
363           of not.c on big endian hosts
364
365 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
366
367         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
368
369 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
370
371         * device/lib/mcs51/Makefile.in: changed string comparison operator
372           to = for POSIX compliance; == is bash extension
373
374 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
375
376         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
377           kosmonaut_pirx
378
379 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
380
381         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
382         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
383         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
384         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
385         bug report #1478657,
386
387 2006-05-05 Borut Razem <borut.razem AT siol.net>
388
389         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
390           making the html
391
392 2006-05-02 Borut Razem <borut.razem AT siol.net>
393
394         * doc/Makefile.in: removed *.ind dependency since there is no rule to
395           create *.ind, which made make to fail if invoked with -j 2
396
397 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
398
399         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
400           Hubert Sack for patch 1479782
401
402 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
403
404         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
405
406 2006-05-01 Raphael Neider <rneider AT web.de>
407
408         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
409           (create_pic): store only prefix-free device name,
410           (init_pic): check for device names with "16" prefix,
411           (list_valid_pics),
412         * src/pic/device.h (struct PIC_device),
413         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
414             stored device name,
415         * device/include/pic/pic12f{635,675,629,683}.h,
416         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
417         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
418         * device/include/pic/pic16f505.h,
419         * device/lib/pic/libdev/pic16f505.c: removed
420         * device/include/pic/pic14devices.txt: added support for pic12f
421             devices, removed unsupported non 16-bit devices
422             [above changes provided by patch from Zik Saleeba]
423         * src/pic/*, src/pic16/*, device/include/pic16/*,
424           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
425
426 2006-05-01 Borut Razem <borut.razem AT siol.net>
427
428         * configure.in, configure, doc/Makefile.in:
429           sync with nightly build makefile - latex, dvipdf and dvips
430           not needed any more
431
432 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
433
434         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
435         in the library source
436
437 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
438
439         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
440
441 2006-04-28 Raphael Neider <rneider AT web.de>
442
443         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
444         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
445           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
446         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
447
448 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
449
450         * device/lib/pic/libdev/Makefile.in,
451         * device/lib/hc08/Makefile.in,
452         * device/lib/gbz80/Makefile.in,
453         * device/lib/z80/Makefile.in,
454         * device/lib/ds390/Makefile.in,
455         * device/lib/ds400/Makefile.in: added srcdir to include search path,
456         thanks to Borut for the bug report
457         * configure.in,
458         * configure: always create doc/Makefile independent from --enable-doc
459         * Makefile.in: always install from directory doc independent from
460         --enable-doc
461         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
462         removed
463         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
464         * doc/Makefile.in: install *.txt if present
465         * device/include/Makefile.in (install): added installation of pic/*.inc
466         and pic/*.txt files again, they were erroneously removed
467
468 2006-04-28 Raphael Neider <rneider AT web.de>
469
470         * src/pic/{gen.c,main.h,pcode.c},
471         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
472             concerning signedness with casts
473
474 2006-04-28 Raphael Neider <rneider AT web.de>
475
476         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
477             definition of an interrupt handler,
478         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
479             interrupt handler stuff from picglue() to separate routine,
480           (picglue): enabled definition of intr handlers in files w/o main()
481
482 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
483
484         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
485           compilation with MSVC 2005 Express Edition (VC8)
486
487 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
488
489         * device/lib/Makefile: fixed build of gbz80 lib
490
491 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
492
493         * support/regression/tests/bug-460010.c,
494         * support/regression/tests/bug-524691.c,
495         * support/regression/tests/bug-716242.c: removed conditional defines
496           that are already in testfwk.h
497
498 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
499
500         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
501           (AccAXRsh1): added, shift right by 1,
502           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
503            AccAXLrl1
504         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
505
506 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
507
508         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
509         remove cast to same type
510         * src/SDCCast.c (decorateType): fix for RFE 1475742,
511         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
512         * as/z80/Makefile,
513         * link/z80/Makefile: removed, they have moved to
514         Makefile.in files
515         * configure,
516         * configure.in: replaced duplicate message about ucsim by missing sdcpp
517         * install-sh: fix bug #1204398 by setting umask 0022
518         * device/lib/Makefile: separate build of z80 and gbz80 lib
519
520 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
521
522         Enabled VPATH feature: changed nearly all Makefiles (149 files).
523         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
524
525         One basic decision: e.g. src/clean.mk includes further files. In order
526         to make this work there are two solutions:
527         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
528           run configure on them. This way they can use
529           'include $(srcdir)/port-clean.mk'
530         - always include clean.mk by the Makefile at the same level. To avoid
531           that `make clean` tries to include and build Makefile.dep the
532           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
533           implemented, because now even `make uninstall` doesn't create
534           Makefile.in. clean.mk could be eliminated by pasting it in
535           Makefile.in.
536
537         * debugger/mcs51/Makefile.in: build own objects from library sources
538         (SLIB, SDCC) in current directory
539
540         * configure, configure.in: renamed --disable-device-lib-build in
541         --disable-device-lib; added --enable-doc, the required tools are
542         searched by configure; added result message; the toolchain for the
543         belonging ports are now only built, if the port is enabled.
544
545         * support/regression/*: all output is written in directory gen, because
546         the fwk and ports directories don't livet in the build tree using vpath
547
548         * doc/sdccman.lyx: renamed --disable-device-lib-build to
549         --disable-device-lib, added --enable-doc, added section VPATH
550
551         * sim/ucsim/configure.in,
552         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
553         z80 are enabled by default
554
555 2006-04-24 Raphael Neider <rneider AT web.de>
556
557         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
558             to config word, "pic14_"-prefixed some extern functions
559           (pic14_emitConfigWord): emit __config directive(s) if assignment to
560             config word has been found
561         * src/pic/device.h: added prototypes
562         * src/pic/pcode.c: added "pic14_"-prefix where needed
563         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
564             fixup
565         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
566             words,
567           (pic14emitRegularMap): ignore config words,
568           (pic14createInterruptVect): moved generating __config directives away
569           (picglue): have __config directives emitted
570
571 2006-04-24 Borut Razem <borut.razem AT siol.net>
572
573         * doc/Makefile: sync with nightly build makefile
574
575 2006-04-24 Raphael Neider <rneider AT web.de>
576
577         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
578             registers that have not been assigned proper liveranges,
579             fixes #1469504 and #1474602,
580           (pCodeRegOptimizeRegUsage): fixed typo in comment
581
582 2006-04-24 Borut Razem <borut.razem AT siol.net>
583
584         * device/examples/main8051.c: deleted - it was removed from CVS
585           24.mar.2000 and after that modified 18.feb.2001, so it reappered
586           after the transition to Subversion
587         * src/SDCCalloc.h: deleted - it was removed  from CVS
588           3.feb.2001 and after that modified 18.feb.2001, so it reappered
589           after the transition to Subversion
590         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
591           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
592           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
593           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
594
595 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
596
597         * as/asx8051.dsp: added mcs51/strcmpi.h
598         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
599         * as/hc08/aslink.h: updated lnksect prototype
600         * as/hc08/asm.h,
601         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
602         * as/hc08/asmain.c,
603         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
604           (newdot): handle A_ABS
605         * as/hc08/asout.c,
606         * as/mcs51/asout.c (outarea): output address
607         * as/hc08/lkaomf51.c,
608         * as/mcs51/lkaomf51.c: disabled unused array UsageType
609         * as/hc08/m08pst.c,
610         * as/mcs51/i51pst.c,
611         * as/z80/z80pst.c: "ABS" is not A_OVR
612         * as/hc08/lkarea.c (newarea): read a_addr,
613           (lnkarea): added codemap array, sort absolute areas to the front,
614            combine all GSINITx/GSFINAL,
615           (find_empty_space, allocate_space): new functions,
616           (lnksect): return next address, handle absolute sections
617         * as/mcs51/lkarea.c (newarea): read a_addr,
618           lnksect2 prototype changed,
619           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
620           (find_empty_space, allocate_space): new, factored out of lnksect2,
621           (lnksect2): return next address, handle absolute sections
622         * as/hc08/lkhead.c,
623         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
624         * as/hc08/lklibr.c (addfile, fndsym),
625         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
626           index out of range and detect both '\' and '/'
627         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
628         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
629           regression tests (ds390 cannot return bool yet)
630         * doc/sdccman.lyx: changed version number, document changed --no-peep,
631           document critical interrupts on z80, document changed SDCC define
632         * src/asm.c (_asxxxx_mapping): fixed .org directive,
633           (_a390_mapping): added .org directive
634         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
635           (genMultOneByte): fixed warnings
636         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
637           ones
638         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
639         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
640           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
641         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
642         * src/pic16/main.c: removed newReg prototype
643         * src/pic16/pcode.c,
644         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
645           warnings
646         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
647           ones
648         * src/pic16/ralloc.c
649         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
650           to fix warnings
651         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
652           from short to PIC_OPTYPE
653         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
654         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
655           optype from short to PIC_OPTYPE
656         * src/port.h: made int_size unsigned to fix warnings
657         * src/SDCC.y: fixed warning on MSVC
658         * src/SDCCicode.c (getArraySizePtr): return unsigned int
659         * src/SDCCopt.c (convertToFcall): fixed warnings
660         * src/SDCCsymt.h: removed double prototype for genSymName
661         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
662           offset int to fix warnings
663
664 2006-04-22 Borut Razem <borut.razem AT siol.net>
665
666         * doc/sdccman.lyx, */Makefile, */Makefile.in:
667           references to CVS replaced with Subversion
668
669 2006-04-21 Borut Razem <borut.razem AT siol.net>
670
671         * doc/sdccman.lyx, */Makefile, */Makefile.in:
672           references to CVS replaced with Subversion
673
674 2006-04-19 Borut Razem <borut.razem AT siol.net>
675
676         * src/version.awk: adapted for svn
677         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
678           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
679           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
680           /binutils-avr/etc/*.vi, *.jin: removed all properties
681           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
682
683 2006-04-19 Borut Razem <borut.razem AT siol.net>
684
685         * CVS to Subversion migration completed
686
687 2006-04-18 Borut Razem <borut.razem AT siol.net>
688
689         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
690           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
691
692 2006-04-17 Borut Razem <borut.razem AT siol.net>
693
694         * device/include/Makefile.in: added pic/*.inc to the installation
695
696 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
697
698         * support/regression/collate-results.py: fixed output in case of
699         a valdiag error
700         * support/regression/generate-cases.py: fixed splitting of pathnames
701         with dots
702         * as/hc08/lklibr.c (addfile),
703         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
704
705 2006-04-11 Raphael Neider <rneider AT web.de>
706
707         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
708         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
709         * src/pic16/pcode.c (assignValnums): fixed #1460578
710
711 2006-04-11 Raphael Neider <rneider AT web.de>
712
713         * device/lib/pic/libdev/*.c,
714         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
715           fixes #1468739, enables compilation in --std-c99 mode
716         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
717
718 2006-04-11 Raphael Neider <rneider AT web.de>
719
720         * src/pic/device.c (find_device): removed debug output
721           (list_valid_pics): enabled verbose listing of supported devices
722         * device/include/stdbool.h: define bool as char for pic14/16 as well
723
724 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
725
726         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
727
728 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
729
730         * .version: bumped version to 2.5.6
731         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
732
733 2006-04-06 Raphael Neider <rneider AT web.de>
734
735         * .version: bumped version to 2.5.6 (pic14 ABI changed)
736         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
737         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
738           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
739             pic14_constructAbsMap
740           (pic14printPublics): declare absolute global symbols as global
741           (pic14createInterruptVect),
742         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
743           (newReg): assume new registers unused, use correct name in
744             hashtable (reg->name instead of name), more debugLog output
745         * src/pic/device.h (PIC_device): added fields for verbose output
746         * src/pic/device.c: moved device definition to pic14devices.txt,
747             added routines for runtime parsing of pic14devices.txt,
748             added support for second config word
749         * src/pic/main.c (_process_pragma): removed #pragma maxram,
750           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
751           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
752           (_pic14_parseOptions): moved pCodeInitRegisters here
753           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
754         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
755           (pCodeInitRegisters): rewrapped comments, perpared new approach to
756             handling the pseudo stack
757         * device/lib/Makefile.in: ignore failures in objects-pic16,
758         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
759         * device/lib/pic/NEWS: document new dependency on picXXX.lib
760         * device/lib/pic/Makefile.subdir,
761         * device/lib/pic16/Makefile.subdir: improved clean rules
762         * device/lib/pic/libdev/: NEW, pic14 device libraries
763         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
764         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
765         * device/include/Makefile.in: create subdir and install pic14 headers
766         * device/include/pic/p16f_common.inc: removed unused declarations
767         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
768             PICs from inc2h.pl v1.6,
769             replaced BIT_AT macros with struct declarations
770         * device/include/pic/pic14devices.txt: definition of supported devices,
771             all above improvements contributed by Zik Saleeba, thanks
772         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
773         * support/scripts/sdcc.nsi: also install pic14 device libraries and
774             headers
775
776 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
777
778         * device/include/mcs51/c8051f410.h: added interrupt numbers,
779         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
780           thanks to Charles Olds
781
782 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
783
784         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
785
786 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
787
788         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
789         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
790         * support/regression/bug1464657.c: added, new test
791
792 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
793
794         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
795           version number
796
797 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
798
799         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
800           --no-peep and --peep-file <file> are used don't use default rules but
801           do use the <file>
802
803 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
804
805         * src/mcs51/gen.c (genCall): fixed bug 1457608
806
807 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
808
809         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
810         changes seem to cause (trigger?) problems with the build system.
811
812 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
813
814         * src/SDCCpeeph.c (operandsLiteral): new, added,
815           (callFuncByName): inserted operandsLiteral
816         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
817
818 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
819
820         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
821         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
822
823 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
824
825         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
826           implemented patch 1120823 Thanks to Willy De la Court (normal
827           interrupts need an interrupt number now if they are made critical),
828           and enabled nesting of critical functions though not for gbz80
829           (genCritical, genEndCritical): added functions
830           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
831         * src/z80/mappings.i: added "ei" to all mappings
832
833 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
834
835         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
836         submitted by the Debian SDCC maintainer Aurelien Jarno:
837         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
838         archive with gcc 4.1 on mips and wrote the patch"
839
840 2006-03-16 Raphael Neider <rneider AT web.de>
841
842         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
843           the left operand is shorter than the result (c* = lit-c* + int),
844           fixes bug #1450796
845         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
846           OP_SYMBOL
847
848 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
849
850         * src/.version: increased version number to 2.5.5
851         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
852         linking is done manually in pic16 port's _linkEdit,
853         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
854         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
855         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
856         allocate asmop as AOP_ACC,
857         (aopForRemat): added parameter 'bool result' in function declaration,
858         (pic16_aopGet): return AOP_ACC when accessing WREG,
859         (pic16_popGetTempReg): minor modification,
860         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
861         'pic16_allocWithIdx',
862         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
863         calling function in absolute addresses,
864         (genAssign): take into account AOP_ACC asmop,
865         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
866         * src/pic16/pcoderegs.c: some debug functions and lines added,
867         * src/pic16/ralloc.c (decodeRegType): added but commented out,
868         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
869         register too,
870         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
871         call to allocReg, not by manually allocating a new one,
872         (pic16_assignRegisters): now before going through the register
873         allocating functions mark all registers as free. This eliminates some
874         side effects resulting from peephole parser done earlier in the backbone
875
876 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
877
878         * src/SDCCicode.c (geniCodeLogic),
879         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
880
881 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
882
883         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
884           (genSend): bugfix, do not allocate and free twice,
885           (shiftRLong): handle partially overlapping aops
886         * support/regression/tests/bitopcse.c: fixed warning redefined idata
887
888 2006-03-08 Borut Razem <borut.razem AT siol.net>
889
890         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
891           for pic16
892
893 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
894
895         * support/regression/tests/bug1409955.c: new, added
896         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
897         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
898           (aopForSym, aopOp): increment asmop.allocated if reused,
899           (freeAsmop): decrement asmop.allocated and check for zero instead of
900           using asmop.freed,
901           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
902           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
903            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
904            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
905            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
906            genSignedRightShift, genRightShift, genDataPointerGet,
907            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
908            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
909             in reverse order from allocation,
910           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
911             added swappedLR to keep track
912         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
913           pdata & code for GCC, z80, gbz80 & hc08
914         * support/regression/tests/zeropad.c: moved defines to testfwk.h
915
916 2006-03-08 Raphael Neider <rneider AT web.de>
917
918         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
919
920 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
921
922         * device/include/mcs51/c8051f410.h: new SiLabs mcu
923         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
924         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
925
926 2006-03-06 Borut Razem <borut.razem AT siol.net>
927
928         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
929           made the linker quiet
930
931 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
932
933         * src/pic16/gen.c (genPcall): fixed bug #1443644
934         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
935         which dumps before the function entry point a data byte which represents
936         the number of the local variables used by the specified function, added
937         'xinst' for initial support for Extended Instruction Support,
938         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
939         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
940         port->fun_prefix anymore (may change later),
941         (genFunction, genEndFunction): do not store/restore local registers for
942         _main (this should take care the --main-return command line option in
943         the future),
944         (genOr): removed some legacy pic-port instructions,
945         * src/pic16/genarith.c (genAddLit): re-enabled old code because
946         performing operations with SFR's causes data to be written more than
947         once to each SFR. Perhaps SFRs should be handled in special cases...
948         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
949         pcode.h
950         * src/pic16/main.c (_process_pragma): stack bound checking did not take
951         into account for stack starting position,
952         (struct OPTIONS pic16_optionsTable): added command line argument
953         --extended or -y for Extended Instruction Support,
954         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
955         (deassignLRs): *** perhaps the most important change, old 'for' code
956         (commented out for reference), didn't account for some registers which
957         were left marked 'not free' after a pointer operation. The change
958         reduces register usage a lot in some cases
959
960 2006-03-04 Borut Razem <borut.razem AT siol.net>
961
962         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
963           _clean
964         * support/regression/tests/bug-524697.c: decreased array size for
965           mcs51 to fit into the internal RAM
966         * support/regression/Makefile.in: a little bit more verbose
967
968 2006-03-03 Borut Razem <borut.razem AT siol.net>
969
970         * support/regression/fwk/lib/testfwk.c,
971           support/regression/fwk/include/testfwk.h: introduced function
972           _prints(), nonrecursive _printn(), call _initEmu() from main()
973         * support/regression/ports/gbz80/support.asm,
974           support/regression/ports/ucz80/support.asm,
975           support/regression/ports/z80/support.asm,
976           support/regression/ports/ds390/support.c,
977           support/regression/ports/hc08/support.c,
978           support/regression/ports/host/support.c,
979           support/regression/ports/mcs51/support.c,
980           support/regression/ports/xa51/support.c: added empty _initEmu()
981           function
982         * support/regression/ports/pic16/gpsim.cmd,
983           support/regression/ports/pic16/spec.mk,
984           support/regression/ports/pic16/support.c,
985           support/regression/Makefile.in: added pic16 regression test
986
987 2006-03-01 Raphael Neider <rneider AT web.de>
988
989         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
990           genConstPointerGet): use safe way of generating MOVFF to cover
991             literals as well as registers, fixes bug #1440527
992         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
993             dereference
994           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
995             more correctly, fixes bug #1232186
996           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
997         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
998             gplink guess the correct processor in more cases, applied patch
999             from Till Riedel attached to and fixing bug #1436552
1000
1001 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1002
1003         * support/regression/tests/array.c: added, contains check for #1434401
1004         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
1005
1006 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1007
1008         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
1009         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
1010         * device/include/mcs51/c8051f326.h,
1011         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
1012         * device/include/mcs51/c8051f000.h,
1013         * device/include/mcs51/c8051f018.h,
1014         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
1015           PCON_IDLE,PCON_STOP and added sfr16 definitions
1016
1017 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1018
1019         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
1020           genGetWord): fixed bug 1409955
1021
1022 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1023
1024         * device/include/hc08/mc68hc908gp32.h,
1025         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
1026
1027 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1028
1029         * src/SDCCast.c (constExprValue): return NULL if not a value
1030         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
1031         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
1032         * support/regression/tests/bitfields.c: enabled signed bitfield for all
1033
1034 2006-02-13 Borut Razem <borut.razem AT siol.net>
1035
1036         * src/regression/ptrarg.c: added, fails due to bug #1430967
1037         * src/regression/Makefile: ptrarg.c added, ...
1038
1039 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1040
1041         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
1042         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
1043
1044 2006-02-11 Borut Razem <borut.razem AT siol.net>
1045
1046         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
1047           print "Processor: xxx" message to stdout only if --verbose
1048
1049 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1050
1051         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
1052         * support/regression/tests/bug1426356.c: added
1053         * support/regression/tests/bitfields.c: removed 2 tests
1054
1055 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1056
1057         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
1058         * device/include/mcs51/c8051f330.h,
1059         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
1060           PCON_IDLE,PCON_STOP and added sfr16 definitions
1061         * device/lib/_divsint.c,
1062         * device/lib/_divuint.c,
1063         * device/lib/_divulong.c,
1064         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
1065           register bank bug for small stackauto
1066
1067 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1068
1069         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
1070
1071 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
1072
1073         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
1074         * all.dsp: corrected several bin paths
1075         * device/include/mcs51/c8051f120.h,
1076         * device/include/mcs51/c8051f300.h,
1077         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
1078           to PCON_IDLE,PCON_STOP
1079         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
1080         * device/lib/printf_large.c (output_float): fixed bug 1388703
1081         * support/regression/tests/bug1057979.c: added test for bug 1388703
1082
1083 2006-02-08 Raphael Neider <rneider AT web.de>
1084
1085         * src/pic/pcode.c (pciTRIS): fixed typo,
1086           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
1087           (LinkFlow): fixed handling of flows that end in a call,
1088           (ReuseReg): perform safety check earlier
1089         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
1090             to work with flows at the beginning of a pBlock,
1091             fixes #1426557 (Symbol not previously defined),
1092           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
1093             usage information
1094           (RemoveUnusedRegisters): update register usage info
1095         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
1096             created, reuse existing ones instead
1097         * src/pic/gen.c (genPcall): fixed #1424719
1098
1099 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
1100
1101         * link/z80/lkmain.c,
1102         * link/z80/lklex.c,
1103         * link/z80/lkdata.c,
1104         * link/z80/aslink.h: fixed build on current cygwin:
1105         replaced getline() by lk_getline()
1106
1107 2006-02-01 Borut Razem <borut.razem AT siol.net>
1108
1109         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
1110           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
1111           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
1112           src/regression/bool1.c, src/regression/bool2.c,
1113           src/regression/bool3.c, src/regression/call1.c,
1114           src/regression/compare.c, src/regression/compare10.c,
1115           src/regression/compare2.c, src/regression/compare3.c,
1116           src/regression/compare4.c, src/regression/compare5.c,
1117           src/regression/compare6.c, src/regression/compare7.c,
1118           src/regression/compare8.c, src/regression/compare9.c,
1119           src/regression/configword.c, src/regression/for.c,
1120           src/regression/inline.c, src/regression/mult1.c,
1121           src/regression/nestfor.c, src/regression/or1.c,
1122           src/regression/pointer1.c, src/regression/ptrfunc.c,
1123           src/regression/rotate1.c, src/regression/rotate2.c,
1124           src/regression/rotate3.c, src/regression/rotate4.c,
1125           src/regression/rotate5.c, src/regression/rotate6.c,
1126           src/regression/rotate7.c, src/regression/string1.c,
1127           src/regression/struct1.c, src/regression/sub.c,
1128           src/regression/sub2.c, src/regression/switch1.c,
1129           src/regression/while.c, src/regression/xor.c,
1130           src/regression/create_stc, src/regression/simulate,
1131           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
1132           regression tests
1133         * src/regression/gpsim_assert.h: added
1134
1135 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
1136
1137         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
1138         ((void (code *) (void)) 0) ();
1139         * as/hc08/aslex.c,
1140         * as/hc08/aslink.h,
1141         * as/hc08/asm.h,
1142         * as/hc08/asmain.c,
1143         * as/hc08/lkdata.c,
1144         * as/hc08/lklex.c,
1145         * as/hc08/lkmain.c,
1146         * as/mcs51/aslex.c,
1147         * as/mcs51/aslink.h,
1148         * as/mcs51/asm.h,
1149         * as/mcs51/asmain.c,
1150         * as/mcs51/lkdata.c,
1151         * as/mcs51/lklex.c,
1152         * as/mcs51/lkmain.c,
1153         * as/z80/aslex.c,
1154         * as/z80/asm.h,
1155         * as/z80/asmain.c: fixed build on current cygwin:
1156         replaced getline() by as_getline()
1157
1158 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1159
1160         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
1161         declarator in the symbol chain
1162         * src/SDCCsymt.h,
1163         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
1164         parameter list for function pointers
1165         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
1166         * support/regression/tests/bug-716242.c: added
1167
1168 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
1169
1170         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
1171         offset if possible
1172         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
1173
1174 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
1175
1176         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
1177         inifinitely recurseable, added static
1178         * support/regression/tests/bug-1408066.c: added
1179
1180 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
1181
1182         * src/SDCCicode.h,
1183         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
1184         renamed, added possibility to create "postLoopLbl"-labels
1185         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
1186         newiTempLoopHeaderLabel
1187         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
1188         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
1189         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
1190         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
1191         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
1192         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
1193         (basicInduction): fixed bug #136564, made static,
1194         (loopInduction): changed parameter of basicInduction, made static,
1195         (addPostLoopBlock): added
1196         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
1197         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
1198         findLoopEndSeq
1199         * support/regression/tests/bug-136564.c: added
1200         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
1201         --std-sdcc99 to LIBSDCCFLAGS
1202
1203 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
1204
1205         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
1206         while loop
1207         * support/regression/tests/bug-1406131.c: added
1208
1209 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
1210
1211         * src/SDCCast.c (decorateType): fix promotion of unary minus
1212         * src/SDCCsymt.c (computeType): beautified
1213         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
1214         (valUnaryPM, valComplement): fix sign and promotion,
1215         (valNot): ANSI: result type is int (SDCC: unsigned char)
1216         * support/regression/tests/uminus.c: speedup by removing superflous
1217         test case 'int'
1218         * support/regression/tests/onebyte.c: added promotion and signedness
1219         tests for unary minus
1220         * support/regressions/tests/bug-477927.c: disable warning about
1221         uninitialized variables
1222         * support/regression/tests/not.c: added
1223
1224 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
1225
1226         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
1227         * src/mcs51/gen.c (gen51Code): show final register usage after
1228         fillGaps in asm with --i-code-in-asm
1229         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
1230         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
1231         incUsed, rliveClear, adjustIChain): made static,
1232         (setFromRange): excluded because it's unused,
1233         (findPrevUseSym, markWholeLoop): added,
1234         (findPrevUse): rewritten; fixes bug 895992; now a complete search
1235         through all branches of predecessors enables sdcc to emit the warning
1236         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
1237         (rlivePoint): made static, added parameter emitWarnings which is only
1238         true during the first run out of two,
1239         (findRecursiveSucc, findRecursivePred): removed,
1240         (computeLiveRanges): made static, added parameter emitWarnings,
1241         (dumpIcRlive): added for debugging only
1242         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
1243         removed prototype of setFromRange()
1244         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
1245         in call of computeLiveRanges()
1246         * support/regression/tests/bug-895992.c: added
1247         * support/regression/tests/bug-971834.c: added
1248         * support/valdiag/tests/bug-895992.c: added
1249         * support/valdiag/tests/bug-971834.c: added
1250
1251 2005-12-18 Raphael Neider <rneider AT web.de>
1252
1253         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
1254           (genUnpackBits): improved code for direct operands,
1255           (genPackBits): improved code for literal assignment to bitfields
1256             and for direct destination operands (no FSR indirection),
1257             prevented redundant AND, fixes #1362800,
1258           (AccLsh): added parameter to disable masking of the result
1259         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
1260           skip instructions with side-effects (like incfsz),
1261           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
1262         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
1263         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
1264           fixes #1375263
1265
1266 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
1267
1268         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
1269         volatile variables as spill location
1270
1271 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
1272
1273         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
1274         replacing literals
1275         * support/regression/tests/bug-1376320.c: added
1276
1277 2005-12-08 Raphael Neider <rneider AT web.de>
1278
1279         * src/pic/device.c: renamed is_shared to pic14_is_shared
1280         * src/pic/gen.c (genIfx): re-enabled handling of sbits
1281         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
1282           (is_valid_identifier): added for above workaround
1283
1284 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
1285
1286         * device/lib/Makefile.in: fixed to enable port-specific-objects
1287         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
1288           char, thanks Hubert Sack
1289         * doc/sdccman.lyx: documented --xstack-loc,
1290           elaborated a bit more on interrupts and pitfalls,
1291           removed "setjmp/longjmp unsupported",
1292           documented some unsupported C99 features
1293         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
1294         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
1295           if, thanks Hubert Sack
1296         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
1297         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
1298           make make_library
1299         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
1300           regression tests can report resource usage (rfe 700441)
1301         * support/regression/collate-results.py: report resource usage
1302         * support/regression/ports/ds390/spec.mk,
1303         * support/regression/ports/hc08/spec.mk,
1304         * support/regression/ports/mcs51/spec.mk,
1305         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
1306         * support/regression/ports/ds390/uCsim.cmd,
1307         * support/regression/ports/hc08/uCsim.cmd,
1308         * support/regression/ports/mcs51/uCsim.cmd,
1309         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
1310         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
1311           library, use the default one
1312         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
1313           building the library
1314
1315 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1316
1317         * config.dsp: added dependency on .version and configure_vc.awk
1318         * device/include/setjmp.h: updated for --stack-auto and --xstack
1319         * device/include/mcs51/at89c51snd1c.h: corrected line endings
1320         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
1321         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
1322         * device/lib/libsdcc.lib: added _setjmp
1323         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
1324           (decorateType): fixed bug 1372851,
1325           (optimizeGetHbit): fixed warning
1326         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
1327           array initialisation
1328         * support/regression/tests/bug1057979.c: added test for bug 1358192
1329         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
1330
1331 2005-12-03 Borut Razem <borut.razem AT siol.net>
1332
1333         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
1334           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
1335
1336 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1337
1338         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
1339         createIval): implement symbol independant "flexible array member",
1340         (createIvalCharPtr): implemented flexible array initialisation with a
1341         string
1342         * src/SDCCsymt.c (copyStruct): removed,
1343         (getSize): fixed misleading comment,
1344         (getAllocSize): removed, the additional allocation size is now in
1345         sym->flexArrayLength,
1346         (checkStructFlexArray): new, syntax checks for flexible array members,
1347         (compStructSize): added syntax checks for "flexible array members"
1348         (copyStruct): removed,
1349         (copyLinkChain): removed inefficient fix for bug 770487
1350         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
1351         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
1352         symbol->flexArrayLength
1353         * src/SDCCerr.c,
1354         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
1355         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
1356         * support/regression/tests/structflexarray.c: added
1357         * support/valdiag/tests/structflexiblearray.c: added
1358
1359 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1360
1361         * src/SDCCast.c (decorateType): fixed bug 1368489
1362         * support/Util/SDCCerr.c,
1363         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
1364
1365 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1366
1367         * device/include/mcs51/at89c51snd1c.h: added file submitted by
1368           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
1369
1370 2005-11-27 Borut Razem <borut.razem AT siol.net>
1371
1372         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
1373           support/cpp2/mkdeps.h: added command line option
1374           -obj-ext=<extension> to SDCPP to define object file externion, used
1375           for generation of make dependencies (-M)
1376         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
1377
1378 2005-11-26 Borut Razem <borut.razem AT siol.net>
1379
1380         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
1381           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
1382           added pic and pic16 libraries
1383
1384 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1385
1386         * device/include/float.h: Corrected typo in prototype of __fsgt
1387
1388 2005-11-25 Borut Razem <borut.razem AT siol.net>
1389
1390         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
1391           added creation of model-mcs51-stack-auto libraries
1392
1393 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
1394
1395         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
1396         and fields-list too
1397         * src/SDCCast.c (createIvalArray): removed obsolete comment
1398
1399 2005-11-24 Borut Razem <borut.razem AT siol.net>
1400
1401         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
1402           added missing device/lib/mcs51/crt*.asm sources
1403
1404 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
1405
1406         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
1407
1408 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
1409
1410         * device/lib/_fs2schar.c,
1411         * device/lib/_fs2sint.c,
1412         * device/lib/_fs2slong.c: optimized inline asm
1413
1414 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1415
1416         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1417           Better handling of floats between -1.0 and 0.0.
1418
1419 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1420
1421         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
1422           (the missing "if"s prohibited removal of redundant labels)
1423
1424 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1425
1426         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1427           Properly convert floats between -1.0 and 0.0 to long, int, and char
1428           types (max integer value of negative floats tends to zero).
1429         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1430           Removed changes made so to work properly with floats between
1431           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
1432           and _fs2char.c
1433
1434 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1435
1436         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
1437         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
1438         (genCast) cosmetic change
1439         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
1440         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
1441         from mcs51
1442         * support/regression/tests/bitfields (testSignedBitfields): added
1443
1444 2005-11-18 Borut Razem <borut.razem AT siol.net>
1445
1446         * sdcc/device/lib/Makefile.in: remove all unnecessary files
1447         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
1448           introduced SILENT option to make building of pic16 libraries less
1449
1450 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1451
1452         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1453           Now they work properly with floats between -1.0 and 0.0
1454         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
1455
1456 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1457
1458         * src/SDCCicode.c (printOperand): added missing else
1459
1460 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1461
1462         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
1463         reformatted for better readability
1464         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
1465         signed bitfields
1466
1467 2005-11-17 Borut Razem <borut.razem AT siol.net>
1468
1469         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
1470           introduced SILENT option to make building of pic16 libraries less
1471           verbose - used for nightly snapshot build
1472         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
1473           available on Win32 platforms.
1474         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
1475           medium, large, pic and pic16
1476
1477 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1478
1479         * device/lib/printf_large.c: Temporary patch for bug 1358192:
1480           printf("%f"...) sets fraction to zero.
1481
1482 2005-11-16 Raphael Neider <rneider AT web.de>
1483
1484         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
1485           fixes #1357221
1486         * src/pic/gen.c (genIfx): implemented for CARRY bit
1487         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
1488           to generic pointers, fixes #1357332,
1489           (pic16_movLit2f): NEW,
1490           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
1491
1492 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1493
1494         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
1495
1496 2005-11-11 Raphael Neider <rneider AT web.de>
1497
1498         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
1499         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
1500           compute pointer's type from operand,
1501           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
1502           improved single bit reads, fixes bug #1353379
1503
1504 2005-11-09 Borut Razem <borut.razem AT siol.net>
1505
1506         * support/scripts/sdcc.nsi: added lib/pic to the package
1507
1508 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
1509
1510         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
1511
1512 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1513
1514         * support/regression/tests/bug1348008.c: added
1515         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
1516         * support/regression/tests/bug1337835.c: updated comment
1517
1518 2005-11-06 Borut Razem <borut.razem AT siol.net>
1519
1520         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1521           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1522           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1523           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1524           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
1525           dynamic construction of cl_error_class and derivates - 2.nd try
1526
1527 2005-11-05 Borut Razem <borut.razem AT siol.net>
1528
1529         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
1530           bug, which caused Bus Errors on sparc solaris
1531
1532 2005-11-04 Borut Razem <borut.razem AT siol.net>
1533
1534         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1535           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1536           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1537           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1538           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
1539           and derivates to resolve the initialization problem on OSX
1540
1541 2005-11-02 Borut Razem <borut.razem AT siol.net>
1542
1543         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1544           corrected typo - #include <winsock2.h>
1545
1546 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
1547
1548         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
1549           (_asxxxx_mapping): added org directive for future enhancements
1550
1551 2005-11-01 Borut Razem <borut.razem AT siol.net>
1552
1553         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1554           enabled sockets on WIN32
1555         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
1556
1557 2005-10-31 Borut Razem <borut.razem AT siol.net>
1558
1559         * support/regression/generate-cases.py: escape backslashes in {testcase}:
1560           WIN32 backslash path delimiters should be escaped when used in C strings
1561         * support/regression/tests/bitfields.c: exclude failing assertions for
1562           __CYGWIN32__ and __MINGW32__ hosts
1563
1564 2005-10-30 Borut Razem <borut.razem AT siol.net>
1565
1566         * src/SDCCutil.c: corrected double comparison typo
1567
1568 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
1569
1570         * device/lib/medium/Makefile: added for new memory model medium
1571         * device/include/asm/mcs51/features.h: updated for medium/pdata
1572         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
1573           added Multiply & Accumulate sbit's and MAC0_PAGE define
1574         * device/include/mcs51/c8051f300.h: added sfr16 definitions
1575         * device/include/mcs51/c8051f310.h: added sfr16 definitions
1576         * device/lib/_mullong.c: update for medium model
1577         * device/lib/incl.mk: added medium model
1578         * doc/sdccman.lyx: documented medium model
1579         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
1580         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
1581         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
1582         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
1583           (allocParms): set SCLS and OCLS to pdata for medium model
1584         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
1585           for pdata,
1586           (powof2): return <0 if not power of 2
1587         * src/avr/gen.c (genBitWise): use updated powof2
1588         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
1589           (shiftR2Left2Result): small optimization in setup, save acc when storing,
1590           (shiftLLeftOrResult): use B if necessary
1591         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
1592         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
1593         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
1594         * support/regression/Makefile.in: added test-mcs51-medium
1595         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
1596
1597 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1598
1599         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
1600         specifier unsigned
1601         * device/lib/time.c (mktime): fixed bug 1334315
1602
1603 2005-10-28 Raphael Neider <rneider AT web.de>
1604
1605         * device/include/pic/p16f_common.inc: added common declarations
1606         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
1607
1608 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1609
1610         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
1611           (aopPutUsesAcc): added to predict accumulator use,
1612           (assignResultValue): save acc if necessary,
1613           (genMinusDec): store result if indirectly addressed,
1614           (genDivOneByte):  save acc if necessary,
1615           (movLeft2Result): bugfix if left already in acc,
1616           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
1617             attention to accumulator use (esp. pdata),
1618           (genReceive): receive pdata correctly
1619         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
1620         * src/SDCCicode.h: added isOperandInPagedSpace prototype
1621
1622 2005-10-27 Raphael Neider <rneider AT web.de>
1623
1624         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
1625
1626 2005-10-27 Raphael Neider <rneider AT web.de>
1627
1628         * .version: changed version to 2.5.4
1629         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
1630         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
1631           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
1632             arithmetics support routines
1633         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
1634         * device/lib/Makefile.in: also create installdir for pic
1635
1636         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
1637           pic14 port as well
1638         * src/pic/device.c (dump_sfr): rewritten to delegate register
1639           placement to the linker (use `extern sym' rather than sym EQU addr),
1640           (validAddress): fixed to check last specified address
1641         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
1642           (popGetLit): truncate literal value to 8 bit,
1643           (popGet): moved assert to more appropriate place
1644           (popGetExternal): create pCode operand from and mark the according
1645             symbol as being `extern'
1646           (popGetAddr): added sanity check on immediate's offset, provide
1647             GPOINTER tag on demand
1648           (aopPut): fixed for immediates,
1649           (mov2w_op): move operand's address or contents to WREG (depending on
1650             operand type), safer variant of mov2w,
1651           (movwf,call_libraryfunc): NEW, handy abbreviations,
1652           (get_argument_pcop,get_return_val_pcop,pass_argument,
1653           get_returnvalue): interface for accessing function parameters and
1654             return values,
1655           (assignResultValuei,genRet): use new parameter/return value interface
1656           (pic14_getDataSize): back to old version handling generic pointers,
1657           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
1658             provided implementation and/or fixed old one,
1659           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
1660             calls, removed legacy 8051 reference code
1661           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
1662           (loadSignToC): NEW, move the operands sign bit to CARRY,
1663           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
1664             genRightShiftSigned, accepts negative shift counts,
1665           (setup_fsr): load FSR and adjust IRP (indirect memory access),
1666           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
1667             generic pointers, __data pointers and __code pointers,
1668           (genUnpackBits,genPackBits): rewritten to work with generic pointers
1669             and signed bitfields, limit bitfields to 8 bit,
1670           (genDataPointerGet): fixed number of bytes read,
1671           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
1672           (genPointerGet,genPointerSet): fixed handling of __code pointers,
1673             pointers to constant data are no longer assumed to point to __code
1674             space, removed invalid pointer types,
1675           (bitpatternFromVal): retrieve the PICs representation of an integer
1676             or float literal,
1677           (genDataPointerSet): fixed assigning to po_immediate operands,
1678           (genGenPointerSet): implemented as library call,
1679           (genIfx): fixed incorrect condition,
1680           (genAddrOf): limit generic pointers' addresses to 2 bytes,
1681             provide GPOINTER tag according to destination's storage class,
1682           (genCast): added code to handle casting to generic pointers, added
1683             sign-/zero extension of the result
1684           (aop_isLitLike,op_isLitLike): fixed handling of immediates
1685         * src/pic/gen.h: added macros to access IRP bit in STATUS register
1686         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
1687           extend the result
1688         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
1689           address/register resides in the shared banks
1690           (emitSymbolToFile): improved to handle global and `pinned' symbols,
1691             put all variables into separate sections (have the linker arrange
1692             them)
1693           (picglue): put init code and interrupt handlers in separate sections
1694         * src/pic/main.c: added port specific options table, modified to PORT
1695           structure to make GPOINTERs 3 byte, added pic14_options
1696           (_pic14_do_link): private linking routine (update paths to libraries,
1697             add libsdcc.lib by default)
1698         * src/pic/main.h: declare pic14_options
1699         * src/pic/pcode.c: fixed instructions i/o relations,
1700           (RegCond): reverted to correct version,
1701           (newpCodeOpLit): truncate literals to 8 bit,
1702           (genericPrint): added debug output,
1703           (getRegFromInstruction): fixed for various operand types, simplified
1704           (BuildFlow): fixed broken handling of isntructions with labels
1705           (LinkFlow): start at last instruction in flow (skip trailing comments),
1706             pass the flow on to the next instruction after CALL
1707           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
1708           (insertPCodeInstruction): fixed inserting after a skip instruction,
1709           (DoBankSelect): fixed for labeled instructions
1710           (OptimizepBlock): honor --nopeep switch
1711           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
1712         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
1713         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
1714           (pCodeOptime2pCodes): allow disabling this optimization via
1715             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
1716             but is still buggy), started implementation of a dataflow based
1717             pCode optimization (CSE + dead code elimination)
1718           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
1719         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
1720           names are independant of the stack location and therefore portable across
1721           devices
1722
1723 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1724
1725         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
1726           (selectSpil): fixed bug 1337835 by not spilling bit variables
1727         * support/regression/tests/bug1337835.c: added test for this bug
1728         * src/mcs51/peeph.def: restart after rule 3.c,
1729           addded rules 263.x to optimize loading constants
1730
1731 2005-10-26 Raphael Neider <rneider AT web.de>
1732
1733         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
1734         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
1735           (genAssign): emit warning when casting literals to generic pointer
1736             type, also applies when taking the address of a fixed variable,
1737           (genCast): improved casting to generic pointers
1738         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
1739           extern variables, added verbose error message
1740         * device/include/pic16/{string.h,errno.h}: added #pragma library c
1741
1742 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
1743
1744         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
1745         carry must be complemented too
1746         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
1747         could be emitted by genMinus
1748         * src/SDCCval.c (constVal): fixed bug 1305065
1749
1750 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
1751
1752         * src/SDCCast.c (addCast): added promotion for bit variables
1753         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
1754         promotion casts + optimisation
1755         (optimizeGetWord): fix warning 'i' might be used uninitialized
1756         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
1757         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
1758
1759 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
1760
1761         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
1762         all chars are promoted to int; promotion should be handled in SDCCast.c
1763
1764 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1765
1766         * device/lib/_strcmp.c: Fixed bug 1326457
1767
1768 2005-10-11 Raphael Neider <rneider AT web.de>
1769
1770         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
1771         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
1772
1773 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1774
1775         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
1776         * support/regression/tests/sfr16.c: added test for the sfr32 bug
1777
1778 2005-10-04 Raphael Neider <rneider AT web.de>
1779
1780         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
1781           device/lib/pic16/pics.all: added pic18f1320
1782         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
1783
1784 2005-09-30 Raphael Neider <rneider AT web.de>
1785
1786         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
1787         * src/pic16/devices.inc: NEW, provides device descriptions
1788         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
1789
1790 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1791
1792         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
1793           GETHBIT
1794
1795 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
1796
1797         * doc/sdccman.lyx: updated Highest Order Bit documentation,
1798           documented Any Order Bit, Higher Order Byte and Higher Order Word
1799         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
1800         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
1801           (optimizeGetAbit): new, to get any bit, not only the high bit,
1802           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
1803           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
1804           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
1805           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
1806             RIGHT_OP: also try GETBYTE, GETWORD optimization,
1807             GETABIT, GETBYTE, GETWORD: decorate them,
1808           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
1809           (ast_print): added GETABIT, GETBYTE, GETWORD
1810         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
1811         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
1812           (geniCodeBinary): new generic binary icode,
1813           (ast2iCode): added GETABIT, GETBYTE, GETWORD
1814         * src/port.h: updated comment for PORT.hasExtBitOp
1815         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
1816           (genGetByte): new, to get a single byte,
1817           (genGetWord): new, to get a word from a long,
1818           (gen51Code): added GETABIT, GETBYTE, GETWORD
1819         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
1820
1821 2005-09-23 Raphael Neider <rneider AT web.de>
1822
1823         * configure.in, configure: have device/lib/pic configured
1824         * device/lib/Makefile.in: added model-pic14
1825         * device/lib/clean.mk: added pic/ to clean rule
1826         * device/lib/pic: added rudimentary pic14 library providing support
1827           functions for multiplication/division/generic pointer access
1828         * src/SDCCopt.c (convilong): mark support functions as extern
1829           for pic14 port as well
1830         * src/pic/gen.c (genMult): added assertions,
1831           (genpic14Code): emit warning on unhandled iCodes
1832         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
1833         * src/pic/pcode.c (pCodeOpCopy),
1834         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
1835           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
1836           SFR_REGISTER}), made safe for future extensions
1837         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
1838           instructions even if preceeded by SKIP instructions (also remove
1839           them); removed unused code
1840         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
1841           prevents leaving parts of the structure uninitialized after copying
1842
1843 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
1844
1845         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
1846           ago by me
1847         * support/regression/tests/addsub.c: added test for the bug
1848
1849 2005-09-21 Raphael Neider <rneider AT web.de>
1850
1851         * device/include/pic16/pic18f1220.h,
1852           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
1853         * device/lib/pic16/Makefile.rules: added missing opening paren
1854         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
1855           are provided in genutils.c,
1856           (genUminusFloat,genUminus,genCmpEq): added asserts on different
1857           operand/result sizes,
1858           (genCmp): assert on NULL pointers first, then check deref'ed values
1859         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
1860           result size
1861
1862 2005-09-18 Raphael Neider <rneider AT web.de>
1863
1864         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
1865           as these are now unused,
1866           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
1867         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
1868           local, avoids uninitialized pointer dereference on r->name
1869         * src/pic16/ralloc.c (newReg): fixed indentation
1870
1871 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
1872
1873         * src/SDCCval.c (constVal): fixed bug 730366
1874         * support/Util/SDCCerr.c,
1875         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
1876
1877 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1878
1879         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
1880
1881 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
1882
1883         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
1884
1885 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1886
1887         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
1888           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1889         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
1890           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1891         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
1892         * packihx/packihx.c (hexDigit): made c unsigned char
1893         * as/mcs51/lklibr.c (fndsym),
1894         * link/z80/lkgb.c (gb),
1895         * link/z80/lklibr.c (fndsym),
1896         * link/z80/lkrloc.c (relr),
1897         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
1898         * src/SDCC.lex (checkCurrFile, process_pragma),
1899         * src/SDCCglue.c (spacesToUnderscores),
1900         * src/SDCCmain.c (setParseWithComma, processFile),
1901         * src/asm.c (tvsprintf, printCLine),
1902         * src/avr/gen.c (emitcode, aopPut),
1903         * src/ds390/gen.c (emitcode),
1904         * src/hc08/gen.c (emitcode, emitinline),
1905         * src/mcs51/gen.c (emitcode, genInline),
1906         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1907           tokenizeLineNode),
1908         * src/pic/ralloc.c (debugLog),
1909         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1910           tokenizeLineNode),
1911         * src/pic16/ralloc.c (debugLog),
1912         * src/z80/main.c (_process_pragma):
1913            made all ctype.h function calls safe
1914         * src/SDCCopt.c: include math.h for fabs
1915         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
1916           and used them throughout the code to make ctype.h function calls safe
1917         * src/ds390/main.c (asmLineNodeFromLineNode),
1918         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
1919         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
1920            unsigned char*
1921         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
1922           (newpCodeAsmDir): made ctype.h function calls safe
1923         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
1924           pic16_emitcode):  made lbp unsigned char*
1925         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
1926           (pic16_newpCodeAsmDir): made ctype.h function calls safe
1927         * src/xa51/gen.c (emitcode),
1928         * src/z80/gen.c (_emit2): made lbp unsigned char*
1929         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
1930            char*
1931
1932 2005-09-05 Raphael Neider <rneider AT web.de>
1933
1934         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
1935           access bank splitpoint
1936
1937 2005-09-05 Raphael Neider <rneider AT web.de>
1938
1939         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
1940
1941 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
1942
1943         * .version: changed to version 2.5.3
1944         * doc/sdccman.lyx: changed version to 2.5.3,
1945           documented --codeseg and --constseg and pragma codeseg and constseg,
1946           documented bit parameters (reentrant) and bit returning
1947         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
1948            currFunc->recvSize, but is this ok for all ports?
1949           (ast2iCode): result of ~ on unsigned char must be cast to int for
1950            bool to work
1951         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
1952           function pointers in bit space
1953         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
1954           (processFuncArgs): call port.reg_parm() with reentrancy info
1955         * src/port.h,
1956         * src/avr/main.c,
1957         * src/ds390/main.c,
1958         * src/hc08/main.c,
1959         * src/pic/main.c,
1960         * src/pic16/main.c,
1961         * src/xa51/main.c,
1962         * src/z80/main.c: port.reg_parm prototype extended with
1963           "bool reentrant" parameter
1964         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
1965           options.stackAuto for allocating bit register parameters
1966         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
1967           (genSend): set BitBankUsed if it is,
1968           (selectRegBank): factored out of genCall for use in genPcall,
1969           (genCall): removed redundant dtype assignmen, use selectRegBank,
1970           (genPcall): handle returning in Carry properly, save in F0 if needed,
1971           (genReceive): handle bit register parameters
1972         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
1973           (mcs51_assignRegisters): enable bit registers for all reentrant
1974            functions and don't set BitBankUsed unconditionally
1975         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
1976         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
1977         * support/regression/tests/funptrs.c: added tests for BOOL and for return
1978
1979 2005-08-27 Borut Razem <borut.razem AT siol.net>
1980
1981         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
1982         ppc-osx (Darwin) does not support -u option. It seems that it is
1983         supported only on Linux - GNU cp
1984
1985 2005-08-25 Borut Razem <borut.razem AT siol.net>
1986
1987         * sim/ucsim/gui.src/serio.src/Makefile.in,
1988           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1989           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1990           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
1991           install and strip, since the strip at /usr/ccs/bin should be used
1992           on solaris
1993
1994 2005-08-24 Borut Razem <borut.razem AT siol.net>
1995
1996         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
1997
1998 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
1999
2000         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
2001         ffffffffu
2002
2003 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
2004
2005         * as/mcs51/aslink.h: completed lkrloc.c prototypes
2006         * as/mcs51/lkmain.c (link_main): fixed warning
2007         * device/include/stdbool.h: ds390 has no advanced bit support yet
2008         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
2009         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
2010         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
2011           and updated their macros
2012         * src/SDCCval.c (constVal): updated comment for renamed b_long
2013
2014 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
2015
2016         * as/mcs51/asdata.c: changed ctype['['] to BINOP
2017         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
2018           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
2019           (oprio): set priority for '['
2020         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
2021            and adb_24_bit
2022         * as/mcs51/asm.h: added defines R_BIT and S_BIT
2023         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
2024         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
2025         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
2026           added overlayable BIT_BANK area
2027         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
2028           (summary2): explain 'T' in legenda
2029         * as/mcs51/lkrloc.c: replaced old K&R style,
2030           (relr): added R_BIT processing,
2031           (errmsg): added "Bit-addressable relocation error",
2032           (adb_bit): added for converting from byte- to bit-addressable space,
2033           (adb_24_bit): added for converting from byte- to bit-addressable space
2034         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
2035            used in reentrant functions now even as return value
2036         * device/lib/_gptrput.c (_gptrput): removed obsolete code
2037         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
2038           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
2039         * src/SDCCglobl.h: added indicator BitBankUsed
2040         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
2041            the bit registers b0-b7
2042         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
2043           (geniCodeCast): fixed bug 1263853,
2044           (geniCodeLogicAndOr): put result in bool or char,
2045           (geniCodeReceive): added parameter func for accessing the return type,
2046           (geniCodeFunctionBody): pass func to geniCodeReceive
2047         * src/SDCCmain.c: added indicator BitBankUsed
2048         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
2049         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
2050           (checkSClass): don't put automatic bool/bit on stack,
2051           (checkFunction): removed check on function cannot return bit
2052         * src/SDCCsymt.h: added newBoolLink prototype
2053         * src/mcs51/gen.c (rb1regs): added bit registers,
2054           (movc): created for assigning to carry,
2055           (pushReg, popReg): created for pushing registers,
2056           (sameRegs): check both AOP_REG and AOP_CRY types,
2057           (aopOp): handle bit registers,
2058           (aopPut): optimization no self-assign,
2059           (saveRegisters): push reg->base (bits) only once for bit registers,
2060            and use pushReg,
2061           (unsaveRegisters): pop reg->base only once and use popReg,
2062           (assignResultValue): added parameter func and return in carry for bits,
2063           (genIpush): optimization no reload in A if not changed,
2064           (genSend): bit parameters in reentrant functions are passed in bit
2065            registers by first assigning to bits in B, then save registers and
2066            copy B to bits,
2067           (genCall): handle returning in Carry properly, save it in F0 if needed,
2068           (genPcall): updated assignResultValue call, this is not safe yet for bit
2069            returning function !!!
2070           (genFunction): don't generate equ's for bit registers and use pushReg,
2071           (genEndFunction): take care of bit returning functions and use popReg,
2072           (genRet): return bit in Carry,
2073           (genIfx): optimize bit registers and other directly addressable bits,
2074           (genReceive): updated assignResultValue call
2075         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
2076           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
2077            registers when using stack-auto
2078         * src/mcs51/ralloc.c (_G): added allBitregs,
2079           (regs8051): added the bit registers,
2080           (createStackSpil): use macro IS_BIT,
2081           (getRegBit): added to allocate a bit register, else spill,
2082           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
2083           (updateRegUsage): factored out to ease stepping while debugging,
2084           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
2085            also allocate bit registers,
2086           (fillGaps): handle bit registers,
2087           (findAllBitregs): added to create bit vector with all bit registers,
2088           (mcs51_allBitregs): returns this bit vector,
2089           (mcs51_assignRegisters): when using stack-auto use bit registers for
2090            passing parameters and creating local variables
2091         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
2092
2093 2005-08-22 Borut Razem <borut.razem AT siol.net>
2094
2095         * device/lib/Makefile.in: replaced find option -or with -o
2096           to make it run on solaris
2097
2098 2005-08-22 Raphael Neider <rneider AT web.de>
2099
2100         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
2101           fixes #1265442 (crash on Solaris)
2102
2103 2005-08-20 Borut Razem <borut.razem AT siol.net>
2104
2105         * configure, configure.in: added tests for libsocket and libnsl libraries,
2106           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
2107           from support/regression/Makefile.in
2108         * support/regression/Makefile.in: added
2109         * device/lib/pic16/Makefile.common.in: force make to use bash shell
2110         * sim/ucsim/libtool: regenerated on sparc-solaris
2111         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2112           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
2113           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
2114           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
2115           sparc-solaris, which doesn't use GNU ld linker
2116         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
2117         * as/Makefile: find on sparc-solaris does not support -maxdepth option
2118
2119 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
2120
2121         * src/mcs51/peeph.def: updated comments
2122
2123 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2124
2125         * device/lib/_gptrget.c,
2126         * device/lib/_gptrput.c: slightly shorter
2127         * doc/sdccman.lyx: incremented version
2128         * src/mcs51/peeph.def: moved peephole comments to the line of first
2129           change to better keep line correlation, reanimated 186.e
2130         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
2131
2132 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
2133
2134         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
2135           David Saxton with quotes around file name.
2136
2137 2005-08-15 Borut Razem <borut.razem AT siol.net>
2138
2139         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
2140           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
2141           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
2142           make tests run on x86_64 platform
2143
2144 2005-08-13 Raphael Neider <rneider AT web.de>
2145
2146         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
2147           as it might be executed DURING a build (parallel make is wonderful)
2148
2149 2005-08-13 Raphael Neider <rneider AT web.de>
2150
2151         * device/lib/Makefile.in (port-specific-objects-pic16):
2152           revert to cp $(PORT)/bin/*.* $(PORTDIR)
2153         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
2154           dependency
2155         * device/lib/pic16/Makefile.rules: build subdirs before creating
2156           the library, removed builddir rule, create $(builddir) early in
2157           recurse rule, use empty recurse rule for leaf directories
2158         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
2159           mkdir errors (race condition), removed duplicate suffix "hex"
2160           from clean rules
2161         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
2162         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
2163           prevents mkdir -p from aborting on Alpha
2164
2165 2005-08-12 Raphael Neider <rneider AT web.de>
2166
2167         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
2168           db-statements in order to allow for arrays of pointers in code
2169           sections to be placed without interspersed 0-padding, fixes
2170           bug #1256215
2171         * (emitStatistics): fixed division by zero for pic18f1220
2172         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
2173           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
2174         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
2175         * (pic16_pCodeConstString): keep track of already emitted string
2176           literals to prevent "duplicate definitions of symbol _str_NR"
2177         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
2178           debug message
2179         * device/lib/Makefile.in: ignore failing PIC16 library builds
2180         * device/lib/pic16/Makefile: do not build if gputils are missing
2181         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
2182
2183 2005-08-10 Raphael Neider <rneider AT web.de>
2184
2185         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
2186           my last commit)
2187
2188 2005-08-10 Raphael Neider <rneider AT web.de>
2189
2190         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
2191           Rokas' patch to add the new fixed point type "__fixed16x16"
2192         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
2193           functions for __fixed16x16 arithmetics
2194         * device/lib/pic16: reimplemented the build system to support
2195           a separate build directory, better handling of libio (create
2196           the library in a separate subdir for each architecture) and
2197           easier configuration (centralized in Makefile.common)
2198
2199 2005-08-07 Raphael Neider <rneider AT web.de>
2200
2201         * src/pic16/gen.c (genrshTwo): fixed sign extension
2202         * src/pic16/device.c: added pic18f2320, 4220 and 4320
2203         * device/include/pic16/pic18f2220.h: changed some bit definitions,
2204           added T0CONbits
2205         * device/include/pic16/pic18f4220.h: NEW, header for
2206           pic18f4220 and pic18f4320
2207         * device/include/pic16/pic18fregs.h: added new devices,
2208           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
2209         * device/include/pic16/signal.h: resolved name clashes
2210           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
2211           to also allow testing for interrupt enable bits, added
2212           comments on how to use the macros
2213         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
2214         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
2215           register definitions for the devices
2216         * device/lib/pic16/pics.all: added new devices
2217         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
2218           allocated memory
2219         * device/lib/pic16/libc/stdlib/memfree: do not count
2220           the block header as free memory
2221         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
2222           simplified and added missing end-of-blocklist-marker
2223           (reported by Peter Onion, fixes #1252814)
2224         * (_mergeHeapBlock): fixed loop condition
2225         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
2226           len==0, restructured code
2227         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
2228           up a bit, reduced bitfield accesses, prevent endless loops
2229           in case of heap corruption
2230         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
2231           "unreferenced arguments/must return a value" warnings
2232         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
2233           replaced BAUDREG with SPBRG
2234         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
2235           device/lib/pic16/debug/gstack/gstack.c: replaced
2236           _naked, _asm, _endasm with __naked, __asm, __endasm
2237
2238 2005-08-05 Raphael Neider <rneider AT web.de>
2239
2240         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
2241           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
2242
2243 2005-08-05 Borut Razem <borut.razem AT siol.net>
2244
2245         * device/lib/Makefile.in: added missing ';'
2246         * configure: removed ^M characters
2247
2248 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2249
2250         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
2251           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
2252           License
2253
2254 2005-08-04 Borut Razem <borut.razem AT siol.net>
2255
2256         * configure.in: pic16 libraries build 2nd try - enable running
2257           configure in device/lib/pic16
2258         * configure: regenerated from configure.in
2259         * device/lib/Makefile.in: create $(PORT)/bin directory
2260
2261 2005-08-03 Raphael Neider <rneider AT web.de>
2262
2263         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
2264           to get/set values via pointers
2265         * (genUnpackBits,genPackBits): changed detection of
2266           ptr->bitfield vs. sym.bitfield, fixed access via generic
2267           pointers, removed dead (wrong) code for multibyte bitfields
2268         * (genNearPointerGet, genGenPointerGet): removed useless code,
2269           fixed bitfield detection, fixes #1250594
2270         * (genNearPointerSet): removed useless code
2271         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
2272           and introduced macro pic16_emitpcode that conditionally emits
2273           the origin of the following pCode (useful for debugging SDCC)
2274         * src/pic16/pcode.c: changed (and disabled) some debug outputs
2275         * (createDefmap): fixed handling of LFSR for --optimize-df
2276
2277 2005-08-02 Borut Razem <borut.razem AT siol.net>
2278
2279         * device/lib/Makefile.in: pic16 libraries build enabled since
2280           gputils-0.13.2 are now localy installed at sourceforge's compile farm
2281
2282 2005-08-02 Raphael Neider <rneider AT web.de>
2283
2284         * src/pic16/gen.c (genPackBits): removed deprecated warning
2285         * (genGenPointerSet): fixed bitfield detection
2286
2287 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2288
2289         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
2290
2291 2005-07-31 Raphael Neider <rneider AT web.de>
2292
2293         * device/lib/pic16/libdev/pic18f458.c,
2294           device/include/pic16/pic18f458.h: added missing T0CONbits
2295
2296 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
2297
2298         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
2299
2300 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
2301
2302         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
2303
2304 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2305
2306         * device/include/mcs51/at89c51ed2.h: added.
2307
2308 2005-07-23 Raphael Neider <rneider AT web.de>
2309
2310         * src/pic/gen.h: added emitpcode macro for debugging
2311         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
2312           and replace by macro adding debug information on demand
2313         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
2314         * (gencjne): tried to fix; replaced with correct (slower) code
2315         * (gen{Unp,P}ackBits): fixed single bit access
2316         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
2317         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
2318           previous instruction
2319         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
2320           register has to be handled with care (forbidding movement
2321           of assignments/uses, removing assignments completely, ...)
2322         * (pCodeOptime2pCodes): make use of regIsSpecial
2323         * added lots of debugging output (commented out)
2324         * src/pic/rallloc.c (deassignLRs): prevent operand registers
2325           from being reused as result UNLESS it is known to work
2326
2327 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2328
2329         * support/Util/dbuf.h: include <stddef.h> for size_t
2330         * .version: changed to version 2.5.2
2331
2332 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2333
2334         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
2335
2336 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2337
2338         * src/hc08/gen.c (genMinus): fixed bug #1241835,
2339           (genModOneByte): removed needless psha/pula
2340
2341 2005-07-22 Raphael Neider <rneider AT web.de>
2342
2343         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
2344           have PIC14 handled like PIC16, fixes broken pic14 linker calls
2345         * src/pic/gen.c (resolveIfx): do not "invent" labels
2346         * (genSkipc): changed to positive logic
2347         * (genSkipCond): removed as no longer needed
2348         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
2349           backport from PIC16
2350         * (genLeftShift): check operands are in different registers
2351         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
2352           INCF does not update CARRY...
2353         * src/pic/main.c: fixed _linkCmd
2354         * src/pic/pcode.c (unlinkpCode): added inactive code
2355         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
2356           alive (do not assign result and operand overlapping registers)
2357
2358 2005-07-22 Raphael Neider <rneider AT web.de>
2359
2360         * src/pic/device.c (dump_sfr): replaced register declaration with
2361           call to emitSymbolToFile() to avoid duplicate symbols
2362         * (assignRelocatableRegisters): do not declare external symbols
2363         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
2364           right (take size of type, not etype)
2365         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
2366         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
2367         * (packRegsForAccUse): disabled assignment of WREG as
2368           the result reg to prevent occurence of just fixed #1235003,
2369           fixes #1242954
2370         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
2371           symbols (avoids duplicate symbols in .asm file)
2372         * (pic14emitRegularMap): use emitSymbolToFile()
2373         * src/pic/gen.c (aopOp): fixed spillLocation handling
2374         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
2375         * (genDataPointerSet): removed unneccessary variables/output
2376
2377 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
2378
2379         * as/mcs51/lkarea.c: enlarged codemap for banked memory
2380         * device/lib/mcs51/crtbank.asm: added # to 0x0F
2381
2382 2005-07-21 Raphael Neider <rneider AT web.de>
2383
2384         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
2385           architecture cannot handle them efficiently, fixes bug #1235003
2386         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
2387           check for empty sets before using them (fixes bug #1232190)
2388
2389 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
2390
2391         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
2392           (lnksect2): generate warnings for memory overlap
2393         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
2394           constseg to set the name of these segments so you can instruct the linker
2395           to place them in banks
2396         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
2397         * src/SDCCglobl.h: added MODEL_HUGE to enum,
2398           added code_seg and const_seg to options
2399         * src/SDCCglue.c (emitMaps): use options.const_seg,
2400           (createInterruptVect): put interrupt vectors in segment HOME,
2401           (glue): put HOME before static segment and put the main glue in HOME,
2402           (glue): use options.code_seg
2403         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
2404         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
2405           these segments so you can instruct the linker to place them in banks
2406           (linkEdit): use code_loc for HOME segment which should be the first
2407           segment in code memory now
2408         * src/SDCCmem.c: fixed more stuff like bug 1238386
2409         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
2410           (changePointer): don't change function pointers to code pointers for
2411           banked functions,
2412           (compareType): added exceptional check for banked function pointers
2413         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
2414         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
2415           after static in code memory
2416         * src/mcs51/gen.c: added aopLiteralLong prototype,
2417           (aopForSym): use getSize for functions,
2418           (genCall): generate banked calls over one trampoline __sdcc_banked_call
2419           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
2420           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
2421           the segment,
2422           (genPcall): use call for literal function pointers and generate banked
2423           calls over the one trampoline so there's only one place for the user to
2424           modify according to his/hers hardware,
2425           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
2426           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
2427         * src/mcs51/main.c: added keyword banked,
2428           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
2429         * support/Util/SDCCerr.c,
2430         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
2431           needed for passing the bank and address to the trampoline
2432         * device/lib/mcs51/crtbank.asm: added for bankswitching
2433         * device/lib/mcs51/Makefile: added crtbank
2434
2435 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2436
2437         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
2438           for fields at offset 0 of a struct or union as reported
2439           on 2005-07-07 in the developer mailing list.
2440
2441 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2442
2443         * src/SDCCmem.c: fixed bug 1238386
2444
2445 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2446
2447         * src/mcs51/peeph.def: added labelrefcounting for peepholes
2448           (patch #1144962), added peephole 300, enabled 259.x
2449         * doc/sdccman.lyx: removed screenshot and provided link instead
2450
2451 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2452
2453         * doc/sdccman.lyx: added section about debugging with ddd
2454         * doc/figures/ddd_example.eps: screenshot of debugging session
2455
2456 2005-07-04 Raphael Neider <rneider AT web.de>
2457
2458         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
2459           like CODE pointers, fixes #1115683
2460         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
2461           call, fixes bugs #1232211, #1228110,
2462           fixed wrong casts to pCodeFlow from pCodeInstructions
2463
2464 2005-07-04 Raphael Neider <rneider AT web.de>
2465
2466         * src/pic/gen.c (popGet): changed assert to allow for
2467           bit operands
2468         * (popGetAddr): changed signature to provide
2469           an additional index, patched all call sites
2470         * (genCmpEq): handle literal-like operands correctly
2471         * (genAddrOf): added sanity checks on __code/__data pointers
2472         * (genAssign): added handling of symbols from __code section
2473         * (gencjne): do not generate code for comparisons whose result
2474           is neither stored nor used, fixes bug #1171114
2475         * (AccLsh, AccRsh): operate on operand instead of WREG
2476         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
2477           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
2478           by known count
2479         * rewrote complete shift-by-literal logic, commented unused
2480           functions out
2481         * (genConstPointerGet): get multiple bytes (if result size > 1),
2482           fixed handling of non-immediate addresses
2483         * (genPointerGet): handle CODE pointers like CONST pointers
2484         * (genpic14Code): insert C-SRC lines as Cource-pCodes
2485         * ({aop,op}_isLitLike): NEW, single place to decide whether an
2486           operand is to be treated as a literal or not
2487         * (mov2w,genPcall,genCmpEq),
2488           src/pic/genarith.c: use aop_isLitLike() to decide between
2489           literal/register contents
2490         * (addSign): added missing offset
2491         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
2492           only emit comment in debug-mode,
2493           use {aop,op}_isLitLike throughout the file
2494         * src/pic/glue.c: fix initializers for pointers (work in progress)
2495         * src/pic/pcode.c (get_op): honor index on _const symbols
2496         * ({reset,dump}pCodeStatistics): NEW, estimate code size
2497         * (dumppBlock): added pCode size estimation
2498         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
2499           check for IS_SYMOP before OP_SYMBOL'ing
2500         * fixed indentation, compacted switch-statements
2501         * (allocReg): find free register and allocate it instead of
2502           allocating new registers all the time
2503         * (deassignLRs): prevent POINTER_GET's from being assigned the same
2504           registers as its operands (necessary only for multibyte GETs)
2505
2506 2005-07-01 Raphael Neider <rneider AT web.de>
2507
2508         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
2509           debugging .asm-output macros FENTRY + FEXIT
2510         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
2511           way... I wonder...
2512         * (emitpComment): NEW, printf to pCode
2513         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
2514           offset handling
2515         * (popGetAddr): NEW, variant of popGet to access an immediates
2516           high(er) bytes instead of the n'th byte of memory they reference,
2517           replaced popGet with popGetAddr where neccessary
2518         * (genDataPointerGet): reactivated and fixed implementation
2519         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
2520           accesses
2521         * (genDataPointerSet): fixed multibyte assignments
2522         * (genpic14Code): fixed --i-code-in-asm handling
2523         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
2524         * (genPlus): fixed index-out-of-bounds error
2525         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
2526         * src/pic/ralloc.c: added debugging output macro FENTRY2
2527         * (spillThis): fixed indentation, enbraced for-body for clarity
2528         * (rematStr): commented out as now unused
2529         * (regTypeNum): commented out special spill case (overwrites
2530           arbitrary values)
2531         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
2532
2533 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
2534
2535         * doc/sdccman.lyx: documented sfr16/sfr32,
2536           added example for using storage class with function pointers
2537         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
2538
2539 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
2540
2541         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
2542         * device/lib/_itoa.c,
2543         * device/lib/_ltoa.c: optimized codesize
2544         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
2545           but don't know how to suppress the double warning.
2546         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
2547         * support/Util/SDCCerr.c,
2548         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
2549
2550 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
2551
2552         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
2553           fixed old K&R prototypes
2554         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
2555         * device/lib/_gptrget.c,
2556         * device/lib/_gptrgetc.c,
2557         * device/lib/_gptrput.c: changed versions for new memory indicator values,
2558           also new versions for small generic pointers and banked generic pointers
2559         * src/port.h: added const_name
2560         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
2561         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
2562         * src/SDCCcse.c (findPrevIc): check all associative operators
2563         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
2564         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
2565         * src/SDCCmem.c: updated comments,
2566           set far-space to 0 for pdata, results in optimized code
2567         * src/SDCCmem.h: added macro CONST_NAME
2568         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
2569           moving the info into the highest bits, see also gptrget/gptrput
2570         * src/src.dsp: added sdcc.ico to project files
2571         * src/avr/gen.c (genCast): fixed bug 0x%d
2572         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
2573         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
2574           relation between ptr_type and DCL_TYPE,
2575           (genCast): fixed bug 0x%d
2576         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
2577           (CODE)" for const_name
2578         * src/hc08/gen.c (genCast): fixed bug 0x%d
2579         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
2580           (hc08_port): added "CONST (CODE)" for const_name
2581         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
2582           (aopForRemat, adjustArithmeticResult): disconnected direct relation
2583           between ptr_type and DCL_TYPE,
2584           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
2585           operand* and took AOP() inside function so sfr-ness can be checked,
2586           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
2587           new prototype,
2588           (genFunction, genEndFunction): optimized stack setup,
2589           (genMinus): optimized for literals with ending zeroes (in bytes),
2590           (genCast): fixed bug 0x%d
2591         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
2592           (mcs51_port): added "CONST (CODE)" for const_name
2593         * src/mcs51/peeph.def: made rule 226 more generic
2594         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
2595         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
2596         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
2597         * src/z80/main.c (z80_port): added NULL for const_name,
2598           (gbz80_port): added NULL for const_name
2599         * support/regression/tests/bug663539.c,
2600         * support/regression/tests/sfr16.c: new tests
2601
2602 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2603
2604         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
2605
2606 2005-06-24 Raphael Neider <rneider AT web.de>
2607
2608         * device/lib/pic16/libdev/pic18f[68][567]20.c:
2609           corrected typos...
2610         * device/include/pic16/signal.h: added USBIF
2611           and SIG_USB
2612
2613 2005-06-24 Raphael Neider <rneider AT web.de>
2614
2615         * device/lib/pic16/libdev/pic18f2455.c,
2616           device/include/pic16/pic18f2455.h: NEW
2617         * device/include/pic16/pic18fregs.h,
2618           device/lib/pic16/pics.all,
2619           src/pic16/device.c: added 18f2455
2620         * device/lib/pic16/libdev/pic18f[68][567]20.c,
2621           device/include/pic16/{pic18f[68][567].h,usart.h}:
2622           replaced MULTIPLE_USARTS define with more relaible
2623           compatibility sfrs (for USART access)
2624
2625 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
2626
2627         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
2628           and the output asm file line is printed on two lines.
2629
2630 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2631
2632         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
2633           BGT, BLE, BHI, and BLS instructions
2634         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
2635           genCmpEq): removed
2636         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
2637           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
2638           fixes bug #1216342
2639         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
2640
2641 2005-06-15 Raphael Neider <rneider AT web.de>
2642
2643         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
2644         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
2645         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
2646           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
2647           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
2648
2649 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2650
2651         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
2652           Marcel Telka in bug #1215704
2653
2654 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
2655
2656         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
2657           located in shared memory bank.
2658
2659 2005-05-31 Raphael Neider <rneider AT web.de>
2660
2661         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
2662           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
2663           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
2664
2665 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
2666
2667         * device/lib/_strncpy.c: fixed the fix
2668
2669 2005-05-26 Raphael Neider <rneider AT web.de>
2670
2671         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
2672           initializers with \0, bug #1208187
2673         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
2674           intializers with \0, bug #1208187
2675
2676 2005-05-26 Raphael Neider <rneider AT web.de>
2677
2678         * src/pic16/glue.c (pic16_printIvalChar): fixed string
2679           initializers with \0, bug #1208187
2680         * src/pic16/main.c (_process_pragma): added sanity checks
2681           for stack position and size, emit warnings when appropriate
2682
2683 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2684
2685         * device/lib/_strncpy.c: fixed not filling with \0
2686
2687 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2688
2689         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
2690           createFunction),
2691         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
2692           compound_statement),
2693         * src/SDCCsymt.h,
2694         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
2695
2696 2005-05-24 Raphael Neider <rneider AT web.de>
2697
2698         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
2699
2700 2005-05-24 Raphael Neider <rneider AT web.de>
2701
2702         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
2703           TRISE definitions, closes bug #1162453
2704
2705 2005-05-22 Raphael Neider <rneider AT web.de>
2706
2707         * src/pic16/main.c (_process_pragma): check for missing
2708           arguments to pragmas code and udata
2709         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
2710           consistency fixes to match other headers (thanks to Jim Paris)
2711         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
2712
2713 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2714
2715         * src/SDCCicode.c (isOperandEqual): fixed missing ;
2716
2717 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
2718
2719         * support/regression/tests/bug1198642.c: new test
2720         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
2721         * src/SDCCcse.c (findPrevIc): added comment, please have a look
2722         * support/scripts/resource.h,
2723         * support/scripts/resource.rc,
2724         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
2725         * support/scripts/sdcc.ico: added 32x32 icon
2726
2727 2005-05-18 Raphael Neider <rneider AT web.de>
2728
2729         * device/lib/pic16/libdev/pic18f*.c,
2730         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
2731           keywords to "__sfr" and "__at (X)"
2732         * device/include/pic16/pic18fregs.h: added pic18f4520
2733         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
2734           #1203088 (MPLAB compatibility)
2735
2736 2005-05-17 Raphael Neider <rneider AT web.de>
2737
2738         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
2739         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
2740         * device/lib/pic16/pics.all: added new devices
2741         * src/pic16/device.c: added support for pic18f4520
2742
2743 2005-05-16 Raphael Neider <rneider AT web.de>
2744         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
2745         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
2746         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
2747           convenience function for bit access
2748
2749 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2750
2751         * device/lib/printf_large.c: fixed bug 1193299
2752         * support/regression/tests/bug1057979.c: added test %3.3s
2753
2754 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2755
2756         * device/include/mcs51/8051.h,
2757         * device/include/mcs51/8052.h: made parseable with lint
2758         * device/include/mcs51/lint.h: added include file for (sp)lint
2759         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
2760         * doc/cdbfileformat.lyx,
2761         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
2762
2763 2005-05-14 Raphael Neider <rneider AT web.de>
2764
2765         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
2766         * device/lib/pic16/libc/stdlib/itoa.c (new)
2767         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
2768         * device/lib/pic16/libio/Makefile: exclude subdir according to
2769           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
2770         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
2771         * src/pic16/gen.c (genFunction): prevent annoying warning
2772         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
2773           nameclashes on BeOS
2774         * support/cpp2/cppmain.c (cpp_output_string): new
2775         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
2776           fixes bug 1116802
2777
2778 2005-05-13 Borut Razem <borut.razem AT siol.net>
2779
2780         * src/SDCCmain.c (linkEdit): fixed bug 1195202
2781
2782 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2783
2784         * .version: changed to version 2.5.1; back to bleeding edge development
2785
2786 2005-05-11 Borut Razem <borut.razem AT siol.net>
2787
2788         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
2789           generate PDF version 1.3 documents
2790
2791 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2792
2793         * .version: changed to version 2.5.0
2794
2795 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2796
2797         * doc/sdccman.lyx: updated weblinks, index and smaller updates
2798
2799 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2800
2801         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
2802         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
2803         well as many smaller updates.
2804         * .version: changed to version 2.5.0-pre1
2805
2806 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2807
2808         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
2809
2810 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2811
2812         * support/regression/tests/bug1185672.c: added
2813         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
2814           bug 1185672
2815         * src/mcs51/gen.c (genCall): added comments, made it look safer
2816         * src/mcs51/gen.c (genEndFunction): simplified
2817
2818 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2819
2820         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
2821
2822 2005-04-14 Borut Razem <borut.razem AT siol.net>
2823
2824         * fixed bug 1045046 - SIGSEGV with really simple code?:
2825           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
2826           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
2827
2828 2005-04-14 Borut Razem <borut.razem AT siol.net>
2829
2830         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
2831           src/pic16/device.h: temporarily disabled experimental #inline pragma
2832           for 2.5.0 release
2833
2834 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
2835
2836         * device/include/z80/stdio.h,
2837         * device/include/z80/string.h: removed these highly incomplete files so
2838           SDCC can use the default ones in device/include/
2839
2840 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2841
2842         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
2843         gcc warning.
2844         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
2845         fix sdcpp warnings.
2846
2847 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2848
2849         * device/include/malloc.h: removed redundant __reentrant prototypes
2850         * device/lib/_mullong.c: added working xstack variant in asm (C version
2851           doesn't pass regression tests)
2852         * device/lib/bpx.c: used __data and made bpx char for mcs51
2853         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
2854           (createFunction): fixed bug with xstackPtr
2855         * src/SDCCcse.c: corrected comments
2856         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
2857           (killDeadCode, eBBlockFromiCode): removed unused code
2858         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
2859           corrected comments
2860         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
2861           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
2862           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
2863           (genModOneByte): fixed warning in MSVC
2864         * src/mcs51/main.c (): added comments
2865         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
2866
2867 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2868
2869         * src/SDCCmain.c (linkEdit): oops, changed one line too many
2870
2871 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
2872
2873         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
2874
2875 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
2876
2877         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
2878         characters arrays of larger size than the declared one.
2879
2880 2005-04-10 Borut Razem <borut.razem AT siol.net>
2881
2882         * src/pic/gen.c (genInline),
2883           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
2884           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
2885           (findNextInstruction), (findPrevInstruction),
2886           (findInstructionUsingLabel),
2887           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
2888         * src/pic/pcode.c (findLabel): added missing '\n'
2889         * src/src.dsp: added SDCCdwarf2.c to the project
2890
2891 2005-04-09 Borut Razem <borut.razem AT siol.net>
2892
2893         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
2894
2895 2005-04-08 Raphael Neider <rneider AT web.de>
2896
2897         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
2898           into the chain after a given one) and mergeDefmapSymbols (combine
2899           defmap entries for each symbol per pcode)
2900         * (createDefmap): have defmap entries merged in the end
2901         * (defmapReplaceSymRef): split defmap entries covering two accesses to
2902           a symbol before replacing one access type's symbol, merge symbols in
2903           the end (replacement symbol might already have an entry)
2904         * (assignValnums): keep reference to written WREG intact
2905
2906 2005-04-08 Raphael Neider <rneider AT web.de>
2907
2908         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
2909           Alpha)
2910
2911 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
2912
2913         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
2914         bytes
2915
2916 2005-04-07 Raphael Neider <rneider AT web.de>
2917
2918         * device/include/pic16/usart.h: added compatibility defines for
2919           devices with more than one USART
2920         * device/include/pic16/pic18f[68][567]20.h: activated above defines
2921
2922 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2923
2924         * device/lib/Makefile.in: updated for port specific include
2925
2926 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2927
2928         * support/regression/ports/mcs51/spec.mk: added mcs51 include
2929
2930 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2931
2932         * device/include/8051.h,
2933         * device/include/8052.h,
2934         * device/include/at89S8252.h,
2935         * device/include/at89c55.h,
2936         * device/include/at89x051.h,
2937         * device/include/at89x51.h,
2938         * device/include/at89x52.h,
2939         * device/include/mcs51reg.h,
2940         * device/include/reg51.h,
2941         * device/include/reg764.h,
2942         * device/include/regc515c.h,
2943         * device/include/sab80515.h: (re)moved these 12 files
2944         * device/include/mcs51/8051.h,
2945         * device/include/mcs51/8052.h,
2946         * device/include/mcs51/at89S8252.h,
2947         * device/include/mcs51/at89c55.h,
2948         * device/include/mcs51/at89x051.h,
2949         * device/include/mcs51/at89x51.h,
2950         * device/include/mcs51/at89x52.h,
2951         * device/include/mcs51/mcs51reg.h,
2952         * device/include/mcs51/reg51.h,
2953         * device/include/mcs51/reg764.h,
2954         * device/include/mcs51/regc515c.h,
2955         * device/include/mcs51/sab80515.h: and added them here
2956
2957 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2958
2959         * device/include/stdarg.h: changed SDCC specific keywords to double
2960           underlined form.
2961         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
2962           mcs51 and ds390.
2963         * device/include/hc08/mc68hc908gp32.h,
2964         * device/include/hc08/mc68hc908jb8.h,
2965         * device/include/hc08/mc68hc908jkjl.h,
2966         * device/include/hc08/mc68hc908qy.h: fixed comments
2967         * device/include/mcs51/README: updated
2968         * device/include/mcs51/c8051f120.h: added PINRSF
2969         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
2970         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
2971           amidst code. Also inline is not supported.
2972
2973 2005-04-06 Raphael Neider <rneider AT web.de>
2974
2975         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
2976         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
2977           callers stack/frame pointers
2978
2979 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2980
2981         * device/include/pic16/usart.h: added, missing in previous commit,
2982         * device/include/pic16/adc.h: fixed typo,
2983         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
2984         commit,
2985         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
2986         <p18fxxx.inc>
2987         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
2988         uninitialized because a bug appears with gplink
2989         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
2990         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
2991         complains for unrecognised option
2992
2993 2005-04-05 Raphael Neider <rneider AT web.de>
2994
2995         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
2996           structs as well (using memcpy)
2997         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
2998           on ISRs (GOTO has no label)
2999         * src/pic16/device.h: added OF_OPTIMIZE_DF
3000         * src/pic16/main.c: added compiler switch --optimize-df to enable the
3001           new data flow analysis/optimization
3002         * src/pic16/pcode.c: added (prototypes for and implementation of)
3003           dataflow analysis functions, fixed pCodeInstructions' inCond and
3004           outCond values, made RCALL a branch instruction
3005         * (pic16_unlinkpCode): keep C line if possible
3006         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
3007           C line moved if possible
3008         * (pic16_getRegFrompCodeOp): NEW, improved version of...
3009         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
3010           to use new pic16_getRegFrompCodeOp (works for more SFRs)
3011         * (pic16_BuildFlow): fixed skip instructions with label (did not start
3012           new flow)
3013         * (pic16_getJumptabpCode): NEW, needed in...
3014         * (LinkFlow): fixed handling of jumptables, calls and conditional
3015           branches
3016         * (pic16_InsertCommentAfter): NEW
3017         * (pic16_pCodeReplace): made verbose and flow preserving
3018         * (AnalyzeFlow): added call to data flow analysis
3019         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
3020         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
3021         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
3022
3023 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3024
3025         * src/SDCCast.c (decorateType): fixed bug #1105626
3026
3027 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
3028
3029         * device/include/asm/pic16/features.h,
3030         * pic18f*.h headers,
3031         * device/include/pic16/adc.h,
3032         * device/include/pic16/delay.h,
3033         * device/include/pic16/i2c.h,
3034         * device/include/pic16/malloc.h,
3035         * device/include/pic16/stdio.h,
3036         * device/include/pic16/stdlib.h,
3037         * device/include/pic16/string.h,
3038         * device/lib/pic16/libc/stdio/printf_tiny.c,
3039         * device/lib/pic16/libc/stdio/printf_small.c,
3040         * device/lib/pic16/libc/stdio/strmgpsim.c,
3041         * device/lib/pic16/libc/stdio/strmmssp.c,
3042         * device/lib/pic16/libc/stdio/strmusart.c,
3043         * device/lib/pic16/libc/stdio/vfprintf.c,
3044         * device/lib/pic16/libc/stdlib/ltoa.c,
3045         * device/lib/pic16/libc/stdlib/putchar.c,
3046         * device/lib/pic16/libc/stdlib/x_ftoa.c,
3047         * device/lib/pic16/libc/stdlib/memchrpgm.c,
3048         * device/lib/pic16/libc/stdlib/memchrram.c,
3049         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
3050         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
3051         * device/lib/pic16/libio/adc/adcbusy.c,
3052         * device/lib/pic16/libio/adc/adcread.c,
3053         * device/lib/pic16/libio/adc/adcsetch.c,
3054         * device/lib/pic16/libio/usart/ubaud.c,
3055         * device/lib/pic16/libio/usart/ubusy.c,
3056         * device/lib/pic16/libio/usart/udrdy.c,
3057         * device/lib/pic16/libio/usart/uopen.c,
3058         * device/lib/pic16/libio/usart/uputc.c,
3059         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
3060         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
3061         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
3062         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
3063         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
3064         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
3065         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
3066         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
3067         specific keywords to double underlined form,
3068         * device/lib/pic16/libc/Makefile.rules,
3069         * device/lib/pic16/libsdcc/Makefile.rules,
3070         * device/lib/pic16/libm/Makefile,
3071         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
3072         to compile with C standard set in Makefile.common
3073         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
3074         rand.c and crc.c in compilation process,
3075         * device/lib/pic16/libsdcc/int/divuint.c,
3076         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
3077         `c' from signed to unsigned,
3078         * device/lib/pic16/startup/crt0.c,
3079         * device/lib/pic16/startup/crt0i.c,
3080         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
3081         keywords to double underlined form, bug fixes in _do_cinit function
3082         which prevented the correct initialization of the .idata segment,
3083         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
3084         core to enter a infinite loop
3085         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
3086
3087 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3088
3089         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
3090
3091 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3092
3093         * device/include/Makefile.in: add support for hc08 subdirectory
3094         * device/include/hc08/: new subdirectory
3095         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
3096         Lucas Loizaga, thanks!
3097         * device/include/hc08/mc68hc908qy.h,
3098         * device/include/hc08/mc68hc908gp32.h,
3099         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
3100         their own directory. Changed internal macro names to use the compiler
3101         reserved namespace. Changed SDCC specific keywords to double
3102         underlined form.
3103         * device/include/math.h,
3104         * device/include/malloc.h,
3105         * device/include/stdarg.h,
3106         * device/include/stdbool.h
3107         * device/include/string.h,
3108         * device/include/tinibios.h,
3109         * device/include/ds400rom.h,
3110         * device/include/8051.h,
3111         * device/include/8052.h,
3112         * device/include/80c51xa.h,
3113         * device/include/at89c55.h,
3114         * device/include/at89S8252.h,
3115         * device/include/at89x51.h,
3116         * device/include/at89x52.h,
3117         * device/include/ds80c390.h,
3118         * device/include/reg764.h,
3119         * device/include/regc515c.h,
3120         * device/include/sab80515.h,
3121         * device/include/mcs51/c8051f000.h,
3122         * device/include/mcs51/c8051f018.h,
3123         * device/include/mcs51/c8051f020.h,
3124         * device/include/mcs51/c8051f040.h,
3125         * device/include/mcs51/c8051f060.h,
3126         * device/include/mcs51/c8051f120.h,
3127         * device/include/mcs51/c8051f300.h,
3128         * device/include/mcs51/c8051f310.h,
3129         * device/include/mcs51/c8051f320.h,
3130         * device/include/mcs51/c8051f330.h,
3131         * device/include/mcs51/c8051f350.h,
3132         * device/include/z180.h: Changed SDCC specific keywords to double
3133         underlined form.
3134
3135 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
3136
3137         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
3138         18F4455,
3139         * (pic16_assignConfigWordValue): disable testing of configuration
3140         register value with config mask,
3141         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
3142         function with port->fun_prefix,
3143         * (genFunction): when generating a naked interrupt function never
3144         create an absolute segment placed in interrupt vector address, place
3145         the actual interrupt function at IVA instead, when an interrupt
3146         function is generated with unspecified interrupt then do not create
3147         the absolute section,
3148         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
3149         code for generating a call to generic pointer get/put function with
3150         a call to function pic16_callGenericPointer(),
3151         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
3152         the call to the generic pointer get/put functions with prefixing the
3153         function name with port->fun_prefix,
3154         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
3155         * src/pic16/main.c (_process_pragma): prefix function with
3156         port->fun_prefix,
3157         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
3158         calling assembler, old 18Fxxxx macro is deprecated,
3159         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
3160         PC_ASMDIR in while condition,
3161         * (findInstruction): add PC_ASMDIR in while condition,
3162         * (buildCallTree): prefix main with port->fun_prefix,
3163         * (pic16_pCode2str): fixed bug that didn't emit the memory access
3164         identifier for variable with banked access in instructions BTFSS,
3165         BTFSC, BCF, BSF, BTG
3166         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
3167         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
3168         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
3169         perform optimization when enviroment variable NO_REG_OPT is set,
3170         * (insideLRBlock): NEW, return 1 if register is inside an
3171         INF_LOCALREGS block,
3172         * (RemoveRegFromLRBlock): remove a register that is completely
3173         eliminated by register optimization, but it is still left in local
3174         register store/restore in/from stack block,
3175         * (Remove2pcodes): after removing register, check to see if it
3176         should be removed from local register store/restore in/from stack
3177         block,
3178         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
3179         DUMMY_READ_VOLATILE,
3180
3181         * device/include/pic16/adc.h: minor prototype modifications and
3182         update,
3183         * device/include/pic16/malloc.h: added GPL notice various
3184         modifications,
3185         * device/include/pic16/stdint.h: NEW, standard header for ints
3186         * device/include/pic16/delay.h: NEW, header for delay functions,
3187         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
3188         delay1mtcy,
3189         * device/include/pic16/signal.h: NEW, header providing helper macros
3190         for implementing signal handlers,
3191         * device/include/pic16/stdio.h: added prototypes for functions,
3192         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
3193         prototypes for stdin and stdout, added macro PUTCHAR to
3194         automatically implement putchar function prototype,
3195         * device/include/pic16/usart.h: modified and updated USART library,
3196         * device/lib/pic16/libio/adc/,
3197         * device/lib/pic16/libio/i2c: some modifications to improve library
3198         performance,
3199         * device/lib/pic16/libc/stdio/: modifications for the new printf*
3200         family of functions,
3201         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
3202         family of functions and other sources,
3203         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
3204         of the PIC18Fxx[28] devices,
3205         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
3206         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
3207         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
3208         _do_cinit function, because the previous failed when local variables
3209         where not placed in the same memory bank,
3210         * device/lib/pic16/libsdcc/char/: various modifications to improve
3211         library performance,
3212         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
3213         information on the new functions of the c library and more...
3214
3215 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3216
3217         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
3218
3219 2005-03-26 Raphael Neider <rneider AT web.de>
3220
3221         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
3222           if condition == CARRY)
3223         * (genCmp): adapted to new genSkipc semantics
3224         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
3225           on rIfx (genCmp was broken)
3226
3227 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3228
3229         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
3230         * src/z80/main.c (_keywords[]),
3231         * src/SDCCglobal.h (struct options),
3232         * src/SDCC.y,
3233         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
3234         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
3235         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
3236         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
3237         always available in leading double underscore form. The C99 support is
3238         mostly missing, but it's a start.
3239         * support/regression/tests/bug-227710.c: fixed nonconforming use of
3240         reserved identifier "__data".
3241
3242 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3243
3244         * src/mcs51/peeph.def: fixed bug 1170013
3245
3246 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
3247
3248         * device/include/mcs51reg.h: fixed bug 842007
3249
3250 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3251
3252         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
3253         last time.
3254
3255 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3256
3257         * src/port.h (struct PORT),
3258         * src/avr/ralloc.c (avr_assignRegisters),
3259         * src/avr/main.c,
3260         * src/ds390/ralloc.c (ds390_assignRegisters),
3261         * src/ds390/main.c,
3262         * src/hc08/ralloc.c (hc08_assignRegisters),
3263         * src/hc08/main.c,
3264         * src/mcs51/ralloc.c (mcs51_assignRegisters),
3265         * src/mcs51/main.c,
3266         * src/pic/ralloc.c (pic14_assignRegisters),
3267         * src/pic/main.c,
3268         * src/pic16/ralloc.c (pic16_assignRegisters),
3269         * src/pic16/main.c,
3270         * src/xa51/ralloc.c (xa51_assignRegisters),
3271         * src/xa51/main.c,
3272         * src/z80/ralloc.c (z80_assignRegisters),
3273         * src/z80/ralloc.h,
3274         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
3275         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
3276         * src/SDCCcse.h,
3277         * src/SDCCdflow.c (computeDataFlow),
3278         * src/SDCCdflow.h,
3279         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
3280         * src/SDCCloop.h,
3281         * src/SDCCcflow.c (*),
3282         * src/SDCCcflow.h,
3283         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
3284         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
3285         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
3286         immedDom() returning wrong block; probably fixes bug #1160833)
3287
3288 2005-03-20 Borut Razem <borut.razem AT siol.net>
3289
3290         * support/scripts/inc2h.pl: WIN32 port
3291
3292 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
3293
3294         * device/lib/makefile.in: added abs.c and labs.c
3295
3296 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3297
3298         * device/include/stdint.h: added
3299         * device/lib/abs.c: added
3300         * device/lib/labs.c: added
3301         * device/include/stdlib.h: added abs() and labs() prototypes
3302         * device/lib/libsdcc.lib: added abs and labs
3303         * device/include/float.h,
3304         * device/lib/_fsmul.c,
3305         * device/lib/printf_fast.c,
3306         * device/lib/printf_tiny.c: updated comments
3307
3308 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3309
3310         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
3311         bug #1164313
3312
3313 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3314
3315         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
3316         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
3317
3318 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
3319
3320         * device/lib/printf_large.c: removed inline assembly for portability and
3321           readability. Use printf_fast if speed or size are more important.
3322         * src/pic16/gen.c: removed conditions around use of DEBUGpc
3323         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
3324
3325 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
3326
3327         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
3328         prevent compiler warning
3329
3330 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3331
3332         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
3333         moved to level 0 and declared as static. Also they are explicit
3334         placed in access bank. This was necessery because some times they
3335         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
3336         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
3337         optimizations. Currently only compare to unsigned char is implemented,
3338         * src/pic16/gen.c: added fReturnIdx array,
3339         * (struct resolvedIfx) is moved to gen.h and made public,
3340         * (struct _G): added sregsAlloc and sregsAllocSet fields,
3341         * (aopForSym): added an optimization to directly store in stack of
3342         the operand of a SEND iCode,
3343         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
3344         but as registers instead (AOP_REG) using the fReturnIdx array,
3345         * (pic16_freeAsmop): remove the freed register from the
3346         _G.sregsAlloc field,
3347         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
3348         a compare of 'WREG',
3349         * (pic16_popGetTempRegCond): changed function prototype, now
3350         function takes also a bitVector argument v which holds the current
3351         set of registers that are allocated for stack access by aopForSym,
3352         registers allocated in aopForSym for accessing stack symbols are not
3353         any more part of the functions usedRegs field,
3354         * (genCall): some times aopOp is called for a stack variable to be
3355         send, aopForSym might perform the push, if this is true make sure
3356         that genCall doesn't push the variable twice by testing _G.resDirect,
3357         * (genFunction): changed testing for unspecified interrupt number
3358         from 256 to INTNO_UNSPEC,
3359         * modified selection scheme of frame pointer generation. Previously
3360         if function did use local registers a frame pointer was generated,
3361         now a frame pointer is generated only if function has arguments
3362         (that need PLUSW2 register access), or has stack arguments, or the
3363         compiler is not instructed to omit the frame pointer,
3364         * (genEndFunction): before restoring local registers that were saved
3365         in the function preamble, also restore the registers that *might*
3366         have been allocated for stack access,
3367         * (genRet): removed some old comments,
3368         * (genCmp, the active (RN's) version): added a call to the
3369         pic16_genCmp_special function to perform the compare with a more
3370         robust and optimized way,
3371         * (genInline): a feature has been added in inline code generation,
3372         which allows a wildcard variable substitution when writing inline
3373         assembly. Code is incomplete and experimental therefore undocumented,
3374         * (genCast): changed order of aopOp for result and right to allow
3375         aopForSym to directly load the result if possible,
3376         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
3377         perform an optimized compare on some selected special occasions,
3378         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
3379         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
3380         generate an IVT any more,
3381         * src/pic16/main.c (pic16_optionsTable): added command line option
3382         --optimize-cmp,
3383         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
3384         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
3385         macros,
3386         * src/pic16/NOTES: Raphael Neider added in list of active developers
3387         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
3388         jumptable_end to prevent bug #,
3389         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
3390         inCond and outCond fields,
3391         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
3392         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
3393         turn off register spilling,
3394         * (packRegsForOneUse): synced with other ports' versions although it
3395         is not used currently,
3396         * (pic16_packRegisters): added an optimization while reading
3397         structure bitfields, some registers may be saved (malloc code is
3398         decreased by 80 bytes)
3399
3400 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
3401
3402         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
3403         left is a bitfield, if yes, then don't optimize assignment. Perhaps
3404         this can be optimized more?
3405
3406 2005-03-10 Raphael Neider <rneider AT web.de>
3407
3408         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
3409           genNearPointerGet): (hopefully) fixed access to bitfields via
3410           pointers (p->bitN = x; and x = p->bitN; failed)
3411
3412 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
3413
3414         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
3415
3416 2005-03-09 Raphael Neider <rneider AT web.de>
3417
3418         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
3419
3420 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
3421
3422         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
3423         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
3424           (regTypeNum): set REG_BIT type if necessary
3425         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
3426         * support/regression/tests/critical.c: check bug 1144613
3427
3428 2005-03-02 Raphael Neider <rneider AT web.de>
3429
3430         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
3431
3432 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3433
3434         * src/avr/ralloc.c (serialRegAssign),
3435         * src/ds390/ralloc.c (serialRegAssign),
3436         * src/hc08/ralloc.c (serialRegAssign),
3437         * src/mcs51/ralloc.c (serialRegAssign),
3438         * src/pic/ralloc.c (serialRegAssign),
3439         * src/pic16/ralloc.c (serialRegAssign),
3440         * src/xa51/ralloc.c (serialRegAssign),
3441         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
3442
3443 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
3444
3445         * src/SDCCast.c (decorateType): fixed bug 1124787
3446
3447 2005-02-20 Hubert Sack <sack AT digiplan.de>
3448         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3449
3450         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
3451         patch #1121755
3452
3453 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3454
3455         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
3456         to keep the correct label reference count when adding/removing references
3457         to labels. A peephole file using this is appended to patch #1144962.
3458
3459 2005-02-14 Raphael Neider <rneider AT web.de>
3460
3461         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
3462         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
3463         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
3464           retrievals of result operand's value on assignment
3465
3466 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
3467
3468         * device/include/pic16/string.h: modified prototype for memccpy()
3469         to memccpy(void *, void *, char, size_t)
3470         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
3471         check whether to omit frame pointer or not,
3472         * (genInline): convert all occurences of "\n" to LF in inline
3473         assembler blocks, this helps formatting the inline text,
3474         * (pic16_loadFSR0): modified prototype,
3475         * (genNearPointerGet, genNearPointerSet): reorganization of code,
3476         removed some 8051 legacy code,
3477         * (genPackBits): enabled handling bitfields exceeding one byte in size,
3478         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
3479         before allocating temporary registers in functions,
3480
3481 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3482
3483         * support/regression/tests/bitvars.c: corrected the "fix"
3484
3485 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3486
3487         * support/regression/tests/bitvars.c,
3488         * support/regression/tests/bitwise.c,
3489         * support/regression/tests/rotate.c: "fixed" problems on Alpha
3490
3491 2005-02-10 Raphael Neider <rneider AT web.de>
3492
3493         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
3494           different size for Alpha
3495         * src/pic16/gen.c (genCmpEq) : improved compare with 0
3496
3497 2005-02-09 Raphael Neider <rneider AT web.de>
3498
3499         * src/SDCC.lex(doPragma) : save and restore warning options as well
3500           (also added new stack plus clone- and copyAndFreeSDCCERRG())
3501         * have #pragma less_pedantic set the errorlevel to WARNING
3502           (fixes #1117001)
3503         * (cloneOptimize) : fixed wrong malloc's size
3504         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
3505           facilitate correct handling of #pragma (save|restore)
3506
3507 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3508
3509         * src/mcs51/gen.c: removed non-standard C nameless struct/union
3510
3511 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
3512
3513         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
3514
3515 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
3516
3517         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
3518
3519 2005-02-02 Raphael Neider <rneider AT web.de>
3520
3521         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
3522         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
3523         * (pic16_storeForReturn): fixed to allow returning function pointers
3524         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
3525         * device/include/pic16/{stddef.h,stdbool.h}: added
3526
3527 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
3528
3529         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
3530
3531 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
3532
3533         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
3534         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
3535          appeared to be required
3536
3537 2005-01-31 Borut Razem <borut.razem AT siol.net>
3538
3539         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
3540           include/mcs51 and include/z80 directories to the package
3541
3542 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3543
3544         * src/hc08/gen.c (genFunction): fixed bug #1112752
3545
3546 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3547
3548         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
3549
3550 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3551
3552         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
3553
3554 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
3555
3556         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
3557
3558 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
3559
3560         * device/include/c8051fxxx.h: removed these 6 files
3561         * device/include/mcs51/c8051fxxx.h: added these 11 new files
3562
3563 2005-01-26 Raphael Neider <rneider AT web.de>
3564
3565         * src/pic16/gen.c (genAssign): fixed assignment from longs
3566           in codespace (were cut to three bytes)
3567         * (genDummyRead): implemented (except for CODESPACE...),
3568           fixed bug #1108575
3569         * src/pic16/glue.c (emitStatistics): beautified
3570         * device/lib/pic16/libm/Makefile: added include path
3571
3572 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3573
3574         * src/z80/gen.c (aopPut): fixed bug #1103902
3575
3576 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3577
3578         * device/lib/expf.c: fixed bug #1095792
3579
3580 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
3581
3582         * device/lib/pic16/libm: added Math library sources
3583
3584 2005-01-24 Raphael Neider <rneider AT web.de>
3585
3586         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
3587           to enable upcast to pCodeOpReg2 (there is no type tag to
3588           differenciate the two and pic16_popGet2p cast into PCOR2)
3589         * src/pic16/main.c (_process_pragma): fixed another malloc bug
3590           (sizeof(sectNames) changed to sizeof(sectName))
3591           Both patches fix segfaults under MinGW.
3592
3593 2005-01-23 Raphael Neider <rneider AT web.de>
3594
3595         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
3596           Safe_[mc]?alloc()'ed variables
3597         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
3598           of (byte sized) temporaries (assign them to WREG for now)
3599         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
3600           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
3601           this might fix SIGSEGVs on MinGW...
3602         * src/SDCCopt.c (killDeadCode): restored original behaviour
3603           (volatile operands might get thrown away though)
3604
3605 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
3606
3607         * src/pic16/gen.c: fixed bug #1106975,
3608         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
3609         pointer update, INTCON is saved, global interrupts are disabled and
3610         restored after updateing TOS.
3611         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
3612         * added function attribute 'shadowregs' to take advantage of shadow
3613         registers,
3614         * added function attribute 'wparam' as an alternative to the wparam
3615         pragma,
3616         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
3617         user declares a non-ISR function as 'shadowregs',
3618         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
3619
3620 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
3621
3622         * .version: bumped version number to 2.4.8
3623         * device/lib/pic16/pics.all: list of PIC18F devices supported by
3624         pic16 port,
3625         * device/lib/pic16/libio/i2c/: I2C module support library,
3626         * device/include/pic16/i2c.h: I2C support library header,
3627         * device/lib/pic16/libc/stdio/: standard IO support sources,
3628         * (printf_small.c): printf_small() source, supports float print,
3629         * (printf_tiny.c): printf_tiny() source, does not support floats,
3630         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
3631         enable global optimizations for entire library source, other
3632         Makefiles in the source tree are also modified to reflect this,
3633         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
3634         function,
3635         * doc/sdccman.lyx: updated to reflect new changes,
3636         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
3637         sym->onStack if-case,
3638         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
3639         sbit, idata, _idata, xdata, _xdata,
3640         * added pragma library, to link an external library, (see doc),
3641         * removed command line options, --pomit-config-words, --pomit-ivt,
3642         --pleave-reset-vector,
3643         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
3644         when calling assembler to reflect memory model used, also define
3645         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
3646         reflect stack model used,
3647         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
3648         on stack return NULL,
3649
3650 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3651
3652         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
3653           of the operands is volatile. Fixes #1020220
3654
3655 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3656
3657         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
3658         * (OptimizeRegUsage): make sure that there is really no other flow where
3659           the first pCode is used
3660
3661 2005-01-22 Raphael Neider <rneider AT web.de>
3662
3663         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
3664           to fix #1106967 (pCode->seq are not set up correctly)
3665
3666 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3667
3668         * src/SDCCglue.c (glue): make sure code area is declared before the
3669         static initialization area.
3670
3671 2005-01-21 Raphael Neider <rneider AT web.de>
3672
3673         * device/lib/Makefile.in: fixed test for pic16 install dir
3674         * device/lib/pic16/*/Makefile*: modified compile flags to enable
3675           optimizations
3676         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
3677           added --optimize-goto compiler switch and pragma wparam documentation
3678         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
3679         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
3680           and PRODH closing bug #1071770 (peephole optimizer)
3681
3682 2005-01-19 Raphael Neider <rneider AT web.de>
3683
3684         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
3685           cmdLine buffers (used when calling sdcpp...) are large enough
3686           (MAX_PATH=256 truncates arguments leading to system halts when
3687           used in MinGW...)
3688         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
3689         * (genUminus): rewritten to for efficiency
3690         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
3691           used uninitialized in some cases)
3692         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
3693           copy the third byte from the int -- now assumes 0x80 (data memory)
3694         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
3695           operands (genAddLit expects the iCode's operands to swapped as
3696           well), fixed leftover bytes (crashed for short left operands)
3697         * (pic16_genMinusDec): performance improvements, removed false
3698           PIC14 emitSKPNCs
3699         * (pic16_genMinus): fixed to cope with differently sized operands
3700         * src/pic16/glue.c (pic16_glue): added new banksel optimization
3701           for --obanksel > 1
3702         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
3703         * src/pic16/graph.[ch]: implementation of directed graphs, used by
3704           new banksel optimization
3705         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
3706           analysis for temporary registers (segfaults...)
3707         * src/pic16/peeph.def: added rule
3708
3709 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
3710
3711         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
3712         which converts a float number to its ASCII representation
3713         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
3714         functions to convert the fractional and integer part of a float to ASCII,
3715         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
3716         realloc.c): added _MALLOC_SPEC to explicit place variables in data
3717         ram
3718         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
3719         _STATMEM macros,
3720         * device/include/pic16/adc.h: added GPL info,
3721         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
3722         a pCodeOp as tested operand,
3723         * (genNearPointerGet): optimized bit testing, does not use
3724         intermediate register for bit value, test directly instead with
3725         BTFSS, BTFSC, works only for single bits,
3726         * (genpic16Code): dump the name of the iCode in the asm,
3727         * src/pic16/ralloc.c (decodeOp): removed static declaration and
3728         renamed to pic16_decodeOp,
3729         * (serialRegAssign): do not allocate a temporary register for iCode
3730         sequences that test a single bit for 1/0
3731
3732 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
3733
3734         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
3735         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
3736         access stack and frame pointers. They are initially assigned to
3737         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
3738         accessing SFRs. Updated all occurences of modification of stack or
3739         frame pointer in gen.c and pcode.c,
3740         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
3741         assigning of a literal value to pointers,
3742         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
3743         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
3744         selected
3745
3746 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3747
3748         * doc/sdccman.lyx: update documentation about stack pragma, added
3749         some info for stack memory models
3750
3751 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3752
3753         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
3754
3755 2005-01-08 Raphael Neider <rneider AT web.de>
3756
3757         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
3758           udata sections to fix bug #1097823
3759
3760 2005-01-05 Raphael Neider <rneider AT web.de>
3761
3762         * src/pic16/gen.c (genGenericShift): added handling of differently
3763           sized left operand and result
3764
3765 2005-01-04 Raphael Neider <rneider AT web.de>
3766
3767         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
3768         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
3769           to hold the condition bit)
3770         * added new version of genCmp (old code available via #define)
3771         * added new version of genShiftLeft/genShiftRight in a generic
3772           way, now supports shifting by negative values
3773         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
3774           shiftCount (expected by genGenericShift)
3775         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
3776         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
3777           dump
3778         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
3779           is an invalid literal too...)
3780
3781 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
3782
3783         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
3784         from Raphael Neider,
3785         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
3786         for 8-bit literals. This fixes some literal operands which are sign
3787         extended to 16-bits ints when instruction needs only 8-bits.
3788
3789 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
3790
3791         * device/lib/logf.c: added mcs51 assembly version
3792         * device/lib/expf.c: added mcs51 assembly version
3793         * device/lib/_logexpf.c: new shared asm code for expf and logf
3794         * device/include/math.h: add defines for assembly math library
3795         * device/lib/Makefile.in: build new _logexpf.c
3796         * device/lib/libfloat.lib: use new _logexpf.c
3797
3798 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3799
3800         * src/pic/device.c
3801         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
3802           device types which have less than 0x7f registers.
3803
3804 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3805
3806         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
3807
3808 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3809
3810         * device/lib/printf_fast.c: only build on supported arch.
3811         * device/lib/printf_tiny.c: only build on supported arch.
3812         * device/lib/printf_fast_f.c: only build if asm float lib
3813         * device/lib/_fsget1arg.c: only build if asm float lib
3814         * device/lib/_fsget2args.c: only build if asm float lib
3815         * device/lib/_fsnormalize.c: only build if asm float lib
3816         * device/lib/_fsreturnval.c: only build if asm float lib
3817         * device/lib/_fsrshift.c: only build if asm float lib
3818         * device/lib/_fsswapargs.c: only build if asm float lib
3819         * device/include/stdio.h: don't provide print_fast,
3820           print_fast_f, print_tiny prototypes if --xstack used
3821
3822 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
3823
3824         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
3825         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
3826           to the SOURCES
3827
3828 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3829
3830         * device/lib/printf_fast_f.c: same as printf_fast, but
3831           with floating point enabled
3832         * device/lib/printf_fast.c: minor tweaks
3833         * device/include/stdio.h: add printf_fast_f
3834
3835 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3836
3837         * src/SDCCmain.c: make --float-reent default for mcs51
3838         * device/lib/_fsadd.c: added mcs51 assembly version
3839         * device/lib/_fssub.c: added mcs51 assembly version
3840         * device/lib/_fsmul.c: added mcs51 assembly version
3841         * device/lib/_fsdiv.c: added mcs51 assembly version
3842         * device/lib/_fseq.c: added mcs51 assembly version
3843         * device/lib/_fsneq.c: added mcs51 assembly version
3844         * device/lib/_fsgt.c: added mcs51 assembly version
3845         * device/lib/_fslt.c: added mcs51 assembly version
3846         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
3847         * device/lib/Makefile.in: add _fscmp to build
3848         * device/lib/libfloat.lib: add _fscmp to build
3849
3850 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3851
3852         * device/lib/_fs2slong.c: added mcs51 assembly version
3853         * device/lib/_fs2sint.c: added mcs51 assembly version
3854         * device/lib/_fs2schar.c: added mcs51 assembly version
3855         * device/lib/_fs2ulong.c: added mcs51 assembly version
3856         * device/lib/_fs2uint.c: added mcs51 assembly version
3857         * device/lib/_fs2uchar.c: added mcs51 assembly version
3858         * device/lib/_slong2fs.c: added mcs51 assembly version
3859         * device/lib/_sint2fs.c: added mcs51 assembly version
3860         * device/lib/_schar2fs.c: added mcs51 assembly version
3861         * device/lib/_ulong2fs.c: added mcs51 assembly version
3862         * device/lib/_uint2fs.c: added mcs51 assembly version
3863         * device/lib/_uchar2fs.c: added mcs51 assembly version
3864         * device/include/float.h: added #define to select asm vs c
3865
3866 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
3867
3868         * device/lib/printf_fast.c: improvements to float output
3869         * device/include/float.h: add defines for assembly float library
3870         * device/lib/_fsget1arg.c: receive 1 float arg
3871         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
3872         * device/lib/_fsnormalize.c: normalize a float
3873         * device/lib/_fsreturnval.c: return float, various helper routines
3874         * device/lib/_fsrshift.c: right shift a float's mantissa
3875         * device/lib/_fsswapargs.c: swap 2 floats
3876         * device/lib/Makefile.in: build these 6 new files for mcs51
3877         * device/lib/libfloat.lib: add these 6 files to the library
3878
3879 2004-12-26 Borut Razem <borut.razem AT siol.net>
3880
3881         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
3882           built by gcc 3.4.2
3883
3884 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
3885
3886         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
3887           and fully reentrant and register bank neutral.
3888         * device/lib/printf_fast.c: added float (not enabled by default),
3889           added compact/slower integer (also not enabled by default),
3890           improved size/speed of fast integer code, other minor changes
3891         * device/include/stdio.h, device/lib/Makefile.in,
3892           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
3893
3894 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
3895
3896         * src/pic16/pcode.c: declaring variables other than at the start of a
3897           block is not supported in C by VC6.
3898
3899 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
3900
3901         * applied a previous patch from Raphael Neider that wasn't included
3902         in the previous commits, which fixes infinite loops within jumptable
3903         improvements,
3904         * made some fixes that previous patches introduced
3905
3906 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
3907
3908         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
3909         that fixes an issue with AOP_PCODE asmop's offset,
3910         * (pic16_popCopyReg): update instance field too,
3911         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
3912         function of pic port,
3913         * (genCmp, genAnd, genAssign),
3914         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
3915
3916 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
3917
3918         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
3919         variables initial values to idata section,
3920         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
3921         variables in some functions. This utilizes parmBytes field of iCode
3922         structure to hold the offset of the variable in stack. (might be
3923         able to use the stack field too?)
3924         * applied patch from Raphael Neider # ### , # ###
3925         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
3926         variable initial values in idata section,
3927         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
3928         for static variables with initial value
3929         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
3930         applied fix in while loop from Raphael Neider.
3931
3932 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
3933
3934         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
3935         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
3936         * src/ds390/ralloc.c (serialRegAssign): spill bits
3937         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
3938         * support/Util/SDCCerr.c,
3939         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
3940         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
3941         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
3942
3943 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
3944
3945         * device/include/sdcc-lib.h: inserted LGPL, added includes
3946           asm/ds390/features.h and asm/mcs51/features.h
3947         * device/include/asm/default/features.h,
3948         * device/include/asm/gbz80/features.h,
3949         * device/include/asm/z80/features.h: added empty _AUTOMEM
3950           and _STATMEM
3951         * device/include/asm/ds390/features.h,
3952         * device/include/asm/mcs51/features.h: added files with defines for
3953           _AUTOMEM and _STATMEM indicating automatic and static storage class
3954         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
3955         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
3956         * src/SDCCicode.c (geniCodeCast),
3957         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
3958         * src/SDCCloop.c (loopInduction): removed unused variable lr
3959         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
3960           to convertToFcall to include char modulo (RFE 1065037), added check
3961           if left operand is unsigned and use abs of literal value
3962         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
3963           as it doesn't work after conversion from peephole.def to peephole.rul
3964         * src/mcs51/gen.c (toBoolean): added check for size,
3965           (genModOneByte): optimized code for signed char modulo a literal
3966           power of 2 (thanks to Hubert Sack),
3967           (genRRC): removed unnecessary "clr c",
3968           (genRLC): replaced "add a,acc" with cheaper "rlc a"
3969         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
3970           jump optimization,
3971           swapped rules 256.c and 256.d,
3972           extended 256.d by using new multiple checks (thanks Erik),
3973           added rules 256.e and 256.f,
3974           updated rule 261.a and 261.b to new generated code
3975         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
3976
3977 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3978
3979         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
3980           induction related bugs, including first part of bug #1074377
3981
3982 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
3983
3984         * applied patch from bug-report #1076292,
3985         * applied patches for genAnd and Goto-optimizations for Raphael
3986         Neider,
3987         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
3988         dump a less iCode information,
3989         * src/pic16/device.h (pic16_options_t): added field debgen,
3990         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
3991         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
3992         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
3993         puclic,
3994         * (various functions): added macros FENTRY and FENTRY2 to functions,
3995         to emit function prologue,
3996         * (various functions): fixed indentation,
3997         * (genNearPointerGet): fixed loading of FSR0,
3998         * (genPackBits): applied patch from Raphael Neider to fix updating
3999         of FSR0 and touching only the modified bits,
4000         * src/pic16/genarith.c (various functions): added macros FENTRY to
4001         emit function prologue in comments,
4002         * src/pic16/pcode.h: added functions debugf2, debugf3,
4003         * src/pic16/ralloc.c: partial fix for packForPush caused
4004         segmentation fault,
4005
4006 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4007
4008         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
4009           <stsp AT users.sourceforge.net> with reversed byte order
4010         * support/regression/tests/rotate.c: added (ds390 skips some tests)
4011
4012 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4013
4014         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
4015           bug #1074377
4016         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
4017         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
4018
4019 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4020
4021         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
4022
4023 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4024
4025         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
4026           conditions,
4027           (setFromConditionArgs): friendly operand parser for peephole rules,
4028           (operandBaseName, operandsNotRelated): new peephole condition
4029           "operandsNotRelated" -- similar to "operandsNotSame", but takes
4030           architecture specific register naming into account, handles n-way
4031           comparisons, and supports quoted literals
4032         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
4033
4034 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4035
4036         * src/mcs51/peeph.def: fixed bug #1076940
4037
4038 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4039
4040         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
4041
4042 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4043
4044         Adding support for replacing ljmps with sjmps in jumptables
4045         generated for switch statements. For now you need to set the
4046         environment variable SDCC_SJMP_JUMPTABLE to enable this.
4047         Now 4 algorithms for mcs51 jumptable generation are used:
4048         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
4049         addresses loaded pc-relative for up to 112 cases and stack-pushing
4050         target addresses loaded with offset from dptr for up to 256 cases.
4051
4052         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
4053         * src/mcs51/main.c: adapted constants for switch table generation
4054         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
4055
4056 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
4057
4058         * device/lib/printf_large.c (_print_format): fixed bug 1073386
4059         * support/regression/tests/bug1057979.c: added test for bug 1073386
4060
4061 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4062
4063         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
4064         compilers
4065
4066 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4067
4068         * src/pic16/device.h,
4069         * src/pic16/genarith.c,
4070         * src/pic16/glue.c,
4071         * src/pic16/main.c,
4072         * src/pic16/pcode.c: applied patches #1068154 and #1070213
4073
4074 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
4075
4076         Large cummulative patch for pic16 port.
4077         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
4078         to call when a stack overflow occurs,
4079         * (malloc.h): added CVS Id tag,
4080         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
4081         variable,
4082         * added libc directory. The current version of LibC contains string
4083         functions, ctype functions and macros and some functions of the
4084         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
4085         be extensively tested in the future. Standard disclaimer here.
4086         Library is not automatically build yet. But one can build it by
4087         invoking 'make' inside the libc directory.
4088         * added ADC library under libio. Preliminary version yet.
4089
4090         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
4091         * src/pic16/gen.c (aopForRemat): asmop size is filled by
4092         aopForRemat() now and not by pic16_aopOp(),
4093         * (pic16_popGetTempReg): removed warning messgae when allocating
4094         temporary registers, its a buggy feature and will be removed,
4095         * (pic16_popGet): set register instance field in AOP_CRY,
4096         * (pic16_outBitC): fixed for results in size greater than 1,
4097         * (genUminusFloat): fixed for pic16, ported code from mcs51,
4098         * (pic16_storeForReturn): optimized return of 0,
4099         * (genCmp): experimental code for new genCmp which uses PIC18's
4100         special compare&skip instructions. Initial tests fail some times
4101         with variables grater than 1 byte in size, so new code is disabled,
4102         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
4103         a single bit,
4104         * (genCast): began a fix to optimize the casting of a bit to another
4105         bit, now assigning a bitfield to another bitfield will fail, sorry,
4106         * src/pic16/main.c: disabled the use of lr-support feature,
4107         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
4108         * added some function prototypes, added function _debugf prototype,
4109         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
4110         bits with offset (case PO_GPR_BIT),
4111         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
4112         command line,
4113         * (isBankInstruction): modified to return 0 for no banking instruction,
4114         and 1 for banking instruction,
4115         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
4116         caused stop processing pCodes after a inline assembly block,
4117         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
4118         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
4119         registers when it shouldn't,
4120         * src/pic16/ralloc.c (allocReg): add preliminary support for
4121         supporting a limited set of temporary registers,
4122
4123 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4124
4125         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
4126           genDataPointerSet): ensure assignments always copy in MSB to LSB
4127           order,
4128           (loadRegFromAop): recognize CLRH optimization,
4129           (genFunction): optimize RECEIVE iCodes in reentrant functions
4130
4131 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4132
4133         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
4134           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
4135           selected.
4136         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
4137         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
4138           contiguous with data
4139
4140 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4141
4142         * device/lib/_gptrget.c (_gptrget),
4143         * device/lib/_gptrgetc.c (_gptrgetc),
4144         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
4145           instead of sjmp to ret
4146         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
4147           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
4148
4149 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4150
4151         * .version: bumped version to 2.4.7
4152         * device/lib/_gptrget.c (_gptrget): is now _naked
4153         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
4154         * device/lib/_gptrput.c (_gptrput): is now _naked
4155         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
4156           (createFunction): fixed xstack
4157         * src/SDCCglue.c (emitMaps): set allocation required for bit area
4158         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
4159           or bit either,
4160           (geniCodeCritical): store original interrupt state in an iTemp bit
4161           var unless stack-auto
4162         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
4163         * src/SDCCmain.c (setIncludePath): added include/target to search path
4164         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
4165         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
4166           prototype,
4167           (processFuncArgs): put bit vars in bit area
4168         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
4169           unsaveRBank): fixed xstack,
4170           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
4171           (genFunction, genEndFunction): fixed xstack,
4172           (genAssign): optimization don't walk backwards through mem
4173         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
4174         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
4175         * support/regression/Makefile: also make library (for stack-auto) when
4176           making "all" and added "test-mcs51-xstack-auto"
4177         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
4178         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
4179         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
4180         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
4181         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
4182           make-library by MAKE_LIBRARY
4183         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
4184           regression tests for xstack
4185         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
4186         * support/regression/tests/critical.c: test for critical on mcs51
4187
4188 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4189
4190         * support/regression/ports/ucz80/spec.mk: use include and lib files from
4191           built version of sdcc instead of installed version
4192
4193 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4194
4195         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
4196         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
4197           vprintf.c now
4198         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
4199         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
4200           WARNING: remove device/lib/build/z80/printf.o by hand when
4201           updating from previous build!
4202         * device/lib/z80/printf.c: updated comment
4203         * support/regression/tests/bug1057979.c: test all ports now
4204         * support/regression/tests/bug1065458.c: file added
4205
4206 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4207
4208         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
4209           *_start and *_end symbols for static functions
4210
4211 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
4212
4213         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
4214           and search crt0.o in all library paths,
4215           (setIncludePath): proper handling of --nostdinc,
4216           (setLibPath): proper handling of --nostdlib
4217         * support/regression/Makefile,
4218         * support/regression/ports/ds390/spec.mk,
4219         * support/regression/ports/gbz80/spec.mk,
4220         * support/regression/ports/hc08/spec.mk,
4221         * support/regression/ports/mcs51/spec.mk,
4222         * support/regression/ports/mcs51-large/spec.mk,
4223         * support/regression/ports/mcs51-stack-auto/spec.mk,
4224         * support/regression/ports/z80/spec.mk: use include and lib files from
4225           built version of sdcc instead of installed version
4226         * doc/sdccman.lyx: fixed typo in --nostdinc
4227
4228 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
4229
4230         * src/pic/pcode.c,
4231         * src/pic/device.c,
4232         * src/pic/ralloc.c,
4233         * src/pic/gen.c : added support to generate code for struct bit fields.
4234
4235 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4236
4237         * as/xa51/xa_version.h,
4238         * device/include/errno.h,
4239         * device/include/regc515c.h,
4240         * device/lib/_itoa.c,
4241         * device/lib/_ltoa.c,
4242         * device/lib/ser_ir_cts_rts.c,
4243         * sim/ucsim/xa.src/glob.cc,
4244         * sim/ucsim/xa.src/inst_gen.cc,
4245         * sim/ucsim/xa.src/xa_bit.cc,
4246         * sim/ucsim/xa.src/xa_sfr.cc,
4247         * sim/ucsim/z80.src/inst_dd.cc,
4248         * sim/ucsim/z80.src/inst_fdcb.cc,
4249         * support/scripts/keil2sdcc.pl,
4250         * src/pic16/pic16.dsp,
4251         * src/pic16/pic16a.dsp: corrected cvs line endings
4252         * device/lib/printf_large.c: fixed bug 1057979
4253         * src/pic16/gen.c: fixed non-C standard code
4254         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
4255         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
4256         * support/regression/ports/mcs51/support.c: reload T1 asap
4257         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
4258           pdata use and clear idata startup behaviour
4259         * support/regression/tests/bug1057979.c: added
4260
4261 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
4262
4263         * device/examples/ds390/ow390/ad26.h,
4264         * device/examples/ds390/ow390/cnt1d.h,
4265         * device/examples/ds390/ow390/crcutil.c,
4266         * device/examples/ds390/ow390/ownet.h,
4267         * device/examples/ds390/ow390/owsesu.c,
4268         * device/examples/ds390/ow390/swt12.h,
4269         * device/examples/ds390/ow390/swtoper.c,
4270         * device/examples/ds390/ow390/temp10.h,
4271         * device/examples/ds390/ow390/thermodl.c,
4272         * device/examples/ds390/tinitalk/tinitalk.dsp,
4273         * device/examples/ds390/tinitalk/tinitalk.dsw,
4274         * device/examples/mcs51/clock/hw.h,
4275         * device/examples/mcs51/simple2/go.bat,
4276         * device/examples/serialcomm/windows/serial.h,
4277         * device/examples/xa51/dummy.c,
4278         * device/examples/xa51/hello.c,
4279         * device/include/80c51xa.h,
4280         * device/include/at89x051.h: corrected cvs line endings
4281
4282 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
4283
4284         * src/pic16/main.c (options): added command line --gstack, to trace
4285         stack over/under flows,
4286         * added pragma 'wparam' to allow passing first byte of function
4287         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
4288         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
4289         call to __gstack_test function and sets up the symbol as extern,
4290         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
4291         * popaop): added call to pic16_testStackOverflow,
4292         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
4293         wparamList list,
4294         * (genCall, genPcall): now all parameters are passed via stack
4295         except in functions that are pass to wparam pragma in which WREG is
4296         used too,
4297         * (genPcall): REENTRANT flag is checked to see if variable prototype
4298         contains reentrant keyword, don't call a non-reentrant function, via
4299         a reentrant function pointer or vice versa, functions are never
4300         passed via WREG,
4301         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
4302         D.Winkler,
4303         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
4304         SIGSEGV when accessing a NULL register stucture,
4305         * (pic16_printGPointerType): modified to handle UPPER modifier for
4306         function initializers, changed prototype of function to simpler one,
4307         * (pic16_printIvalFuncPtr): check to see if function is already
4308         added in externs list,
4309         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
4310         optimized a move from W to SFR with a move to the same register
4311         later after a CALL,
4312         * device/lib/pic16/debug: NEW directory, contains debug features
4313         which are enabled when linking with libdebug.lib, currently command
4314         line option --gstack enables stack pointer tracing for over/under
4315         flow, corresponding sources are in debug/gstack
4316
4317 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
4318
4319         * doc/sdccman.lyx: updated SDCC version,
4320         * (PIC16 port): update list of command line options,
4321         * src/pic16/device.h (structure pic16_options_t): added field gstack
4322         to enable stack overflow tracing on push/pops,
4323         * src/pic16/device.c (statistics structure): added statistics
4324         structure,
4325         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
4326         pic16_dump_int_registers): increase statistics counters for each
4327         * variable which is encountered
4328         * (pic16_dump_usection): emit each .udata variable to its own udata
4329         section,
4330         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
4331         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
4332         parameters via stack, otherwise use old scheme,
4333         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
4334         assembler output file,
4335         * src/pic16/main.c: added command line options --gstack to enable
4336         push/pop tracing for stack overflow,
4337         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
4338         instructions): added size of each instruction,
4339         * (pic16_countInstruction): estimate size of instructions in
4340         the_pFile list, inline assembly blocks are not counted,
4341         * (pic16_FixRegisterBanking): trace previous register usage, when
4342         banksel optimizations is greater than 0, don't emit a redudant
4343         banksel directive,
4344
4345 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
4346
4347         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
4348         * src/pic16/ralloc.c : applied same fix for pic16.
4349         * src/pic/gen.c : tidied it up a little.
4350
4351 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4352
4353         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
4354         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
4355
4356 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4357
4358         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
4359
4360 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4361
4362         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
4363         non-reentrant function __modsint in the interrupt function (thus
4364         corrupting math operations during serial I/O)
4365         * device/lib/ser_ir.c: as above, changed buffersize
4366         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
4367         256.c,d for zeroing
4368         * doc/Makefile: added option -t for rsync
4369
4370 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4371
4372         * src/SDCCast.h (struct ast),
4373         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
4374
4375 2004-10-20 Borut Razem <borut.razem AT siol.net>
4376
4377         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
4378         package
4379
4380 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
4381
4382         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
4383         makefile targets,
4384         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
4385         support functions to replace long sequences of MOVFF's from access
4386         bank registers to stack and vice versa,
4387         * src/pic16/device.h: added new field opt_flags, where optimization
4388         flags can be set to enable certain features,
4389         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
4390         * pBlock, (genFunction, genEndFunction): surroung loop for
4391         saving/loading used registers in stack with PC_INFO pCodes,
4392         INF_LREGS. Code in between can then be optimized by pCode optimizer
4393         to support function calls,
4394         * (genDataPointerSet): fixed bug which loaded float fields in
4395         structures with corrupt data,
4396         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
4397         in a standard way debug info on stderr. Feature used for developing
4398         and debugging only,
4399         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
4400         obsolete chunks of code,
4401         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
4402         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
4403         * pic16/src/pcode.c (pic16_newpCodeInfo,
4404         * (pic16_newpCodeOpLocalRegs),
4405         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
4406         feature,
4407         * (pic16_pCodeConstString): printing of the initial value of a
4408         symbol as a comment is inhibited since parsing was already done by
4409         copyStr and output is corrupt,
4410         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
4411
4412 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4413
4414         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
4415
4416 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4417
4418         * as/mcs51/lkarea.c: removed old K&R style,
4419           (lnksect): changed check on boundary error,
4420           (lnksect2): changed check on boundary error,
4421           (lnksect2): extend XSTK to end of page if size = 1
4422         * as/mcs51/lkmain.c: removed old K&R style,
4423           (Areas51): create l_IRAM symbol
4424         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
4425         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
4426           model-mcs51-stack-auto, added model-mcs51-xstack-auto
4427         * device/lib/_mullong.c: added version to be compiled with xstack
4428         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
4429         * device/lib/mcs51/crtxclear.asm: clear pdata as well
4430         * device/lib/mcs51/crtxstack.asm: fixed comment
4431         * src/SDCCglue.c: maxInterrupts defaults to 0,
4432           (emitMaps): added pdata,
4433           (createInterruptVect): (re)moved default,
4434           (glue): added pdata,
4435           (glue): moved __start__xstack to XSTK with default size 1
4436         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
4437           and options.float_rent when options.stackAuto is set,
4438           (linkEdit): only write XDATA_NAME if provided on command line
4439         * src/SDCCmem.h,
4440         * src/SDCCmem.c: added pdata
4441         * src/port.h: added pdata_name to PORT
4442         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
4443           (saveRegisters, unsaveRegisters): removed usage of B,
4444           (genMinus): fixed accumulator clash,
4445           (genJumpTab): added comment, this needs another look
4446         * src/mcs51/gen.c: added check for "B in use" paranoia,
4447           added pushB() and popB()
4448         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
4449           chance
4450         * src/avr/main.c,
4451         * src/ds390/main.c,
4452         * src/hc08/main.c,
4453         * src/mcs51/main.c,
4454         * src/pic/main.c,
4455         * src/pic16/main.c,
4456         * src/xa51/main.c,
4457         * src/z80/main.c: (reset_regparms) made void parameter explicit and
4458           added PSEG (PAG,XDATA) or NULL to port specifier
4459         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
4460         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
4461           (_mcs51_genInitStartup): removed __start__xstack equ,
4462           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
4463         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
4464         * src/z80/gen.c (_rleAppend): fixed warnings
4465         * support/regression/tests/zeropad.c: added pdata test
4466         * .version: bumped to 2.4.6
4467
4468 2004-10-17 Borut Razem <borut.razem AT siol.net>
4469
4470         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
4471         as a part of nightly build
4472
4473 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
4474
4475         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
4476         WREG holds the first byte function parameters,
4477         * (aopForSym): take special case for symbols which are in FARSPACE
4478         but in CODESPACE too,
4479         * (assignResultValue): modified to take into account _G.useWreg,
4480         * (genCall): don't use wreg for parameter passing when function is
4481         declared as reentrant, too, added optimization INCF to stack
4482         pointer when stack parameter count is 1,
4483         * (genFunction, genEndFunction): refurnished and fixed to not using
4484         wreg for passing parameters when function has varargs or is
4485         reentrant, fixed bug with symbol name compare for generating
4486         functions in absolute address,
4487         * (pic16_storeForReturn): refurnished,
4488         * (genCmp): began writing a new version of the function, not ready
4489         yet, therefore it is disabled,
4490         * (genAssign): do not read code memory when assigning a function to
4491         a pointer function,
4492         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
4493         array of characters, not pointer,
4494         * (pic16initialComments): in debug mode emit an .ident directive for
4495         the assembler,
4496         * (_process_pragma): emit a new warning type (internal to pic16)
4497         when setting stack to default length, emit a similar warning when
4498         placing a function at absolute address and address is not word aligned
4499         * (_pic16_parseOptions): added 'return TRUE' statement,
4500         * (_pic16_linkEdit): if compiling a source, then add the source's
4501         file object, first in the list of objects to link,
4502
4503 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
4504
4505         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
4506         * src/pic/main.c : removed VC warning.
4507         * src/pic/gen.c : changed comment.
4508
4509 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
4510
4511         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
4512         reference to a deprecated symbol _GPTRREG was causing failure to
4513         link. Thanks G. M. Gallant for the info.
4514
4515 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
4516
4517         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
4518         comments for Bugs item #954788.
4519
4520 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
4521
4522         * src/pic16/device.c (pic16_dump_gsection,
4523         * pic16_groupRegistersInSection): handle symbols declared to be in
4524         access bank differently,
4525         * src/pic16/gen.c (struct _G): added field resDirect,
4526         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
4527         send values read from stack directly to result and don't allocate
4528         temporary values,
4529         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
4530         same registers,
4531         * (pic16_sameRegsOfs): NEW,
4532         * (freeAsmop): if _G.resDirect is set then do not mark registers as
4533         free because they were not allocated from temporary pool,
4534         * pic16_popRegFromString): workaround to fix a problem with
4535         allocating variables twice or never,
4536         * (genGenPointerGet): using PRODL instead of FSR0H,
4537         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
4538         instead of FSR0H,
4539         * (genAssign): take advantage of the _G.resDirect flag,
4540         * (genCast): around line 11844, use mov2f instead of directly
4541         MOVFF'ing between operands to account for literal values,
4542         * src/pic16/genutils.c: some new debug functions for gpsim have been
4543         added,
4544         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
4545         float with integer part only,
4546         * src/pic16/main.c (_process_pragma): handle pragma udata access to
4547         place variables in access bank
4548         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
4549         updated sources to reflect recent changes in gen.c
4550
4551 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
4552
4553         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
4554         sources that searched for headers in installation path, now the
4555         device/include/pic16 is used,
4556         * src/pic16/glue.c (pic16glue),
4557         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
4558         .line directives if not in debug mode, this suppresses assembler's
4559         warnings for ignored directives
4560
4561 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4562
4563         * src/port.h: made reset_regparms prototype void parameter explicit.
4564         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
4565         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
4566         * doc/sdccman.lyx: documented warning disabling and how to use
4567           printf_large to make it print floats.
4568         * device/include/stdbool.h: NEW
4569         * device/lib/_atof.c,
4570         * device/lib/_divuint.c,
4571         * device/lib/_divulong.c,
4572         * device/lib/expf.c,
4573         * device/lib/printf_large.c,
4574         * device/lib/sincosf.c,
4575         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
4576         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
4577           a completely reentrant lib.
4578
4579 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
4580
4581         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
4582         * device/include/pic16/stdio.h: fixed bug with colon
4583
4584 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
4585
4586         * device/include/pic16/stdio.h,
4587         * device/include/pic16/stdlib.h,
4588         * device/include/pic16/math.h: NEW
4589         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
4590         declared as _naked to reduce overhead
4591         * device/lib/Makefile.in (target port-specific-objects-pic16):
4592         changed * to *.* so to ignore the CVS directory,
4593         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
4594         stacked variables back in stack,
4595         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
4596         corruption
4597
4598 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
4599
4600         * .version: bumped version number to 2.4.5
4601         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
4602         * support/Util/SDCCerr.c (messages structure): added entry for
4603         W_POSSBUG2
4604
4605         Large cumulative patch for pic16 port and libraries.
4606         * device/include/pic16/sdcc-lib.h,
4607         * device/include/pic16/stdarg.h,
4608         * device/include/asm/pic16/features.h,
4609         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
4610         * device/include/pic16/float.h: changes reentrant keyword with
4611         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
4612         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
4613         updated target build-libraries to include objects from gptr,
4614         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
4615         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
4616         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
4617         all function headings,
4618         * src/SDCCmain.c: added global parameter userIncDirsSet,
4619         * (parseCmdLine): when option -I is encountered add directory to
4620         userIncDirsSet too,
4621         * src/version.awk: added space between control and long,
4622         * src/pic16/NOTES: added some notes for the port,
4623         * src/pic16/gen.c: added prototype for mov2fp function,
4624         * (fReturnpic16[]): properly named return value registers,
4625         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
4626         * (aopForSym): added code to handle symbols with onStack flag set,
4627         symbols onStack are allocated PTRSIZE bytes,
4628         * (aopFreeAsmop): handles special case where asmops are stack objects,
4629         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
4630         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
4631         added argument lock to trace flaws in allocating temporary registers
4632         when developing port,
4633         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
4634         * (pic16_popRegFromString): reenabled allocating a direct register
4635         from string,
4636         * (assignResultValue): various beautifications,
4637         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
4638         referenced function argument,
4639         * (genIpush): reenabled to allow stacked arguments, handles only
4640         ic->parmPush iCodes,
4641         * (genCall, genPcall): major changes to allow for variable argument
4642         functions, fixed a bug with falsely restoring stack pointer after
4643         returning from call,
4644         * (genFunction): pending code for critical function,
4645         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
4646         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
4647         * (genNearPointerGet): fixed bug with indirect reading, was always
4648         reading from INDF0
4649         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
4650         pointers,
4651         * (genAddrOf): rewrote code to take address of a stacked function parameter
4652         * (genCast): fixed casting to generic pointer type,
4653         * src/pic16/gen.h: added AOP_STA,
4654         * (struct asmop): added field stk,
4655         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
4656         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
4657         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
4658         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
4659         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
4660         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
4661         generic pointers,
4662         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
4663         and library paths,
4664         * (pic16_port structure): generic pointer size is set to 3,
4665         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
4666         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
4667         compiler warning,
4668         * src/pic16/ralloc.c (allocReg): prevent allocating register when
4669         operand is an iTemp,
4670
4671 2004-09-24 Martin Helmling <mh AT octo-soft.de>
4672
4673         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
4674         * debugger/mcs51/simi.c: addapt new syntax of s51
4675
4676 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
4677
4678         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
4679         * src/pic16/pcode.c: commented out some calls to free() in order to
4680         fix bug #989576,
4681
4682 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4683
4684         * src/SDCCicode.h,
4685         * src/SDCCicode.c (isiCodeInFunctionCall),
4686         * src/avr/ralloc.c (selectSpil),
4687         * src/pic/ralloc.c (selectSpil),
4688         * src/pic16/ralloc.c (selectSpil),
4689         * src/ds390/ralloc.c (selectSpil),
4690         * src/hc08/ralloc.c (selectSpil),
4691         * src/xa51/ralloc.c (selectSpil),
4692         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
4693         stack in the middle of a function call sequence (fixes bug #1020268)
4694         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
4695         costs associated with the minimum switch case.
4696
4697 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4698
4699         * src/SDCC.lex: fixed bug #1030549
4700
4701 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4702
4703         * src/SDCCcse.h (struct cseDef),
4704         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
4705         over a function call if the CSE is derived from a symbol whose
4706         address has been taken (fixes bug #1029883)
4707         * support/regression/tests/bug-1029883: a new regression test for
4708         this bug
4709
4710 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4711
4712         * src/hc08/gen.c (emitinline): fixed bug #1029778
4713         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
4714         to a cast object is no longer a syntax error ("fixes" bug #1030006,
4715         and starts toward RFE #905167)
4716
4717 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
4718
4719         * src/pic16/gen.c (mov2f): New function to move an operand to
4720         another without considering if it is a literal or a register,
4721         * (pic16_sameRegs): don't check if they are both AOP_REG,
4722         * (AccRsh): removed andmask=0 lines,
4723         * (genLeftShift): duplicated to be improved in future versions,
4724         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
4725         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
4726         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
4727         * (pic16initMnemonics): added initialization for POC_INFSNZW,
4728         * (insertBankSwitch): fixed inserting banksel directives algorithm
4729         for instructions that follow a skip instruction, this fixes a report
4730         for broken subtraction code generation,
4731         * src/pic16/ralloc.c (deassignLRs): do not free register if current
4732         iCode is a left op, just in case result and right share the same
4733         registers
4734
4735 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4736
4737         * src/hc08/main.c,
4738         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
4739         preservation of HX
4740         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
4741         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
4742         on 2004-09-12; it was buggy
4743
4744 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4745
4746         * src/SDCCsymt.h: removed RESULT_CHECK
4747         * src/SDCCast.c,
4748         * src/SDCCglue.c,
4749         * src/SDCCval.c,
4750         * src/pic/glue.c,
4751         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
4752
4753 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
4754
4755         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
4756         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
4757         configuration values no more rejected by compiler, they are assigned
4758         to configuration registers with a warning message instead,
4759         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
4760         the for-loop so last conf register is emitted too,
4761         * (_pic16_initPaths): link library libsdcc.lib by default,
4762         * (_hasNativeMulFor): modified test for multiplication according to
4763         Raphael Neider's remarks. Integer multiplication is also done with
4764         support functions,
4765         * device/include/pic16/pic18fregs.h: corrected type error in while
4766         testing and including 18f6720 header file
4767
4768 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
4769
4770         * src/pic16/device.h (pic16_options): removed field use_crt,
4771         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
4772         until an optimization to handle single bits is added,
4773         * (pic16_loadFSR0): moved before genUnpackBits,
4774         * (genAnd): some white lines removed,
4775         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
4776         leave_reset flags in pic16_options when using crt modules,
4777
4778 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
4779
4780         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
4781           for bugs 898889 & 979599. Also used some safer print instructions.
4782
4783 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
4784
4785         * src/pic16/device.h (pic16_options_t): added field use_crt,
4786         crt_name, no_crt,
4787         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
4788         catch a probable future bug,
4789         * src/pic16/gen.c: aopIdx function commented out,
4790         * (genAssign): commented out old code which used aopIdx,
4791         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
4792         code, added if conditionals to take into account the --use-crt
4793         command line options,
4794         * src/pic16/main.c (pic16_optionsTable): added new command line
4795         options, --use-crt= and --no-crt,
4796         * (_pic16_linkEdit): now the proper crt object is added in the
4797         linker command line except than when --no-crt is specified,
4798         * src/pic16/pcode.c,
4799         * src/pic16/pcode.h: added some structures and functions for a new
4800         optimization scheme to compansate for instruction overhead between
4801         same iCodes, this scheme is currently under development and is not
4802         working in any way,
4803         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
4804         to && operator,
4805         * device/lib/pic16/startup/crt0i.c,
4806         * device/lib/pic16/startup/crt0iz.c: added global char variable
4807         __uflags to force the generation of an idata section
4808
4809 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
4810
4811         * doc/Makefile,
4812         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
4813         * doc/sdccman.lyx: updated sdcc version to 2.4.4
4814
4815 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4816
4817         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
4818         Frieder) and clarified the default code optimization mode
4819
4820 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4821
4822         * src/SDCC.lex (doPragma, process_pragma),
4823         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
4824         "opt_code_size", and "opt_code_balanced"
4825         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
4826         regrouped options by category, added support for category headers
4827         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
4828         and "--opt-code-size"
4829         * doc/sdccman.lyx: documented these new options and pragmas
4830         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
4831         preference into account
4832
4833 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4834
4835         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
4836           geniCodePreDec): Fixed bug 904237 by generating a warning
4837         * src/SDCCerr.h,
4838         * src/SDCCerr.c: added warning W_SIZEOF_VOID
4839
4840 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
4841
4842         * src/pic/device.c : When no max ram set validate full memory range.
4843         * src/pic/pcode.c,
4844         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
4845
4846 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4847
4848         * device/lib/_gptrget.c,
4849         * device/lib/_gptrput.c: updated comment
4850         * device/lib/calloc.c,
4851         * device/lib/free.c,
4852         * device/lib/malloc.c,
4853         * device/lib/realloc.c: added LGPL, made them reentrant-safe
4854         * src/SDCCcse.c (cseBBlock),
4855         * src/SDCCicode.c (printOperand, geniCodeArray),
4856         * src/SDCCicode.h (struct operand): fixed bug 868103
4857         * support/regression/tests/bug-868103.c: added
4858         * src/SDCCast.c (searchLitOp),
4859         * src/SDCCcse.h (struct cseDef),
4860         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
4861         * src/SDCCicode.h (struct operand),
4862         * src/SDCCsymt.h (struct sym_link),
4863         * src/avr/gen.c (hasInc),
4864         * src/ds390/gen.c (hasInc),
4865         * src/hc08/gen.c (genPlusIncr, hasInc),
4866         * src/mcs51/gen.c (hasInc),
4867         * src/pic16/glue.c (pic16_printIvalChar),
4868         * src/pic16/ralloc.c (regWithIdx),
4869         * src/xa51/gen.c (hasInc) : removed warnings
4870         * src/SDCCast.c (createBlock): added comment ???
4871         * src/hc08/ralloc.c: updated comments
4872
4873 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4874
4875         * doc/sdccman.lyx: updated section on switch statements, added
4876         section about semaphore locking
4877         * doc/Makefile: added option -info for latex2html
4878         * device/lib/_gptrget.c,
4879         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
4880
4881 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4882
4883         * src/pic/device.h,
4884         * src/pic/device.c,
4885         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
4886          maxram is less than 0x100.
4887
4888 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4889
4890         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
4891
4892 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4893
4894         * src/port.h,
4895         * src/mcs51/main.c,
4896         * src/ds390/main.c,
4897         * src/z80/main.c,
4898         * src/hc08/main.c,
4899         * src/pic/main.c,
4900         * src/pic16/main.c,
4901         * src/avr/main.c,
4902         * src/xa51/main.c
4903         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
4904         a jump table is the best form for a switch statement, including
4905         automatic insertion of missing cases to make the case range
4906         continuous. Developed in collaboration with Frieder Ferlemann.
4907
4908 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4909
4910         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
4911         accumulator result if it needs sign extension
4912
4913 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4914
4915         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
4916
4917 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4918
4919         * device/lib/gbz80/printf.c,
4920         * device/lib/z80/printf.c: removed define for NULL
4921
4922 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4923
4924         * as/xa51/xa_link.c,
4925         * device/examples/ds390/ow390/ad26.c,
4926         * device/examples/ds390/ow390/cnt1d.c,
4927         * device/examples/ds390/ow390/counter.c,
4928         * device/examples/ds390/ow390/ds2480.h,
4929         * device/examples/ds390/ow390/ds2480ut.c,
4930         * device/examples/ds390/ow390/findtype.c,
4931         * device/examples/ds390/ow390/gethumd.c,
4932         * device/examples/ds390/ow390/owllu.c,
4933         * device/examples/ds390/ow390/ownetu.c,
4934         * device/examples/ds390/ow390/swt12.c,
4935         * device/examples/ds390/ow390/swtloop.c,
4936         * device/examples/ds390/ow390/temp.c,
4937         * device/examples/ds390/ow390/temp10.c,
4938         * device/examples/ds390/ow390/thermo21.c,
4939         * device/examples/ds390/ow390/tinilnk.c,
4940         * device/examples/ds390/ow390/tstfind.c,
4941         * device/examples/serialcomm/windows/serial.cpp,
4942         * device/examples/serialcomm/windows/test_serialcomm.cpp,
4943         * device/include/reg51.h: fixed line endings for cvs
4944
4945 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4946
4947         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
4948         packRegsForAccUse, packRegisters): new accumulator register
4949         packing algorithm
4950         * support/regression/ports/hc08/support.c (_putchar): suppress
4951         warning of unused variable
4952         * src/SDCCicode.c: added SWAP entry to codeTable
4953
4954 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
4955
4956         * device/lib/sprintf.c: forgot to add this file before previous commit
4957
4958 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
4959
4960         * src/pic16/gen.c (genPackBits): added operand right in function
4961         parameters, load result directly if p_type is POINTER (that is
4962         called by genNearPointerSet)
4963         * (genUnPackBits): added operand left in function parameters,
4964         * (genNearPointerGet, genNearPointerSet): prevent the loading of
4965         FSR0 if accessing bitfields,
4966
4967 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
4968
4969         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
4970           _print_format; updated printf, sprintf, vsprintf
4971         * device/include/asm/default/features.h: corrected comment/define
4972         * device/lib/Makefile.in: added sprintf.c
4973         * device/lib/libsdcc.lib: added sprintf module
4974         * device/lib/printf_large.c,
4975         * device/lib/vprintf.c,
4976         * device/lib/sprintf.c: totally refactored printf_large and vprintf
4977           into these 3 files
4978         * support/regression/Makefile: changed ALL_PORTS into a usefull default
4979         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
4980         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
4981           hc08 test
4982         * support/regression/tests/zeropad.c: define idata as data for hc08
4983
4984 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4985
4986         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
4987         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
4988         labels are referenced at least once (even if a reference is not found)
4989         * src/hc08/gen.c (emitcode): set isComment flag for comments
4990         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
4991         loads), rules 6a..6b (optimize jumps to return)
4992
4993 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4994
4995         * device/lib/acosf.c (acosf),
4996         * device/lib/asinf.c (asinf),
4997         * device/lib/atanf.c (atanf),
4998         * device/lib/ceilf.c (ceilf),
4999         * device/lib/cosf.c (cosf),
5000         * device/lib/coshf.c (coshf),
5001         * device/lib/cotf.c (cotf),
5002         * device/lib/fabsf.c (fabsf),
5003         * device/lib/floorf.c (floorf),
5004         * device/lib/log10f.c (log10f),
5005         * device/lib/logf.c (logf),
5006         * device/lib/sinf.c (sinf),
5007         * device/lib/sinhf.c (sinhf),
5008         * device/lib/sqrtf.c (sqrtf),
5009         * device/lib/tanf.c (tanf),
5010         * device/lib/tanhf.c (tanhf),
5011         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
5012         replaced all instances of "reentrant" in the library functions
5013         defined in math.h with this macro.
5014         * support/regression/tests/float_trans.c: reenabled test for hc08
5015
5016 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5017
5018         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
5019         erroneously deleted
5020
5021 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5022
5023         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
5024         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
5025         multi-byte volatile operands are used
5026         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
5027         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
5028         initialization to area GSINIT0 so that it would always precede
5029         any static initializers in GSINIT
5030         * support/regression/tests/zeropad.c: fixed idata define for hc08
5031         * support/regression/tests/bug-927659.c,
5032         * support/regression/tests/float_trans.c: disabled tests for hc08
5033         pending missing library routines
5034         * .version: increased version number to 2.4.4 - hc08 port now passes
5035         regression tests
5036
5037
5038 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
5039
5040         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
5041         * Makefile.common.in,
5042         * as/Makefile,
5043         * as/hc08/Makefile.in,
5044         * as/mcs51/Makefile.in,
5045         * as/z80/Makefile.in,
5046         * debugger/mcs51/Makefile.in,
5047         * device/include/Makefile.in,
5048         * device/lib/Makefile.in,
5049         * doc/Makefile,
5050         * link/Makefile,
5051         * link/z80/Makefile.in,
5052         * packihx/Makefile.in,
5053         * sim/ucsim/main_in.mk,
5054         * sim/ucsim/avr.src/Makefile.in,
5055         * sim/ucsim/doc/Makefile.in,
5056         * sim/ucsim/gui.src/serio.src/Makefile.in,
5057         * sim/ucsim/hc08.src/Makefile.in,
5058         * sim/ucsim/s51.src/Makefile.in,
5059         * sim/ucsim/xa.src/Makefile.in,
5060         * sim/ucsim/z80.src/Makefile.in,
5061         * src/Makefile.in,
5062         * support/cpp2/Makefile.in,
5063         * support/librarian/Makefile,
5064         * support/makebin/Makefile: added DESTDIR to the install path proposed
5065         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
5066         * doc/sdccman.lyx: added DESTDIR documentation
5067
5068 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
5069
5070         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
5071         instruction for interrupt handlers, use fast returns when returning
5072         from high priority interrupts
5073
5074 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5075
5076         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
5077         code generation
5078         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
5079         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
5080         bugs, ported much of Bernhard's code from mcs51
5081         * src/mcs51/gen.c (genSend),
5082         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
5083         than one when calling a reentrant function
5084         * device/lib/_mullong.c: defined an alternate struct layout for big
5085         endian ports (hc08)
5086
5087 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5088
5089         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
5090         test
5091
5092 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5093
5094         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
5095         are sane and complete before asking the port its prefered parameter
5096         passing method (fixes bug #1017633)
5097         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
5098         and _ret3
5099
5100 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5101
5102         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
5103         problem in bitfields >= 8 bits.
5104
5105 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5106
5107         * src/SDCCsymt.c: undid changes that were not meant to be committed
5108
5109 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5110
5111         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
5112
5113 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5114
5115         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
5116           copied and wrong bit got inverted
5117
5118 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5119
5120         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
5121         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
5122         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
5123         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
5124         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
5125         assignments to bitfields at known addresses
5126         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
5127         reads from bitfields at known addresses
5128         * src/hc08/ralloc.c (packRegisters),
5129         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
5130         genhc08Code): optimize pointer get values used as conditionals
5131         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
5132         and branch
5133
5134 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5135
5136         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
5137         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
5138         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
5139         as conditionals
5140
5141 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5142
5143         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
5144
5145 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5146
5147         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
5148         related problems
5149
5150 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
5151
5152         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
5153
5154 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5155
5156         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
5157         mcs51 port
5158
5159 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5160
5161         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
5162
5163 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5164
5165         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
5166         cases use more compact code.
5167
5168 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
5169
5170         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
5171
5172 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5173
5174         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
5175
5176 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5177
5178         * src/SDCCsymt.h,
5179         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
5180         parameter of changePointer() from symbol* to sym_link*
5181         * src/SDCCast.c (decorateType): call changePointer() for CAST op
5182         * src/SDCCsymt.c (compareType): void* type is castable to other
5183         pointers, but not necesarily an exact match.
5184         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
5185         is no longer blindly treated as an exact match.
5186         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
5187
5188 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
5189
5190         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
5191
5192 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
5193
5194         * src/pic/gen.c,
5195         * src/pic/pcode.c,
5196         * src/pic/ralloc.h,
5197         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
5198
5199 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
5200
5201         * src/pic/device.c,
5202         * src/pic/device.h,
5203         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
5204
5205 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5206
5207         * src/mcs51/gen.c (emitcode): fixed bug #992819
5208
5209 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
5210
5211         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
5212           there's no need to make it worse
5213
5214 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5215
5216         * src/mcs51/ralloc.c (deassignLR),
5217         * src/ds390/ralloc.c (deassignLR),
5218         * src/hc08/ralloc.c (deassignLR),
5219         * src/z80/ralloc.c (deassignLR),
5220         * src/pic/ralloc.c (deassignLR),
5221         * src/pic16/ralloc.c (deassignLR),
5222         * src/avr/ralloc.c (deassignLR),
5223         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
5224         rlivePoint): fixed another part of bug #971834
5225
5226 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5227
5228         * src/z80/main.c: enabled "critical" keyword
5229         * src/z80/mappings.i,
5230         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
5231         functions (fixes bug #979646)
5232         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
5233
5234 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5235
5236         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
5237           such as c:\mydir.
5238
5239 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
5240
5241         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
5242           doesn't disable too much optimizations
5243
5244 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5245
5246         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
5247
5248 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
5249
5250         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
5251
5252 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5253
5254         * src/pic/gen.c tidied up tabs
5255         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
5256         * src/pic/main.c tidied up tabs
5257         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
5258         * src/pic/pcoderegs.c tidied up tabs
5259         * src/pic/ralloc.c tidied up tabs
5260
5261 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
5262
5263         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
5264         to S_FIXED for pic16 port and when symbol is not in level 0,
5265         allocate for S_REGISTER storage class and pic16 port, too,
5266         * src/pic16/device.h: prototype for checkSym,
5267         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
5268         * (pic16_assignConfigWordValue): test the value and the mask to
5269         validate that the value is suitable for the configuration word,
5270         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
5271         collect extern declared symbols, don't emit symbol twice, check
5272         first if symbol is in publics set first,
5273         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
5274         * added command line '--fstack' which enables an experimental
5275         feature for stack access, too buggy to be used yet...
5276         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
5277         * (pic16_allocDirReg): when register has storage class S_REGISTER
5278         allocate in pic16_dynAccessRegs,
5279         * device/include/pic16/pic18f????.h: modified configuration word
5280         naming convention, words started as CONFIG0H but should be CONFIG1H
5281
5282 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5283
5284         * device/include/mcs51reg.h: fixed bug 970993
5285
5286 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
5287
5288         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
5289         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
5290         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
5291         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
5292         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
5293         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
5294           error/warning numbers,
5295           added function setWarningDisabled()
5296         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
5297         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
5298           _memcmp.c _memmove.c calloc.c realloc.c free.c
5299         * support/regression/tests/malloc.c: added tests for new functionality
5300         * support/regression/tests/zeropad.c: added tests for truncated initializers
5301           and initialized char arrays starting with '\x0'
5302         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
5303
5304 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
5305
5306         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
5307
5308 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5309
5310         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
5311         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
5312         peephole 177.e. Thanks to anonymous
5313
5314 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
5315
5316         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
5317         function isn't used in the source but referenced as a
5318         variable initializer then declare it as extern in .asm file
5319
5320 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
5321
5322         * .version: increased version number to 2.4.3
5323
5324         Adding version extension according to ChangeLog CVS revision
5325         * src/Makefile.in (target all): added dependency 'version.h'
5326         * (rule version.h): added rule to create version.h from ChangeLog,
5327         * (rule dep): added dependency version.h,
5328         * src/version.awk: AWK script to create version.h
5329         * src/SDCCdwarf2.c (dwWriteModule),
5330         * src/SDCCglue.c (initialComments),
5331         * src/SDCCmain.c (printVersionInfo): modified to write after
5332         version string the version extension number,
5333         * src/SDCCutil.c: included "version.h"
5334         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
5335         number,
5336         * src/SDCCutil.h: added prototype for getBuildNumber
5337
5338         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
5339         includeDirsSet, too,
5340         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
5341         const char [] is found in function prototype...
5342
5343         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
5344         moving to WREG with source is already in WREG,
5345         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
5346         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
5347         * (aopForSym): stack'ed symbols are partially supported, added
5348         if-clause to support symbols in FARSPACE,
5349         * (sameRegs): added test for AOP_ACC to see if registers are same,
5350         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
5351         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
5352         * (pic16_popRegFromString): will not allocate a new register if it
5353         doesn't find one by name, bug may have introduced...
5354         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
5355         * (genIpush): revived to use pic16 port's stack,
5356         * (genAddrOf): added incomplete case for stack'ed operand,
5357         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
5358         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
5359         can handle multibyte operands,
5360         * src/pic16/glue.c (pic16_printIval*): some debug info added,
5361         * (pic16initialComments): added message for MPLAB compatibility
5362         mode enabled,
5363         * src/pic16/main.h: prototype for pic16_mplab_comp,
5364         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
5365         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
5366         * (_pic16_linkEdit): NEW, handles link stage, transferred here
5367         because of increased complexity of procedure,
5368         * (_process_pragma): stack pragma changed to format 'stack pos len',
5369         emit symbol '_stack_end' to conform with gplink,
5370         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
5371         to search for register,
5372         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
5373         PO_GPR_REGISTER,
5374         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
5375         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
5376         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5377         case for PO_GPR_REGISTER,
5378         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
5379         dies, the new era is ahead !...
5380         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
5381         pic16_dynInternalRegs,
5382         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
5383         * (pic16_allocDirReg): minor optimizations and bug fixes,
5384         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
5385
5386         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
5387         load stack and frame pointer with address of 'stack_end' symbol
5388
5389 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
5390
5391         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
5392         without source code but only variable initializers
5393
5394 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
5395
5396         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
5397         external are not declared as extern to reduce overhead while linking
5398
5399 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
5400
5401         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
5402
5403 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
5404
5405         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
5406           Yee Keat for the patch
5407         * src/SDCCast.c (decorateType): fixed bug #979599
5408         * src/ds390/gen.h: removed local fReturnSizeDS390
5409         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
5410         * src/ds390/gen.c (genAnd, genOr, genXor),
5411         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
5412
5413 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
5414
5415         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
5416         add relFilesSet to $3, manipulate $2 to handle linking of object
5417         files without source files in command line,
5418         * device/include/pic16 (all headers): added ID location macros,
5419         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
5420         entries for ID location bytes,
5421         * (pic16_assignIdByteValue): NEW,
5422         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
5423         added field dumpcalltree to pic16_options_t,
5424         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
5425         is used instead of pic16_Gstack_base_addr, check if (ifx) before
5426         emitting rFalseIfx label after check_carry label,
5427         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
5428         pic16_emitDIRegs), NEW
5429         * (pic16glue): dump .calltree file when option --calltree found,
5430         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
5431         * (_pic16_genAssemblerPreamble): emit ID locations after
5432         configuration registers,
5433         * (pic16_linkCmd): modifications of the link command,
5434         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
5435         * (pic16_pCodeInitRegisters): don't init stack registers,
5436         * (pic16_findPrevInstruction): fixed bug,
5437         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
5438         bug with immediate registers,
5439         * (buildCallTree): traces stack push and pop,
5440         * (pct2): dump also stack usage for each function,
5441         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
5442         * (pic16_allocDirReg): various modifications,
5443         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
5444         fixed to 1,
5445
5446 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
5447
5448         * src/pic16/pcode.c: removed buggy double colon
5449
5450 2004-07-01 Borut Razem <borut.razem AT siol.net>
5451
5452         * support/scripts/sdcc.nsi: added include/pic16 to setup
5453
5454 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
5455
5456         * device/lib/Makefile.in: fixed bug in target objects-pic16,
5457         * device/lib/pic16/Makefile: prefixed with dash (-) command under
5458         target 'clean',
5459         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
5460         specific command line arguments. Also added sample lkr script
5461         for placing a variable at a specific memory bank.
5462         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
5463         at a specific memory bank,
5464         * (pic16_dump_isection): fixed bug which caused string literals to
5465         be omitted when dumping idata section,
5466         * (pic16_groupRegistersInSection): added code to handle registers
5467         in specific memory banks,
5468         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
5469         public, all references are renamed too,
5470         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
5471         AOP_DPTR2,
5472         * (pic16_storeForReturn): added case to handle when dest is WREG,
5473         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
5474         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
5475         pic16_rel_udata, check to see if that register is marked as being
5476         a member of a specific memory bank,
5477         * (pic16_printIvalCharPtr): added code to add string literals either
5478         to code or the idata sections,
5479         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
5480         also accept the 'udata' pragma,
5481         * src/pic16/main.h: new structure types sectName and sectSym
5482         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
5483         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
5484         * (pic16_findPrevInstruction): fixed, it returned nothing,
5485         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
5486         instruction combinations,
5487         * (pic16_FixRegisterBanking): heavily reorganised,
5488         * (pic16_AnalyzeBanking): if generating banksel directives is
5489         disabled, then don't call FixRegisterBanking at all,
5490         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
5491         completely removed,
5492         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
5493
5494 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5495
5496         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
5497         Phuah Yee Keat <yk.phuah AT nestac.com>
5498
5499 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5500
5501         * src/pic16/glue.c (pic16createInterruptVect): function now emits
5502         correctly the IVT even if it is relocated to some other location
5503
5504 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5505
5506         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
5507         * device/include/pic16/pic18f2220.h: NEW,
5508         * device/lib/pic16/libdev/pic18f2220.c: NEW,
5509         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
5510         * src/pic16/device.c (struct Pics16): added info for 18f2220,
5511         * src/pic16/device.h (struct pic16_options): added ivt_loc and
5512         nodefaultlibs, ivt_loc is the location of the interrupt vector
5513         table, and nodefaultlibs signs that default libraries should not be
5514         linked in link stage,
5515         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
5516         according to --ivt-loc argument,
5517         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
5518         when pragma stack is found,
5519
5520 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5521
5522         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
5523         256 (range check), 257 (do while), 258.a-f (bit banging
5524         f.e. on 3-wire SPI bus)
5525
5526 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5527
5528         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
5529         variables used exclusively within a loop
5530
5531 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
5532
5533         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
5534
5535 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5536
5537         * src/SDCClrange.c (computeClash): fixed bug #971834
5538
5539 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5540
5541         * src/mcs51/gen.c (genCmp): fixed bug #975903
5542         * src/hc08/gen.c (operandsEqu),
5543         * src/ds390/gen.c (operandsEqu),
5544         * src/z80/gen.c (operandsEqu),
5545         * src/pic/gen.c (operandsEqu),
5546         * src/pic16/gen.c (operandsEqu),
5547         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
5548         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
5549
5550 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5551
5552         * src/SDCCcse.c (cseBBlock): fixed bug #966963
5553
5554 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
5555
5556         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
5557         default case in switch statement,
5558         * glue.c (pic16_initPointer): expr is initialised via decoarteType
5559         to eliminate problem with initialisation of pointers, but problem
5560         still exists,
5561         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
5562         * (emitStaticSegment): removed various lines emitting debug info,
5563         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
5564         added processor registers for utilizing EEPROM,
5565         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
5566         configurable and set 8
5567
5568 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
5569
5570         * .version: increased version number to 2.4.2,
5571
5572         Cumulative patch for pic16 port
5573         * src/pic16/device.c: changed scheme to dump initial values for
5574         variables in idata segment, all print_idata* functions were removed,
5575         now the pic16_printIval* will be called,
5576         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
5577         * _pic16_printPointerType, pic16_printPointerType,
5578         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
5579         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
5580         NEW, similar to the respective functions in SDCCglue.c,
5581         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
5582         way, emitting hex bytes,
5583         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
5584
5585 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5586
5587         * src/avr/ralloc.c (serialRegAssign),
5588         * src/xa51/ralloc.c (serialRegAssign),
5589         * src/pic/ralloc.c (serialRegAssign),
5590         * src/pic16/ralloc.c (serialRegAssign),
5591         * src/hc08/ralloc.c (serialRegAssign),
5592         * src/z80/ralloc.c (serialRegAssign),
5593         * src/ds390/ralloc.c (serialRegAssign),
5594         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
5595
5596 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5597
5598         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
5599         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
5600
5601 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
5602
5603         Cumulative patch for pic16 port:
5604         * src/pic16/device.h (typedef PIC16_device) modified fields for
5605         defining microcontrollers,
5606         * src/pic16/device.c: added new info for all devices in Pics16 array,
5607         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
5608         to be optimised out by the pCode optimiser,
5609         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
5610         specially, bug reported by G.M. Gallant,
5611         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
5612         as force'd so that cannot be optimised out by pCode optimiser,
5613         * src/pic16/pcode.c,
5614         * src/pic16/pcodepeeph.c,
5615         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
5616         they are disabled by default, but can be enabled explicit with
5617         command argument --denable-peeps, for testing,
5618         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
5619         --pomit-ivt in COMPILE_FLAGS
5620
5621 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5622
5623         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
5624           compilation on MSVC
5625
5626 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5627
5628         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
5629
5630 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5631
5632         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
5633         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
5634
5635 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
5636
5637         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
5638         would only assign 0x300001 register.
5639
5640 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
5641
5642         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
5643         in COMPILE_FLAGS. Thanks to G. Gallant for report.
5644
5645 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5646
5647         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
5648         for ds80c400
5649         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
5650         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
5651         added peephole 254 (left shift), 255 (jump table)
5652
5653 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
5654
5655         * device/lib/Makefile.in: removed comment line with model-pic16,
5656         * (target port-specific-objects-pic16): the libraries and objects
5657         are copied to the build directory form the device/lib/pic16/bin
5658         directory
5659
5660         Cumulative patch concerning pic16 port:
5661         * library directory has been re-organized,
5662         * added support for PIC18F1220,
5663         * added headers and library sources for chips 18f1220,18f6520,
5664         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
5665
5666         * configuration registers setting has changed, now each supported
5667         device has a complete description of the registers it uses,
5668         * all initialisations are moved to idata sections, these section
5669         can be absolute or relocatable,
5670         * fixed initialisation of codespace variables,
5671         * fixed warning about PCLATU and gpsim,
5672         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
5673         * (genAssign): use table reads when assigning from variables in codespace,
5674         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
5675         char/int variables placed in codespace,
5676         * (pic16_emitConfigRegs): NEW, emits a list with configuration
5677         registers set in .asm file, no need for --pomit-config-words anymore,
5678         * (pic16glue): some 8051 legacy segments are commented out
5679         (to be removed completely),
5680         * added support for alternative assembler and linker with --asm=
5681         and --link= command line arguments,
5682         * peepholes are disabled automatically in the port, no need to
5683         specify on command line,
5684         * port supports natively char/int/long multiplication, but converts
5685         all divisions to support functions,
5686         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
5687         to the file set in variable $2,
5688         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
5689         strings in ASCII format and not in hex,
5690         * ralloc.c (serialRegAssign): added a triplet of conditional calls
5691         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
5692         allocate proper register if iCodes aren't temporary,
5693
5694 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5695
5696         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
5697
5698 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
5699
5700         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
5701         is commented out
5702
5703 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5704
5705         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
5706         computed address is reused
5707         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
5708         multi-byte bitfields
5709
5710 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5711
5712         * src/z80/gen.c: (genArrayInit): must check for pointers too
5713
5714 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5715
5716         * support/regression/tests/zeropad.c: never meant to commit the
5717           nestedstruct test: removed, added check for GCC version
5718
5719 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
5720
5721         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
5722         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
5723         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
5724           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
5725           bugs 928906 and 954082 half-empty initializers
5726         * src/SDCCsymt.h,
5727         * src/SDCCsymt.c (getAllocSize): added for above fix
5728         * src/z80/gen.c (genArrayInit): fixed bug 741044
5729         * support/regression/tests/zeropad.c: added tests
5730
5731 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
5732
5733         * src/pic16/device.c (pic16_dump_section): corrected bug which
5734         caused some symbols of the libraries to be misplaced
5735
5736 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5737
5738         * src/pic16/glue.c,
5739         * src/pic16/ralloc.h,
5740         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
5741         to fix conflict with pic port
5742
5743 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5744
5745         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
5746         externs configuration variables,
5747         * src/pic16/ralloc.h,
5748         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
5749         prototype in header, commented out some debug messages
5750
5751 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
5752
5753         * src/pic16/glue.c,
5754         * src/pic16/main.c,
5755         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
5756         for gpasm COFF object generation. Thanks to D. Hawkins for
5757         his patch info
5758
5759 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5760
5761         * src/ds390/main.c,
5762         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
5763         Brock for spotting this)
5764         * src/ds390/gen.c (genEndFunction),
5765         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
5766         interrupt handler and critical. Disable push/pop optimizations when
5767         peephole optimizations disabled.
5768
5769 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5770
5771         Updated pic16 library sources and headers.
5772         * device/lib/pic16/pic18f*/ ,
5773         * device/include/pic16/*.h: modified to handle structured SFR
5774         definitions
5775
5776 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5777
5778         * src/port.h (PORT structure): added hook initPaths, now each
5779         port can declare its own default search paths,
5780         which can been seen with the --print-search-dirs option,
5781         see pic16 port for example,
5782         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
5783         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
5784         * (doPrintSearchDirs): NEW, replaces in a central manner the
5785         printing of search dirs which was split in set*Paths functions,
5786         * (main): added call to port->initPaths and doPrintSearchDirs,
5787         * src/avr/main.c,
5788         * src/ds390/main.c,
5789         * src/hc08/main.c,
5790         * src/izt/i186.c,
5791         * src/izt/tlcs900h.c,
5792         * src/mcs51/main.c,
5793         * src/pic/main.c,
5794         * src/pic16/main.c: modified port structures to reflect addition of
5795         initPaths hook,
5796
5797         * src/pic16/device.c (regCompare): registers are finally sorted by name,
5798         * (pic16_dump_section): for registers in same address reserve memory once,
5799         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
5800         to no_banksel,
5801         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
5802         result is greater in size than right or left,
5803         * (pic16_genUMult8X8_8): there are some cases where the result can
5804         be 16 bits size, so handle these,
5805         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
5806         * (pic16_outBitC): modified to emit pcodes,
5807         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
5808         or not,
5809         * (genDivOneByte): implemented algorithm to divide 8-bits,
5810         * (genCmp): uncommented goto, but issues still exist,
5811         * (genAnd): fixed a bug with variables >8bits,
5812         * (genPackBits): optimization added that uses BCF/BSF to change a
5813         single bit,
5814         * (genAssign): fixed bug when assigning floating point literals,
5815         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
5816         __sdcc_gsinit_startup label,
5817         * src/pic16/main.c (_pic16_init): removed search directory
5818         initialisations,
5819         * (_pic16_initPaths): NEW, used to initialise search directories,
5820         * (_hasNativeMulFor): support functions for all except char/int
5821         multiplication, and char division,
5822         * (PIC16_port struct): modified entry for native mul support,
5823         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
5824         no_banksel option,
5825         * (buildCallTree): call to register_usage is ifdef'ed out,
5826
5827 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5828
5829         * device/include/string.h: applied Stas Sergeev's patch to make this
5830         header file compatible with the preprocessor -Wundef option
5831         * src/SDCCmain.c (main): abort compilation if preprocessor reports
5832         failure (fixes bug #941458)
5833
5834 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5835
5836         * src/SDCCopt.c (killDeadCode): fixed bug #907733
5837         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
5838         that the variable, not the function, should be static
5839         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
5840         to be consistent with non-literal case
5841
5842 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5843
5844         * src/SDCCast.c (isConformingBody): fixed bug #949967
5845         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
5846         convilong): fixed bug #952086
5847
5848 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5849
5850         * src/SDCCmem.c (allocVariables): fixed bug #955321
5851
5852 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5853
5854         * src/hc08/main.c (_hc08_genAssemblerEnd),
5855         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
5856         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
5857         completely eliminated the use of a temporary file
5858         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
5859         when more than one file linked
5860         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
5861
5862 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5863
5864         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
5865         which fixes bug #543481
5866         * support/regression/tests/bug-751703.c: fixed comments left from a
5867         cut and paste error
5868         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
5869         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
5870         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
5871         scopes
5872         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
5873         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
5874         are now changed to underscores in moduleName
5875
5876 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5877
5878         * as/mcs51/lkmem.c: better fix for bug #954173
5879
5880 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5881         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5882
5883         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
5884         * device/include/c8051f000.h,
5885         * device/include/c8051f120.h,
5886         * device/include/c8051f300.h,
5887         * device/include/c8051f310.h,
5888         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
5889         PWM16) and detab'ed
5890
5891 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5892
5893         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
5894         and mailing lists, doc'ed --no-peep-comments, removed reference
5895         to knoppix (newest version has no LyX/LaTeX), other minor changes
5896         * src/SDCCglue.c (glue): save 2 bytes stack space with
5897         option --main-return. The ljmp could probably be avoided too
5898
5899 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5900
5901         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
5902
5903 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5904
5905         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
5906         * src/SDCCopt.c (isLocalWithoutDef),
5907         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
5908         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
5909         (credit to Maarten Brock for patch #949363, on which this is based)
5910         * support/regression/tests/bug-751703.c: some test cases of extern used
5911         within inner scopes.
5912
5913 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5914
5915         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
5916         SPEC_STRUCT
5917         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
5918         struct definitions
5919         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
5920         dwWriteLabel): fix to create valid debugger symbols even when
5921         the module name has non-alphanumeric symbols in it
5922         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
5923         when a variable's allocation has been optimized away
5924
5925
5926 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5927
5928         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
5929         * src/hc08/main.c,
5930         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
5931         * src/mcs51/main.c,
5932         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
5933         * src/ds390/main.c,
5934         * src/z80/gen.c (z80_emitDebuggerSymbol),
5935         * src/z80/main.c,
5936         * src/pic/gen.c (pic14_emitDebuggerSymbol),
5937         * src/pic/main.c,
5938         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
5939         * src/pic16/main.c,
5940         * src/avr/gen.c (avr_emitDebuggerSymbol),
5941         * src/avr/main.c,
5942         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
5943         * src/xa51/main.c,
5944         * src/SDCCdebug.c (emitDebuggerSymbol),
5945         * src/SDCCdebug.h,
5946         * src/port.h: added a debugger struct to the port struct. Added a
5947         callback for defining debugger symbols
5948
5949         * src/SDCCast.c (createLabel),
5950         * src/SDCC.y (labeled_statement): mark all compiler generated labels
5951         with isitmp = 1
5952         * src/SDCCicode.h,
5953         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
5954         iCode back to the ast for the function
5955
5956         * src/hc08/ralloc.c (hc08_assignRegisters),
5957         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
5958         unneeded fields from the regs struct.
5959         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
5960         pushReg() & pullReg() functions instead of emitcode()
5961
5962         * src/hc08/gen.c (genLabel, genhc08Code),
5963         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
5964
5965         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
5966         debugger hooks
5967
5968         * src/hc08/gen.c (genEndFunction, genhc08Code),
5969         * src/hc08/gen.h,
5970         * src/mcs51/gen.c (genEndFunction, gen51Code),
5971         * src/mcs51/gen.h,
5972         * src/ds390/gen.c (genEndFunction, gen390Code),
5973         * src/ds390/gen.h,
5974         * src/z80/gen.c (genEndFunction, genZ80Code),
5975         * src/z80/gen.h,
5976         * src/z80/z80.h,
5977         * src/pic/gen.c (genEndFunction, genpic14Code),
5978         * src/pic/gen.h,
5979         * src/pic16/gen.c (genEndFunction, genpic16Code),
5980         * src/pic16/gen.h,
5981         * src/avr/gen.c (genEndFunction, genAVRCode),
5982         * src/avr/gen.h,
5983         * src/xa51/gen.c (genEndFunction, genXA51Code),
5984         * src/xa51/gen.h,
5985         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
5986         specific code to cdbFile.c and out of the backend code generators
5987
5988         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
5989         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
5990         starting address is now 0
5991
5992         * as/hc08/asm.h,
5993         * as/hc08/m08pst.c,
5994         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
5995         assembler directive for DWARF support
5996         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
5997
5998         * src/src.dsp,
5999         * src/Makefile.in,
6000         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
6001
6002 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6003
6004         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
6005         and inappropriate peephole optimization in jump tables
6006
6007 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6008
6009         * as/hc08/m08pst.c,
6010         * src/SDCCglue.c: sdccopt works for the hc08 port now
6011
6012 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
6013
6014         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
6015
6016 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6017
6018         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
6019
6020 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6021
6022         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
6023         rules
6024         * src/SDCCmain.c,
6025         * src/SDCCglobl.h,
6026         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
6027         comments from the peephole optimizer replacement rules
6028         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
6029         symbols
6030         * src/SDCCcse.c (updateSpillLocation),
6031         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
6032         equivalents
6033         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
6034         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
6035         objects far pointers
6036
6037 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6038
6039         * src/SDCCsymt.h: a missing part of my last change
6040         * src/pic/ralloc.c (regTypeNum),
6041         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
6042
6043 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6044
6045         * src/SDCCicode.h,
6046         * src/SDCCicode.c (aggrToPtrDclType),
6047         * src/SDCCptropt.h,
6048         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
6049         ptrPseudoSymConvert),
6050         * src/pic/ralloc.c (regTypeNum),
6051         * src/pic16/ralloc.c (regTypeNum),
6052         * src/hc08/ralloc.c (regTypeNum),
6053         * src/ds390/ralloc.c (regTypeNum),
6054         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
6055         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
6056
6057 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6058
6059         * link/z80/lkmain.c (afile),
6060         * as/hc08/lkmain.c (afile),
6061         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
6062         prevent a pointer problem when a filename has no directory and
6063         no extension specified.
6064
6065 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6066
6067         * link/z80/lkmain.c (afile): allow periods in directory names
6068         * link/z80/lkmain.c (afile),
6069         * as/mcs51/lkmain.c (afile),
6070         * as/hc08/lkmain.c (afile): allow linker script file to have an
6071         extension other than ".lnk"
6072         * link/z80/lklex.c (getfid),
6073         * link/z80/lkmain.c (parse),
6074         * as/mcs51/lklex.c (getfid),
6075         * as/mcs51/lkmain.c (parse),
6076         * as/hc08/lklex.c (getfid),
6077         * as/hc08/lkmain.c (parse): Support comments in the linker script
6078         file on lines by themselves and after filenames
6079
6080 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6081
6082         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
6083
6084 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6085
6086         * src/z80/peeph-z80.def: removed some peephole rules that don't
6087         work with multibyte arithmetic (fixed bug #937126)
6088         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
6089         to registers and not global variables
6090         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
6091         geniCodePreInc, geniCodePostDec, geniCodePreDec,
6092         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
6093         checking for assignments not internally generated (fixed bug #931895)
6094         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
6095         structure member (fixed bug #930072)
6096
6097 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6098
6099         * src/SDCCmain.c (linkEdit),
6100         * src/hc08/main.c (_hc08_parseOptions),
6101         * as/hc08/Makefile.in,
6102         * as/hc08/aslink.h,
6103         * as/hc08/asm.h,
6104         * as/hc08/m08pst.c,
6105         * as/hc08/lkrloc.c (relr, rele),
6106         * as/hc08/lkarea.c (lnkarea)
6107         * as/hc08/lkmain.c (afile, parse),
6108         * as/hc08/lkelf.c: support for ELF output
6109         * as/hc08/lks19.c (s19),
6110         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
6111
6112 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6113
6114         * as/mcs51/lkihx.c: Fixed bug #899105.
6115
6116 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6117
6118         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
6119         .dsp files from Unix to DOS.
6120
6121 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6122
6123         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
6124         function pointers; we have been compliant for several months now.
6125         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
6126         change that was accidently commented out
6127         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
6128         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
6129         bug #922319
6130
6131 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6132
6133         * src/hc08/gen.c: output of all of the internal debugging information
6134         is now controlled by the D() macro; it is disabled by default
6135
6136 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6137
6138         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
6139         harder to keep the same registers during a CAST iCode
6140         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
6141         long via int can be done in a single cast, if the signedness is
6142         correct.
6143         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
6144         putchar() in tinibios.c in ds390's library
6145
6146 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
6147
6148         * src/SDCCast.c (decorateType): fixed bug #898889,
6149         cast result of a literal complement too
6150         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
6151         fixed check for bitfields
6152
6153 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
6154
6155         * src/SDCCicode.c (geniCodeLogic): made it static,
6156         (geniCodeLogicAndOr): added in order to fix bug #905492,
6157         (ast2iCode): fixed bug #905492
6158         * support/regression/tests/bug-905492.c: added
6159         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
6160         (processParms): fixed bug #927659: don't copy parms, this will clear
6161         decorated flag
6162         * support/regression/tests/bug-927659.c: added
6163
6164 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
6165
6166         * src/SDCCast.c (addCast): don't cast float to char
6167         * device/lib/libsdcc.lib: added _memmove
6168
6169 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
6170
6171         * device/lib/large/Makefile: fixed parallel execution by
6172         replacing `make` by `$(MAKE)`
6173
6174 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6175
6176         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
6177         offsets (fixes bug #923936)
6178
6179 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
6180
6181         * device/lib/small/Makefile: fixed parallel execution by
6182         replacing `make` by `$(MAKE)`
6183
6184 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6185
6186         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
6187
6188 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
6189
6190         * src/pic/gen.c (genCpl): multi-byte complements were not working.
6191         * src/regression/Makefile: Regression test was not running.
6192
6193 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6194
6195         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
6196         complement if possible
6197         * src/SDCCval.c (valComplement),
6198         * src/SDCCicode.c (operandOperation): fixed complement of literal
6199         * support/regression/tests/onebyte.c (testComplement): added
6200
6201 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
6202
6203         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
6204         return an optimized tree; actually replace actParm with the new tree
6205         * src/SDCCast.h: added some parantheses to remove side effects
6206         * support/regression/tests/bug-920866.c
6207
6208 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
6209         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
6210         Bit operands were not being handled properly in the pic14 port.
6211         (now src/regression/add.c passes again).
6212
6213 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6214
6215         * src/SDCC.y (labeled_statement): case and default no longer require
6216         a following statement (RFE #893037)
6217
6218 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6219
6220         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
6221         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
6222         disabled (fixes bug #916294)
6223         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
6224         "mov a,acc"; patch provided by Lenny Story
6225         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
6226
6227 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6228
6229         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
6230         functions
6231         * src/ds390/gen.c (genFunction, genEndFunction),
6232         * src/ds390/ralloc.c (ds390_assignRegisters),
6233         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
6234         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
6235         pushed if there are parameters passed on the stack. Also, a cleaner
6236         way to decide if r0/r1 should be pushed/popped. (Together they fix
6237         bug #918693)
6238
6239 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6240
6241         * doc/sdccman.lyx,
6242         * device/lib/mcs51/crtpagesfr.asm,
6243         * device/lib/mcs51/crtxinit.asm,
6244         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
6245         to avoid confusion with Si Lab's SFRPAGE register.
6246
6247 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6248
6249         * src/SDCCglue.c (emitMaps): allow public sfr variables
6250         * src/SDCCglue.c (initialComments): include compiler build date
6251         with compiler version and put the timestamp of the generated
6252         assembly file on a serperate line to be less confusing.
6253         * src/port.h: added genInitStartup hook
6254         * src/avr/main.c,
6255         * src/ds390/main.c,
6256         * src/hc08/main.c,
6257         * src/pic/main.c,
6258         * src/pic16/main.c,
6259         * src/xa51/main.c,
6260         * src/z80/main.c: genInitStartup initialize as NULL (default to
6261         historical behaviour)
6262         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
6263         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
6264         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
6265         library instead of hard coding it into the compiler.
6266         * support/regression/ports/mcs51-stack-auto/spec.mk,
6267         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
6268         * device/lib/mcs51/Makefile,
6269         * device/lib/small/Makefile,
6270         * device/lib/large/Makefile,
6271         * device/lib/mcs51/crtpagesfr.asm,
6272         * device/lib/mcs51/crtstart.asm,
6273         * device/lib/mcs51/crtxclear.asm,
6274         * device/lib/mcs51/crtxinit.asm,
6275         * device/lib/mcs51/crtclear.asm,
6276         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
6277         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
6278         and into user configurable files.
6279         * device/lib/clean.mk: clean mcs51 directory too
6280         * support/regression/tests/longlit.c: added static to T1 declaration
6281         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
6282         accesses in the initialization code
6283
6284 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6285
6286         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
6287         OSCTRIMVAL as noted in bug #916008
6288
6289 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6290
6291         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
6292         in loops with multiple exits (reported as incorrect registers
6293         used by Martin Helmling in Sdcc-user list)
6294
6295 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6296
6297         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
6298         made ds390 register extensions look less like error messages
6299
6300 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6301
6302         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
6303         reported by Adam Wozniak in Sdcc-user list
6304
6305 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
6306
6307         * src/SDCCast.c (decorateType): fixed with bug and promotion in
6308         arithmetic optimizations, added debug output
6309
6310 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
6311
6312         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
6313         * sdcc.spec: updated and split sdcc into 3 rpms
6314         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
6315         needed for literals of LEFT_OP and '+'
6316         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
6317         introduced RESULT_TYPE_NOPROM
6318         (geniCodeMultiply): fixed logic for decision if mul is optimized to
6319         left shift
6320         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
6321         limited promotion to int only for '*'
6322         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
6323
6324 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
6325
6326         * src/pic16/gen.c (genSkip),
6327         (genc16bit2lit), (gencjneshort): commented out
6328         (is_LitOp): new helper function, checks operand type
6329         (genCmpEq): rewritten
6330
6331 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
6332
6333         * support/regression/tests/bug-908454.c: added
6334
6335 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
6336
6337         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
6338         * src/SDCCicode.c (usualBinaryConversions): op needs int type
6339         (geniCodeCast): cosmetic, don't preserve bit storage class
6340         (geniCodeLeftShift): added promotion
6341         (geniCodeLogic): fixed regression
6342         * src/SDCCsymt.c (computeTypeOr): accept bits too
6343         (compareType): 2nd part of fix for bug #908454, needed for bitfields
6344
6345 2004-03-07  Borut Razem <borut.razem AT siol.net>
6346
6347         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
6348
6349 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
6350
6351         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
6352         version of pic16_genPackRegisters which does not check if ic is a
6353         CAST operator,
6354         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
6355         function cause string1.c regression test fails
6356
6357 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
6358
6359         * sim/ucsim/configure.in,
6360         * sim/ucsim/configure,
6361         * sim/ucsim/doc/Makefile.in: use docdir
6362         * src/SDCC.y: fixed sbit atrributes
6363         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
6364         * src/SDCCast.c (decorateType): |^& need special promotion handling
6365         * src/SDCCast.h,
6366         * src/SDCCsymt.h: moved definition of RESULT_TYPE
6367         * src/SDCCsymt.h (computeType),
6368         * src/SDCCicode.c: computeType() needs op
6369         * src/SDCCsymt.c (checkTypeSanity),
6370         * doc/sddman.lyx: "plain" bitfields are unsigned
6371         * src/SDCCsymt.c (computeTypeOr): added
6372         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
6373         |^& ops
6374         * src/SDCCval.c (val*): computeType() needs op
6375         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
6376         * support/regression/tests/onebyte.c: added tests for |^&
6377
6378 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
6379
6380         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
6381         for writing icode into asm output.
6382
6383 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
6384
6385         * src/pic16/device.c: added some debug lines enabled
6386         with macro DEBUG_CHECK,
6387         * src/pic16/genarith.c: more debug in genPlus,
6388         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
6389         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
6390         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
6391         * (aopForSym): onStack symbols are re-placed in data memspace,
6392         and onStack flag is cleared,
6393         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
6394         copy temporary pcodeop,
6395         * (genPcall): added warning for not updating PCLATU,
6396         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
6397         always true for pic16 port,
6398         * (genMultOneWord): NEW, supports integer multiplication,
6399         * (genMult): modified to call genMultOneWord,
6400         * (ifxForOp): added warning when return NULL,
6401         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
6402         flag is set before call to operandFromSymbol for implicit
6403         added structures,
6404         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
6405         options.intlong_rent are set by default,
6406         * (_hasNativeMulFor): modified to allow port generation of integer
6407         multiplication,
6408         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
6409         set regtype to REG_SFR for all registers, restricting seting the
6410         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
6411
6412 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6413
6414         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
6415         more than 500 times in the regression tests
6416
6417 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6418
6419         * support/Util/SDCCerr.h,
6420         * support/Util/SDCCerr.c,
6421         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6422         enumerator_list),
6423         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
6424         for symbol conflicts.
6425         * support/valdiags/tests/enum.c,
6426         * support/valdiags/tests/tentdecl.c,
6427         * support/valdiags/tests/struct.c: expect possible error messages
6428         referring to original symbol definitions.
6429         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
6430         * src/SDCCsymt.h,
6431         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
6432
6433 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
6434
6435         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
6436
6437 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
6438
6439         * src/pic16/ralloc.c (newReg): fixed bug #908929
6440
6441 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6442
6443         * src/ds390/gen.c: added missing #include "main.h"
6444
6445 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
6446
6447         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
6448         checking if symbol is already in set,
6449         * src/pic16/device.h: prototype for checkAddSym,
6450         * src/pic16/gen.c: (_G): added entry interruptvector,
6451         * (assignResultValue): removed some commented out lines,
6452         * (genFunction): check for ISR via sym->type, absolute section for
6453         interrupt code is created via a new pBlock, the goto instruction is
6454         placed now correctly at the interrupt vector position, changed all
6455         references from ivec to _G.interruptvector,
6456         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
6457         is the interrupt is a high priority one, same for return from ISR,
6458         * src/pic16/glue.c: changed all calls of addSetHead for publics and
6459         externs to calls of checkAddSym,
6460         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
6461         pic16_pcode_verbose flag is set,
6462         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
6463         * src/pic16/pcoderegs.c: message about how many registers are saved
6464         will only be emitted if pic16_pcode_verbose flag is set,
6465
6466 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6467
6468         * src/ds390/ralloc.h,
6469         * src/ds390/ralloc.c (ds390_regWithIdx),
6470         * src/ds390/gen.c (emitcode),
6471         * src/ds390/main.h,
6472         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
6473         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6474         ds390operandCompare, getRegsRead, getRegsWritten,
6475         initializeAsmLineNode): customized instruction size calculation for
6476         ds390, started basis for some register optimizations
6477         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
6478         corresponding assembly output
6479         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
6480         missing push/pop of r0/r1. Optimized push/pops
6481
6482 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6483
6484         * src/mcs51/main.c (instructionSize): fixed ACALL size
6485         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
6486
6487 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
6488
6489         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
6490         the sorting of rlist with NULL elements
6491         * (print_idataType, print_idata): NEW to create idata sections
6492         * src/pic16/device.h: idataSymSet new variable
6493         * src/pic16/gen.c (genFunction): fixed some bugs in string
6494         comparing, improved the absolute section creation for ISRs,
6495         added FSR0L/FSR0H in registers that are saved in an ISR,
6496         * (genInline): fixed the processing of inline snippets,
6497         now they undergo no process by the peephole optimizer
6498         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
6499         are placed in idataSymSet,
6500         * (pic16emitStaticSeg): extern symbols are added in externs,
6501         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
6502         switching when aboslute variables are placed in access bank memory
6503         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
6504         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
6505         commented out with #if,
6506         * (pic16_packRegisters): reintroduce the check for CAST because some
6507         symbols are not correctly handled,
6508         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
6509         pCodeInstruction instead of pCode,
6510         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
6511         pCodeAsmDir definition,
6512         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
6513         directive, then the argument directive is emitted without the leading
6514         tab, hack for inline labels which must be in the first column,
6515         * (compareLabel,pic16_findNextInstruction),
6516         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
6517         * (insertBankSwitch): modified for the new pCodeAsmDir,
6518
6519 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6520         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
6521
6522         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
6523         instance,
6524         * (pushSide): commented out with #if,
6525         * (assignResultValue): fixed some typos in saving
6526         registers,
6527         * (genPcall): FIXED and sync'ed with genCall,
6528         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
6529         * (genNearPointerGet): fixed to handle some more cases,
6530         implementation scheme via table reads,
6531         * (genConstPointerGet): modified to access code memory correct,
6532         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
6533         and improved to handle some cases
6534         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
6535         instead of "RETLW" for init data
6536         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
6537         not IN_DIRSPACE, work around to reduce bank switching when aboslute
6538         variables are placed in access bank memory (<0x80 and >=0xf80),
6539         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
6540         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
6541         TBLWT_POSTDEC,TBLWT_PREINC
6542         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
6543         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
6544         directives
6545         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
6546         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
6547         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
6548         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
6549
6550 2004-02-29  Borut Razem <borut.razem AT siol.net>
6551
6552         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
6553         support/Util/findme.h, support/Util/system.h: enhance binary relative
6554         search for lib and include by using findProgramPath()
6555
6556 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6557
6558         * src/SDCCpeeph.h,
6559         * src/SDCCpeeph.c (pcDistance),
6560         * src/port.h,
6561         * src/mcs51/ralloc.h,
6562         * src/mcs51/ralloc.c (mcs51_regWithIdx),
6563         * src/mcs51/main.h,
6564         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
6565         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6566         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
6567         size calculation port specific, started basis for some register
6568         optimizations
6569         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
6570         missing push/pop of r0/r1. Optimized push/pops
6571         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
6572         * device/lib/_modsint.c (_modsint),
6573         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
6574         and stack version so regression tests pass
6575
6576 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
6577
6578         * src/Makefile.in (dep): include SLIBOBJS in dependency check
6579         * src/SDCCast.c (decorateType): catch another small optimization
6580         with '?' operator
6581         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
6582         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
6583         modified to finally use computeType() all over SDCC,
6584         see Feature Request #877103
6585         * src/SDCCval.h: cosmetic
6586         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
6587         valCompare(); regression tested in muldiv.c
6588         * support/regression/tests/muldiv.c (testMod): mod sign follows
6589         dividend only
6590
6591 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
6592
6593         * src/SDCCast.c (decorateType): fixed bug #902362
6594         * doc/INSTALL.txt: fixed install instructions for win32
6595
6596 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
6597
6598         * device/include/Makefile.in (install): fixed by replacing spaces
6599         by tabs
6600         * doc/README.txt,
6601         * doc/INSTALL.txt: updated for release
6602         * doc/sdccman.lyx: added warning for --xstack being buggy
6603
6604 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
6605
6606         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
6607         to eliminate build warnings.
6608         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
6609
6610 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
6611            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6612
6613         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
6614         removed -penable-stack, added comment for stack pragma, added
6615         warning for not initializing the stack/frame registers, removed
6616         comment at interrupts section
6617
6618         Stack is made permanent, there is no ability to disable stack usage.
6619         * src/pic16/device.h,
6620         * src/pic16/device.c: removed all references to USE_STACK macro,
6621         * src/pic16/device.c (pic16_dump_section): when no elements in
6622         rlist, free rlist before return,
6623         * (pic16_dump_int_registers): NEW, internal registers are a new set
6624         of general purpose registers reused by each function,
6625         * (checkAddReg): returns 1 if registers is added to set,
6626         * (pic16_groupRegistersInSection): when a registers is of type
6627         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
6628         * src/pic16/device.h: memRange and Assigned Memory are deleted,
6629         SRCASECMP macro is moved here from device.c
6630         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
6631         PO_PCLATU, PO_PRODL, PO_PRODH,
6632         * (pic16_pCodeOpType, genMinus,
6633         changed compares to "a" register, with AOP_ACC,
6634         * (pic16_genPlus): fixed some bugs and indented properly,
6635         * (pic16_addSign): changed size to size+offset in the MOVWF
6636         instruction,
6637         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
6638         multiply 8-bit operand by literal, result is 8-bit,
6639         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
6640         multiply 2 8-bit operand, result is 8-bit,
6641         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
6642         genUMult8X*_16,
6643         * src/pic16/gen.c: changed accUse to contain WREG only,
6644         * (pic16_emitcomment): renamed to pic16_emitpcomment,
6645         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
6646         true, do not use immediate addressing any more unless sym is a
6647         pointer in codespace,
6648         * (aopForRemat): do not use immediate addressing when symbol not in
6649         codespace and when symbol's address is requested,
6650         * (aopOp): for-loop in if(sym->accUse) is modified for the new
6651         accUse size (= 1),
6652         * (aopGet): added case for AOP_ACC and don't return "accumulator
6653         bug" but WREG instead,
6654         * (popGetTempReg): pushes contents of temporary register in stack,
6655         * (popReleaseTempReg): pops contents of temporary register from
6656         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
6657         * (pic16_popGet): separated case AOP_ACC to return register WREG
6658         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
6659         or PO_IMMEDIATE and initializes their instance/offset appropriately,
6660         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
6661         the use of immediate pointers to certain cases only.
6662
6663         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
6664         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
6665         * (assignResultValue, genCall, genRet): modified to use the new
6666         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
6667         genPcall is still broken,
6668         * (genFunction): added code to create 'A' type pBlocks when
6669         interrupt functions are generated, code not extensively tested yet,
6670         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
6671         * (genEndFunction): modified so ISRs pop stored registers from stack,
6672         * (genMultOneByte): cleanup,
6673         * (AccRsh): added flag andmask, to and result with appropriate mask,
6674         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
6675         * (genDataPointerGet): fixed and reenabled its use,
6676         * (genNearDataPointerGet): bugs fixed,
6677         * (genDataPointerSet): bugs fixed,
6678         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
6679         pic16_DumpSymbol, pic16_DumpOp,
6680         * src/pic16/genutils.h: function prototypes for the above functions,
6681         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
6682         pointers,
6683         * (pic16emitRegularMap): many many many improvements, but needs a
6684         major cleanup,
6685         * src/pic16/main.c: enable_stack in pic16_options is removed,
6686         * (_pic16_parseOptions): removed command line options -penable-stack,
6687         * (_process_pragma): emit stack symbol only when stack pragma is
6688         processed,
6689         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
6690         redirected to FSR0L/FSR0H pair,
6691         * (pic16_get_op, pic16_get_op2): modifications and improvements,
6692         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6693         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
6694         for immediates,
6695         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
6696         * (dumpPicOptype): NEW,
6697         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
6698         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
6699         with movff instruction,
6700         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
6701         added pic16_int_regs, some packRegsFor* functions are commented out,
6702         because produce errors,
6703         * src/pic16/NOTES: minor modifications
6704
6705 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6706
6707         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
6708         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
6709         --pack-iram.
6710         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
6711         * as/mcs51/lkaomf51.c: fixed bug #895763
6712
6713 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
6714
6715         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
6716
6717 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6718
6719         * doc/sdccman.lyx: added details about the HC08 storage classes and
6720         interrupts, fixed the register usage info for z80 & gbz80
6721
6722 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
6723
6724         * doc/sdccman.lyx: added more pic16 port documentation
6725         * device/include/pic16/: added header pic18fregs.h
6726
6727 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
6728
6729         * doc/sdccman.lyx: added Vangelis' contribution
6730
6731 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6732
6733         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
6734         extend to the next CALL or PCALL, not just to the next CALL.
6735
6736 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
6737
6738         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
6739
6740 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6741
6742         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
6743         bug #895752 and a better fix for bug #716790
6744
6745 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6746
6747         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
6748
6749 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6750
6751         * doc/sdccman.lyx: minor changes, minor changed
6752
6753 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
6754
6755         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
6756         which can't handle SDCC_NEWONEBYTEOPS,
6757         (geniCodeMultiply): removed conversion from mult to shift for pic14
6758         and pic16
6759
6760 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6761
6762         * src/hc08/gen.h,
6763         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
6764         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
6765         thus fixing bug #895406
6766
6767 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
6768
6769         * device/lib/_modsint.c,
6770         * device/lib/_modslong.c: sign follows divisor only
6771         * src/hc08/gen.c (genMultOneByte): if result size is 1,
6772         signs or signedness can be ignored
6773         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
6774         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
6775         added optimization for IFX,
6776         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
6777         arguments;
6778         reenabled optimization for IFX, which was removed on 2004-01-11
6779         * src/SDCCast.h: added return type IFX
6780         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
6781         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
6782         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
6783         SDCC_OLDONEBYTEOPS selects the old behaviour
6784         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
6785         changed again and commented promotion rule
6786         * src/SDCCval.c (valDiv): promotion no longer necessary
6787         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
6788         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
6789         rewritten
6790         * support/regression/tests/onebyte.c: added
6791
6792 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
6793
6794         * gen.c (genInline): reverted to old code for assemnling inline
6795         code because of bug reported James Chadd
6796
6797 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
6798
6799         * ralloc.h: missing declarations from previous patch,
6800         seems that patch for ralloc.h was never applied, fixed
6801
6802 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6803            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6804
6805         * pcode.c,
6806         * pcode.h,
6807         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
6808         indirect addressing. Marked FSR0 as deprecated
6809         * gen.c (pointerCode): commented out, not needed now
6810         (pic16_popGet2p): new MOVFF helper function
6811         (genGenPointerGet),
6812         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
6813         (shiftRLong): removed duplicate debugging info
6814
6815 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6816
6817         * src/ds390/gen.c (genNearPointerGet),
6818         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
6819         optimization with bits, but not bitfields.
6820         * src/ds390/ralloc.c (packRegisters),
6821         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
6822
6823 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
6824
6825         * src/SDCCcse.c (algebraicOpts): copy operands before modification
6826
6827 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6828
6829         * src/SDCCsymt.h,
6830         * src/SDCCicode.c (operandFromSymbol),
6831         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
6832         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
6833         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
6834         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
6835         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
6836         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
6837         bug #892038
6838         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
6839         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
6840         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
6841         * src/SDCCsymt.c (newSymbol),
6842         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6843         enumerator_list),
6844         * src/SDCCval.h,
6845         * src/SDCCval.c (newiList): fixed bug #885705
6846
6847 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6848
6849         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
6850         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
6851
6852 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6853
6854         * device/include/c8051f120.h,
6855         * device/include/c8051f300.h,
6856         * device/include/c8051f310.h: added/updated header files for Silicon
6857         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6858         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
6859         in new section Submitting patches
6860
6861 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6862
6863         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
6864         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6865         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6866         genGenPointerSet),
6867         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
6868         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6869         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6870         genGenPointerSet),
6871         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
6872         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6873         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6874         genGenPointerSet),
6875         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
6876         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6877         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6878         genGenPointerSet): fixed bug #892400
6879         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
6880         to eliminate build warnings.
6881         * src/SDCCast.c (processParms),
6882         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
6883         fixed bug 751859
6884         * support/valdiag/valdiag.py: added GCC to the list of defines active
6885         when compiling with gcc
6886
6887 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6888
6889         * support/Util/SDCCerr.h,
6890         * support/Util/SDCCerr.c,
6891         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
6892         with an incomplete type (fixed bug #883734)
6893         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
6894
6895 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6896
6897         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
6898
6899 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6900
6901         * src/SDCCast.c (decorateType),
6902         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
6903         function pointer implementation
6904         * support/regression/tests/funptrs.c: added tests to verify both forms
6905         of function pointers work correctly. Added tests to verify parameters
6906         are passed in the correct order.
6907
6908 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
6909
6910         * device.c (regCompare): registers are sorted by ascending
6911         address and increasing size,
6912         * main.c (_pic16_finaliseOptions): removed the declaration
6913         of compiler macro MCU. Now a macro of the format pic18fxxxx
6914         will be defined from the command line
6915
6916 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6917             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6918
6919         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
6920         PCOP_RLCF was overwritten!
6921         * gen.c (genSkip): commented out calls to pic16_emitcode,
6922         * (genCmpEQ): fixed "long" compares, only high word did get compared,
6923         * (genlshTwo),
6924         * (genRRC): added debugging info,
6925         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
6926         overwritten while shifting,
6927         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
6928         overwritten while shifting,
6929         * (AccLsh),
6930         * (AccRsh),
6931         * (shiftLLeftOrResult),
6932         * (shiftRLeftOrResult),
6933         * (shiftRLong),
6934         * (shiftLLong): Implemented with pic16_emitpcode
6935         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
6936         * (genLeftShift): Fixed bug, operand for shift by variable always
6937         was "and"ed with 0x0f,
6938         * (genLeftShiftLiteral),
6939         * (genrshTwo),
6940         * (genRightShiftLiteral): added debugging info,
6941         * (genrshFour): added comment,
6942         * (genRightShift): determined signedness from operand "left"
6943         instead of "result"
6944
6945 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6946
6947         * src/SDCCicode.c (geniCodeParms),
6948         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
6949         function pointers, fixed function pointer bugs #861242 and #861896
6950
6951 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6952
6953         * device/include/c8051f000.h,
6954         * device/include/c8051f120.h,
6955         * device/include/c8051f300.h: added header files for Silicon
6956         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6957
6958 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
6959
6960         * src/SDCCast.c (processParams): added new type flow and restructured
6961         (gatherAutoInit): added new type flow
6962         (addCast): cosmetic changes
6963         (getLeftResultType): added new type flow for array indices, patch
6964         provided by Stas, see FR #877103
6965         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
6966         array index patch by Stas
6967         * src/SDCCast.h: added prototype getResultTypeFromType()
6968         * src/SDCCval.h,
6969         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
6970         * src/pic/glue.c (pic14emitStaticSeg),
6971         * src/pic16/glue.c (pic16emitStaticSeg),
6972         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
6973         for initialization of symbols
6974         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
6975         * support/Util/SDCCerr.h:
6976         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
6977         * .version: bumped version number to 2.3.8
6978         * device/include/Makefile.in (install),
6979         * doc/Makefile (install): changed to 'rm `find ...`' construct to
6980         avoid warnings
6981
6982 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
6983
6984         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
6985         Slade Rich fixed an optimization bug
6986         * src/pic/pcodepeep.c,
6987         * src/pic/pcoderegs.c
6988         * doc/Makefile (install): added test for directory
6989
6990 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6991
6992         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
6993         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
6994         * src/pic/ralloc.c (getRegPtr, getRegGpr),
6995         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
6996         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
6997         * as/mcs51/asexpr.c (term),
6998         * as/hc08/asexpr.c (term): fixed bug #887146
6999
7000 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7001
7002         * src/z80/gen.c (genMult): handle single byte result product
7003         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
7004         DUMMY_READ_VOLATILE (fixed bug #886367)
7005
7006 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7007
7008         * support/regression/tests/libmullong.c: fixed logic, on little endian
7009         hosts we ended without a mullong_wrapper()
7010
7011 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7012
7013         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
7014         virus/worm forged address usage.
7015
7016 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7017
7018         Fixed promotion, it should be done on AST level:
7019         * src/SDCCast.c (addCast): added promotion to int
7020         (decorateType): updated call to upCast()
7021         * src/SDCCicode.c (geniCodeLeftShift): removed call to
7022         usualUnaryConversions()
7023
7024 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
7025
7026         * support/regression/tests/literalop.c (mulWrapper): Added a
7027         wrapper to remove integer overflow warnings.
7028
7029         * support/regression/tests/float_trans.c: Made work on host.
7030
7031         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
7032         location of sz80.
7033
7034         * support/regression/generate-cases.py (main): Changed from inline
7035         to a main method.
7036
7037         * doc/Makefile (install): Changed to depth first to get rid of
7038         missing directory install warning.
7039
7040         * as/Makefile (install-doc): Made work on Mac.
7041
7042 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
7043
7044         * src/SDCCast.c: added an additional type flow in decorateType() of
7045         opposite direction, see feature request #860006; it's enabled at runtime
7046         by setting the environment variable SDCC_NEWTYPEFLOW
7047         * src/SDCCast.h: changed prototype of decorateType()
7048         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
7049         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
7050         'char' to 'int' can be omitted, if both operands are 'unsigned char';
7051         see feature request #877103
7052         * src/SDCCval.c: updated call of decorateType()
7053         (valBitwise): fixed bug #882876
7054         (valMinus): added promotion
7055         (valLogicAndOr): result is unsigned
7056         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
7057         * src/SDCCsymt.c (computeType),
7058         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
7059         must not cause an unsigned operation
7060         * src/pic/glue (pic14emitRegularMap),
7061         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
7062
7063 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
7064
7065         * src/pic/pcode.c (PCodeID): commented out left over debug code
7066
7067 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7068
7069         * support/valdiag/tests/overflow.c: added shift tests
7070         * src/pic/device.c,
7071         * src/pic/gen.c,
7072         * src/pic/gen.h,
7073         * src/pic/glue.c,
7074         * src/pic/main.c,
7075         * src/pic/pcode.c,
7076         * src/pic/pcode.h,
7077         * src/pic/pcodepeep.c,
7078         * src/pic/pcoderegs.c,
7079         * src/pic/ralloc.c,
7080         * src/pic/ralloc.h: applied patch from Slade Rich;
7081         added support for multiple code pages and multiple RAM banks on the
7082         PIC 14 port. The ASM files now no longer simply assume all the
7083         code / RAM are in the same page / bank. This means the linker can
7084         safely allocate code/RAM of separate ASM files to different pages/banks.
7085         * doc/sdccman.lyx: added Slade's tips
7086         * src/mcs51/peeph.def: fixed bug #880768
7087
7088 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7089
7090         * src/hc08/ralloc.c (rematStr): fixed bug #879282
7091         * src/SDCCast.c (decorateType): fixed bug #880197
7092
7093 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
7094
7095         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
7096         getopt.h.
7097
7098         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
7099         strtof is not part of C89 and isn't included with Mac OS X.
7100
7101 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7102
7103         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
7104         shiftL2Left2Result): fixed bug #879326
7105         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
7106         (genMultOneByte): fixed bug in signed vs unsigned multiplication
7107         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
7108         address fetch for clr instruction
7109         * device/lib/hc08/_mulint.c: created optimized assembly version
7110         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
7111
7112 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
7113
7114         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
7115         proposed in FR #877103
7116
7117 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7118
7119         * src/SDCCval.c (cheapestVal): added missing checks
7120         * src/SDCCicode.c (usualBinaryConversions): fixed condition
7121         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
7122
7123 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
7124
7125         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
7126         equal operands
7127
7128 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
7129
7130         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
7131         loaded with the linker search paths (-L arguments) and the libraries
7132         to be linked with the current source (-l arguments). Changes
7133         currently will affect only the pic16 port.
7134         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
7135         include path the port specific paths and port specific libraries,
7136         * gplink command now contains the $3 argument,
7137         * src/pic16/device.h,
7138         * src/pic16/device.c,: structure PIC_device is made public and
7139         renamed to PIC16_device, the same for variable Pics which is renamed
7140         to Pics16. Updated all references to them.
7141         * src/pic16/glue.c (pic16glue): corrected bug with code
7142         initialization which bypassed the variable initializations block.
7143
7144         * device/lib/pic16/Makefile.rules: removed --penable-stack from
7145         COMPILE_FLAGS and added the --nostdinc option
7146
7147 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7148
7149         * device/include/mc68hc908jb8.h: Register defs for another member
7150         of the hc08 family. Contributed by Bjorn Bringert - thanks!
7151
7152 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
7153
7154         Documenting changes from previous commits.
7155         * configure.in (version 1.56),
7156         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
7157         when generating output files to configure the pic16 library,
7158         but now I've commented it out, since gputils aren't installed in the
7159         SF compile farm, so library won't compile
7160
7161         * device/lib/Makefile.in (version 1.56): initially I've added in
7162         target 'all' the prerequestive 'model-pic16' so it compiled the
7163         pic16 library, but now I've commented it out for the same reasons
7164         above,
7165         * added targets 'model-pic16' and 'objects-pic16' to compile the
7166         library
7167         * added target 'port-specific-objects-pic16' to handle the
7168         generated libraries and copy them into the build/ directory
7169         * added target 'clean-intermediate-pic16' to clean intermediate
7170         files into pic16 directory
7171         * in target 'installdirs' added line to create directory pic16 in
7172         the installation path
7173
7174         * device/include/Makefile.in (version 1.11): in target 'install'
7175         added lines to copy all header files to installation path,
7176         * in target 'installdirs' added line create directory for pic16
7177         headers in the installation path
7178
7179 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
7180
7181         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
7182          a function call
7183
7184 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
7185
7186         * configure,
7187         * device/lib/configure.in,
7188         * device/lib/configure: fixed for autoconf 2.57
7189
7190 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7191
7192         * src/z80/main.c (_parseOptions): fixed the portmode= command line
7193         option so that it actually works. Made it specific to the z80, since
7194         the gbz80 doesn't have these kinds of I/O ports.
7195
7196 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7197
7198         * device/include/z180.h,
7199         * device/lib/_memcpy.c,
7200         * device/lib/_memmove.c,
7201         * device/lib/_mulint.c,
7202         * device/lib/ser_ir.c,
7203         * device/lib/ser_ir_cts_rts.c,
7204         * device/lib/_strcmp.c,
7205         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
7206         * src/z80/main.c (_process_pragma): add support for pragmas bank and
7207         portmode; added deprecation warning for bank= and protmode= forms.
7208         Also, guard against buffer overflow.
7209         * src/z80/gen.c (aopGet): generate better code for sfr banked read
7210
7211 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7212
7213         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
7214         changed interrupt vector table generation to only emit declared vectors.
7215         * device/include/Makefile.in: added missing backslash
7216         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
7217
7218 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7219
7220         Mainly changes to support compilation of the device libraries
7221         * src/pic16/device.c: stack is allocated via symbol and not
7222         via literal number. The symbol is placed in the corresponding
7223         position of the data ram
7224         * (pic16_dump_section): relocatable and absolute uninitialized
7225         data are now emitted in sorted order to reduce section naming,
7226         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
7227         weren't marked as being in the access bank,
7228
7229 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7230
7231         Added portion of GNU PIC Library under the directory
7232         device/include/pic16 and device/lib/pic16. These files
7233         contain the declarations of SFRs for the PIC18Fxx2 devices.
7234         The directory is initialized via configure from toplevel.
7235
7236 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
7237
7238         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
7239         the spilllocations to be compared correctly
7240
7241 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7242
7243         * src/SDCCast.c (decorateType): fixed bug introduced today
7244
7245 2004-01-12  Borut Razem <borut.razem AT siol.net>
7246
7247         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
7248         doc/sdccman.lyx: upper case pragmas are deprecated
7249
7250 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7251
7252         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
7253         in simpler and even better code
7254
7255 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
7256
7257         * src/SDCCicode.c (operandOperation): fixed bug #874819
7258         * src/SDCCast.c (decorateType): fixed
7259         char foo (unsigned long ul) { return ul > 0; }
7260
7261 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7262
7263         * doc/sdccman.lyx: Moved and added some sections, small changes
7264         all over. Telling LaTeX to be less strict with word spacing
7265         to better keep the right margin. Changed some notes about
7266         maintainance of the ports in section 3.2.1 - is it OK like this?
7267
7268 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7269
7270         SDCC source changes:
7271         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
7272         convilong): modified to inform the pic16 port that builtin functions
7273         are external
7274
7275         PIC16 PORT specific changes:
7276         * src/pic16/device.c pic16_dump_equates() added,
7277         processor registers declared internally by the port are emitted in
7278         the translation as equates,
7279         * src/pic16/gen.c: inline code is passed unprocessed to the
7280         translation,
7281         * (pic16_popGetLit2): fnuction modified to take second operand as
7282         pCodeOp pointer and not as literal,
7283         * (popRegFromIdx): prefixed with pic16_,
7284         * (pic16_popCombine2): modified to receive already allocated pCode
7285         operands,
7286         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
7287         * (genFunction): initializes local stack frame and pushes on stack
7288         all the registers used by this function,
7289         * (genEndFunction): restores all registers from stack and restores
7290         stack frame,
7291         * src/pic16/glue.c (pic16emitRegularMap): various changes and
7292         improvements,
7293         * (pic16glue): changed the program startup sequence,
7294         * added new dbName code 'A' for functions placed in absolute section
7295         * src/pic16/main.c: added function attribute _naked,
7296         * added pragma 'code' to place a fnuction at an absolute address,
7297         * added command line arguments --debug-ralloc and --pcode-verbose,
7298         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
7299         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
7300         * (pic16_newpCodeOpLit2): modified to take the second operand as
7301         pCodeOp pointer,
7302         * (pic16_printpBlock): modified to emit each function in a separate
7303         section,
7304         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
7305         UPPER for immediate operands,
7306         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
7307         instruction,
7308         * src/pic16/peeph.def: all peepholes with movff are commented out,
7309         because there is a problem in the pcode peep optimizer,
7310         * src/pic16/ralloc.c: the register allocator can now reuse local
7311         function symbols for another function. This saves register usage.
7312         * src/pic16/ralloc.h: added flag isLocal in structure regs,
7313
7314         Added file src/pic16/NOTES with information about program writing on
7315         the current port version.
7316
7317 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7318
7319         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
7320         and peephole 252 (array access)
7321
7322 2004-01-09  Borut Razem <borut.razem AT siol.net>
7323
7324         * src/SDCCmain.c : fixed #872250: -l command line defined library
7325           files are scanned before standard library files
7326
7327 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7328
7329         * src/SDCCast.c (decorateType): fixed bug #874046
7330
7331 2004-01-09  Borut Razem <borut.razem AT siol.net>
7332
7333         * support/scripts/sdcc.nsi: remove previous installation
7334
7335 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7336
7337         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
7338         bytes for last interrupt vector (mcs51)
7339         * sdcc.spec: fixed typo
7340
7341 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7342
7343         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
7344         gen51Code): more efficient parameter receive for --model-large
7345         ("bug" #845294)
7346
7347 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7348
7349         * src/ds390/main.c,
7350         * src/z80/main.c: added missed needLinkerScript flags (more than
7351         one port structure defined in these file)
7352         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
7353         bug #795325
7354
7355 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
7356
7357         * src/SDCCmain.c: removed various references to DEFAULT_PORT
7358         * src/port.h: added flag needLinkerScript in port->linker
7359         structure to inform whether to create a .lnk file or not,
7360         * src/avr/main.c,
7361         * src/ds390/main.c,
7362         * src/hc08/main.c,
7363         * src/mcs51/main.c,
7364         * src/pic/main.c,
7365         * src/pic16/main.c,
7366         * src/xa51/main.c,
7367         * src/z80/main.c: changed appropriately to configure
7368         needLinkerScript flag
7369         * src/pic/gen.c,
7370         * src/pic16/gen.c (genAddrOf): fixed bug #863624
7371         * src/pic/glue.c: added variable udata_section_name to
7372         override default uninitialized data segment definition for
7373         devices only with SHAREBANK memory (reported from Erik Epetrich)
7374         * (pic14emitOverlay): modified to emit a commented overlay segment
7375         directive when no overlay data exist
7376         * (picglue): modified to emit uninitialized data segment
7377         according to udata_section_name
7378         * src/pic/main.c (_pic14_parseOptions): added command line
7379         options --udata-section-name=[name] to override default
7380         udata definition name
7381         * modified _linkCmd and _asmCmd to include compiler passed
7382         arguments via -W option
7383         * src/pic16/main.c: added $l in _asmCmd, changed extension for
7384         object file from '.rel' to '.o' in port->linker structure,
7385         changed size of fptr from 2 to 3 in port structure
7386
7387 2004-01-07  Borut Razem <borut.razem AT siol.net>
7388
7389         * support/scripts/sdcc.nsi: update PATH
7390         * support/scripts/sdcc.ico: craeted
7391
7392 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
7393
7394         * device/include/Makefile.in: fix install
7395         * doc/Makefile: fix install
7396
7397 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7398
7399         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
7400         in bug #860505
7401         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
7402         how the function variable allocation summary is displayed; also
7403         include information about variables allocated to the overlay
7404         segment
7405
7406 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7407
7408         * as/mcs51/lkmain.c: Help about -Y option
7409         * as/mcs51/lkarea.c: Fixed gcc warnings
7410
7411 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7412
7413         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
7414         fixed warning
7415         * support/valdiag/tests/overflow.c: added
7416         * src/SDCCast.c (decorateType),
7417         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
7418         LEFT_OP (left shift)
7419
7420 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7421
7422         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
7423         (default behaviour).
7424
7425 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7426
7427         A python script to validate compiler diagnostic messages. It can be
7428         used to verify that sdcc complains about bad c source code and
7429         gives a good location of the error.
7430         * support/valdiag/Makefile,
7431         * support/valdiag/valdiag.py,
7432         * support/valdiag/tests/*
7433
7434 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7435
7436         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
7437         * src/SDCCsymt.c (newEnumType),
7438         * src/SDCCsymt.h
7439         * support/Util/SDCCerr.c,
7440         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
7441         enum related bugs.
7442         * support/regression/tests/enum.c: added test for enum values that
7443         require at least 2 bytes of storage.
7444
7445 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7446
7447         * src/common.h: added ifndef/define/endif macros
7448         around the header file.
7449         Bug reported from Jesus Calvino-Fraga
7450
7451 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7452
7453         * sdcc.spec: updated
7454         * device/include/Makefile.in: don't install CVS directories
7455         * device/lib/Makefile.in: added removal of CVS directories after install
7456         * doc/Makefile: fixed install, added local_icons
7457         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
7458         * src/mcs51/gen.c (genRightShift): fixed bug #870788
7459         * src/ds390/gen.c (genRightShift): fixed bug #870788
7460         * src/SDCCast.c (decorateType): fixed bug #870781
7461
7462 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7463
7464         PIC16 port related changes:
7465         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
7466         added variable stackPos,
7467
7468         * gen.c: genCall, assignResultValue: added support for
7469         pushing/retrieving function parameters to/from stack,
7470         genFunction,genEndFunction: setup stack frame for the
7471         generated function,
7472         genAddrOf: will be changed according to bug 863624
7473
7474         * added files genutils.c and genutils.h which contain gen*
7475         debugged and optimised functions extracted from gen.c
7476
7477         * glue.c: added variable 'externs' which holds extern symbols,
7478         pic16emitRegularMap: is modified to properly handle relocatable
7479          symbols under the new scheme,
7480         pic16createInterruptVect: is modified
7481         pic16printPublics: is modified to emit 'global' assembler directives,
7482         added pic16_printExterns to print extern symbols,
7483         pic16glue: initializes stack/frame pointer in the beginning of
7484         the assembly output. Temporary hack, will be corrected later,
7485         because gplink yet does not support stack and SDCC does not
7486         yet support a type of crt0.o object to create the final binary.
7487
7488         * Removed many lines that contain 8051 legacy code.
7489         * The code is finally placed under a 'code' directive.
7490         * Added port specific options.
7491
7492         * _process_pragma: simplified since now we do not need *special*
7493         include file to define SFR registers. But a separate header
7494         will be needed. This will be developed later.
7495         * _pic16_parseOptions: added, parses port specific options:
7496         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
7497         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
7498         --preplace-udata-with=
7499
7500         * _pic16_setDefaultOptions: modified to initialize section names,
7501         but hack is temporarly out of order since it needs improvement.
7502         * _pic16_genAssemblerPreamble: configuration words are emitted by
7503         their address instead of their name. This part is incomplete and
7504         supports only the 18Fxx2 devices. Other devices will emit an error
7505         during assembly since they do not contain the same set of config
7506         registers
7507         * _pic16_genIVT: is modified,
7508
7509         * pcode.c: added definitions for some hardware registers that are needed
7510         for stack support
7511         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
7512         All PCI entries are updated. Now LFSR is supported.
7513         * Removed pic16_pciTRIS is mentioned by mdubuc in source
7514         * added pic16_newpCodeOpLit2 to support instructions with
7515         two literal arguments
7516         * pic16_pCode2str: corrected code that emits assembler instructions
7517         with two literal operands and those that have an access bit modifier
7518         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
7519         this fixes a bug which caused some labels to be lost, when an
7520         assembler directive was added, i.e. banksel,
7521         * pic16_FixRegisterBanking: improved logic that causes the insertion
7522         of bank switching,
7523         * InlineFunction: functions that are called once, are not any more
7524         inlined. This can be a port option in the future,
7525
7526         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
7527
7528         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
7529         hold the corresponding uninitialized symbols,
7530         * pic16_allocProcessorRegister: registers have explicit marked the
7531         accessBank field,
7532         * pic16_allocInternalRegister: registers are explicit marked as
7533         not used,
7534         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
7535         processing list, so bit registers were lost,
7536         *
7537
7538         * ralloc.h: added field 'accessBank' and original symbol operand
7539         in register definition,
7540         * removed the field isMapped from register definition,
7541
7542         ** Several functions have been removed from various sources:
7543         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
7544         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
7545         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
7546         pic16_assignRelocatableRegisters
7547
7548         ** others have been introduced:
7549         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
7550         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
7551
7552 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
7553
7554         * support/scripts/inc2h.pl: changed definition of BIT_AT
7555         to emit 'sbit at' instead of 'bit at'. This was a request.
7556
7557         PIC16 port related preliminary changes:
7558         * gen.c: prefixed function popRegFromString with
7559         pic16_ and all references to it corrected
7560         * pcode.c: all pic16_pc_* hardware registers prefixed
7561         with underscore (_),
7562         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
7563         * ralloc.c: newReg(): when register is REG_SFR then
7564         set address to rIdx,
7565         pic16_allocProcessorRegister(): marks register wasUsed=0
7566         pic16_writeUsedRegs(): added a call to assign processor
7567         registers via pic16_assignFixedRegisters
7568
7569 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7570
7571         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
7572         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
7573         variables in unused register banks.  Also the SSEG is placed
7574         wherever there is enough space for it, and IDATA can be anywhere
7575         in internal RAM.  For now compile using -Wl-Y[stack_size].
7576         The mem file is different for this option as well, since it
7577         makes no sense of talking about DSEG lenght.
7578
7579 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
7580
7581         * src/SDCClrange.c: fixed bug 869095 that caused segfault
7582         in certain cases, e.g. when ROM assignment, patch provided
7583         from Albert den Haan.
7584
7585 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
7586
7587         Many signedness and type propagation fixes:
7588         * src/SDCCicode.c: made geniCodeCast() static
7589         replaced SPEC_ by IS_ (cosmetic)
7590         (operandOperation): fixed div and mod operation
7591         (usualBinaryConversions): added support for promotion of char
7592         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
7593         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
7594         (geniCodeAdd): an array index will stay unsigned, even if promoted
7595         from char to int
7596         (geniCodeArray): ditto
7597         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
7598         * src/SDCCsymt.c (computeType): added more support for char;
7599         promotion of char is selectable by promoteCharToInt, fixed signedness
7600         for all cases
7601         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7602         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7603         * src/SDCCval (val*): replaced signedness calculation by
7604         computeType()
7605         rearranged if-branches (cosmetic)
7606         (valShift): added warning W_SHIFT_CHANGED
7607         (valCompare): fixed problem with different types
7608         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
7609         * support/regression/tests/literalop.c: added many cases
7610         * support/regression/tests/ast_constant_folding.c: changed finally to
7611         'unsigned int'
7612         * .version: new year, new version: 2.3.7
7613         * src/SDCCmain.c (main): applied patch #866468
7614         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
7615         provided by Scott Bronson
7616         * doc/sdccman.lyx: updated documentation for sdcdb
7617         updated and added chapter tips
7618
7619 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7620
7621         * src/SDCCsymt.h: missing from yesterday's commits
7622
7623 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7624
7625         * src/SDCC.y (struct_or_union_specifier),
7626         * support/Util/SDCCerr.c,
7627         * support/Util/SDCCerr.h: verify that struct & union tags are used
7628         as declared.
7629
7630 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7631
7632         * src/SDCCglobl.h: missing from yesterday's commits
7633
7634 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7635
7636         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
7637         sft_attributes, struct_declaration, parameter_declaration,
7638         type_name, start_block, declaration_list),
7639         * src/SDCC.lex (check_type): support redefinition of typedef names
7640
7641 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7642
7643         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
7644         aligned xdata arrays. Erik helped me with the if clause.
7645
7646 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7647
7648         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
7649         warning
7650
7651 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7652
7653         * src/SDCCast.h,
7654         * src/SDCCast.c (newAst_),
7655         * src/SDCCicode.h,
7656         * src/SDCCicode.c (ast2iCode, newiCode),
7657         * src/SDCCglobl.h,
7658         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
7659         expr, statement, expression_statement, selection_statement,
7660         iteration_statement, expr_opt, jump_statement): foundation for tracking
7661         sequence points
7662         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
7663         point code too)
7664
7665 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7666
7667         * support/Util/SDCCerr.c,
7668         * src/SDCCast.h,
7669         * src/SDCCast.c (createCase, createDefault, decorateType),
7670         * src/SDCClabel.c (labelUnreach),
7671         * src/SDCC.y (labeled_statement, jump_statement): More improvements
7672         to error messages.
7673         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
7674         (with thanks to Stas Sergeev)
7675         * device/include/time.h,
7676         * device/lib/time.c (CheckTime): suppress unreachable code warning
7677
7678 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7679
7680         * src/SDCCast.c (createIvalCharPtr),
7681         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
7682         bug #753752)
7683         * support/regression/tests/nullstring.c: tests for these two bugs
7684
7685 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7686
7687         * support/Util/SDCCerr.h,
7688         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
7689         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
7690         about storage class and 'at' used inside struct or union
7691         * src/SDCCBBlock.c (iCodeFromeBBlock),
7692         * src/SDCCcse.c (ifxOptimize),
7693         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
7694         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
7695         printIval, emitStaticSeg, emitOverlay),
7696         * src/SDCClabel.c (deleteIfx),
7697         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
7698         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
7699         gatherAutoInit, processParms),
7700         * support/Util/SDCCerr.h,
7701         * support/Util/SDCCerr.c (werrorfl): Support for better error location
7702         reporting for post-parse errors.
7703
7704 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7705
7706         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
7707         implicit casts via union; they don't work on big endian systems
7708         (possible fix for bug #861138)
7709
7710 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7711
7712         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
7713         * src/mcs51/main.c: fixed the fix for bug #737001
7714
7715 2003-12-15  Borut Razem <borut.razem AT siol.net>
7716
7717         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
7718
7719 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7720
7721         * support/makebin/makebin.c: put output in binary mode
7722
7723 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7724
7725         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
7726         xdata and data memory on startup. Set the environment variable
7727         SDCC_NOGENRAMCLEAR to disable this.
7728         * src/mcs51/peephole.def,
7729         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
7730         (allows non-interrupt and interrupt code to safely compete for a resource
7731         without the non-interrupt code having to disable interrupts)
7732
7733 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7734
7735         * src/SDCCicode.c (geniCodeAdd),
7736         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
7737         with valFromType if type might be a pointer and host is big endian).
7738         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
7739         types, not just integer types.
7740         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
7741         multiply defined with mismatching "at" address.
7742
7743 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7744
7745         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
7746         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
7747         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
7748         with embedded nulls (fixed bug #753752)
7749
7750 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7751
7752         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
7753         Apparently this did not see much testing (endless loop)
7754
7755 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7756
7757         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
7758
7759 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7760
7761         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
7762         gracefully handle NULL memmap pointers
7763
7764 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7765
7766         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
7767         instead of deleting the iCode when an operand is volatile
7768         * src/z80/gen.c (genDummyRead),
7769         * src/mcs51/gen.c (genDummyRead),
7770         * src/ds390/gen.c (genDummyRead),
7771         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
7772         not just IC_RIGHT
7773         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
7774         * src/SDCC.y: fixed bug #850420
7775
7776 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7777
7778         Applied z80 i/o port patch from Peter Townson and fixed some operators
7779         to better handle operands in A register.
7780         * device/include/z180.h
7781         * src/SDCC.y
7782         * src/SDCCglue.c
7783         * src/z80/gen.c
7784         * src/z80/gen.h
7785         * src/z80/main.c
7786         * src/z80/peeph-z80.def
7787         * src/z80/peeph.def
7788         * src/z80/z80.h
7789
7790 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7791
7792         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
7793
7794 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7795
7796         * device/lib/hc08/_mullong.c: Removed extra #endif
7797
7798 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7799
7800         * sim/ucsim/hc08.src/inst.cc,
7801         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
7802         carries from x to h
7803         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
7804         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
7805         * device/include/stdarg.h: fixed varargs for hc08
7806         * device/lib/Makefile.in,
7807         * device/lib/hc08/Makefile,
7808         * device/lib/hc08/_mulint.c,
7809         * device/lib/hc08/_mullong.c: fixed some endian problems
7810
7811 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7812
7813         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
7814         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
7815         * device/lib/_gptrget.c,
7816         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
7817
7818 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7819
7820         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
7821         * src/SDCCast.c (astErrors): fixed bug #846007
7822         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
7823
7824 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7825
7826         * src/SDCCast.c (decorateType): disabled a transformation I added in
7827         revision 1.188 (access to fields of a structure at an absolute address);
7828         it breaks with bitfields, extern declarations, and gcse analysis.
7829         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
7830         could be assigned through a pointer, so don't complain.
7831         * src/SDCCast.c (astErrors),
7832         * src/SDCCast.h,
7833         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
7834
7835 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
7836
7837         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
7838         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
7839         output of __config directives, since gpasm now supports them
7840         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
7841         pre-processor macro, i.e. -DMCU=p18f452
7842         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
7843         and modified to handle 'cast' icode similarly to '=' icode
7844         * src/pic16/device.h (typedef struct PIC_device): added field
7845         'extMIface' to indicate that chip has external memory interface
7846         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
7847         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
7848         18F8720
7849
7850 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7851
7852         * src/SDCC.y (pointer): fixed bug #846006
7853         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
7854         * src/SDCCast.c (decorateType): fixed bug #846009
7855         * src/ds390/peeph.def,
7856         * src/ds390/gen.c (genAnd, genOr),
7857         * src/mcs51/peeph.def,
7858         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
7859
7860 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7861
7862         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
7863         * src/SDCCdflow.c
7864         * src/SDCCcse.c
7865         * src/SDCCcse.h
7866         * src/SDCCBBlock.h
7867         * src/SDCCBBlock.c
7868
7869 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
7870
7871         fixed bug #845089
7872         * src/SDCCbitv.h,
7873         * src/SDCCbitv.c: added function to free a bitvector
7874         * src/SDCClrange.h,
7875         * src/SDCClrange.c: added function to recompute the liveranges
7876         * src/avr/ralloc.c,
7877         * src/ds390/ralloc.c,
7878         * src/hc08/ralloc.c,
7879         * src/mcs51/ralloc.c,
7880         * src/pic/ralloc.c,
7881         * src/pic16/ralloc.c,
7882         * src/xa51/ralloc.c,
7883         * src/z80/ralloc.c: recompute the liveranges after register packing
7884
7885 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
7886
7887         * src/SDCCloop.c (newInduction): fixed bug #845630
7888
7889 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7890
7891         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
7892         inadvertantly left behind from my 2003-11-12 change
7893
7894 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7895
7896         Updated headers I neglected to commit yesterday.
7897         * src/SDCClrange.h,
7898         * src/SDCCicode.h
7899
7900 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7901
7902         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
7903         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
7904         * src/SDCCopt.c (eBBlockFromiCode),
7905         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
7906         the creation of the key hash table from the sequencing so it can be used
7907         earlier (for some GCSE bug fixes still pending)
7908
7909 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7910
7911         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
7912         * support/regression/tests/addsub.c: testing genPlus shortcut
7913
7914 2003-11-15  Borut Razem <borut.razem AT siol.net>
7915
7916         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
7917
7918 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7919
7920         * src/SDCCcse.c (cseBBlock): fixed bug #527779
7921         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
7922         ordering is immaterial.
7923         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
7924
7925 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7926
7927         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
7928         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
7929         (SIGSEV) of bug #840381
7930         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
7931         unlink new file before rename if new and old filenames are the same)
7932
7933 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7934
7935         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
7936         uninitialized variables) for the mcs51. Set environment variable
7937         SDCC_GENRAMCLEAR to test.
7938         xdata initialization slightly shorter
7939
7940 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7941
7942         * src/SDCCsymt.h,
7943         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
7944         #838241 & 780691 (basicly the same bug)
7945         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
7946         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
7947
7948 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
7949
7950         * src/SDCCmain.c (linkEdit): "fix" #834252
7951
7952 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7953
7954         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
7955         * src/SDCCast.h,
7956         * src/SDCC.y: fixed bug #819403
7957
7958 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7959
7960         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
7961         the reentrant attribute.
7962         * src/hc08/gen.c (genPackBits): added missing stack readjustment
7963         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
7964         simulation
7965         * src/SDCCast.c (decorateType): fixed bug with storage class not being
7966         updated during pointer dereference; f.e. ~(((char *)1)*) was being
7967         erroneously reduced to a literal.
7968         * src/hc08/ralloc.c (packRegisters, rematStr),
7969         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
7970         some cases
7971
7972 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7973
7974         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
7975         * doc/sdccman.lyx: changed from 'article' to 'book'
7976         * doc/Makefile: readded test_suite_spec and cdbfileformat
7977
7978 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
7979
7980         * device/include/stdlib.h: include malloc.h to comply with ANSI
7981         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
7982
7983 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7984
7985         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
7986         * doc/clean.mk: also remove *.out files
7987         * doc/sdccman.lyx: some additions, larger top/bottom margins
7988
7989 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7990
7991         * src/SDCC.y: fixed bug #837365
7992         * support/regression/tests/bitopcse.c
7993         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
7994         a symbol (might be valop instead)
7995         * device/lib/Makefile.in: added errno.c to HC08SOURCES
7996         * device/lib/clean.mk: added hc08 to the cleaning list
7997
7998 2003-11-04  Borut Razem <borut.razem AT siol.net>
7999
8000         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
8001           made 2003-11-04
8002         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8003           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
8004           malloc is declared in standard stdlib.h
8005
8006 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8007
8008         * device/lib/hc08/Makefile: need to clean .rel not .o files
8009         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
8010
8011 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8012
8013         * src/port.h,
8014         * src/hc08/main.c,
8015         * src/mcs51/main.c,
8016         * src/ds390/main.c,
8017         * src/z80/main.c,
8018         * src/avr/main.c,
8019         * src/pic/main.c,
8020         * src/pic16/main.c,
8021         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
8022         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
8023         tests (which uses the port's oclsExpense function)
8024         * src/SDCC.y,
8025         * src/SDCCast.c,
8026         * src/SDCCicode.c,
8027         * src/hc08/gen.c,
8028         * src/ds390/gen.c,
8029         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
8030
8031 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8032
8033         * src/SDCCcse.c (ifxOptimize),
8034         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
8035         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
8036         deleting the IFX iCode.
8037         * src/hc08/ralloc.c: reduced unneeded slocs
8038         * src/hc08/gen.c: fixed bug in asmopToBoolean
8039
8040 2003-11-04  Borut Razem <borut.razem AT siol.net>
8041
8042         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
8043           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8044           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
8045           transferred to configure
8046
8047 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
8048
8049         Use headers defined in the C[++] standards:
8050         * sim/ucsim/gui.src/serio.src/fileio.cc
8051         * sim/ucsim/gui.src/serio.src/frontend.cc
8052         * sim/ucsim/gui.src/serio.src/main.cc
8053         * sim/ucsim/gui.src/serio.src/posix_signal.cc
8054         * support/Util/NewAlloc.c
8055         * as/hc08/lklibr.c
8056         * as/mcs51/lklibr.c
8057         * as/z80/aslist.c
8058         * as/z80/assym.c
8059
8060 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8061
8062         * Added MSVC projects for hc08 assembler and linker:
8063         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
8064         /as/hc08/link_hc08.dsp
8065
8066 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
8067
8068         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
8069
8070 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
8071
8072         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
8073
8074 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8075
8076         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
8077
8078 2003-10-31  Borut Razem <borut.razem AT siol.net>
8079
8080         * support/cpp2/cpplib.h,
8081           support/cpp2/cpplib.c,
8082           support/cpp2/cpplex.c,
8083           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
8084           to switch _asm block preprocessing on / off. Default is
8085           #pragma preproc_asm +
8086
8087 2003-10-31  Borut Razem <borut.razem AT siol.net>
8088
8089         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
8090           when outputting comment blocks (when executed with -C option) and
8091           _asm (SDCPP specific) blocks
8092
8093 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8094
8095         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
8096
8097 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
8098
8099         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
8100
8101 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
8102
8103         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
8104         * src/SDCCast.c (decorateType): fixed bug #832664
8105
8106 2003-10-31  Borut Razem <borut.razem AT siol.net>
8107
8108         * support\cpp2\cpplex.c: fixed for SDCPP:
8109           comments(when executed with -C option) and _asm blocks
8110           were included even if they where in skipped #if block.
8111           Applied solution from GCC cpp 3.3.2
8112
8113 2003-10-31  Borut Razem <borut.razem AT siol.net>
8114
8115         * src/SDCC.lex: sdcc now understands both formats:
8116           '# <line_number> <file_name>' and
8117           '#line <line_number> <file_name>'
8118         * support/cpp2/cppmain.c: sdcpp now generates the standard
8119           '# <line_number> <file_name>' instead of former
8120           '#line <line_number> <file_name>'
8121
8122 2003-10-30  Borut Razem <borut.razem AT siol.net>
8123
8124         * support/cpp2/cpphash.h,
8125         * support/cpp2/cpplib.h
8126         * support/cpp2/cpplex.c,
8127         * support/cpp2/cppmain.c,
8128         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
8129
8130 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8131
8132         Fixed a number of problems revealed by bug #827883.
8133         * src/SDCCloop.c (loopInvariants): Spill location of the
8134         result operand should be recomputed if extracted from
8135         a loop. Also, don't extract assignments of an iTemp
8136         from a literal.
8137         * src/SDCCast.c (isConformingBody): loop reversal should
8138         not occur if the control variable is involved with a
8139         relational operator.
8140
8141 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
8142
8143         * .version: bumped to 2.3.6 to reflect the big improvements
8144         made by Erik and Klaus. Thanks!
8145
8146 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
8147
8148         Replaced the livrange code.
8149         * src/SDCClrange.c: added new LR code
8150         * src/SDCCloop.c,
8151         * src/SDCCBBlock.h: removed remainig parts from old LR code
8152         * src/ds390/ralloc.c,
8153         * src/ds390/gen.c: minor fixes to make it work with new code
8154
8155 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8156
8157         * as/hc08/asm.h,
8158         * as/hc08/lkrloc.c,
8159         * src/hc08/gen.c,
8160         * src/hc08/ralloc.c: Fix various warnings related to the hc08
8161         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
8162         (tweaked fix for bug #818696)
8163
8164 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8165
8166         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
8167
8168 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8169
8170         * src/SDCCmain.c,
8171         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
8172         * src/mcs51/gen.c (gencjneshort),
8173         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
8174         more efficient (per Scott Bronson's suggestion)
8175
8176 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8177
8178         Extended the semantics of the critical keyword to include
8179         individual statements. See RFE #827755 and #799831
8180         * src/SDCC.y
8181         * src/SDCCicode.c
8182         * src/SDCCopt.c
8183         * src/SDCCast.c
8184         * support/Util/SDCCerr.c
8185         * support/Util/SDCCerr.h
8186         * src/mcs51/gen.c
8187         * src/ds390/gen.c
8188         * src/hc08/gen.c
8189
8190 2003-10-19  Borut Razem <borut.razem AT siol.net>
8191
8192         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
8193
8194 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8195
8196         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
8197         Fixed bug #818696
8198         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
8199         and predecrement operand is displayed
8200
8201 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8202
8203         * src/SDCCval.c (valMinus): fixed bug #826041
8204
8205 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8206
8207         Some hc08 related updates that I missed earlier
8208         * sim/ucsim/stypes.h
8209         * support/regression/ports/hc08/spec.mk
8210
8211 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8212
8213         New target "hc08" for the Motorola 68hc08 family of micros
8214
8215         * configure
8216         * configure.in
8217         * Makefile
8218         * src/hc08/*
8219         * src/SDCCmain.c
8220         * src/port.h
8221         * sim/ucsim/hc08.src/*
8222         * sim/ucsim/configure.in
8223         * src/ucsim/configure
8224         * sim/ucsim/packages_in.mk
8225         * as/hc08/*
8226         * as/Makefile
8227         * device/include/mc68hc908qy.h
8228         * device/lib/hc08/*
8229         * device/lib/Makefile.in
8230         * support/regression/ports/hc08/*
8231         * support/regression/Makefile
8232
8233 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8234
8235         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
8236         regression test
8237         * src/ds390/gen.c (genCast): fixed bug #821957
8238
8239 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8240
8241         * device/lib/logf.c: "fixed" overlay bug
8242         * support/regression/ports/host/spec.mk: added m library
8243         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
8244         * support/regression/tests/float_trans: added (for Eric)
8245
8246 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
8247
8248         * src/mcs51/gen.c (genCpl): fixed bug
8249         http://sf.net/mailarchive/message.php?msg_id=6263915
8250
8251 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
8252
8253         * src/SDCCast.c (decorateType): added extended constant folding
8254         * src/SDCCsymt.c (computeType): cleanup
8255         * src/SDCCval.c (valShift): minor optimization
8256         * support/regression/tests/ast_constant_folding.c: added
8257
8258 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8259
8260         * src/SDCCmain.c: removed some unintended changes
8261
8262 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8263
8264         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
8265         * src/z80/gen.c: fixed part of bug #817589
8266         * src/SDCCsymt.c (checkFunction): fixed bug #817895
8267
8268 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
8269
8270         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
8271         * src/SDCCcflow.c
8272         * src/SDCCcse.c
8273         * src/SDCCdflow.c
8274         * src/SDCClabel.c
8275         * src/SDCClrange.c
8276         * src/SDCCmem.c
8277         * src/SDCCopt.c
8278         * src/SDCCpeeph.c
8279         * src/SDCCset.c
8280         * src/avr/ralloc.c
8281         * src/ds390/ralloc.c
8282         * src/izt/ralloc.c
8283         * src/mcs51/ralloc.c
8284         * src/pic/ralloc.c
8285         * src/pic16/ralloc.c
8286         * src/xa51/ralloc.c
8287         * src/z80/ralloc.c
8288         * src/z80/gen.c: removed unused label "release:"
8289
8290 2003-10-06  Borut Razem <borut.razem AT siol.net>
8291
8292         * src/SDCC.lex: removed definition of unused variables
8293           save_optimize and save_options
8294
8295 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
8296
8297         * clean.mk: removed '=' in "-maxdepth=1"
8298         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
8299         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
8300
8301 2003-10-06  Borut Razem <borut.razem AT siol.net>
8302
8303         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
8304           my_unput() replaced by unput()
8305
8306 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
8307
8308         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
8309         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
8310         type-punned pointer will break strict-aliasing rules"
8311         Old LR behaviour is again default; Klaus' LR can be choosen by
8312         defining the environment variable LRKLAUS
8313         * src/SDCCBBlock.h
8314         * src/SDCCloop.c
8315         * src/SDCClrange.c
8316         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
8317         * clean.mk: fixed removal of files in bin/CVS/
8318         * device/lib/clean.mk: fixed removal of directories small and large
8319         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
8320         * src/SDCCicode.c,
8321         * src/SDCCval.c: removed superflous test for pedantic
8322
8323 2003-10-05  Borut Razem <borut.razem AT siol.net>
8324
8325         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
8326           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
8327           message "unmatched #pragma SAVE and #pragma RESTORE"
8328
8329 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8330
8331         * doc/sdccman.lyx: various additions and updates (interrupts, inline
8332           assembly, critical functions, atomic, nojtbound)
8333
8334 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
8335
8336         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
8337         * src/SDCCBBlock.h
8338         * src/SDCCloop.c
8339         * src/SDCCloop.h
8340         * src/SDCClrange.c
8341
8342 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8343
8344         * src/z80/gen.h,
8345         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8346         * src/mcs51/gen.h
8347         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8348         * src/ds390/gen.h
8349         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8350         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
8351         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
8352
8353 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8354
8355         * src/z80/gen.c (genRet): fixed bug #524753
8356         * src/z80/gen.c (genCast): fixed internal error on cast from
8357         pointer to long
8358         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
8359         fix for bug #477835 to the z80
8360         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
8361         for tracking iCodes in the peephole optimizer for z80
8362
8363 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8364
8365         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
8366         the other part of bug #814548
8367         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
8368
8369 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
8370
8371         * src/SDCCcse.c: fixed part of bug #814548
8372
8373 2003-09-28  Borut Razem <borut.razem AT siol.net>
8374
8375         * src/asm.c: rewrite of printILine() to use temporary file instead
8376           a pipe
8377         * src/xa51/main.c: commented out declaration of int rewinds
8378
8379 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8380
8381         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
8382
8383 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8384
8385         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
8386         * src/asm.c (printILine): Fixed bug #811015
8387
8388 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8389
8390         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
8391         freeing.
8392
8393 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8394
8395         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
8396         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
8397         to correctly handle general case of AOP_PAIRPTR
8398         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
8399
8400 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8401
8402         * src/mcs51/ralloc.c (fillGaps),
8403         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
8404         register positioning bug)
8405
8406 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
8407
8408         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
8409
8410 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8411
8412         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
8413         genCodePointerGet, genGenPointerGet, genFarPointerSet,
8414         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
8415         (ralloc doesn't intentionally do this now, but perhaps later)
8416         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
8417         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
8418         register positioning bugs (Fixed bug #762602 and #795325)
8419         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
8420         (Fixed bug #808779)
8421         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
8422         lines that --i-code-in-asm generates
8423
8424 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8425
8426         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
8427         trying to fclose a FILE* that was already closed.
8428
8429 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8430
8431         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
8432         of const struct should be treated as if const themselves)
8433
8434 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
8435
8436         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
8437
8438 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8439
8440         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
8441         Unix (/n) and DOS (/r/n) line terminations.
8442
8443 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8444
8445         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
8446         bug #613775
8447
8448 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8449
8450         * src/mcs51/gen.c (genFunction, genEndFunction),
8451         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
8452         and restore of EA so that stack offsets to parameters are
8453         correct when using both critical and reentrant/stack-auto.
8454         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
8455         size (can be triggered in error if sloc is shared between
8456         different sized objects)
8457         * device/include/float.h: fixed macros to explicitly use
8458         unsigned long where needed
8459
8460 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
8461
8462         Feature req. 799831: added code to allow nesting of critical functions
8463         * src/mcs51/gen.c (genFunction, genEndFunction)
8464         * src/ds390/gen.c (genFunction, genEndFunction)
8465
8466 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8467
8468         * src/SDCCsymt.c (sclsFromPtr),
8469         * src/SDCCsymt.h,
8470         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
8471         support for standard C idiom of memory mapped variables; for
8472         example, *((xdata int*)0x1234) = 1 is now internally equivalent
8473         to xdata int at 0x1234 tempvar = 1.
8474         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
8475         provided by Akiya ISHIDA
8476
8477 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
8478
8479         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
8480         * src/SDCCval.c (constVal): added reduction from int to char
8481         * src/SDCCval.c (valMult, valDiv): fixed sign handling
8482         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
8483         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
8484         to ignore the sign
8485         * support/regression/tests/shifts.c: fixed
8486
8487 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8488
8489         * src/z80/gen.c (genXor): Fixed bug #805445
8490
8491 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8492
8493         Fixed bug #621531 (const & volatile confusion in the type chain).
8494         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
8495         refer to the const or volatile state of the pointer itself.
8496
8497         * src/SDCCast.c
8498         * src/SDCCglue.c
8499         * src/SDCCicode.c
8500         * src/SDCCsymt.c
8501         * src/SDCCval.c
8502         * src/SDCC.y
8503         * src/SDCCsymt.h
8504         * src/pic/gen.c
8505         * src/pic/ralloc.c
8506         * src/pic16/gen.c
8507         * src/pic16/ralloc.c
8508         * support/regression/tests/const.c
8509
8510 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8511
8512         When checking for duplicated modules, use absolute paths
8513         instead of relative paths.  Files changed:
8514
8515         * as/mcs51/lklib.c
8516         * link/z80/lklib.c
8517
8518 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8519
8520         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
8521
8522 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8523
8524         * device/include/string.h: added size_t typedef, changed
8525         prototypes to use size_t, eliminated separate reentrant and
8526         non-reentrant declarations, added _memmove declaration
8527         * device/lib/_memcpy.c: changed to use size_t instead of int,
8528         changed /4 to >>2 to avoid division library call
8529         * device/lib/_memcmp.c,
8530         * device/lib/_memset.c,
8531         * device/lib/_strncat.c,
8532         * device/lib/_strncpy.c,
8533         * device/lib/_strncmp.c: changed to use size_t instead of int
8534         * device/lib/_memmove.c: new file (fixed bug #772294)
8535         * device/lib/Makefile.in: added _memmove.c
8536         * device/lib/z80/asm_strings.s: fixed bug #772290
8537         * support/regression/tests/bitfields.c: attempt to fix host assertion
8538         failure on amd64-unknown-linux2.2
8539
8540 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8541
8542         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
8543         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
8544         * as/z80/asmain.c (main): fixed bug #801766
8545
8546 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
8547
8548         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
8549         compilers
8550
8551 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8552
8553         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
8554         reported in bug #800609
8555
8556 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
8557
8558         * Top header beautifications in src/pic16 directory:
8559           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
8560           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
8561           pcoderegs.h, ralloc.c, ralloc.h
8562         * main.c: added top header and GPL license notice
8563         * pcode.c: fixed the if-conditional warning
8564
8565 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
8566
8567         * device/lib/_mullong.c: replaced int by short for gcc
8568
8569 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8570
8571         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
8572         and JUMPTABLE iCodes properly now (worked by accident before)
8573         * src/mcs51/gen.c (leftRightUseAcc),
8574         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
8575         iCode properly now. Use getSize instead of nRegs since a & b
8576         aren't part of the nRegs tally.
8577
8578 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
8579
8580         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
8581         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
8582           before instructions that use the _STATUS register
8583
8584 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
8585
8586         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
8587         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
8588         fetching of the pointer
8589         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
8590         copied from genNearPointerSet()
8591         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
8592         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
8593         If they pop r0/r1 they must be called in the opposite order than aopOp().
8594         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
8595         (resp. --stack-auto), prepared for --xstack
8596
8597 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8598
8599         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
8600
8601 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8602
8603         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
8604         these ports have their own __sdcc_external_start()
8605
8606 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
8607
8608         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8609         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
8610         type for bits was changed. It resulted in bit variables becoming
8611         global, which is not permitted in PIC 14 assembly output.
8612
8613 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8614
8615         * doc/sdccman.lyx: various additions and updates. Rearranged sections
8616
8617 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8618
8619         Z80 and MCS51 linkers complaint if a public symbol is defined
8620         in more than one library module:
8621
8622         * as/mcs51/lklib.c
8623         * link/z80/lklib.c
8624         * as/mcs51/Makefile.in
8625
8626 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8627
8628         A few small changes that speed up the peephole optimizer.
8629
8630         * src/SDCCpeeph.c
8631
8632 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8633
8634         Try to make the peephole optimizer smarter by maintaining
8635         an association between the assembly source code and the
8636         iCodes that originated them. Put this information to use
8637         with a new peephole rule condition "notVolatile" so that
8638         the rules can be aggressive yet still safe.
8639
8640         * src/SDCCpeeph.c
8641         * src/SDCCpeeph.h
8642         * src/mcs51/gen.c
8643         * src/mcs51/peeph.def
8644
8645 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8646
8647         Fixed bug #741761
8648
8649         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
8650         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
8651         if the left or right operand symbols have the accuse flag set.
8652
8653 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8654
8655         Changed the type of the result of the ! (NOT) operator to char;
8656         previously it returned the same type as the source. This allows
8657         us to eliminate all the genFloatNot functions (all of its target
8658         implementations were very buggy) since !float can use the same
8659         code as !long now.
8660
8661         * src/SDCCicode.c (ast2iCode): ! returns char
8662         * src/mcs51/gen.c (genNot, genNotFloat),
8663         * src/ds390/gen.c (genNot, genNotFloat),
8664         * src/z80/gen.c (genNot, genNotFloat),
8665         * src/pic/gen.c (genNot, genNotFloat),
8666         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
8667
8668 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
8669
8670         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8671         1. Interrupt would not compile properly. Ensure PCLATH register is saved
8672            during interrupts. Ensure WSAVE is located at a shared bank address.
8673         2. Fixed page selection in some places
8674         3. Fixed BTFSS/C to where necessary use registers directly and not simply
8675            the registers name strings.
8676         4. Fixed "signed / unsigned compare" compiler warnings.
8677         5. The PIC port manages its own allocation of the general purpose
8678            registers, but makes no attempt to reuse them. As a result when
8679            compiling it soon runs out of general purpose registers. Some
8680            additional code was added to the files pcode.c and device.c to walk
8681            through the function call tree and rename the registers so that they
8682            get reused.
8683
8684         * src/pic/device.c
8685         * src/pic/gen.c
8686         * src/pic/glue.c
8687         * src/pic/pcode.c
8688         * src/pic/pcode.h
8689         * src/pic/ralloc.c
8690         * src/pic/ralloc.h
8691         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
8692         genPlus() & genMinus() when the result is the same as left or right
8693
8694 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8695
8696         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
8697
8698 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8699
8700         Made bitfield a distinct type from bit so that bitfields
8701         convert as per ANSI C and bits retain their traditional
8702         boolean style behaviour. Implemented bitfield support in
8703         the z80 port.
8704
8705         * src/SDCCsymt.h,
8706         * src/SDCCsymt.c,
8707         * src/SDCCast.c,
8708         * src/cdbFile.c,
8709         * src/mcs51/gen.c,
8710         * src/ds390/gen.c: bit v bitfield split
8711         * src/z80/gen.c: New support for bitfields
8712         * support/regression/tests/bitfields.c: reenabled z80,
8713         added more tests
8714
8715 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8716
8717         Rules 246.x, 247.x relate to bitfields, the others speed up
8718         access to xdata mapped I/O devices.
8719
8720         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
8721
8722 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8723
8724         Cleaned up genPackBits and genUnpackBits and added two helper
8725         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
8726         for literal assignments in genPackBits (thanks to Frieder for
8727         reminding me).
8728
8729         * src/mcs51/gen.c
8730         * src/ds390/gen.c
8731
8732 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8733
8734         Fixed bug #748310 (pointer to function type mishandled when the
8735         function name is omitted). Also fixed a SIGSEGV when a function
8736         attribute (reentrant, etc) is used on a non-function or on a
8737         function but misplaced before the parameter list.
8738
8739         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
8740         bug #748310
8741         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
8742         * support/Util/SDCCerr.h,
8743         * support/Util/SDCCerr.c: Added func attr misuse error msg
8744
8745 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8746
8747         Fixed bug #787649 by anonymous
8748         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
8749         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
8750
8751 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8752
8753         Fixed numerous bitfield problems.
8754
8755         * src/SDCC.y: More bitfield related error checking
8756         * src/SDCCsymt.h,
8757         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
8758         * support/Util/SDCCerr.h,
8759         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
8760         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8761         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8762         * support/regression/tests/bitfields.c: tests added
8763
8764 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8765
8766         Made the constant following the "interrupt" keyword optional. If
8767         omitted, the function will not automatically be given an entry
8768         in the interrupt vector table (similar to #pragma NOIV, but
8769         less syntacticly kludgy). The interrupt number is also now
8770         range checked. Also fixed a bug in the high order bit example
8771         in the manual.
8772
8773         * src/SDCC.y
8774         * src/SDCCmem.c
8775         * src/SDCCglue.c
8776         * src/SDCCsymt.h
8777         * support/Util/SDCCerr.c
8778         * support/Util/SDCCerr.h
8779         * doc/sdccman.lyx
8780
8781 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8782
8783         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
8784         * src/SDCCicode.c (operandOperation): rewritten some ops
8785         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
8786         * src/SDCCsymt.c (computeType): literals are handled the same way as any
8787         other type
8788         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
8789         be re-activated by defining REDUCE_LITERALS)
8790         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
8791         unsigned, but are signed by default
8792         * src/SDCCval.c (constVal): rearranged
8793         * src/SDCCval.c (valMod): preliminary fix
8794         * src/SDCCval.c (valCastLiteral): use TYPE_* types
8795         * support/regression/literalop.c: added, work in progress
8796
8797 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8798
8799         Generate warnings for useless declarations like "char data;"
8800         that don't do what new users expect.
8801
8802         * src/SDCC.y
8803         * support/Util/SDCCerr.h
8804         * support/Util/SDCCerr.c
8805
8806 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
8807
8808         * src/SDCCval.c (valMult): fix overflow detection of negative int
8809
8810 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8811
8812         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
8813
8814         Changes to support big endian targets:
8815
8816         * src/ports.h
8817         * src/SDCCglue.c
8818         * src/avr/main.c
8819         * src/ds390/main.c
8820         * src/izt/i186.c
8821         * src/mcs51/main.c
8822         * src/pic/main.c
8823         * src/pic16/main.c
8824         * src/xa51/main.c
8825         * src/z80/main.c
8826
8827 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
8828
8829         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
8830         * device/lib/time.c: fixed warning "integer overflow in expression"
8831
8832 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
8833
8834         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
8835         * src/SDCCval.c (constVal): changed default to signed; hex and octal
8836         constants are unsigned; added recognition of "u" flag for unsigned
8837         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
8838         * src/SDCCval.c (valDiv, valMod): fixed signdness
8839         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
8840         signedness of modulo, left and right shift
8841         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
8842         * support/Util/SDCCerr.h: added warning W_INT_OVL
8843         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
8844         * src/SDCCast.c (ast_print): improved output of constants
8845
8846 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8847
8848         Fixed some warnings when building with MSVC:
8849
8850         * as\mcs51\asdata.c
8851         * as\z80\asdata.c
8852         * as\mcs51\asm.h
8853         * as\z80\asm.h
8854         * link\z80\aslink.h
8855         * link\z80\lkdata.c
8856         * link\z80\lkeval.c
8857         * link\z80\lkgb.c
8858         * link\z80\lkihx.c
8859         * link\z80\lks19.c
8860         * link\z80\lksym.c
8861         * support\cpp2\cpplib.c
8862         * src\ds390\gen.c
8863         * src\mcs51\gen.c
8864
8865 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
8866
8867         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
8868
8869 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8870
8871         * support\librarian\clean.mk: Do not remove Makefile.
8872         * support\librarian\Makefile: added.
8873
8874 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8875
8876         Added librarian to MSVC build:
8877         * all.dsp
8878         * sdcc.dsw
8879         * support\librarian\librarian.dsp
8880
8881         'configure' not needed for librarian, removed:
8882         * support\librarian\configure
8883         * support\librarian\configure.in
8884         * support\librarian\config_in.h
8885         * support\librarian\Makefile.in
8886
8887         Hopefully these ones built the librarian and the rest of sdcc properly:
8888         * Makefile
8889         * Makefile.common.in
8890
8891         Messed up 'configure', so revert to previous version:
8892         * configure
8893         * configure.in
8894
8895 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
8896
8897         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
8898         there, while the mantissa of a double is "only" 53 bits wide.
8899
8900 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8901
8902         Adding sdcclib to the build.  MSVC project coming soon.
8903         Files added/changed:
8904
8905         * support\librarian\clean.mk
8906         * support\librarian\configure
8907         * support\librarian\configure.in
8908         * support\librarian\config_in.h
8909         * support\librarian\Makefile.bcc
8910         * support\librarian\Makefile.in
8911         * support\librarian\sdcclib.c
8912         * Makefile.bcc
8913         * Makefile
8914         * Makefile.common.in
8915         * configure
8916         * configure.in
8917
8918 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8919
8920         Linker now complaints if linked modules have conflicting options, for
8921         example, one compiled using --model-large and another one compiled with
8922         --model-small.  The following files were modified:
8923
8924         * as\mcs51\asdata.c
8925         * as\mcs51\aslink.h
8926         * as\mcs51\asm.h
8927         * as\mcs51\asmain.c
8928         * as\mcs51\asout.c
8929         * as\mcs51\i51pst.c
8930         * as\mcs51\lkdata.c
8931         * as\mcs51\lklibr.c
8932         * as\mcs51\lkmain.c
8933         * as\z80\asdata.c
8934         * as\z80\asm.h
8935         * as\z80\asmain.c
8936         * as\z80\asout.c
8937         * as\z80\z80pst.c
8938         * link\z80\aslink.h
8939         * link\z80\lkdata.c
8940         * link\z80\lklibr.c
8941         * link\z80\lkmain.c
8942         * src\SDCCglue.c
8943
8944 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8945
8946         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
8947         as/mcs51/lklibr.c: Generate a warning when a library is not found.
8948
8949 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
8950
8951         * src/z80/mappings.i: fix _mul[us][int,long] entries
8952
8953 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8954
8955         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
8956
8957 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8958
8959         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
8960         * support/regression/tests/bitopcse.c: added
8961         fixed warning:
8962         * src/avr/gen.c:
8963         * src/pic/gen.c:
8964         * src/pic16/gen.c:
8965         * src/z80/gen.c:
8966         * src/xa51/gen.c:
8967
8968 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8969
8970         added support for new library format to z80, gbz80 linkers:
8971         *link/z80/aslink.h
8972         *link/z80/lklex.c
8973         *link/z80/lklib.c
8974         *link/z80/lklist.c
8975
8976 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8977
8978         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
8979         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
8980
8981 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
8982
8983         added DUMMY_READ_VOLATILE:
8984         * src/SDCC.y:
8985         * src/avr/gen.c:
8986         * src/xa51/gen.c:
8987         * src/z80/gen.c:
8988         * src/pic/gen.c:
8989         * src/pic16/gen.c:
8990         * src/mcs51/gen.c:
8991         * src/ds390/gen.c:
8992         * src/SDCCcse.c (algebraicOpts): many improvements
8993         * src/SDCCcse.h: removed algebraicOpts()
8994         * src/SDCCicode.c (picDummyRead): added
8995
8996 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8997
8998         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
8999         "Insufficient space in data memory".
9000
9001 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9002
9003         * src/mcs51/gen.c: fixed bug #771358
9004         * src/z80/gen.c: fixed bug #759087
9005
9006 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
9007
9008         * src/pic16/glue.c: minor cleanup by Vangelis
9009
9010 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9011
9012         * device/include/regc515c.h: fixed #758477
9013         * device/lib/_gptrget.c: saving some cycles in generic pointer get
9014         * device/lib/_gptrput.c: saved a few bytes
9015         * my tab spacing is 8, yours too?)
9016         * device/lib/_ser.c: process RX bytes earlier than TX bytes
9017         * device/lib/serial.c: process RX bytes earlier than TX bytes
9018         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
9019
9020 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9021
9022         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
9023
9024 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9025
9026     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
9027
9028 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
9029
9030         * device/lib/Makefile.in: bad fix, reverted to 1.43
9031
9032 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
9033
9034         * device/lib/Makefile.in: added missing z80 object files
9035
9036 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
9037
9038         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
9039         pic16 progress by Vangelis:
9040         * src/SDCCglobl.h:
9041         * src/SDCCmain.c:
9042         * src/pic/Makefile:
9043         * src/pic:
9044         * pic/Makefile:
9045         * pic16/device.c:
9046         * pic16/device.h:
9047         * pic16/gen.c:
9048         * pic16/gen.h:
9049         * pic16/genarith.c:
9050         * pic16/glue.c:
9051         * pic16/main.c:
9052         * pic16/pcode.c:
9053         * pic16/pcode.h:
9054         * pic16/pcodepeep.c:
9055         * pic16/peeph.def:
9056
9057 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9058
9059     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
9060
9061 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9062
9063     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
9064     added gbz80 build to MSVC project.
9065     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
9066     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
9067     from 8051 stuff and setup so it links using a .lnk file.
9068
9069 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9070
9071     * support/librarian/sdcclib.c: sdcc librarian.
9072     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
9073     with sdcclib.
9074
9075 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9076
9077     * as/mcs51/lkmain.c: properly handle extensions in function afile.
9078
9079 2003-07-02  Borut Razem <borut.razem AT siol.net>
9080
9081         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
9082         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
9083         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
9084         src/xa51/main.c, src/z80/main.c:
9085         virtualization of glue() function: each port has it's own glue function,
9086         which is accessed by do_glue function pointer in PORT.general structure
9087
9088 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
9089
9090         * DS800C400 fun, improved ROM interface and tinibios.
9091
9092 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
9093
9094         * More support for DS80C400. Now includes beginning of interface to ROM.
9095
9096 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
9097
9098         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
9099
9100 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9101
9102         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
9103
9104 2003-06-19  Borut Razem <borut.razem AT siol.net>
9105
9106         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
9107
9108 2003-06-19  Borut Razem <borut.razem AT siol.net>
9109
9110         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
9111         fixed Z80 port - crt0.o: cannot open.
9112
9113 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
9114
9115         * support/Util/MySystem.c (merge_command): revert bad fix
9116
9117 2003-06-18  Borut Razem <borut.razem AT siol.net>
9118
9119         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
9120
9121 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9122
9123         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9124         option --use-stdout sends errors to stdout instead of stderr.
9125
9126 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
9127
9128         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
9129
9130 2003-06-15  Borut Razem <borut.razem AT siol.net>
9131
9132         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
9133         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
9134         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
9135         fixed width array of pointers replaced with sets;
9136         multiple include and lib paths ared transferred to preprocessor and linker
9137         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
9138         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
9139         fixed width array of pointers
9140         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
9141         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
9142         fixupPath(), getPathDifference()
9143         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
9144         fixed width array of pointers
9145
9146 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
9147
9148         * src/pic16/ralloc.c: fix warnings
9149         * src/pic16/pcode.c: fix warning
9150
9151 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
9152
9153          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
9154         know all the details, but essentially this set of changes enable
9155         the pic16 port to generate movff instructions and generate assembler
9156         directives,
9157         * src/SDCCmain.c:
9158         * src/pic16/gen.c:
9159         * src/pic16/glue.c:
9160         * src/pic16/pcode.c:
9161         * src/pic16/device.c:
9162         * src/pic16/main.c:
9163         * src/pic16/pcode.h:
9164         * src/pic16/pcoderegs.c:
9165         * src/pic16/ralloc.c:
9166         * src/pic16/ralloc.h:
9167
9168 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9169
9170         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9171         added option --vc, so sdcc errors and warnings are compatible with
9172         Microsoft Visual Studio.
9173
9174 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9175
9176         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
9177           device/lib/libfloat.lib: added atof function.
9178
9179 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
9180
9181         * doc/sdccman.lyx: updated to Lyx 1.3
9182         * doc/cdbfileformat.lyx: updated to Lyx 1.3
9183         * doc/test_suite_spec.lyx: updated to Lyx 1.3
9184         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
9185
9186 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
9187
9188         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
9189
9190 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9191
9192         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
9193           additions to the "related tools/documentation" section
9194
9195 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
9196
9197         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
9198
9199 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
9200
9201         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
9202         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
9203
9204 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
9205
9206         * doc/sdccman.lyx: fix double dash and other minor things
9207         * doc/Makefile: fix double dash
9208
9209 2003-05-28  Karl Bongers(patches from Martin Helmling)
9210         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
9211           condition and ignore commands.
9212
9213 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9214
9215         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
9216           is in parts still quite out of date, I did changes as far as I felt makes sense
9217           for a non-native english speaker.
9218           Please feel free to add to the manual or to correct my changes.
9219         * doc/Makefile: undid touching the date of intermediate tex files.
9220
9221 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9222
9223         * doc/sdccman.lyx: Manual has an index now
9224
9225 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
9226
9227         Finalize muluint/mulsint and mululong/mulslong merging:
9228         * device/lib/_mulint.c
9229         * device/lib/_mullong.c
9230         * device/lib/gbz80/mul.s
9231         * device/lib/gbz80/stubs.s
9232         * device/lib/z80/mul.s
9233         * device/lib/z80/stubs.s
9234         * src/SDCCsymt.c (initCSupport)
9235
9236 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9237
9238         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
9239         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
9240           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
9241           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
9242           instead of /Zm500.
9243
9244 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9245
9246         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
9247           the regression tests I'm not brave enough to enable 245.b, 245.c
9248         * doc/sdccman.lyx: added latex preamble for hyperref package.
9249           Using pdflatex this will give you a hyperlinked pdf file with
9250           bookmarks. (prepend '%' before /usepackage if this breaks something)
9251
9252 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9253
9254          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
9255
9256 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
9257
9258         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
9259
9260 2003-05-21    <johan AT balder>
9261
9262         * src/SDCCglue.c (printIval): fixed bug #739934
9263
9264 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9265
9266         Applied patch from bug 737905 (renamed yylineo to mylineno):
9267         * src/altlex.c
9268         * src/SDCCast.c
9269         * src/SDCglobl.h
9270         * src/SDCC.lex
9271         * src/SDCCsymt.c
9272         * src/SDCCval.c
9273         * src/pic16/pcode.c: Cleaned warnings
9274         * src/pic16/pcodeflow.c: Cleaned warnings
9275         * src/pic16/pcoderegs.c: Cleaned warnings
9276
9277 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
9278
9279         * src/pic16/pcode.c: Cleaned warnings
9280         * src/pic16/pcodepeep.c: Cleaned warnings
9281         * src/pic16/ralloc.c: Cleaned warnings
9282
9283 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9284
9285         * doc/sdccman.lyx: fixed bug 739745
9286         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
9287
9288 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
9289
9290         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
9291         it can be defined with CFLAGS when running configure
9292         * src/SDCCmain.c: fixed compiling + linking with object files
9293
9294 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
9295
9296         * configure.in: configure for pic16 port,
9297             added --disable-pic16-port
9298         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
9299         * src/SDCCmain.c: linkOptions is changed to set *,
9300             added if/endif conditional macros to remove options help
9301             messages from optionsTable when a port is not configured, added
9302             support for the PIc16 port in the ports table, when executing
9303             the compiler with no port specified on command line, a default
9304             port is selected with the new macro DEFAULT_PORT which is
9305             defined in port.h, in setDefaultOptions() linkOptions is removed
9306             from initialization assignment, since now it is a set,
9307             parseCmdLine uses setParseWithComma for linkOptions, in
9308             linkEdit() linkOptions are accessed with new function indexSet()
9309             which returns the i'th item of a set variable. See SDCCset.c, in
9310             linkEdit() when calling buildCmdLine(), added linkOptions as
9311             last argument. Now users can pass arguments to gplink via the
9312             -Wl option, main() uses pic16glue() to glue up pic16 programs
9313         * src/SDCCpeeph.c: various changes to support pic16
9314         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
9315             return the i'th item of the set
9316         * src/SDCCset.h: added function prototype for indexSet()
9317         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
9318         * src/clean.mk: added pic16 in CLEANALLPORTS variable
9319         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
9320             added macro DEFAULT_PORT
9321         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
9322         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
9323             generated
9324         * src/pic16/glue.c: commented out some error producing lines
9325         * src/pic16/main.c: __config directives are commented out to stop
9326             gpasm complaining and test the linkage with gplink, _linkCmd and
9327             _asmCmd changed to be more gplink and gpasm friendly
9328         * src/pic16/peeph.def: peep rule 3 is commented out, since it
9329             produced an error when parsed, peep rule 12 is added to utilize
9330             movff, but it is commented out since the pCode does not support
9331             yet a command with 2 address arguments
9332
9333 2003-05-18    <johan AT balder>
9334
9335         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9336         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9337 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
9338
9339         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
9340   Added feature to script commands from file.
9341
9342 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
9343
9344         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
9345         * src/SDCCutil.c: include ctype.h for win32
9346
9347 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
9348
9349         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
9350
9351 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
9352
9353         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
9354   Fixed so you can set breakpoints prior to run, run does not stop
9355   on entry now.  Add tbreak.  Other enhancements and fixes for use
9356   with ddd.
9357
9358 2003-05-12  Borut Razem <borut.razem AT siol.net>
9359
9360         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
9361
9362 2003-05-11  Borut Razem <borut.razem AT siol.net>
9363
9364         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
9365         the path of bin directory, so that PATH is the only env. variable, which has to be set
9366         in case of standard installation.
9367         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
9368         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
9369         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
9370
9371 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9372
9373         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
9374         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
9375         temp files are in the port dir; clean the gen/test directory when
9376         generating new test.c
9377         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
9378         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
9379         * support/regression/tests/zeropad.c: added
9380
9381 2003-05-09    <johan AT balder>
9382
9383         * src/SDCCglue.c: fixed bug #597940
9384
9385 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
9386
9387         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9388   cache sfr, optimize next,step, fix off by one sourceline,
9389   support ddd list function.
9390         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
9391
9392 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9393
9394         * support/regression/HTMLgen.py: added compare_s2f()
9395         * support/regression/Makefile: redo 1.27
9396         * support/regression/generate-cases.py: redo 1.5
9397
9398 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
9399
9400         * support/regression/tests/float.c: workaround 33 bit hex constant
9401         * support/regression/tests/simplefloat.c: fix division for host
9402
9403 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
9404
9405         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
9406         that tame's the PIC's over-aggressive optimizer.
9407
9408 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9409
9410          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
9411          support for MSVC.
9412
9413 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
9414
9415         Initial support for DS80C400. "Hello world" runs on TINIm400
9416         (with polled I/O).
9417
9418 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
9419
9420          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9421          * Some notes on ddd usage added in debugger/README
9422          Martin Helmling adding more features and fixes for ddd GUI debugger.
9423          Code added for nexti, stepi, up, down, and other adjustments.
9424
9425 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
9426
9427         * src/pic/pCodepeep.c non-wildcard asmops are now handled
9428         * src/pic/peeph.def Added two rules to optimize carry manipulation
9429         * src/pic/* removed debug printfs
9430
9431 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
9432
9433         * debugger/mcs51/cmd.c: added header newalloc.h
9434
9435 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
9436
9437         * as/Makefile: new EXEEXT
9438         * as/z80/Makefile: remove trailing slash of BUILDIR
9439         * as/z80/clean.mk: new EXEEXT
9440         * Makefile.common.in: add to CFLAGS (and others), don't replace it
9441         * support/cpp2/Makefile.in: new EXEEXT
9442         * src/pic/glue.c (pic14emitRegularMap): fixed warning
9443
9444 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
9445
9446         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
9447         EXEEXT was introduced to fix all related problems with targets
9448         "clean", "install" and "uninstall"; a couple of further flaws
9449         especially with "clean" have been fixed too
9450         * as/mcs51/Makefile.in
9451         * as/mcs51/clean.mk
9452         * as/z80/Makefile
9453         * Makefile
9454         * clean.mk
9455         * debugger/mcs51/Makefile.in
9456         * debugger/mcs51/clean.mk
9457         * link/z80/Makefile
9458         * link/z80/Makefile.in
9459         * link/z80/clean.mk
9460         * link/Makefile
9461         * packihx/Makefile.in
9462         * packihx/clean.mk
9463         * sim/ucsim/Makefile
9464         * sim/ucsim/clean.mk
9465         * sim/ucsim/avr.src/Makefile.in
9466         * sim/ucsim/avr.src/clean.mk
9467         * sim/ucsim/s51.src/Makefile.in
9468         * sim/ucsim/s51.src/clean.mk
9469         * sim/ucsim/xa.src/Makefile.in
9470         * sim/ucsim/xa.src/clean.mk
9471         * sim/ucsim/z80.src/Makefile.in
9472         * sim/ucsim/z80.src/clean.mk
9473         * sim/ucsim/main_in.mk
9474         * sim/ucsim/packages_in.mk
9475         * sim/ucsim/gui.src/Makefile.in
9476         * sim/ucsim/gui.src/serio.src/Makefile.in
9477         * sim/ucsim/gui.src/serio.src/clean.mk
9478         * src/Makefile.in
9479         * src/clean.mk
9480         * support/cpp2/Makefile.in
9481         * support/cpp2/clean.mk
9482         * support/makebin/Makefile
9483         * support/makebin/clean.mk
9484         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
9485         * doc/sdccman.lyx: --program-suffix no longer needed
9486
9487 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
9488
9489          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
9490          Martin Helmling added support for ddd GUI debugger.
9491          Code added to display assembly, set variables, and other commands
9492          to interface to ddd.
9493
9494 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
9495
9496         * as/Makefile: fix target clean
9497         * as/clean.mk: fix target clean
9498         * as/z80/clean.mk: fix target clean
9499
9500 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
9501
9502         * Makefile.common.in: added  AT EXEEXT AT
9503         * configure.in: removed all mingw32 stuff
9504         * configure: rebuilt from configure.in
9505         * doc/sdccman.lyx: updated section "installation"
9506         * support/scripts/sdcc_mingw32: adapted to configure
9507         * support/scripts/sdcc_cygwin_mingw32: added
9508
9509 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
9510
9511         * src/pic Added object file support for the PIC port
9512         * src/pic Applied patch from Craig Franklin (this started the object file support)
9513         * src/regression Updated the PIC regression tests for object files
9514
9515 2003-04-20  Borut Razem <borut.razem AT siol.net>
9516
9517         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
9518           lklex.c: In function `getfid':
9519           lklex.c:203: warning: array subscript has type `char'
9520         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
9521           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
9522         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
9523           stack handling macros
9524
9525 2003-04-19  Borut Razem <borut.razem AT siol.net>
9526
9527         * "handling space characters in file path" task:
9528         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
9529         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
9530         * support/Util/MySystem.h: make it self-sufficient
9531         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
9532           src/z80/main.c, sdcc/as/mcs51/lklex.c:
9533           handling space characters in file path
9534         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
9535           (it will be used by assemblers, which have their own includes, e.g. gpasm)
9536         * support/Util/MySystem.c: handling space characters in executable's path
9537
9538 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
9539
9540         * as/z80/Makefile: fix permanent rebuild of z80
9541         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
9542         * support/regression/tests/bitfields.c: added Johan's bitfields.c
9543
9544 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
9545
9546         * src/SDCCopt.c: add special case optimization to replace modulo by
9547           a power of two with a bitwise AND.
9548
9549 2003-04-18    <johan AT balder>
9550
9551         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
9552
9553 2003-04-17    <johan AT balder>
9554
9555         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
9556         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
9557
9558 2003-04-13  Borut Razem <borut.razem AT siol.net>
9559
9560         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
9561         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
9562           fixed mingw problem in adl_NORMALIZE_PATH
9563
9564 2003-04-12  Borut Razem <borut.razem AT siol.net>
9565
9566         * fixed "#pragma SAVE/RESTORE can not be nested":
9567         * src/SDCC.lex: reworked pragma handling functions
9568         * sdcc/src/SDCCglobl.h: reworked stack handling macros
9569         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
9570
9571 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9572
9573         * src/SDCCutil.c (pathEquivalent): defined but not used
9574         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
9575         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
9576         * configure: rebuilt from configure.in
9577         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9578         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9579         * device/include/Makefile.in: replace sdcc_datadir
9580         * device/lib/Makefile.in: replace sdcc_datadir
9581         * Makefile.common.in: add LDFLAGS from configure
9582         * packihx/Makefile.in: use LDFLAGS
9583         * src/Makefile.in: use LDFLAGS
9584         * support/cpp2/Makefile.in: add LDFLAGS from configure
9585         * support/makebin/Makefile: use LDFLAGS
9586         * .version: bumped version number to 2.3.5
9587
9588 2003-04-12  Borut Razem <borut.razem AT siol.net>
9589
9590         * completed "different paths" task:
9591         * src/SDCCmacro.c: fixed bug in handling quotes
9592         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
9593         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
9594
9595 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9596
9597         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
9598
9599 2003-04-11 kevin Vigor <kevin AT vigor.nu>
9600
9601         * ds390/gen.c ds390/peeph.def: fix bug 706781
9602
9603 2003-04-11  Borut Razem <borut.razem AT siol.net>
9604
9605         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
9606
9607 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
9608
9609         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
9610         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
9611          set - this bit used to not be set...).
9612         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
9613           bad code in PIC Port
9614         * src/regression/and2.c added to test bug 609268
9615         * src/regression/Makefile added and2.c to regression test
9616
9617
9618 2003-04-08    <johan AT CP255758-A>
9619
9620         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
9621         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
9622         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
9623
9624 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
9625
9626         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
9627         fix bug #487815
9628         * support/cpp2/Makefile.in: fix bug #487815
9629         * configure: rebuilt from configure.in
9630         * Makefile.common.in: docdir changed, new path suffixes
9631         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9632         * sdcc_vc_in.h: reflect changes from sdccconf.h
9633         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
9634         * src/SDCCutil.h: remove BINDIR hack
9635         * doc/sdccman.lyx: update new path hierarchy
9636
9637 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9638
9639         * src/SDCCpeeph.c: added okToRemoveSLOC test
9640
9641 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9642
9643         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
9644
9645 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9646
9647         * src/SDCCpeeph.c: added labelIsReturnOnly test
9648         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
9649
9650 2003-04-05    <johan AT balder>
9651
9652         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
9653         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
9654         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
9655         * src/SDCCast.c: fixed a warning
9656         * src/SDCCast.h: fixed a warning
9657         * src/SDCCicode.c (operandFromAst): fixed a warning
9658
9659 2003-04-04    <johan AT balder>
9660
9661         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
9662         * src/SDCCast.c (decorateType): fixed bug #715076
9663         * src/SDCC.y: fixed bug #702907
9664
9665 2003-04-03    <johan AT balder>
9666
9667         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
9668         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
9669         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
9670         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
9671         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
9672
9673 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
9674
9675         * _decdptr.c: fix return values
9676         * _gptrget.c: fix return values
9677         * _gptrgetc.c: fix return values
9678         * _gptrput.c: fix return values
9679         * _mulint.c: fix return values
9680         * as/z80/Makefile: fix 'make -j' problem
9681
9682 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
9683
9684         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
9685         * configure.in: big cleanup, updated to autoconf 2.5x
9686         * configure: rebuilt from configure.in
9687         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9688         * sdcc_vc_in.h: reflect changes from sdccconf.h
9689         * doc/Makefile: fixed a flaw in "make install"
9690
9691 2003-04-02    <johan AT balder>
9692
9693         * src/ds390/gen.c (genCmp): no comments
9694         * src/mcs51/gen.c (genCmp): no comments
9695         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
9696         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
9697
9698 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
9699
9700         * support/regression/generate-cases.py: place generated file in given sub directory
9701         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
9702         * support/regression/Makefile: improvements for 'make -j';
9703         side effect: it's simpler and faster now
9704
9705 2003-03-31  Borut Razem <borut.razem AT siol.net>
9706
9707         * src/z80/main.c: link-{port} and as-{port} defined without path
9708         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
9709
9710 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
9711
9712         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
9713
9714 2003-03-30  Borut Razem <borut.razem AT siol.net>
9715
9716         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
9717           changed type of list parameter to set
9718         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
9719         * src/port.h: changed type of do_assemble() parameter to set
9720         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
9721           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
9722           definition of "cppoutfilename" macro with NULL value in preProcess()
9723         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
9724         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
9725         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
9726           replaced with set *binPathSet
9727         * shash_add() deallocates the item, if allready exsists, before adding the new one
9728         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
9729
9730 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
9731
9732         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
9733           a nested for loop bug in the PIC port
9734         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
9735           for loops
9736
9737 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
9738
9739         * support/Util/dbuf.h: remove C++ stuff to make it portable
9740
9741 2003-03-28  Borut Razem <borut.razem AT siol.net>
9742
9743         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
9744           literal strings in stringLiteral()
9745         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
9746         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
9747           to the project
9748
9749 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
9750
9751         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
9752
9753 2003-03-26    <johan AT balder>
9754
9755         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
9756         * src/ds390/gen.c (saveRegisters): catched symbol abuse
9757         * src/SDCCast.c (decorateType): fixed " -v < 3"
9758
9759 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
9760
9761         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
9762         Added Lenny Story's debug infrastructure changes:
9763         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
9764         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
9765         * src/cdbFile.c: added
9766         * src/SDCCdebug.c: added
9767         * src/SDCCdebug.h: added
9768         * src/SDCCast.c (createFunction)
9769         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
9770         * src/SDCCmain.c (parseCmdLine, main)
9771         * src/SDCCmem.c (redoStackOffsets)
9772         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
9773         * src/SDCCsymt.h
9774         * src/common.h
9775         * src/avr/gen.c (genAVRCode)
9776         * src/ds390/gen.c (gen390Code)
9777         * src/mcs51/gen.c (gen51Code)
9778         * src/pic/gen.c (genpic14Code)
9779         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
9780         * src/xa51/gen.c (genXA51Code)
9781         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
9782
9783 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9784
9785         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
9786         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
9787
9788 2003-03-22    <johan AT balder>
9789
9790         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
9791
9792 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
9793
9794         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
9795         * doc/cdbfileformat.lyx: added, written by Lenny Story
9796         * doc/Makefile: added cdbfileformat.lyx
9797         * doc/clean.mk: added cdbfileformat.lyx
9798
9799 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
9800
9801         * src/mcs51/peeph.def: fix bug #705773
9802
9803 2003-03-20    <johan AT balder>
9804
9805         An sfr/sbit can have an "at #" AND an initializer
9806         * src/SDCCsymt.c (checkSClass):
9807         * src/SDCCmem.c (allocGlobal):
9808         * src/SDCCmem.c (allocLocal):
9809         * src/SDCCast.c (createBlock):
9810
9811 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
9812
9813         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
9814
9815 2003-03-16    <johan AT balder>
9816
9817         Undid the hackup of const and volatile, the problem is much bigger
9818         * src/SDCC.y:1.65
9819         * src/SDCCast.c:1.171
9820         * src/SDCCglue.c:1.138
9821         * src/SDCCicode.c:1.146
9822         * src/SDCCsymt.c:1.150
9823         * src/SDCCval.c:1.65
9824
9825 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
9826
9827         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
9828         * src/ds390/gen.c (genAddrOf): fixed bug #704087
9829
9830 2003-03-13    <johan AT balder>
9831
9832         Hackup const and volatile modifiers in type chains a bit:
9833         * src/SDCC.y:1.63
9834         * src/SDCCast.c:1.169
9835         * src/SDCCglue.c:1.136
9836         * src/SDCCicode.c:1.143
9837         * src/SDCCsymt.c1.146
9838         * src/SDCCsymt.h1.59
9839         * src/SDCCval.c:1.63
9840
9841 2003-03-12    <johan AT balder>
9842
9843         * src/SDCCBBlock.h: more LRH debugging junk
9844         * src/SDCCcflow.h: more LRH debugging junk
9845         * src/SDCCloop.c: more LRH debugging junk
9846         * src/SDCC.y (struct_declaration): fixed bug #697590
9847         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
9848         * src/ds390/gen.c (aopForRemat): fixed bug #700031
9849         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
9850
9851 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9852         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
9853         test function names must now match exactly).
9854         * src/SDCCcse.c: added special case in findCheaperOp to allow
9855         extending a short integer. Makes less awful code for bug 700121 test case.
9856
9857 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9858
9859         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
9860         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
9861
9862 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9863
9864         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
9865         actually called (operandsNotEqual() was called for all
9866         operandsNotEqualX tests).
9867
9868 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9869
9870         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
9871         with shorter literals. Fixes bug 700121.
9872
9873 2003-03-11    <johan AT balder>
9874
9875         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
9876
9877 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
9878
9879         * src/SDCCloop.c (mergeRegions): an evil beast is dead
9880         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
9881
9882 2003-03-10  Borut Razem <borut.razem AT siol.net>
9883
9884         * src/SDCCmain.c: pipe preprocessor's output
9885         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9886         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9887         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9888         which closes all pipes in pipeSet set
9889         * src/SDCCset.c: free deleted item in function deleteSetItem()
9890         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9891         moved from z80 to src subproject
9892         * .version: increased version number to 2.3.4
9893
9894 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
9895
9896         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
9897         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
9898         * support/regression/ports/xa51/spec.mk: fix typo
9899
9900 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
9901
9902         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
9903
9904 2003-03-09  Borut Razem <borut.razem AT siol.net>
9905
9906         * src/SDCCmain.c: pipe preprocessor's output
9907         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9908         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9909         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9910         which closes all pipes in pipeSet set
9911         * src/SDCCset.c: free deleted item in function deleteSetItem()
9912         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9913         moved from z80 to src subproject
9914
9915 2003-03-09  Borut Razem <borut.razem AT siol.net>
9916
9917         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
9918         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
9919         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
9920         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
9921         * src/SDCCglobl.h: unification of WIN32 native definitions
9922
9923 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9924
9925         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
9926
9927 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9928
9929         * src/configure.in:   check for endianess (even while cross-compiling)
9930         * src/configure:      check for endianess (even while cross-compiling)
9931         * src/configure_in.h: check for endianess (even while cross-compiling)
9932         * src/avr/gen.c:        remove old endianess stuff
9933         * src/mcs51/gen.c:      remove old endianess stuff
9934         * src/ds390/gen.c:      remove old endianess stuff
9935         * src/pic/gen.c:        remove old endianess stuff
9936         * src/pic/genarith.c:   remove old endianess stuff
9937         * src/pic/glue.c:       fix endianess check
9938         * src/pic16/gen.c:      remove old endianess stuff
9939         * src/pic16/genarith.c: remove old endianess stuff
9940         * src/pic16/glue.c:     fix endianess check
9941         * src/xa51/gen.c:       remove old endianess stuff
9942         * src/z80/gen.c:        fix endianess check
9943         * src/SDCCglue.c:       fix endianess check
9944         * src/ds390/peeph.def: fix bug 700036
9945
9946 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9947
9948         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
9949         * src/configure: find appropriate data-types on host for SDCC's int and long
9950         * src/configure.in: find appropriate data-types on host for SDCC's int and long
9951         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
9952         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
9953
9954 2003-03-07    <johan AT balder>
9955
9956         Just a big NOOP:
9957                 some minor cleanups before the big shot
9958                 OP_DEFS and OP_USES now use Kevin's protection
9959                 new option --nolabelopt
9960
9961         * src/SDCCBBlock.c:
9962         * src/SDCCast.c,:
9963         * src/SDCCcflow.c:
9964         * src/SDCCcse.c:
9965         * src/SDCCicode.c:
9966         * src/SDCCicode.h:
9967         * src/SDCClabel.c:
9968         * src/SDCCloop.c:
9969         * src/SDCCmain.c:
9970         * src/ds390/ralloc.c:
9971         * src/mcs51/ralloc.c:
9972         * src/pic/ralloc.c:
9973         * src/xa51/ralloc.c:
9974         * src/z80/ralloc.c:
9975
9976 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
9977
9978         * src/pic/pcode.c (get_op): fix 64 bit warnings
9979         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
9980         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
9981         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
9982         * support/regression/tests/malloc.c: fix 64 bit warnings
9983
9984 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
9985
9986         * src/mcs51/gen.c (genMinus): fixed bug 696436
9987
9988 2003-03-02  Borut Razem <borut.razem AT siol.net>
9989
9990         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
9991
9992 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
9993
9994         * configure.in: test for mkstemp
9995         * sdccconf_in.h: add HAVE_MKSTEMP
9996
9997 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
9998
9999         * device/include/ctype.h: removed warning while using --stack-auto
10000         * device/include/malloc.h: removed warning while using --stack-auto
10001         * device/include/string.h: removed warning while using --stack-auto
10002
10003 2003-02-23  Borut Razem <borut.razem AT siol.net>
10004
10005         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
10006         because NDEBUG is defined (see man assert)
10007         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
10008
10009 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10010
10011         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
10012         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
10013
10014 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10015
10016         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
10017         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
10018
10019 2003-02-18    <johan AT balder>
10020
10021         * as/mcs51/asmain.c (asmbl): module can start with a digit
10022         * as/z80/asmain.c (asmbl): module can start with a digit
10023
10024 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
10025
10026         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
10027         * src/asm.c: fix pipe() for Mingw32
10028
10029 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
10030
10031         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
10032         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
10033         make -V work again; --c1mode reads now from stdin
10034         * doc/sdccman.lyx: added --c1mode
10035         * support/Util/SDCCerr.c: new messages for c1 mode
10036         * support/Util/SDCCerr.h: new messages for c1 mode
10037         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
10038
10039 2003-02-15    <johan AT balder>
10040
10041         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
10042
10043 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
10044
10045         * doc/sdccman.lyx: Environment variables, -o and other minor things
10046
10047 2003-02-14    <johan AT balder>
10048
10049         * src/xa51/main.c: before anyone really tries to use it :)
10050
10051         * Install doc's in share/sdcc/doc
10052         * removed some obsolete files
10053         * Do a proper make distclean and uninstall
10054         M Makefile.common.in
10055         R sdccbuild.sh
10056         M as/Makefile
10057         M device/include/Makefile.in
10058         M device/lib/Makefile.in
10059         M doc/sdccman.lyx
10060         M link/Makefile
10061         M sim/ucsim/doc/Makefile.in
10062         M src/clean.mk
10063         R src/avr/peeph.rul
10064         R src/xa51/peeph.rul
10065         M support/cpp2/Makefile.in
10066         M support/makebin/Makefile
10067
10068
10069 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
10070
10071         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
10072
10073 2003-02-10  Borut Razem <borut.razem AT siol.net>
10074
10075         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
10076         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
10077         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
10078         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
10079         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
10080         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
10081         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
10082         src/z80/Makefile.bcc: Borland Makefile cleanup
10083         * as/z80/Makefile.bcc: Added Borland Makefile
10084         * support/cpp2/borland.h: Removed
10085
10086 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
10087
10088         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
10089         * src/SDCC.lex: new pragma NOIV
10090         * src/SDCCglobl.h: new pragma NOIV
10091         * src/SDCCmem.c: new pragma NOIV
10092
10093 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10094
10095         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
10096
10097 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10098
10099         * src/SDCCmain.c: signal handling is switched off by --debug
10100         * doc/Makefile: small fix for install; use clean.mk again
10101         * doc/clean.mk: clean *.pdf and *.html too
10102
10103 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
10104
10105         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
10106         * device/lib/printfl.c: fix a ds390 bug by making it portable
10107         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
10108         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
10109         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
10110         * debugger/mcs51/cmd.c: converted multi-line string literals
10111         * sim/ucsim/globals.cc: converted multi-line string literals
10112         * src/SDCCmain.c: introduced signal handler to remove temp files
10113         * doc/Makefile: small tweaks, implement clean
10114         * doc: removed generated files
10115
10116 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10117
10118         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
10119         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
10120         Address Record is not correctly generated for DS390."
10121
10122 2003-02-02  Borut Razem <borut.razem AT siol.net>
10123
10124         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
10125         * as/mcs51/asm.h: fixed compilation with Borland C
10126         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
10127         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
10128         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
10129         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
10130         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
10131         src/z80/Makefile.bcc: delete $(LIB) only if exist
10132         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
10133
10134 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
10135
10136         * device/include/malloc.h: introduced NULL
10137         * device/include/string.h: introduced NULL
10138         * device/include/stdlib.h: introduced NULL
10139         * device/lib/_memcpy.c: removed NULL
10140         * device/lib/_strcat.c: removed NULL
10141         * device/lib/_strchr.c: removed NULL
10142         * device/lib/_strcmp.c: removed NULL
10143         * device/lib/_strcpy.c: removed NULL
10144         * device/lib/_strcspn.c: removed NULL
10145         * device/lib/_strlen.c: removed NULL
10146         * device/lib/_strncat.c: removed NULL
10147         * device/lib/_strncmp.c: removed NULL
10148         * device/lib/_strncpy.c: removed NULL
10149         * device/lib/_strpbrk.c: removed NULL
10150         * device/lib/_strrchr.c: removed NULL
10151         * device/lib/_strspn.c: removed NULL
10152         * device/lib/_strstr.c: removed NULL
10153         * device/lib/_strtok.c: removed NULL
10154         * device/lib/malloc.c: removed NULL, include own header
10155
10156 2003-02-02    <johan AT balder>
10157
10158         * 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
10159         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
10160         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
10161         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
10162         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
10163         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
10164
10165 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10166
10167         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
10168         area 'DATA'"
10169
10170 2003-02-01    <johan AT balder>
10171
10172         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
10173
10174 2003-01-31    <johan AT CP255758-A>
10175
10176         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
10177
10178 2003-01-30    <johan AT balder>
10179
10180         * src/SDCCBBlock.c: automatic bug detection
10181         * src/SDCCicode.c: automatic bug detection
10182
10183 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10184
10185         * src/SDCCglobl.h:   now --xram-size 0 works
10186         * src/SDCCmain.c:    now --xram-size 0 works
10187
10188 2003-01-29    <johan AT balder>
10189
10190         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
10191
10192 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10193
10194         * as/mcs51/aslink.h: Added options --xram-size and --code-size
10195         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
10196         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
10197         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
10198         * src/SDCCglobl.h:   Added options --xram-size and --code-size
10199         * src/SDCCmain.c:    Added options --xram-size and --code-size
10200
10201 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
10202
10203         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
10204         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
10205
10206 2003-01-27    <johan AT balder>
10207
10208         * src/SDCC.y: fixed bug #613764
10209
10210 2003-01-26    <johan AT balder>
10211
10212         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
10213         * src/SDCCsymt.h: fixed bug #673374
10214         * src/SDCCglue.c: fixed bug #661910
10215         * src/SDCCast.c: fixed bug #458099 and 673374
10216
10217 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
10218
10219         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
10220         * as/mcs51/strcmpi.h: added
10221         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
10222         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
10223         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
10224         * as/mcs51/assym.c: strcmpi -> as_strcmpi
10225         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
10226         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
10227         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
10228         * as/mcs51/Makefile.aslink: new module strcmpi
10229         * as/mcs51/Makefile.asx8051: new module strcmpi
10230         * as/mcs51/Makefil.bcc: new module strcmpi
10231         * as/mcs51/Makefile.in: new module strcmpi
10232         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
10233
10234 2003-01-26    <johan AT balder>
10235
10236         * src/SDCCglue.c: reverted back to 1.124
10237         * src/SDCCast.c: reverted back to 1.156
10238         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
10239
10240 2003-01-25    <johan AT balder>
10241
10242         * src/SDCCglue.c: A better fix for bug #661910
10243         * src/SDCCast.c: A better fix for bug #661910
10244         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
10245
10246 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10247
10248         * src/Makefile.in: remove spawn.o
10249         * src/SDCCmain.c: remove spawn.h
10250         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
10251         * src/spawn.c: removed
10252         * src/spawn.h: removed
10253         * support/regression/ports/ds390/spec.mk: link with -r
10254
10255 2003-01-24    <johan AT CP255758-A>
10256
10257         * src/ds390/gen.c (aopOp): fixed bug #667458
10258         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
10259         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
10260         (createIvalCharPtr): an ival doesn't always have a storage class anymore
10261
10262 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10263
10264         * src/mcs51/peeph.def: better assembler identation by Frieder
10265         * src/mcs51/gen.c: better assembler identation by Frieder
10266
10267 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
10268
10269         * as/z80/string.h: removed for gcc 3.2
10270         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
10271         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
10272
10273 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10274
10275         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
10276         * src/SDCCpeeph.c (replaceRule): fix bug #663503
10277         * support/regression/Makefile: separate temp files for ports
10278         * support/regression/generate-cases.py: separate temp files for ports
10279         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10280         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10281
10282 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10283
10284         * moved tinitalk to device/examples/ds390
10285
10286 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
10287
10288         * as/mcs51/lkmem.c: rflag is for DS390
10289         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
10290         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
10291                          (linkEdit): move mem- and map-files the same way as ihx-files
10292         * src/z80/main.c (_setDefaultOptions): removed --generic
10293         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
10294         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
10295         * src/pic/glue.c (picglue): --c1mode works again
10296         * src/pic16/glue.c (pic16glue): --c1mode works again
10297         * src/asm.c (printCLine): fix #660034
10298
10299 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
10300
10301         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
10302         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
10303         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
10304         * as/mcs51/lkmem (summary): better fix for sp problem
10305         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
10306         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
10307         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
10308                                               remove --stack-after-data
10309
10310 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
10311
10312         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
10313         * src/SDCCutil.c (join): ugly bug: missing '\0'
10314         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
10315
10316 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10317
10318         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
10319         * src/port.h: typo
10320         * src/pic/main.c (_asmCmd): gpasm supports -o
10321         * src/z80/main.c: more general macros
10322         * device/lib/Makefile.in: remove intermediate files
10323
10324 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10325
10326         * .version: Bumped version number to 2.3.3
10327         * src/SDCCBBlock.c: new option -o
10328         * src/SDCCglobl.h: new option -o
10329         * src/SDCCglue.c: new option -o
10330         * src/SDCCmain.c: new option -o
10331         * src/asm.c: new option -o
10332         * src/ds390/main.c: new option -o
10333         * src/pic/glue.c: new option -o
10334         * src/pic/pcode.c: new option -o
10335         * src/pic/ralloc.c: new option -o
10336         * src/pic16/glue.c: new option -o
10337         * src/pic16/pcode.c: new option -o
10338         * src/pic16/ralloc.c: new option -o
10339         * src/z80/main.c: new option -o
10340         * device/lib/Makefile.in: use -o
10341         * support/regression/ports/ds390/spec.mk: use -o
10342         * support/regression/ports/gbz80/spec.mk: use -o
10343         * support/regression/ports/mcs51/spec.mk: use -o
10344         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
10345         * support/regression/ports/z80/spec.mk: use -o
10346         * support/regression/ports/ucz80/spec.mk: use -o
10347         * support/regression/ports/xa51/spec.mk: use -o
10348         * support/regression/fwk/lib/timeout.c: fix usage string
10349
10350 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
10351         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
10352
10353 2003-01-07    <johan AT balder>
10354
10355         * src/SDCCast.c (decorateType): fixed bug #600035
10356
10357 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
10358         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
10359         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
10360         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
10361         * src/pic/pcode.c: outcommented unused variable to remove warnings
10362         * src/pic/ralloc.c: outcommented unused variable to remove warnings
10363
10364 2003-01-06    <karl AT turbobit.com>
10365         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
10366    regression tests.
10367
10368 2003-01-06    <johan AT balder>
10369
10370         * src/SDCCicode.c: fixed array add
10371
10372 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
10373         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
10374         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
10375
10376 2003-01-04    <johan AT balder>
10377
10378         * src/SDCCval.c (getNelements): fixed the initialized array of structures
10379
10380 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10381         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
10382
10383 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10384         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
10385         * support/regression/tests/bug-524697.c: fit mem usage into 8032
10386
10387 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10388         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
10389
10390 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
10391         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
10392
10393 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
10394         * src/mcs51/main.c: removed {bindir}{sep} from aslink
10395
10396 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10397
10398     * in \sdcc\as\mcs51\ changed these files in order to create an
10399     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
10400     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
10401     following files to include the previous two files: aslink.dsp,
10402     Makefile.aslink, Makefile.bcc, and Makefile.in.
10403
10404     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
10405     .adb instead of .cdb
10406
10407 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10408
10409         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
10410         value from option --iram-size.
10411
10412 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10413
10414         * \sdcc\as\mcs51\lklist.c: added boundary check before using
10415         dram[] array.
10416
10417 2002-09-18    <wiml AT hhhh.org>
10418
10419         * SDCClrange.h: exposed setFromRange() and setToRange()
10420         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
10421           packRegsForAccUse() (bug 542397)
10422         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
10423           multiple times and emitting the fetch operations more than once
10424           added aopGetUsesAcc() function to allow binary operators to
10425           fetch their operands in the correct order; made genMinus() emit
10426           compact code for X = LITERAL - Y
10427
10428 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10429         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
10430         sprintf() in line 1267.
10431
10432 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10433         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
10434         like ports.
10435
10436 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10437         Changes to aslink (All the changes are marked with 'JCF'):
10438
10439         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
10440         summary().
10441
10442         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
10443         area BSEG.  Also moves, if possible, the DATA area down into the internal
10444         ram so more space is available.
10445
10446         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
10447         sflag.
10448
10449         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
10450         not bytes.  Function summary() which creates a memory usage summary
10451         file with extension .mem.  Reports of overlaping stack and small stack
10452         size.  If the space for the stack is less than 16 bytes aslink trows a
10453         warning.
10454
10455         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
10456         the 8051.  Option 'y' for memory summary output file.
10457
10458         Changes to sdcc (All the changes are marked with 'JCF'):
10459
10460         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
10461
10462         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
10463         overlaying area for it (uses RegBankUsed[4]).
10464
10465         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
10466         bank zero as used by default.  By default aslink locates the stack
10467         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
10468         the creation of the .mem file.  Delegates the allocation of data area
10469         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
10470         the begining of the stack area to aslink.
10471
10472         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
10473         glue() in SDCCglue.c creates an area for it.
10474
10475 2002-09-03  Borut Razem <borut.razem AT siol.net>
10476         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
10477         sdcc/src/pic/glue.c:
10478         introduced atexit() handler for teporay files removal in case of
10479         errors, assertions, ...
10480
10481 2002-08-29  Borut Razem <borut.razem AT siol.net>
10482         * sdcc/support/cpp2/auto-host_vc_in.h:
10483         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
10484         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
10485         Maybe there is a similar problem with BORLANDC? It should be checked!
10486
10487         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
10488         corrected improper use of assert: the assignment to clr variable was done inside the assert.
10489         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
10490         was not executed, and the compiler (cl) launched a warning:
10491         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
10492
10493 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
10494         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
10495
10496 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
10497         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
10498
10499         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10500           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
10501           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
10502           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10503           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
10504           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
10505           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
10506         - added Release configuration in VS projects
10507         - review of compiler an linker options
10508         - VC .exe files are generated in bin_vc directory, not to interfere
10509           with binaries generated from other projects (cygwin, mingw, bcc ...)
10510
10511         * sdcc/src/yacc.dsp: added
10512
10513         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
10514         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
10515         and insert the version number definitions from .version
10516
10517         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
10518
10519         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
10520         added - genarate auto-host.h using auto-host_vc_in.h as template
10521
10522         * sdcc/sdcc_vc.h,
10523         removed from CVS, generated automatically
10524
10525 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
10526         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
10527
10528 2002-08-11  Borut Razem <borut.razem AT siol.net>
10529         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
10530
10531 2002-08-10  Borut Razem <borut.razem AT siol.net>
10532         * src/SDCCmain.c (main):
10533         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
10534         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
10535         The consequence was that some temporary files were not removed.
10536
10537         * src/SDCCglue.c:
10538         unification of code in functions tempfilename() and tempfile():
10539         function tempnam() is defined in Visual Studio 6.0 and .NET
10540
10541         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
10542
10543         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10544           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
10545         - removed compiler command line option /WX: Treats all warnings as errors
10546         - update a list of source files, included into the project
10547
10548         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10549           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
10550         changed project type to Generic Project so that can be correcly converted to VS.NET project
10551
10552         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
10553
10554         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
10555
10556         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
10557
10558         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
10559         added return 0 statements after assert() to make compiler happy
10560
10561         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
10562         added newline in the def file to keep MSC compiler satisfied
10563
10564         * sdcc/src/z80/gen.c:
10565         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
10566           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
10567         - solved MSC error in function aopDump()
10568
10569         * sdcc_vc.h: define PREFIX as "\\sdcc"
10570
10571 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
10572         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
10573
10574 2002-06-22  Scott Dattalo <scott AT dattalo.com>
10575         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
10576         - Rewrote the register banking algorithm.
10577         - Added pCode live-range analysis to registers (for now, only non-used and
10578         singly-used registers optimized away)
10579
10580         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
10581
10582         * 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.
10583
10584 2002-05-10  Scott Dattalo <scott AT dattalo.com>
10585         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
10586
10587 2002-04-22  Michael Hope  <michaelh AT vroom>
10588
10589         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
10590
10591         * configure.in (DD_COPT): Added include support required for gbdk.
10592
10593         * .version: Bumped version number just to increase it.
10594
10595         * src/SDCCmain.c: Added -nostdinc to the default options.
10596
10597 2002-04-15  Michael Hope  <michaelh AT vroom>
10598
10599         * device/lib/z80/printf.c (sprintf): Added.
10600
10601         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
10602
10603         * src/z80/peeph.def: Added transpose redundent load rule.
10604
10605         * src/z80/main.c: Added force callee saves for jaune.
10606
10607         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
10608
10609         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
10610
10611 2002-03-28  Johan Knol  <johan AT balder>
10612
10613         * src/SDCCval.c: fixed bug #532436
10614
10615 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10616         * /src/port.h:
10617         Added "char *Processor" field to the port structure.
10618
10619         * /src/SDCCmain.c:
10620         Added -p option. Allows port dependent processor to be specified.
10621
10622         * all ports:
10623         Initialized the new field char *Processor field to NULL in all ports
10624
10625         * /src/pic/*:
10626         Compiler generated registers for interrupt context saving
10627         were not getting allocated.
10628
10629 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
10630
10631         * /src/SDCCast.c:
10632         Fixed left shift. Will promote the left side of a left shift
10633         if a) left shifting more than size of operand or b) when assigned
10634         to something size > size of left side
10635
10636 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10637         * src/pic/*
10638         tons of changes. Register allocation has been
10639         rewritten. Added customization for the various PICs. Flow
10640         analysis is restructured. ...
10641
10642         * src/pic/device.h:
10643         Added
10644
10645         * src/pic/device.c:
10646         Added. device.c is a PIC port hack to accomodate variations
10647         in PIC devices.
10648
10649 2002-03-13  Michael Hope  <michaelh AT vroom>
10650
10651         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
10652
10653 2002-03-04  johanknol  <johanknol AT manik>
10654
10655         * /src/SDCCval.c: fixed
10656
10657         const unsigned char arr[][2] = { { 0, 1 } };
10658         t18.c:1: error: Initializer element is not constant
10659
10660 2002-03-04  bela  <bela AT manik>
10661
10662         * /device/include/mcs51reg.h:
10663         ds89c420 register definition update
10664
10665 2002-03-03    <johan AT FRIJA>
10666
10667         * support/Util/SDCCerr.c: did something, but don't no why anymore
10668
10669         * support/regression/tests/bug-524691.c: made it a little less shy
10670
10671         * src/SDCCast.c (decorateType): fixed bug #524697
10672
10673         * src/SDCCast.c: made some lineno improvements
10674
10675         * src/SDCCval.c (getNelements): changed warning to error
10676
10677         * src/SDCCglue.c (printIvalArray): changed warning to error
10678
10679         * src/SDCCicode.c: fixed a warning for mingw
10680
10681         * src/SDCCast.c (decorateType): fixed the << promotion for ops
10682
10683         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
10684
10685 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
10686
10687         * src/ds390/peeph.def:
10688         Added some more peephole rules
10689
10690         * src/ds390/gen.c: Various fixes & enhancements
10691
10692         * src/SDCClrange.c, src/SDCClrange.h:
10693         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
10694
10695         * src/ds390/ralloc.c:
10696         various fixes & enhancements (ds390) specific
10697
10698         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
10699         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
10700         from rallocs.
10701
10702         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
10703
10704 2002-03-02    <johan AT FRIJA>
10705
10706         * src/SDCCast.c (decorateType): fixed bug #524708
10707
10708         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
10709
10710         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
10711
10712 2002-03-01  Michael Hope  <michaelh AT vroom>
10713
10714         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
10715
10716         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
10717
10718 2002-03-01    <johan AT FRIJA>
10719
10720         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
10721
10722         * src/SDCCast.c (decorateType): fixed bug #524209
10723
10724         * src/SDCCval.c (valNot): fixed bug #524195
10725
10726 2002-02-26    <johan AT balder>
10727
10728         * src/xa51/gen.c: fixed a warning
10729
10730         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
10731
10732         * src/SDCCast.c (decorateType): fixed bug #522534
10733
10734 2002-02-23    <johan AT balder>
10735
10736         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
10737
10738 2002-02-22    <johan AT balder>
10739
10740         * src/SDCCast.c: fixed bug #514865
10741
10742         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
10743
10744 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
10745
10746         * sdcc/src/SDCCloop.c:
10747         Previous fix was not good. basic blocks that have "break" or "return" are
10748         not really partof a loop , but live ranges used in these blocks should
10749         be live thru the entire loop, so set partOfLoop but don't add them to
10750         loop region
10751
10752 2002-02-21    <johan AT FRIJA>
10753
10754         * src/SDCCcse.c: fixed bug #514308
10755
10756 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
10757
10758         * src/SDCCloop.c:
10759         Fixed BUG #519583. If a conditional block ended in a return/break
10760         statement inside a loop, it was not being considered part of the loop.
10761
10762         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
10763
10764 2002-02-10  Karl Bongers <karl AT turbobit.com>
10765
10766         * debugger/*:
10767         Fixed up SDCDB debugger somewhat.  Updated debugger/README
10768         with lots of comments and notes.
10769
10770         * device/examples/test2.c:
10771         Fix bug, "red" variable not being initialized(compiler complained).
10772
10773         * device/examples/Makefile, examples/test3.c:
10774         Add Makefile in device/examples folder, compiles test3.c
10775         for use as a multiple module SDCDB test case.
10776
10777         * sim/ucsim/cmd.src/cmdset.cc:
10778         Took out debug printfs in ucsim "next" command.
10779
10780         * sim/ucsim/xa.src:
10781         Karl and Johan start ucsim XA support.  Most dissassembly working,
10782         about 75% emulation done(plenty of work remaining).
10783
10784         * sim/ucsim/z80.src:
10785         Add Z80 support to ucsim, add test-ucz80 regression test,
10786         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
10787         Notice z80 compiler fails on examples/test3.c/crc code.
10788
10789 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
10790
10791         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
10792         Added support for --parms-in-bank1
10793
10794         * src/ds390/peeph.def:
10795         added a few more peephole optimzations
10796
10797         * src/ds390/main.c:
10798         1) added __builtin_inp & __builtin_outp used to read in data of given length
10799            from a memory mapped port
10800         2) added __builtin_memcmp
10801         3) added __builtin_swapw swap bytes of a short
10802
10803         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
10804         1) handle multiple send & receives from register bank1
10805         2) ralloc can now allocate DPTR1 to some liveRanges
10806
10807         * src/SDCCsymt.c, src/SDCCsymt.h:
10808         changes to handle multiple sends & receives
10809
10810         * src/SDCCptropt.h:
10811         added some pointer arithmetic optimization
10812
10813         * src/SDCCptropt.c:
10814         added some pointer arithmetic optimizations but not stable yet so not
10815         called from anywhere (will get this working shortly)
10816
10817         * src/SDCCopt.c: fixed for multiple sends & receives
10818
10819         * src/SDCCmain.c:
10820         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
10821         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
10822            set preprocessor defines (depending on options)
10823
10824         * src/SDCCicode.c, src/SDCCicode.h:
10825         changes made to handle multiple sends & receives
10826
10827         * src/SDCCglobl.h:
10828         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
10829
10830         * src/SDCCcse.c, src/SDCCcse.h:
10831         added function findbackward def (to be used in upcoming optimization)
10832
10833         * src/SDCCcflow.c, src/SDCCcflow.h:
10834         added function returnAtEnd - to determine if a basic block terminates with
10835         a RETURN iCode
10836
10837         * src/SDCCast.c, src/SDCCast.h:
10838         added option parms-in-bank1
10839
10840         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
10841         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
10842         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
10843         adjusted for --parms-in-bank1 option
10844
10845         * device/include/string.h:
10846         donot redefine "reentrant" keyword
10847
10848         * device/include/ds80c390.h: Added some more SFRs
10849
10850 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
10851
10852         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
10853
10854 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
10855
10856         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
10857
10858 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
10859
10860         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
10861
10862 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
10863
10864         * Added --xram-movc option
10865
10866 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
10867
10868         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
10869
10870 2002-01-11  Johan Knol
10871
10872         * Added math lib of Jesus Calvino-Fraga
10873
10874 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
10875
10876         * src/SDCCmain.c (processFile): fix processing of ../../src.c
10877         * support/regression/Makefile: new target test-mcs51-stack-auto
10878         * support/regression/ports/mcs51-stack-auto/spec.mk: added
10879
10880 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10881
10882         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
10883
10884 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10885
10886         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
10887
10888 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
10889
10890         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
10891
10892         * src/SDCCglue.h: add definition for printIvalChar()
10893
10894 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10895
10896         * src/SDCCast.c: fix #498138 by Johan
10897
10898         * src/SDCCglue.c: fix #498138 by Johan
10899
10900 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10901
10902         * support/regression/Makefile: fix clean
10903
10904         * support/regression/ports/ds390/support.c: fix transmission of last character
10905
10906 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
10907
10908         * /sdcc/src/ds390/gen.c:
10909         a) improved computing address of stack variable
10910         b) took out some #if 0 code
10911         c) improved parmBytes adjustment
10912         d) improved genPlusIncr & genMinusIncr
10913         e) genCmp could generate bad code (when left assigned to DPTR)
10914         f) Fixed bug in hasInc
10915
10916         * /sdcc/src/ds390/ralloc.c:
10917         a) packRegsForSupport could mess up live information (Fixed)
10918         b) packRegsDPTRuse could be incorrect for left & right shift
10919
10920         * /sdcc/src/mcs51/ralloc.c:
10921         packRegsForSupport could mess up the live information (Fixed)
10922
10923         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
10924
10925         * /sdcc/src/SDCCast.c:
10926         can reverse a loop even if function call is present as long
10927         as the loop control variable is local & is not passed as parameter
10928
10929 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10930
10931         * /sdcc/ChangeLog: *** empty log message ***
10932
10933         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
10934         More builtin function additions for TININative
10935
10936         * /sdcc/src/ds390/ralloc.c:
10937         Had broken the regression testsuite
10938
10939         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
10940
10941         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
10942         Added funcattr hasStackParms will be set for reentrant functions when there
10943         are paramteres on the stack, this helps in minimizing frame pointer generation
10944         typeFromStr can handle function pointers now
10945
10946         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
10947         *** empty log message ***
10948
10949 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10950
10951         * /src/ds390/gen.c, /src/ds390/main.c:
10952         More builtin function additions for TININative
10953
10954         * /src/ds390/ralloc.c:
10955         Had broken the regression testsuite
10956
10957         * /src/SDCCast.c: Fixed a bug in dumptree
10958
10959         * /src/SDCCsymt.c, /src/SDCCsymt.h:
10960         Added funcattr hasStackParms will be set for reentrant functions when there
10961         are paramteres on the stack, this helps in minimizing frame pointer generation
10962         typeFromStr can handle function pointers now
10963
10964         * /doc/builtins.txt, /doc/TININative.txt:
10965         *** empty log message ***
10966
10967
10968 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10969
10970         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
10971         ALPHA version for -mTININative
10972
10973         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
10974         updated to reflect changes in the port structure
10975
10976         * /src/port.h:
10977         added function do_assemble (similar to do_link) if non-null this function
10978         will be called to do assembly (-mTININative) requires a multi command
10979         assembly
10980         added function genAssemblerEnd will be called to generate assembler Epilogue
10981
10982         * /src/SDCCsymt.c:
10983         added _JavaNative to debug info printing
10984
10985         * /src/SDCCmain.c: added option --tini-libid
10986         added port->do_assemble function (-mTININative) has a multi command assemble
10987
10988         * /src/SDCCglue.c: Disabled "constExpr" check
10989         added port->genAssemblerEnd function
10990
10991         * /src/SDCCglobl.h: Added option --tini-libid value
10992
10993         * /src/SDCCast.h:
10994         tookout optimizeCompare from the header (has no external references)
10995
10996         * /src/SDCCast.c: made one more function "static"
10997
10998 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
10999
11000         * src/z80/mappings.i: Added z80asm support.
11001
11002         * src/z80/main.c: Added z80asm support on --asm=z80asm
11003
11004         * src/z80/gen.c: Fixed asm portability issues.
11005
11006         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
11007
11008         * src/SDCCglue.c (printExterns): Added global/extern split.
11009
11010 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
11011
11012         * support/regression/Makefile: added test for mcs51 model large
11013
11014         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
11015
11016         * support/regression/ports/gbz80/spec.mk: added -mgbz80
11017
11018 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
11019
11020         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
11021
11022 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
11023
11024         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
11025
11026         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
11027
11028 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
11029
11030         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
11031
11032         * support/regression/tests/simplefloat.c: Port to mcs51.
11033
11034 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
11035         * support/regression/tests/bug-485362.c: Added.
11036
11037         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
11038
11039         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
11040
11041         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
11042
11043         * src/z80/gen.c (aopDump): Added a dump function.
11044
11045 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
11046         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
11047
11048         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
11049
11050         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
11051
11052         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
11053
11054         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
11055
11056         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
11057
11058         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
11059
11060         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
11061
11062         * support/regression/ports/ds390/support.c: Use tinibios.
11063
11064         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
11065
11066 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
11067
11068         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
11069         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
11070
11071         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
11072
11073         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
11074
11075 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
11076
11077         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
11078
11079         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
11080         (packRegsForIYUse): Created and optimised.
11081
11082 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11083
11084         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
11085 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
11086
11087         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
11088
11089         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
11090
11091         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
11092
11093 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11094
11095         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
11096
11097         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
11098
11099 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11100
11101         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
11102
11103         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
11104
11105         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
11106
11107 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11108
11109         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
11110         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
11111         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
11112
11113         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
11114
11115         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
11116         (genNotFloat): Added.
11117         (genUminusFloat): Added.
11118
11119         * device/lib/z80/Makefile: Added floating pt stubs.
11120
11121         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
11122
11123         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
11124
11125         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
11126
11127 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11128
11129         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
11130
11131         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
11132
11133         * sdcc/support/regression/Makefile: Add port ds390.
11134
11135         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
11136
11137         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
11138
11139         * sdcc/support/regression/ports/ds390/spec.mk: Added.
11140
11141         * sdcc/support/regression/ports/ds390/support.c: Added.
11142
11143         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
11144
11145         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
11146
11147         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
11148
11149 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11150
11151         * device/include/malloc.h: Added z80 and gbz80 support.
11152
11153         * device/lib/gbz80/heap.s: Added.
11154
11155         * device/lib/z80/heap.s: Added.
11156
11157         * device/lib/malloc.c: Added z80 and gbz80 support.
11158
11159         * support/regression/tests/malloc.c (testMalloc): Added.
11160
11161         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
11162
11163         * support/regression/tests/bug-478094.c: Added.
11164
11165         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
11166
11167 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
11168
11169         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
11170
11171         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
11172
11173         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
11174
11175         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
11176
11177         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
11178
11179 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11180
11181         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
11182
11183 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
11184
11185         * support/regression/tests/bug-477927.c: Added.
11186
11187         * src/z80/peeph.def: Added minor rules.
11188
11189         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
11190
11191         * src/z80/peeph.def: Added jump optimisation modification.
11192
11193 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
11194
11195         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
11196
11197 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
11198
11199         * support/regression/tests/funptrs.c: Added.
11200
11201 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
11202
11203         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
11204
11205 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
11206
11207         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
11208
11209         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
11210
11211         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
11212         (movLeft2ResultLong): Created.
11213
11214         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
11215         (joinPushes): Added.  Joins two char pushes into a word push.
11216
11217 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
11218
11219         * support/cpp2/Makefile.in (install): Added creation of dest dir.
11220
11221         * support/makebin/Makefile (install): Added creation of dest dir.
11222
11223 2001-10-24 Karl Bongers <karl AT turbobit.com>
11224
11225         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
11226
11227 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
11228
11229         * src/z80/ralloc.c: Turned off faulty pack for one use.
11230
11231         * src/z80/peeph-gbz80.def: Removed redundent restart options.
11232
11233         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
11234
11235 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
11236
11237         * support/regression/Makefile: Improved clean
11238
11239         * support/regression/ports/gbz80/spec.mk: Added clean
11240
11241         * support/regression/ports/host/spec.mk: Added clean
11242
11243         * support/regression/ports/z80/spec.mk: Added clean
11244
11245         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
11246
11247         * support/regression/ports/mcs51/timeout.c: little improvements
11248
11249 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
11250
11251         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
11252
11253         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
11254
11255         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
11256
11257 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
11258
11259         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
11260
11261         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
11262
11263 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
11264         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
11265
11266         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
11267
11268         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
11269
11270         * src/mcs51/main.c (_linkCmd): Added bin path to command.
11271
11272         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
11273
11274         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
11275
11276         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
11277
11278         * support/regression/tests/longor.c: Added.
11279
11280 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
11281
11282         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
11283
11284         * as/mcs51/aslink.h: define PATH_MAX
11285
11286         * as/mcs51/asm.h: define PATH_MAX
11287
11288         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
11289
11290         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
11291
11292         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
11293
11294         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
11295
11296         * src/SDCCglobl.h: define PATH_MAX
11297
11298         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
11299
11300         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
11301
11302 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
11303
11304         * src/z80/gen.c (gencjneshort): Fixed
11305
11306         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
11307
11308 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
11309
11310         * support/regression/tests/bug-469671.c: Added.
11311
11312         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
11313
11314 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
11315
11316         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
11317
11318         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
11319
11320 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
11321
11322         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
11323
11324         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
11325
11326         * src/device/lib/_mullong.c : removed hint: nooverlay bug
11327
11328         * src/device/lib/_divuint.c : removed hint: nooverlay bug
11329
11330         * src/device/lib/_divulong.c: removed hint: nooverlay bug
11331
11332         * src/device/lib/_moduint.c : removed hint: nooverlay bug
11333
11334         * src/device/lib/_modulong.c: removed hint: nooverlay bug
11335
11336 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
11337
11338         * 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.
11339
11340         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
11341
11342         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
11343
11344 2001-10-07    <johan AT FRIJA>
11345
11346         * device/lib/gets.c (gets): fixed the return value.
11347
11348 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
11349         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
11350
11351         * 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.
11352
11353         * 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.
11354
11355         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
11356
11357         * src/pic/gen.c: Removed Safe_strdup.
11358
11359         * configure.in: Added option to enable libgc support.
11360
11361         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
11362         (bitVectUnion): Optimised.
11363         (bitVectIntersect): Optimised.
11364         (bitVectBitsInCommon): Optimised.
11365         (bitVectCplAnd): Optimised.
11366
11367         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
11368
11369 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11370
11371         * src/SDCCmain.c: distinguish between assembler debug and plain options
11372
11373         * src/avr/main.c:   remove standard assembler options
11374
11375         * src/ds390/main.c: remove standard assembler options
11376
11377         * src/mcs51/main.c: remove standard assembler options
11378
11379         * src/port.h: removed "PENDING" comment
11380
11381 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11382
11383         * src/device/lib/_mulint.c  : new, with assember functions
11384
11385         * src/device/lib/_mullong.c : new, with assember functions
11386
11387         * src/device/lib/_divuint.c : with assember functions
11388
11389         * src/device/lib/_divsint.c : with assember functions
11390
11391         * src/device/lib/_divulong.c: with assember functions
11392
11393         * src/device/lib/_divslong.c: with assember functions
11394
11395         * src/device/lib/_moduint.c : with assember functions
11396
11397         * src/device/lib/_modsint.c : with assember functions
11398
11399         * src/device/lib/_modulong.c: with assember functions
11400
11401         * src/device/lib/_modslong.c: with assember functions
11402
11403         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
11404
11405         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
11406
11407         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
11408                                       replaced _mululong.c and _mulslong.c by _mullong.c
11409
11410 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11411
11412         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
11413
11414 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11415
11416         * src/SDCCglue.c: test, if win32api is available for MINGW
11417
11418 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11419
11420         * src/SDCCsymt.c: no more _modifier in printTypeChain()
11421         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
11422         * support/regression/ports/gbz80/spec.mk: removed GENERIC
11423         * support/regression/ports/host/spec.mk: removed GENERIC
11424         * support/regression/ports/mcs51/spec.mk: removed GENERIC
11425         * support/regression/ports/z80/spec.mk: removed GENERIC
11426
11427 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
11428
11429         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
11430
11431         * support/regression/tests/bug-467035.c: Created.
11432
11433 2001-10-01    <johan AT FRIJA>
11434
11435         * src/SDCC.y: fixed bug #466586 part 1
11436
11437 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
11438
11439         * SDCCicode.c: z80 has no generic pointers
11440         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
11441
11442 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
11443
11444         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
11445
11446 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
11447
11448         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
11449
11450         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
11451
11452 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
11453
11454         * configure.in: Fixed up so that ucsim is only configured once.
11455
11456         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
11457
11458         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
11459         (getPathDifference): As above.
11460
11461         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
11462
11463         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
11464
11465 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
11466         * .version: Updated to 2.3.1
11467
11468         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
11469         Added copyright header.
11470
11471         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
11472         (assemble): Added support for macro based assembler commands.
11473         (linkEdit): Added support for macro based linker commands.
11474         (preProcess): Changed the pre-processor to use macros.
11475         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
11476         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
11477
11478         * device/lib/z80/crt0.s: Added module name for debugging.
11479
11480 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
11481
11482         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11483
11484         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
11485
11486         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
11487
11488         * src/Makefile.in: Added SDCCmacro and SDCCutil
11489
11490 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
11491
11492         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11493
11494 2001-09-16    <johan AT FRIJA>
11495
11496         * 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.
11497
11498 2001-09-15    <johan AT FRIJA>
11499
11500         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
11501         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
11502
11503 2001-09-11    <johan AT FRIJA>
11504
11505         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
11506
11507 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
11508
11509         * support/regression/tests/bug-460444.c: Added test case.
11510
11511         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
11512         (genCast): Added justification for all of the asserts.
11513
11514 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
11515
11516         * support/regression/support.c: _xdata replaced by xdata
11517
11518         * support/regression/spec.mk: removed _generic
11519
11520 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
11521
11522         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
11523
11524         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
11525         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
11526
11527         * src/z80/peeph.def: Added a rule to optimise shift then compare.
11528
11529         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
11530
11531         * support/regression/tests/bug-460010.c: Added test case.
11532
11533         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
11534
11535 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
11536
11537         * support/regression/Makefile: inter-port-clean adjusted for mcs51
11538
11539         * support/regression/testfwk.c: removed workaround for bug #436344
11540
11541         * support/regression/tests/bp.c: use less memory with mcs51
11542
11543         * support/regression/tests/bug-441448.c: use less memory
11544
11545         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
11546
11547         * support/regression/collate-results.py: typo
11548
11549 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
11550
11551         * support/regression/tests/fetchoverlap.c: Added new test case.
11552
11553         * support/regression/tests/bp.c: Added new test case.
11554
11555         * support/regression/tests/bug-448984.c: Added new test case.
11556
11557         * support/regression/tests/pow2shifts.c: Added new test case.
11558
11559         * src/z80/gen.c: Turned off the noise it normally generates for the release.
11560         (genlshTwo): Fixed right shift for count > 8.
11561
11562         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
11563
11564 2001-09-08    <johan AT FRIJA>
11565
11566         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
11567
11568 2001-09-07    <johan AT FRIJA>
11569
11570         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
11571
11572         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
11573
11574 2001-09-06    <johan AT FRIJA>
11575
11576         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
11577         * bernhard noted me at this: "() equals to (void)" (1.38)
11578
11579 2001-09-05    <johan AT FRIJA>
11580
11581         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
11582
11583 2001-09-04    <johan AT FRIJA>
11584
11585         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
11586
11587
11588 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
11589
11590         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
11591
11592 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
11593
11594         * link/z80/aslink.h: Fixed path for PATH_MAX
11595
11596 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
11597
11598         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
11599
11600         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
11601
11602         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
11603
11604         * 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.
11605
11606 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
11607
11608         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
11609         (genCmp): Fixed up genCmp for the GB with longs.
11610
11611         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
11612
11613         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
11614
11615         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
11616
11617         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
11618
11619 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
11620
11621         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
11622
11623 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
11624
11625         * 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.
11626
11627         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
11628
11629 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
11630
11631         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
11632
11633         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
11634
11635 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
11636
11637   * sim/ucsim/configure:    little improvement of Cygwin-detection
11638   * sim/ucsim/configure.in: little improvement of Cygwin-detection
11639   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
11640   * support/regression/tests/bug-221100.c: small changes for mcs51
11641   * support/regression/tests/bug-221168.c: small changes for mcs51
11642   * support/regression/tests/bug-227710.c: small changes for mcs51
11643   * support/regression/tests/staticinit.c: small changes for mcs51
11644   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
11645   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11646   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11647
11648 $Revision$