* Small Device C Compiler 2.7.0 released
[fw/sdcc] / ChangeLog
1 2007-05-31 Borut Razem <borut.razem AT siol.net>
2
3         * Small Device C Compiler 2.7.0 released
4         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
5           changed sdcc version to 2.7.1
6         * support/scripts/sdcc.nsi: added How to create WIN32 release
7           setup.exe package
8
9 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
10
11         * doc/sdccman.lyx: documented initialization and allocation of absolute
12           variables, bit parameter passing, the need for function pointers to be
13           reentrant and alpha quality support of inline and retrict
14
15 2007-05-26 Borut Razem <borut.razem AT siol.net>
16
17         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
18           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
19         * docs/knownbugs.html: updated
20
21 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
22
23         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
24           thanks Jan Waclawek
25         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
26           AOP_CRY and ruonly
27           (gencjneshort): optimized when left is AOP_DIR
28         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
29           initializing unions in a struct/array
30         * support/regression/fwk/include/testfwk.h: added defines for data, near
31           and far for host and z80
32         * support/regression/tests/bug1723128.c: new, added
33
34 2007-05-22 Borut Razem <borut.razem AT siol.net>
35
36         * doc/knownbugs.html: updated
37
38 2007-05-21 Raphael Neider <rneider AT web.de>
39
40         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
41           error message instead
42         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
43
44 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
45
46         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
47
48 2007-05-21 Raphael Neider <rneider AT web.de>
49
50         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
51           closes #1722392
52         * src/regression/gpsim_assert.h,
53         * src/regression/Makefile,
54         * src/regression/pcodeopt.c: regression test for the above fix
55
56 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
57
58         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
59           jumps to self, fixed bug 1717281
60
61 2007-05-10 Borut Razem <borut.razem AT siol.net>
62
63         * support/scripts/gen_known_bugs.pl: cosmetic fix
64         * doc/knownbugs.html: generated by gen_known_bugs.pl
65
66 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
67
68         * src/SDCCast.c (createFunction): also generate non-inlined version of
69           function for functions declared as "static inline"
70         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
71           function can be inlined after non-inlined version generated.
72
73 2007-05-10 Borut Razem <borut.razem AT siol.net>
74
75         * support/scripts/gen_known_bugs.pl: added script
76           which generates knownbugs.html
77
78 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
79
80         * doc/knownbugs.html: updated for release 2.7.0
81
82 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
83
84         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
85
86 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
87
88         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
89           (throughout): updated generating comments
90         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
91           (throughout): updated generating comments
92         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
93           rule instead of at the second, or it might skip lines when removing the
94           complete match
95         * support/regression/tests/bug1714204.c: changed test to foo
96
97 2007-05-08 Borut Razem <borut.razem AT siol.net>
98
99         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
100           thanks to SDCC Distributed Compile Farm members,
101           added Z80 and GBZ80 command line options
102         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
103
104 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
105
106         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
107         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
108         * support/regression/tests/longlit.c: modified to be tested at all and
109           to pass the actual test
110
111 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
112
113         * device/include/mcs51/uPSD33xx.h: Added.
114
115 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
116
117         * device/lib/_gptrput.c,
118         * device/lib/_gptrget.c: removed old code,
119          (_gptrgetWord),
120         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
121         * support/regression/tests/bug1714204.c: new, added
122
123 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
124
125         * support/regression/tests/regtrack.c: test was never executed
126           because of the regression test being picky about white spaces.
127         * device/lib/mcs51/crtclear.asm: added comment
128
129 2007-05-06 Raphael Neider <rneider AT web.de>
130
131         * device/lib/pic/Makefile.rules,
132         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
133           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
134
135 2007-05-06 Raphael Neider <rneider AT web.de>
136
137         * src/pic16/device.h,
138         * src/pic16/main.h,
139         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
140           _pic16_setDefaultOptions): removed/reordered command-line args
141         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
142           devices, regrouped command line args, environment variables),
143           clarified sone points, added sections on how to add devices to the
144           PIC14/PIC16 ports
145
146 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
147
148         * src/z80/peeph.def: fixed bug in rule 2
149
150 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
151
152         * src/port.h: added TARGET_MCS51_LIKE
153         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
154           take advantage of it too
155         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
156           (shiftR2Left2Result): Optimized: don't check shifting by 0
157         * src/z80/peeph-z80.def,
158         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
159           modifications, see patch 1700823
160         * src/mcs51/peep.c (): fixed bug 1712928
161         * support/regression/tests/bug1712928.c: new, added
162
163 2007-05-05 Borut Razem <borut.razem AT siol.net>
164
165         * device/lib/pic16/Makefile.common.in,
166           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
167           removed bash dependencies
168
169 2007-05-01 Borut Razem <borut.razem AT siol.net>
170
171         * src/SDCCicode.c:
172           fixed bug #1710507: --i-code-in-asm makes compile fail
173           all iCode comments are now one liners
174         * src/mcs51/gen.c: fixed memory leak
175
176 2007-05-01 Raphael Neider <rneider AT web.de>
177
178         * device/lib/pic/libdev/*.c
179         * device/include/pic/*.h: regenerated all device libs from updated
180           .inc files
181         * support/scripts/inc2h.pl: documented usage, now uses strict to
182           catch more bugs
183
184 2007-04-30 Borut Razem <borut.razem AT siol.net>
185
186         * doc/sdccman.lyx:
187           fixed bug #1669175: Problem with space in output paths
188           documented how to use paths with spaces for Windows users
189
190 2007-04-29 Borut Razem <borut.razem AT siol.net>
191
192         * Fixed svn:eol-style and svn:keywords properties
193         * src/SDCCval.c: fixed bug
194           #1592871: Segfault with "large" const arrays of characters
195           replaced recursion with iteration
196         * Removed svn:executable property from non-executable files
197
198 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
199
200         * src/mcs51/gen.c (genRet): fixed bug 1707003
201
202 2007-04-27 Raphael Neider <rneider AT web.de>
203
204         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
205           createReachingDefinitions,assignValnums,pic16_destructDF,
206           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
207           prevent NULL pointer dereferences
208         * device/lib/pic/libdev/pic16f886.c,
209         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
210           prevent building them, gputils do not really support them yet
211
212 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
213
214         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
215           helps printf_small. 32 bytes more __idata mem.
216
217 2007-04-27 Raphael Neider <rneider AT web.de>
218
219         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
220           return early when pb or pb->pcHead is NULL (patch #1708427)
221         * src/regression/empty.c,
222         * src/regression/Makefile: added test with empty functions
223         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
224
225 2007-04-27 Borut Razem <borut.razem AT siol.net>
226
227         * src/SDCCast.c: fixed feature request
228           #1547512: Redundant strings linked when using sizeof("abc")
229
230 2007-04-23 Borut Razem <borut.razem AT siol.net>
231
232         * doc/sdccman.lyx, src/SDCCmain.c:
233           peep-hole comments are generated only if --fverbose-asm option is
234           specified and --no-peep-comments is not, as proposed by Frieder.
235         * support/regression/Makefile.in: compile regression tests with
236           --fverbose-asm option so one can "grep" whether a new (or an old)
237           peephole is (still) applied; requested by Frieder.
238
239 2007-04-23 Kevin Buettner <kevin AT buettner.to>
240
241         * device/include/pic/pic16f886.h,
242         * device/include/pic/pic16f887.h,
243         * device/lib/pic/libdev/pic16f886.c,
244         * device/lib/pic/libdev/pic16f887.c,
245         * device/include/pic/pic14devices.txt,
246         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
247
248 2007-04-23 Kevin Buettner <kevin AT buettner.to>
249
250         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
251           fixes #1704666
252
253 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
254
255         * device/lib/_memset.c: assembler version for mcs51
256
257 2007-04-22 Borut Razem <borut.razem AT siol.net>
258
259         * support/scripts/listerr.c: program to create the list of errors and
260           warnings list from - added
261         * doc/sdccman.lyx: removed the note
262           "For list of warnings and corresponding codes, see err_warn.txt"
263         * src/SDCCsymt.c: fixed bug #1699804:
264           Bug with some uses of sizeof(static local array) (MCS51)
265         * support/regression/tests/bug-1699804.c: added
266
267 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
268
269         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
270           (main): added option -i,
271           (asmbl, case S_INCL): use search_path_fopen,
272           mostly from patch 1579668 by Peter Miller, thanks
273         * src/z80/main.c: fixed typo --callee-saves-bc
274         * device/include/mcs51/compiler.h: added sfrword for Tasking
275
276 2007-04-20 Borut Razem <borut.razem AT siol.net>
277
278         * src/z80/main.c: replaced reserved keyword asm with asmblr
279
280 2007-04-19 Borut Razem <borut.razem AT siol.net>
281
282         * src/port.h: use const pointers to strings
283         * src/SDCCargs.h: declared getStringArg() and getIntArg()
284         * src/pic16/main.c: include SDCCargs.h
285         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
286           const char, since the strings are dynamically allocated
287         * src/SDCCmain.c: options.code_seg and options.const_seg are
288           dynamically allocated; check port specific command line options
289           before the general ones
290         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
291
292 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
293
294         * device/include/ds400rom.h,
295         * device/lib/ds390/lcd390.c,
296         * device/lib/ds390/memcpyx.c,
297         * device/lib/ds390/rtc390.c,
298         * device/lib/ds400/ds400rom.c,
299         * device/lib/ds400/memcpyx.c,
300         * device/lib/hc08/_ret.c: more replacements of keywords with their
301           double underscore equivalents
302         * device/lib/ds390/Makefile.in,
303         * device/lib/ds400/Makefile.in,
304         * device/lib/gbz80/Makefile.in,
305         * device/lib/hc08/Makefile.in,
306         * device/lib/mcs51/Makefile.in,
307         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
308
309 2007-04-17 Borut Razem <borut.razem AT siol.net>
310
311         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
312           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
313           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
314           to --fverbose-asm, to be gcc'ish
315
316 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
317
318         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
319
320 2007-04-17 Borut Razem <borut.razem AT siol.net>
321
322         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
323         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
324           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
325           with their double underscore equivalent
326
327 2007-04-14 Borut Razem <borut.razem AT siol.net>
328
329         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
330           source"
331
332 2007-04-13 Borut Razem <borut.razem AT siol.net>
333
334         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
335           C99 standard
336         * device/examples/serialcomm/windows/serial.[ch],
337           device/examples/serialcomm/windows/test_serialcomm.cpp:
338           updated by Bela Torok
339         * device/examples/serialcomm/windows/serialcomm.dsw,
340           device/examples/serialcomm/windows/serialcomm.dsp: added
341
342 2007-04-13 Jan Waclawek <wek AT efton.sk>
343
344         * doc/sdccman.lyx: additions and changes at various places
345           (submitted as #1697136).
346           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
347
348 2007-04-10 Borut Razem <borut.razem AT siol.net>
349
350         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
351           LyX file format changed to 245
352         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
353           "FreeWare" replaced with "free open source"
354
355 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
356
357         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
358
359 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
360
361         * device/include/pic16/pic18fregs.h,
362         * device/lib/_bp.c,
363         * device/lib/_decdptr.c,
364         * device/lib/_divsint.c,
365         * device/lib/_divslong.c,
366         * device/lib/_divuint.c,
367         * device/lib/_divulong.c,
368         * device/lib/_fs2schar.c,
369         * device/lib/_fs2sint.c,
370         * device/lib/_fs2slong.c,
371         * device/lib/_fs2uchar.c,
372         * device/lib/_fs2uint.c,
373         * device/lib/_fs2ulong.c,
374         * device/lib/_fsadd.c,
375         * device/lib/_fscmp.c,
376         * device/lib/_fsdiv.c,
377         * device/lib/_fseq.c,
378         * device/lib/_fsget1arg.c,
379         * device/lib/_fsget2args.c,
380         * device/lib/_fsgt.c,
381         * device/lib/_fslt.c,
382         * device/lib/_fsmul.c,
383         * device/lib/_fsneq.c,
384         * device/lib/_fsnormalize.c,
385         * device/lib/_fsreturnval.c,
386         * device/lib/_fsrshift.c,
387         * device/lib/_fssub.c,
388         * device/lib/_fsswapargs.c,
389         * device/lib/_gptrget.c,
390         * device/lib/_gptrgetc.c,
391         * device/lib/_gptrput.c,
392         * device/lib/_logexpf.c,
393         * device/lib/_modsint.c,
394         * device/lib/_modslong.c,
395         * device/lib/_moduint.c,
396         * device/lib/_modulong.c,
397         * device/lib/_mulint.c,
398         * device/lib/_mullong.c,
399         * device/lib/_schar2fs.c,
400         * device/lib/_ser.c,
401         * device/lib/_setjmp.c,
402         * device/lib/_sint2fs.c,
403         * device/lib/_slong2fs.c,
404         * device/lib/_spx.c,
405         * device/lib/_uchar2fs.c,
406         * device/lib/_uint2fs.c,
407         * device/lib/_ulong2fs.c,
408         * device/lib/asincosf.c,
409         * device/lib/atanf.c,
410         * device/lib/calloc.c,
411         * device/lib/ds390/tinibios.c,
412         * device/lib/ds400/tinibios.c,
413         * device/lib/expf.c,
414         * device/lib/free.c,
415         * device/lib/hc08/_mulint.c,
416         * device/lib/logf.c,
417         * device/lib/malloc.c,
418         * device/lib/printf_fast.c,
419         * device/lib/printf_tiny.c,
420         * device/lib/printfl.c,
421         * device/lib/realloc.c,
422         * device/lib/ser_ir.c,
423         * device/lib/serial.c,
424         * support/regression/tests/libmullong.c: replaced all special keywords
425           with their double underscore equivalent
426         * support/regression/ports/mcs51-xstack-auto/spec.mk,
427         * device/lib/Makefile.in: compile libs with --std-c99 instead of
428           --std-sdcc99
429         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
430           (genRet): if the bit-symbol is ruonly it already is in the carry
431         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
432         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
433         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
434           type UCHAR if dest is not bit
435
436 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
437
438         * device/include/math.h,
439         * device/lib/cotf.c,
440         * device/lib/expf.c,
441         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
442
443 2007-04-01 Borut Razem <borut.razem AT siol.net>
444
445         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
446           fixed bug #1692042: input buffer overflow...scanner uses REJECT
447         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
448           gcc_unreachable() called internal_error()...
449
450 2007-03-30 Raphael Neider <rneider AT web.de>
451
452         * src/pic/ralloc.c (isData): suppress garbage debug output
453
454 2007-03-28 Borut Razem <borut.razem AT siol.net>
455
456         * doc/sdccman.lyx:
457           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
458           is developed, built and used worldwide, and the word "night" doesn't
459           make any sense.
460
461 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
462
463         * device/include/mcs51/C8051F360.h: new, added
464         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
465
466 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
467
468         * src/SDCC.y (declaration_specifiers, function_specifier),
469         * support/Util/SDCCerr.c,
470         * support/Util/SDCCerr.h,
471         * src/SDCCsymt.h,
472         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
473           inline keyword
474         * src/SDCCmem.c (deallocParms),
475         * src/SDCCast.c: support for function inlining, not quite complete
476         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
477           'restrict' qualifier
478
479 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
480
481         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
482           (saveRBank, unsaveRBank): don't save bits,
483           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
484         * support/regression/tests/bug1535242.c: new, added
485         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
486           thanks Alexey Shamrin <shamrin AT gmail.com>,
487           made assert.h header ANSI compliant (added a check for NDEBUG macro,
488           removed header guard)
489         * .version,
490         * sdcc.spec: bumped version to 2.6.5
491         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
492
493 2007-03-22 Borut Razem <borut.razem AT siol.net>
494
495         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
496           fixed bug #1653671: sdcdb integration into ddd is broken
497
498 2007-03-22 Raphael Neider <rneider AT web.de>
499
500         * src/pic/gen.c (popGetExternal): augmented to also create references
501           to external variables (not only labels),
502           (genCall): comment on plan to reduce PAGESEL overhead,
503           (genFunction, genEndFunction): also save/restore FSR around interrupt
504           handling code, removed lots of unused code
505           (genDivOneByte): release acquired temp register
506         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
507           of popGetExternal
508         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
509           for registers that need to be saved during interrupts (FSR, STATUS,
510           PCLATH; W needs special handling), currently only FSR is used
511
512 2007-03-22 Raphael Neider <rneider AT web.de>
513
514         * device/include/pic/pic14devices.txt: 16f688 has only one config word
515
516 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
517
518         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
519
520 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
521
522         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
523
524 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
525
526         * as/link/aslink.h: added LKOBJEXT
527         * as/link/hc08/link_hc08.dsp,
528         * as/link/hc08/Makefile.bcc,
529         * as/link/hc08/Makefile.in,
530         * as/link/mcs51/aslink.dsp,
531         * as/link/mcs51/Makefile.bcc,
532         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
533         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
534         * as/link/lkaomf51.c: merged and moved
535         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
536         * as/link/z80/lkdata.c,
537         * as/link/lkdata.c: merged and moved
538         * as/link/hc08/lkmain.c,
539         * as/link/mcs51/lkmain.c: cosmetic changes
540         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
541         * as/link/lklex.c: use LKOBJEXT
542         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
543           ANSI-fied functions, removed bubble-sorts
544         * as/link/z80/lksym.c           as/link/lksym.c: merged,
545           ANSI-fied functions
546         * as/link/z80/linkgbz80.dsp,
547         * as/link/z80/linkz80.dsp,
548         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
549           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
550         * as/link/z80/lkhead.c,
551         * as/link/z80/lklex.c: deleted
552         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
553         * as/link/z80/lkmain.c: added copyfile()
554
555 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
556
557         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
558
559 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
560
561         * device/lib/_strlen.c: assembler version for mcs51
562
563 2007-03-13 Raphael Neider <rneider AT web.de>
564
565         * device/include/pic16/pic18f2221.h,
566         * device/include/pic16/pic18f2321.h,
567         * device/include/pic16/pic18f2331.h,
568         * device/include/pic16/pic18f4221.h,
569         * device/include/pic16/pic18f4321.h,
570         * device/include/pic16/pic18f4331.h: fixed config byte location names
571         * support/scripts/inc2h-pic16.pl: removed debug output, emit
572           consistently named config byte locations
573
574 2007-03-13 Borut Razem <borut.razem AT siol.net>
575
576         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
577           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
578           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
579           as/link/z80/Makefile.in, as/z80/Makefile.in:
580           introduced LDFLAGS
581
582 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
583
584         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
585         * device/lib/printf_large.c: pointer was converted to generic
586         pointer for mcs51 models other than model-small (Maarten noticed)
587
588 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
589
590         * device/include/mcs51/ADuC84x.h: Added.
591
592 2007-03-10 Borut Razem <borut.razem AT siol.net>
593
594         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
595           fixed RFE #1624219: double backslashes in filenames;
596           functions hexEscape(), octalEscape() and copyStr() moved from
597           SDCCval.c to SDCCutil.c and made them glovbally available
598
599 2007-03-09 Borut Razem <borut.razem AT siol.net>
600
601         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
602           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
603           1673361: Missaligned comments in output files
604
605 2007-03-09 Raphael Neider <rneider AT web.de>
606
607         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
608
609 2007-03-09 Raphael Neider <rneider AT web.de>
610
611         * src/pic/gen.c,
612         * src/pic/glue.c,
613         * src/pic/ralloc.c: suppress undesired debug output
614         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
615
616 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
617
618         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
619
620 2007-03-07 Borut Razem <borut.razem AT siol.net>
621
622         * device/lib/pic16/libdev/pic18f[24][34]31.c:
623           search include files in the current directory
624
625 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
626
627         * src/SDCCglue.c (emitMaps, glue),
628         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
629           absolute xdata
630         * support/regression/tests/absolute.c: added xdata test
631
632 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
633
634         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
635           added condition to macro, fixes bug 1666080
636
637 2007-03-02 Raphael Neider <rneider AT web.de>
638
639         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
640
641 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
642
643         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
644         be cleared. Unconditionally set __XPAGE
645         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
646
647 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
648
649         * src/SDCCglobl.h,
650         * src/SDCCmain.c,
651         * src/mcs51/gen.c,
652         * src/mcs51/rtrack.c,
653         * src/ds390/gen.c,
654         * doc/sdccman.lyx: added --no-gen-comments
655         * src/mcs51/peeph.def: added 192.b, disabled 185
656
657 2007-02-25 Raphael Neider <rneider AT web.de>
658
659         * src/pic16/gen.c (genCast): fixed typo
660         * device/lib/pic16/Makefile.subdir: only install existing files
661         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
662
663 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
664
665         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
666         * device/lib/mcs51/crtclear.asm,
667         * device/lib/mcs51/crtxclear.asm: renumbered labels
668         * device/lib/mcs51/Makefile.in: added crtcall.asm
669         * doc/sdccman.lyx: documented mcs51 crt* library startup code
670         * src/mcs51/gen.c (movc): removed,
671           (aopGet, genPlusBits): clear a after loading the carry (possibly from
672             acc.x or psw.x),
673           (toCarry, genSend, genRet): added function toCarry,
674           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
675           (assignBit, genAssign, genCast): added function assignBit
676         * src/mcs51/Makefile.bcc: added rtrack.c
677         * src/mcs51/ralloc.h: made valueKnown a bitfield
678         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
679           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
680           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
681         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
682         * src/z80/gen.c: added AOP_IS_PAIRPTR,
683           (_pop): only pop valid pairs, see gencjneshort,
684           (gencjneshort): return pair that still needs to be popped, restructured,
685           (gencjne, genCmpEq): call _pop
686
687 2007-02-23 Raphael Neider <rneider AT web.de>
688
689         * device/include/pic/pic14devices.txt: 16f684 has only one config word
690
691 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
692
693         * device/include/mcs51/P89LPC925.h: Added.
694
695 2007-02-18 Raphael Neider <rneider AT web.de>
696
697         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
698
699 2007-02-17 Borut Razem <borut.razem AT siol.net>
700
701         * support/cpp2/directives.c, support/cpp2/version.c:
702           synchronized with GCC CPP 4.1.2
703
704 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
705
706         * src/mcs51/rtrack.h,
707         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
708           by checking the strings passed by emitcode() to the assembler.
709           Feel free to change. This in part addresses RFE #482179.
710           Set environment variable SDCC_RTRACK to enable.
711         * src/mcs51/gen.c: inserted hooks
712         * src/mcs51/ralloc.h: added two members to struct regs
713         * support/regression/tests/regtrack.c: added
714
715 2007-02-14 Borut Razem <borut.razem AT siol.net>
716
717         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
718         * Makefile.in: applied patch from Makefile related part of
719           #1469393: Compiler does not initialize static data
720
721 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
722
723         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
724           for better fix of bug 1273984, compiles pic16 rand.c
725
726 2007-02-12 Borut Razem <borut.razem AT siol.net>
727
728         * src/pic16/main.c: fixed pic16 standard library directory bug
729
730 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
731
732         * src/hc08/gen.c (genSwap): fix swap regression test
733
734 2007-02-10 Borut Razem <borut.razem AT siol.net>
735
736         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
737           with same scope
738         * support/regression/tests/bug-1654060.c: added regression test for
739           #1654060
740
741 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
742
743         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
744         bit moves in return statement
745
746 2007-02-09 Borut Razem <borut.razem AT siol.net>
747
748         * src/SDCC.y: fixed bug #1654060 typedef within function causes
749           syntax error
750
751 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
752
753         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
754         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
755
756 2007-02-07 Raphael Neider <rneider AT web.de>
757
758         * src/pic16/devices.inc,
759         * device/include/pic16/pic18fregs.h,
760         * device/include/pic16/pic18f[24][34]31.h,
761         * device/lib/pic16/libdev/pic18f[24][34]31.c,
762         * device/lib/pic16/pics.all: added 18f[24][34]31 family
763         * device/lib/pic16/libio/i2c.ignore: do not build i2c
764
765 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
766
767         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
768           can this have lived here for so many years?
769         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
770           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
771         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
772
773 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
774
775         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
776         appended by loop induction must be at the very end of the eBBlock
777
778 2007-02-05 Kevin Vigor
779
780         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
781
782 2007-02-05 Borut Razem <borut.razem AT siol.net>
783
784         * support/regression/fwk/lib/timeout.c: native WIN32 port,
785           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
786
787 2007-02-03 Borut Razem <borut.razem AT siol.net>
788
789         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
790           applied patch #1646602 option to set default signedness of char to
791           unsigned, added -funsigned-char command line option,
792           thanks to Gunther Jehle
793         * device/lib/Makefile.in: added the -f option to rm so it doesn't
794           prompt for file deletion a few hundred times (especially the
795           subversion files, which have ro permissions so it asks for
796           confirmation), thanks to Simon McAuliffe;
797           added {} + option to find in order to remove multiple files from a
798           single rm commad
799
800 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
801
802         * device/include/mcs51/SST89x5xRDx.h: Added.
803
804 2007-02-02 Raphael Neider <rneider AT web.de>
805
806         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
807         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
808
809 2007-02-01 Raphael Neider <rneider AT web.de>
810
811         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
812           config words again
813
814 2007-01-31 Borut Razem <borut.razem AT siol.net>
815
816         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
817           if compiled with GCC. Thanks to Raphael Neider
818
819 2007-01-31 Raphael Neider <rneider AT web.de>
820
821         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
822             operand names, handles name and (name + n) for all n,
823           (sameBank): restructured, also check bank allocation policy,
824         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
825           (pic14_operandsAllocatedInSameBank): check whether to operands
826             will be allocated into the same bank (i.e., section) to reduce
827             BANKSEL overhead, queried from pcode.c:sameBank,
828           (pic14printLocals): reintroduced clustering registers into a single
829             section: all compiler generated symbols will now reside in one
830             bank (per file), reducing BANKSEL overhead and code size,
831           (showAllMemmaps): use local dbuf where possible
832
833 2007-01-29 Raphael Neider <rneider AT web.de>
834
835         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
836           (call_libraryfunc): retrieve/create symbol and mark as used,
837           (genFunction): mark defined functions as non-extern and add again
838            to code memmap for later output
839         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
840           (pic14printLocals): reworked for new symbol emission,
841           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
842           showAllMemmaps): reworked symbol output using dbufs, added handling
843             of string literals (still incomplete),
844           (picglue): removed symbol emission, moved into showAllMemmaps,
845           (emitSymbolSet): new workhorse for symbol output,
846           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
847
848 2007-01-29 Borut Razem <borut.razem AT siol.net>
849
850         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
851           component contains the extension separator.
852
853 2007-01-28 Borut Razem <borut.razem AT siol.net>
854
855         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
856           on WIN32
857         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
858           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
859           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
860           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
861           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
862           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
863           src/z80/gen.c, support/Util/MySystem.c:
864           accept slash and backslash as directory separator on WIN32 and
865           Cygwin ports
866
867 2007-01-28 Raphael Neider <rneider AT web.de>
868
869         * src/pic16/devices.inc,
870         * device/include/pic16/pic18f[24][23]21.h,
871         * device/include/pic16/pic18fregs.h,
872         * device/lib/pic16/libdev/pic18f[24][23]21.c,
873         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
874         * device/lib/pic16/libio/adc.ignore,
875         * device/lib/pic16/libio/i2c.ignore,
876         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
877           family, as gputils do not yet support the devices
878         * device/lib/pic16/Makefile.subdir: ignore errors on install
879         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
880           headers and libraries from gputils .inc files
881
882 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
883
884         * doc/sdccman.lyx: add printf_fast_f precision limitation note
885
886 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
887
888         * doc/sdccman.lyx: add printf benchmarks
889
890 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
891
892         * device/lib/printf_fast.c: fix %c, char promoted to int
893         * device/lib/printf_tiny.c: fix %c, char promoted to int
894
895 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
896
897         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
898
899 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
900
901         * support/regression/tests/swap.c: 64 bit hosts failed
902         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
903
904 2007-01-25 Raphael Neider <rneider AT web.de>
905
906         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
907           based on absolute register address, patch by Alex Blond
908
909 2007-01-22 Raphael Neider <rneider AT web.de>
910
911         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
912           emitted, do not emit them again...
913
914 2007-01-22 Raphael Neider <rneider AT web.de>
915
916         * src/regression/bank1.c, src/regression/compare6.c,
917           src/regression/add.c: cosmetic changes
918         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
919         * src/pic/gen.c: fixed global zero and one,
920           (aopForSym): removed unued code,
921           (aopGet): assert aop is defined, check and use `index' of
922             pCodeImmd operands (fixes #1630908),
923         * src/pic/pcode.c (get_op): added output of generic pointer tag,
924           (register_reassign): prevent accidental register unification,
925           (ReuseReg): cosmetic changes (also above)
926         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
927           pic14emitStaticSeg): do not emit initialized data,
928           (printIval*): replaced with working versions,
929           (pic14createInterruptVect,picglue): use idata for initialized data,
930             now init data should work in all modules (not only main()),
931         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
932
933 2007-01-21 Borut Razem <borut.razem AT siol.net>
934
935         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
936           use -fPIC or -fpic if they are supported and not ignored
937         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
938         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
939
940 2007-01-20 Borut Razem <borut.razem AT siol.net>
941
942         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
943           implemented RFE #1470316: allow "$" in variable names
944
945 2007-01-20 Raphael Neider <rneider AT web.de>
946
947         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
948
949 2007-01-20 Raphael Neider <rneider AT web.de>
950
951         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
952         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
953         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
954         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
955           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
956         * device/lib/pic/libdev/pic*.c,
957         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
958         * device/lib/pic/libdev/Makefile.in: show progress
959
960 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
961
962         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
963         * support/scripts/sdcc_cygwin_mingw32,
964         * support/scripts/sdcc_mingw32,
965         * support/scripts/build.mak: replaced --datadir by --datarootdir for
966         conformance with autoconf 2.6
967
968 2007-01-19 Raphael Neider <rneider AT web.de>
969
970         * src/pic/device.c (register_map): fixed list construction
971         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
972           (genMod): removed case for genModbits,
973           (genModbits): removed as now unused/unimplemented
974         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
975
976 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
977
978         * support/regression/tests/swap.c: added in response to #1638622
979         * doc/sdccman.lyx: synced version, minor changes
980
981 2007-01-18 Borut Razem <borut.razem AT siol.net>
982
983         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
984           thanks to Gunther Jehle
985         * src/asm.c: don't die if the file drfined in #line couldn't be opened
986         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
987           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
988           use filename in lineno instead.
989         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
990           print the file name in ast_print()
991
992 2007-01-18 Borut Razem <borut.razem AT siol.net>
993
994         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
995           defined in MSVC
996         * src/SDCC.lex: stringLiteral() returns const char pointer,
997           EOF detection in stringLiteral(), fixed asmbuf memory leak,
998           fixed column counting
999         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
1000           accept const char pointer as parameter
1001         * src/SDCCdwarf2.c: corrected buffer size
1002
1003 2007-01-17 Borut Razem <borut.razem AT siol.net>
1004
1005         * support/Util/dbuf_string.c: fixed for amd64
1006
1007 2007-01-15 Borut Razem <borut.razem AT siol.net>
1008
1009         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
1010           removed terminal symbol ELIPSIS, since it was never generated by the
1011           lexer and it was wrongly used in parameter_identifier_list rule
1012
1013 2007-01-15 Raphael Neider <rneider AT web.de>
1014
1015         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
1016             code page and data banking description
1017         * src/pic/genarith.c,
1018         * src/pic/gen.h: removed bit arithmetic functions,
1019             updated exit(1) to exit(EXIT_FAILURE)
1020         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
1021         * device/include/pic16/pic18f2455.h,
1022         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
1023             TRISD and TRISE, fixed/added some bit names
1024         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
1025         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
1026             updated pic18f2455.{c,h} instead of duplicating them
1027
1028 2007-01-14 Borut Razem <borut.razem AT siol.net>
1029
1030         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
1031           Cannot debug files that contain spaces in the path name
1032           by converting spaces in asm file name to underscores
1033
1034 2007-01-13 Borut Razem <borut.razem AT siol.net>
1035
1036         * doc/sdccman.lyx: fixed format errors
1037
1038 2007-01-10 Borut Razem <borut.razem AT siol.net>
1039
1040         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
1041           codeseg/constseg #pragma fail
1042         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
1043         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
1044           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
1045           suppoprt/cpp2/sdcpp.[ch]: house cleaning
1046
1047 2007-01-09 Borut Razem <borut.razem AT siol.net>
1048
1049         * get rid of diagnistic.[ch], pretty-print.[ch],
1050           c-pretty-print.[ch], ... used just for error, warning, ...
1051           message formatting
1052         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
1053           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
1054           suppoprt/cpp2/pretty-print.[ch]:
1055           removed
1056         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
1057           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
1058           suppoprt/cpp2/sdcpp.dsp:
1059           changed
1060
1061 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
1062
1063         * device/lib/printf_large.c (output_float): removed recursion,
1064           use smaller buffer on stack for mcs51,
1065           fixed bug printing 1.96
1066         * support/regression/tests/snprintf.c: added test
1067
1068 2007-01-07 Borut Razem <borut.razem AT siol.net>
1069
1070         * use dynamic memory buffers instead temporary files
1071         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
1072           added
1073         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
1074           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
1075           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
1076           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
1077           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
1078           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
1079           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
1080           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
1081           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
1082           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
1083           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
1084           support/Util/dbuf.c, support/Util/dbuf.h:
1085           modified
1086         * .version, sdcc.spec: bumped version to 2.6.4
1087
1088 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1089
1090         * src/port.h: added TARGET_Z80_LIKE macro
1091         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
1092           output PSEG location if --xram-loc or --xstack-loc was used
1093         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
1094
1095 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1096
1097         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
1098         * as/as_z80.dsp,   as/z80/as_z80.dsp,
1099         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
1100         * sdcc.dsw: moved project files into subdir
1101         * as/hc08/as_hc08.dsp,
1102         * as/hc08/Makefile.bcc,
1103         * as/hc08/Makefile.in,
1104         * as/mcs51/Makefile.bcc,
1105         * as/mcs51/Makefile.in,
1106         * as/z80/Makefile.bcc,
1107         * as/z80/Makefile.in,
1108         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
1109         * as/hc08/asm.h,
1110         * as/mcs51/asm.h,
1111         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
1112         * as/hc08/asmain.c,
1113         * as/hc08/assym.c,
1114         * as/mcs51/asmain.c,
1115         * as/mcs51/assym.c,
1116         * as/z80/assym.c: removed include "strcmpi.h"
1117         * as/hc08/strcmpi.c,
1118         * as/hc08/strcmpi.h,
1119         * as/mcs51/strcmpi.c,
1120         * as/mcs51/strcmpi.h,
1121         * support/Util/strcmpi.c,
1122         * support/Util/strcmpi.h: removed files
1123         * as/strcmpi.c: added as_strncmpi()
1124
1125 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1126
1127         * sdcc.dsw: Added some dependencies on project config.dsp
1128
1129 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
1130
1131         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
1132           with [di]ram_start to fix a regresion
1133
1134 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
1135
1136         * configure.in: added missing mcs51 in status output
1137         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
1138         directory
1139         * debugger/mcs51/clean.mk (distclean): remove config.h
1140         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
1141         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
1142         options.h, s-options-h and options.c
1143         * support/cpp2/clean.mk: unused, removed
1144         * Makefile.common.in,
1145         * main_in.mk,
1146         * as/Makefile.in,
1147         * as/hc08/Makefile.in,
1148         * as/hc08/clean.mk,
1149         * as/mcs51/Makefile.in,
1150         * as/mcs51/clean.mk,
1151         * as/z80/clean.mk,
1152         * as/z80/conf.mk,
1153         * as/z80/Makefile.in,
1154         * as/z80/clean.mk,
1155         * as/link/Makefile.in,
1156         * as/link/hc08/Makefile.in,
1157         * as/link/hc08/clean.mk,
1158         * as/link/mcs51/Makefile.in,
1159         * as/link/mcs51/clean.mk,
1160         * as/link/z80/Makefile.in,
1161         * as/link/z80/clean.mk,
1162         * as/link/z80/conf.mk,
1163         * debugger/mcs51/Makefile.in,
1164         * debugger/mcs51/clean.mk,
1165         * device/include/Makefile.in,
1166         * device/lib/Makefile.in,
1167         * device/lib/mcs51/Makefile.in,
1168         * device/lib/pic/Makefile.in,
1169         * device/lib/pic/Makefile.common.in,
1170         * device/lib/pic/Makefile.subdir,
1171         * device/lib/pic/Makefile.rules,
1172         * device/lib/pic16/libio/Makefile.in,
1173         * device/lib/pic16/Makefile.subdir,
1174         * device/lib/pic16/libdev/Makefile.in,
1175         * device/lib/pic16/Makefile.rules,
1176         * device/lib/pic16/Makefile.common.in,
1177         * sim/ucsim/avr.src/Makefile.in,
1178         * sim/ucsim/main_in.mk,
1179         * sim/ucsim/cmd.src/Makefile.in,
1180         * sim/ucsim/doc/Makefile.in,
1181         * sim/ucsim/gui.src/Makefile.in,
1182         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1183         * sim/ucsim/gui.src/serio.src/Makefile.in,
1184         * sim/ucsim/hc08.src/Makefile.in,
1185         * sim/ucsim/libltdl/Makefile.in,
1186         * sim/ucsim/s51.src/Makefile.in,
1187         * sim/ucsim/sim.src/Makefile.in,
1188         * sim/ucsim/sim.src/conf.mk,
1189         * sim/ucsim/xa.src/Makefile.in,
1190         * sim/ucsim/z80.src/Makefile.in,
1191         * src/Makefile.in,
1192         * src/clean.mk,
1193         * src/port.mk,
1194         * support/cpp2/Makefile.in,
1195         * support/librarian/Makefile.in,
1196         * support/librarian/clean.mk,
1197         * support/makebin/Makefile.in,
1198         * support/makebin/clean.mk,
1199         * support/packihx/Makefile.in,
1200         * support/regression/Makefile.in,
1201         * support/regression/ports/ds390/spec.mk,
1202         * support/regression/ports/gbz80/spec.mk,
1203         * support/regression/ports/hc08/spec.mk,
1204         * support/regression/ports/mcs51/spec.mk,
1205         * support/regression/ports/mcs51-large/spec.mk,
1206         * support/regression/ports/mcs51-medium/spec.mk,
1207         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1208         * support/regression/ports/pic14/spec.mk,
1209         * support/regression/ports/pic16/spec.mk,
1210         * support/regression/ports/mcs51-stack-auto/spec.mk,
1211         * support/regression/ports/ucz80/spec.mk,
1212         * support/regression/ports/xa51/spec.mk,
1213         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1214         adding a slash after $(top_builddir) and/or adding @datarootdir@
1215         * configure.in,
1216         * debugger/mcs51/configure.in,
1217         * device/lib/pic/configure.in,
1218         * device/lib/pic16/configure.in,
1219         * sim/ucsim/configure.in,
1220         * support/cpp2/configure.in,
1221         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1222         * configure,
1223         * debugger/mcs51/configure,
1224         * device/lib/pic/configure,
1225         * device/lib/pic16/configure,
1226         * sim/ucsim/configure,
1227         * support/cpp2/configure,
1228         * support/packihx/configure: generated with autoconf 2.60
1229
1230 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1231
1232         * as/link/hc08/lkihx.c (newArea),
1233         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1234
1235 2007-01-02 Borut Razem <borut.razem AT siol.net>
1236
1237         * doc/sdccman.lyx: documented #pragma sdcc_hash
1238         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1239           initialized to 0
1240         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1241
1242 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1243
1244         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1245         empty 'while'-loop to work correctly, see regression test 'while.c'
1246         * support/regression/tests/while.c: added
1247
1248 2007-01-01 Borut Razem <borut.razem AT siol.net>
1249
1250         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1251           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1252           support/cpp2/libcpp/sdcpp.c:
1253           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1254         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1255         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1256
1257 2006-12-31 Borut Razem <borut.razem AT siol.net>
1258
1259         * SDCPP synchronized with GCC CPP release version 4.1.1,
1260           currently the latest release:
1261         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1262           support/cpp2/libcpp/include/cpp-id-data.h
1263           support/cpp2/libiberty/fopen_unlocked.c
1264           support/cpp2/libiberty/md5.c
1265           support/cpp2/md5.h
1266           support/cpp2/opt-functions.awk
1267           support/cpp2/opt-gather.awk
1268           support/cpp2/optc-gen.awk
1269           support/cpp2/opth-gen.awk:
1270           added
1271         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1272           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1273           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1274           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1275           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1276           support/cpp2/diagnostic.h, support/cpp2/except.h,
1277           support/cpp2/hwint.h, support/cpp2/input.h,
1278           support/cpp2/intl.h, support/cpp2/move-if-change,
1279           support/cpp2/opts.c, support/cpp2/opts.h,
1280           support/cpp2/output.h, support/cpp2/prefix.c,
1281           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1282           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1283           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1284           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1285           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1286           support/cpp2/version.c:
1287           modified
1288         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1289           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1290           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1291           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1292           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1293           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1294           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1295           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1296           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1297           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1298           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1299           moved
1300         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1301           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1302           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1303           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1304           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1305           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1306           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1307           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1308           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1309           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1310           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1311           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1312           support/cpp2/system.h:
1313           deleted / moved
1314
1315 2006-12-31 Borut Razem <borut.razem AT siol.net>
1316
1317         * configure.in, configure: fixed bug #1538756: configure dies if bison
1318           and flex are not installed, 2nd try
1319
1320 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1321
1322         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1323         400.x for better code in RFE 899102
1324
1325 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1326
1327         * src/SDCCpeeph.c (deadMove),
1328         * src/port.h,
1329         * src/mcs51/peep.h: renamed 'op' by 'reg'
1330         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1331         (scan4op): small change for removeDeadMove(), added support for
1332         'callee saves' and/or PACLL function calls,
1333         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1334         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1335         left in new dispatcher mcs51DeadMove()
1336         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1337         removeDeadMove()
1338         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1339
1340 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1341
1342         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1343           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1344
1345 2006-12-30 Borut Razem <borut.razem AT siol.net>
1346
1347         * support/cpp2/spacs.h: deleted from svn
1348         * configure.in, configure: fixed bug #1538756: configure dies if bison
1349           and flex are not installed
1350
1351 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1352
1353         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1354           with this z80 passes printf float test when enabled
1355         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1356
1357 2006-12-28 Borut Razem <borut.razem AT siol.net>
1358
1359         * support/cpp2/config.in, support/cpp2/configure.in,
1360           support/cpp2/configure, support/cpp2/Makefile.in:
1361           fix for the solaris build
1362
1363 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1364
1365         * src/SDCC.y (type_specifier2, pointer),
1366         * src/SDCCsymt.h,
1367         * src/SDCCsymt.c (mergeSpec, checkSClass),
1368         * support/Util/SDCCerr.c,
1369         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1370         * support/valdiag/valdiag.py: Allow test cases to specify
1371           required language standard
1372         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1373         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1374
1375 2006-12-27 Borut Razem <borut.razem AT siol.net>
1376
1377         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1378         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1379           mbchar removed
1380         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1381           fixed for borland C
1382         * support/cpp2/libiberty/Makefile.bcc: updated
1383         * src/pic16/main.c: fixed #pragma udata handling
1384         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1385
1386 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1387
1388         * src/SDCCpeeph.c: made labelHashEntry global,
1389         made pcDistance, FBYNAME static,
1390         (pcDistance): made static, use isComment and isLabel,
1391         (deadMove): added,
1392         (getLabelRef): added, extracted from labelRefCount(),
1393         (labelRefCount): use new getLabelRef(),
1394         (callFuncByName): made static, added deadMove,
1395         use isComment and isLabel,
1396         (newPeepRule): made static, set isLabel,
1397         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1398         labels from peephole rules,
1399         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1400         when isComment or isLabel is set
1401         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1402         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1403         to make them global
1404         * src/mcs51/peep.h: added
1405         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1406         * src/port.h: added peep->deadMove to port structure
1407         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1408         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1409         deadMove, finally removed no. 1 and 2
1410         * src/mcs51/gen.c,
1411         * src/pic/gen.c,
1412         * src/z80/gen.c,
1413         * src/z80/ralloc.c,
1414         * src/pic16/gen.c,
1415         * src/ds390/gen.c,
1416         * src/hc08/gen.c: mark lines with isComment or isLabel
1417         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1418         * .version,
1419         * sdcc.spec: bumped version to 2.6.3
1420
1421 2006-12-26 Borut Razem <borut.razem AT siol.net>
1422
1423         * support/cpp2/Makefile.in: added dependency on options.h
1424         * configure: regenerated
1425         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1426         * support/cpp2/Makefile.in: added vasprintf.c
1427
1428 2006-12-25 Borut Razem <borut.razem AT siol.net>
1429
1430         * SDCPP synchronized with GCC CPP release version 3.4.6,
1431           the latest release before 4.x:
1432         * support/cpp2/Makefile.in, support/cpp2/config.h,
1433           support/cpp2/configure, support/cpp2/configure.in,
1434           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1435           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1436           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1437           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1438           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1439           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1440           support/cpp2/cpptrad.c, support/cpp2/except.h,
1441           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1442           support/cpp2/hwint.h, support/cpp2/intl.h,
1443           support/cpp2/line-map.c, support/cpp2/line-map.h,
1444           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1445           support/cpp2/output.h, support/cpp2/prefix.c,
1446           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1447           support/cpp2/system.h, support/cpp2/version.c:
1448           modified
1449         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1450           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1451           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1452           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1453           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1454           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1455           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1456           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1457           support/cpp2/move-if-change, support/cpp2/opts.c,
1458           support/cpp2/opts.h, support/cpp2/opts.sh,
1459           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1460           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1461           support/cpp2/win32, support/cpp2/win32/dirent.c,
1462           support/cpp2/win32/dirent.h:
1463           added
1464         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1465         * support/cpp2/sdcpp.h: renamed from sdcc.h
1466         * sdcppinit.c: deleted
1467
1468 2006-12-23 Borut Razem <borut.razem AT siol.net>
1469
1470         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1471           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1472           preproc.c: an other try to fix bug #982435: introduced
1473           -pedantic-parse-number command line option and pedantic_parse_number
1474           pragma
1475
1476 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1477
1478         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1479            BSEG handling,
1480           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1481            corrected overlayed areax addresses, warn about memory overlaps
1482         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1483         * src/avr/main.c,
1484         * src/ds390/main.c,
1485         * src/hc08/main.c,
1486         * src/mcs51/main.c,
1487         * src/pic16/main.c,
1488         * src/pic/main.c,
1489         * src/xa51/main.c,
1490         * src/z80/main.c,
1491         * src/port.h: added xabs_name and iabs_name
1492         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1493           (glue, emitMaps): create and emit maps d_abs and i_abs
1494         * src/SDCCglue.h: cosmetic changes
1495         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1496         * src/SDCCmem.h,
1497         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1498           (allocDefault): put absolute, initialized globals in them
1499         * support/regression/tests/absolute.c: added absolute bdata test
1500         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1501
1502 2006-12-20 Borut Razem <borut.razem AT siol.net>
1503
1504         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1505         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1506           added regression test for bug #982435
1507
1508 2006-12-18 Borut Razem <borut.razem AT siol.net>
1509
1510         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1511         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1512           small cosmetic changes
1513         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1514         * support/regression/tests/bug-1351710.c: added regression test
1515
1516 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1517
1518         * doc/sdccman.lyx: added the long missed iCode table
1519           "<where is figure II?>", added links to wiki
1520
1521 2006-12-17 Borut Razem <borut.razem AT siol.net>
1522
1523         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1524           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1525           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1526           unified table driven pragma handling, pragma argument type checking
1527         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1528           current one - version 1.1.3
1529         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1530
1531 2006-12-13 Raphael Neider <rneider AT web.de>
1532
1533         * src/pic/device.h: removed AssignedMemory structure and macros
1534         * src/pic/device.c: removed global finalMapping (linker assigns
1535             memory locations),
1536           (register_map): add SFRs to remembered memRanges
1537           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1538           assignFixedRegisters,assignRelocatableRegisters): removed,
1539           (setMaxRAM,validAddress): adapted accordingly,
1540           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1541             reasonably sized sharebanks,
1542         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1543           (allDefsOutOfRange): removed unused code,
1544         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1545             handling
1546         * src/pic/pcode.c (register_reassign): removed recursion warning,
1547             fired far too often,
1548         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1549             to use existing pic14_stringInSet() to avoid duplicate symbols,
1550             tidied up the code a bit,
1551           (pic14printLocals): added in symmetry to printExterns, replaces
1552             writeUsedRegs more or less,
1553           (picglue): call new pic14_printLocals(),
1554         * device/include/pic/pic*.h: removed #pragma memmap directives,
1555             information gathered from include/pic/pic14devices.txt
1556         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1557
1558 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1559
1560         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1561
1562 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1563
1564         * device/include/mcs51/cc2430.h: fixed missing ';'
1565
1566 2006-12-10 Raphael Neider <rneider AT web.de>
1567
1568         * device/lib/pic16/libc/stdio/vfprintf.c,
1569         * device/lib/pic16/libc/stdio/printf_small.c,
1570         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1571           char arguments, as char varargs are cast to int by the caller,
1572           hopefully fixes #1604915 (other device libraries are still affected)
1573
1574 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1575
1576         * src/mcs51/ralloc.c (packRegsForAssign),
1577         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1578
1579 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1580
1581         * device/include/malloc.h: removed init_dynamic_memory
1582         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1583           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1584         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1585         * device/lib/libsdcc.lib,
1586         * device/lib/Makefile.in,
1587         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1588         * doc/sdccman.lyx: documented use of new _heap.c
1589         * support/regression/tests/malloc.c: removed init_dynamic_memory
1590         * src/cdbFile.c(spacesToUnderscores): new function,
1591           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1592           1068030
1593         * device/include/tinibios.h: removed defines for putchar and getchar
1594         * device/lib/ds390/Makefile.in: added putchar.c
1595         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1596
1597 2006-12-09 Borut Razem <borut.razem AT siol.net>
1598
1599         * support/cpp2/sdcc.h: prevent multiple inclusion
1600         * support/cpp2/options.h: deleted
1601
1602 2006-12-08 Borut Razem <borut.razem AT siol.net>
1603
1604         * support/cpp2/sdcc.h: removed x*alloc() macros
1605         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1606         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1607           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1608         * support/cpp2/system.h: moved #include "sdcc.h"
1609         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1610           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1611           added
1612         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1613           -funsigned-char options
1614         * support/cpp2/sdcppmain.c: fixed bug 1611411
1615
1616 2006-12-07 Borut Razem <borut.razem AT siol.net>
1617
1618         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1619           directive
1620
1621 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1622
1623         * src/SDCCsymt.c (addDecl): fixed bug 1609244
1624         * src/SDCCmain.c (linkEdit): fixed bug 1609279
1625         * doc/sdccman.lyx,
1626         * .version: bumped to 2.6.2 because a) it's been a while
1627           b) the linker sources have moved c) the preprocessor is upgraded
1628
1629 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1630
1631         * support/regression/tests/snprintf.c: some checks
1632         * lib/src/printf_large.c: %bc: read char instead of int from stack
1633
1634 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1635
1636         * device/include/mcs51/cc2430.h: inserted _XPAGE
1637
1638 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1639
1640         * device/include/mcs51/cc2430.h: added
1641
1642 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1643
1644         * device/include/asm/default/features.h,
1645         * device/include/asm/ds390/features.h,
1646         * device/include/mcs51/at89s53.h,
1647         * device/include/ser.h,
1648         * device/include/ser_ir.h,
1649         * device/include/serial.h: changed keywords to double underscore variants,
1650           fixes bug 1590261 some more, thanks Steven Borley
1651
1652 2006-12-01 Raphael Neider <rneider AT web.de>
1653
1654         * src/pic/pcode.c (register_reassign): do not crash on recursive code
1655           but emit warning (recursion is not supported for pic14)
1656
1657 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1658
1659         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1660         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1661
1662 2006-11-30 Raphael Neider <rneider AT web.de>
1663
1664         * src/pic/device.c (dump_sfr): always emit symbols
1665         * src/pic/glue.c (pic14printPublics): fixed typo
1666
1667 2006-11-30 Raphael Neider <rneider AT web.de>
1668
1669         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1670           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1671           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1672            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1673            a sharebank, use a non-shared bank for the stack if none available
1674         * src/pic/device.h (struct memRange): added linked list next field,
1675           added prototypes for above functions
1676         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1677           (typeRegWithIdx): accept fixed and unfixed stack registers
1678         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1679           the stack, handle shared and banked stack (except for WSAVE),
1680           (insertBankSel): removed useless optimization (will never fire),
1681           (FixRegisterBanking): added optimization for devices with only one
1682           possibly aliased bank of memory, like 16f84
1683         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1684           devices have no SHAREBANK in the linker script
1685         * device/include/pic/pic14devices.txt: documented memmap
1686         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1687
1688 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1689
1690         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1691           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1692           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1693           genhc08Code): switched most of the D (debug) macros to DD (detailed
1694           debug) macros to better control clutter in the generated .asm file.
1695         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1696           genRightShift): fixed bug with non-constant bit shift stored to
1697           a volatile result (SF Open Discussion forum thread #1616749).
1698           Single byte case is not yet optimized.
1699
1700 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1701
1702         * device/include/asm/mcs51/features.h,
1703         * device/include/malloc.h,
1704         * device/include/stdio.h: changed keywords to double underscore variants,
1705           fixes bug 1590261
1706
1707 2006-11-27 Borut Razem <borut.razem AT siol.net>
1708
1709         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1710           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1711           support/cpp2/output.h, support/cpp2/cppinit.c,
1712           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1713           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1714           support/cpp2/cppdefault.c, support/cpp2/system.h,
1715           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1716           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1717           support/cpp2/prefix.c, support/cpp2/except.h,
1718           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1719           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1720           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1721           support/cpp2/version.c, support/cpp2/cppmain.c,
1722           support/cpp2/version.h, support/cpp2/hashtable.c,
1723           support/cpp2/cpperror.c:
1724           synchronized with GCC CPP release version 3.3.6,
1725           the latest where cppmain.c still exists.
1726         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1727           support/cpp2/sdcppinit.c: added
1728
1729 2006-11-27 Borut Razem <borut.razem AT siol.net>
1730
1731         * support/cpp2/cpplex.c:
1732           fixed _asm ... _endasm handling bug, introduce with GCC CPP
1733           synchronization
1734         * support/cpp2/cpplib.c: removed definitions of unused variables
1735
1736 2006-11-26 Borut Razem <borut.razem AT siol.net>
1737
1738         * support/cpp2/libiberty.h: commented out x*alloc() declarations
1739           since they are redefined by macros in support/cpp2/sdcc.h
1740         * support/cpp2/sdcc.h: x*alloc macro redefinition
1741
1742 2006-11-25 Borut Razem <borut.razem AT siol.net>
1743
1744         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1745           support/cpp2/configure, support/cpp2/Makefile.in,
1746           support/cpp2/cppfiles.c, support/cpp2/output.h,
1747           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1748           support/cpp2/config.h, support/cpp2/cpplib.h,
1749           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1750           support/cpp2/cppdefault.c, support/cpp2/config.in,
1751           support/cpp2/system.h, support/cpp2/cpplex.c,
1752           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1753           support/cpp2/cppdefault.h, support/cpp2/prefix.c
1754           support/cpp2/hwint.h, support/cpp2/mbchar.h,
1755           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1756           support/cpp2/configure.in, support/cpp2/intl.h,
1757           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1758           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1759           support/cpp2/version.c, support/cpp2/cppmain.c,
1760           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1761           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1762           support/cpp2/cpperror.c,
1763           support/cpp2/libiberty/safe-ctype.c,
1764           support/cpp2/libiberty/safe-ctype.h,
1765           support/cpp2/libiberty/splay-tree.c,
1766           support/cpp2/libiberty/obstack.c,
1767           support/cpp2/libiberty/lbasename.c,
1768           support/cpp2/libiberty/splay-tree.h,
1769           support/cpp2/libiberty/obstack.h:
1770           synchronized with GCC CPP release version 3.2.3,
1771           the latest before integration of cpp into gcc
1772         * support/cpp2/except.h, support/cpp2/line-map.c,
1773           support/cpp2/line-map.h,
1774           support/cpp2/libiberty/hex.c,
1775           support/cpp2/libiberty/concat.c,
1776           support/cpp2/libiberty/filenames.h: added
1777         * support/cpp2/intl.c: deleted
1778
1779 2006-11-24 Borut Razem <borut.razem AT siol.net>
1780
1781         * src/SDCC.y: enabled compilation of empty source file
1782         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1783           "ISO C forbids an empty source file"
1784         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1785           if all the code is ifdefed out.
1786
1787 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1788
1789         * src/hc08/gen.c (genPcall): fix for bug #1601032
1790
1791 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1792
1793         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1794         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1795         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1796         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1797         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1798         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1799         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1800         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1801         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1802         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1803         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1804         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1805         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1806         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1807         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1808           Renamed to all upper case as per the standard set by SiLabs
1809
1810 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1811
1812         * device/include/mcs51/C8051F520.h: new, added
1813         * device/include/mcs51/compiler.h: added link about predefined macros
1814
1815 2006-11-23 Raphael Neider <rneider AT web.de>
1816
1817         * src/regression/Makefile: add -L path to fresh library
1818         * src/regression/simulate: emphasize FAILED output
1819         * src/regression/create_stc: output _failures from gpsim
1820         * src/regression/compare4.c,
1821         * src/regression/rotate6.c: fixed char literals,
1822           all compile, all run =8-D
1823
1824         * src/pic/pcode.h: added isPCASMDIR macro
1825         * src/pic/gen.c (genAnd): fixed bit offset
1826         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1827           packBits): unified register numbering schemes,
1828           (newReg): do not insert stack registers into hash table,
1829           (initStack): unpinned pseudo stack, simplified,
1830           (typeRegWithIdx): fixed retrieval of stack registers,
1831         * src/pic/pcode.c (addpCodeComment,sameBank): added,
1832           (pCodeReplace): removed invalid assertion,
1833           (insertPCodeInstruction): fixed newly added labels,
1834           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1835           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1836           DumpFlow): removed unsed (broken?) code,
1837           (insertBankSel): prevent STATUS from being BANKSELed,
1838           (FixRegisterBanking): rewritten from scratch, implemented generic
1839             optimizations (suppress BANKSELs to same register and to registers
1840             present in all banks),
1841           (AnalyzeBanking): update flow after BANKSELection
1842
1843         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
1844             sharebank, let linker place it, mark STKxx symbols as emitted
1845
1846 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1847
1848         * src/regression/arrays.c,
1849         * src/regression/bank1.c,
1850         * src/regression/bool2.c,
1851         * src/regression/compare7.c,
1852         * src/regression/compare8.c,
1853         * src/regression/compare9.c,
1854         * src/regression/compare10.c,
1855         * src/regression/configword.c,
1856         * src/regression/for.c,
1857         * src/regression/mult1.c,
1858         * src/regression/pointer1.c,
1859         * src/regression/rotate6.c,
1860         * src/regression/string1.c,
1861         * src/regression/struct1.c,
1862         * src/regression/Makefile: make PIC14 regression tests run again
1863           (3 fail, 6 won't compile)
1864
1865 2006-11-21 Raphael Neider <rneider AT web.de>
1866
1867         * device/include/pic16/pic18f4550.h,
1868         * device/include/pic16/pic18f4455.h,
1869         * device/lib/pic16/libdev/pic18f4550.c,
1870         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
1871         * configure.in: removed superfluous closing bracket
1872
1873 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1874
1875         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
1876           always positive.
1877
1878 2006-11-21 Raphael Neider <rneider AT web.de>
1879
1880         * src/pic/device.{c,h}: added pic14_getPIC()
1881         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
1882           (genAnd): added PIC code for one case, fixes #1597044
1883         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
1884           SFRs that are present in all banks (e.g., STATUS)
1885
1886 2006-11-20 Raphael Neider <rneider AT web.de>
1887
1888         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
1889           INCFSZ/INCFSZW and declared them as changing Z bit,
1890           (insertPCodeInstruction): correctly invert the above instructions,
1891           fixes #1599333,
1892           (DoBankSelect): don't panic on po_immediates
1893
1894 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1895
1896         * as/link/aslink.h,
1897         * as/link/mcs51/lkihx.c (newArea),
1898         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
1899         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
1900
1901 2006-11-11 Raphael Neider <rneider AT web.de>
1902
1903         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
1904           bitfield symbols, fixes #1579535 (once more...).
1905
1906 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1907
1908         * support/regression/generate-cases.py,
1909         * support/regression/fwk/include/testfwk.h,
1910         * support/regression/fwk/lib/testfwk.c: used code pointers,
1911           (about 50kByte less code generated for mcs51)
1912
1913 2006-11-06 Borut Razem <borut.razem AT siol.net>
1914
1915         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1916           debugger/mcs51/configure: fixed failed check because the function
1917           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
1918           who submitted the patch for gpsim.
1919         * debugger/mcs51/configure.in: removed the result message
1920         * debugger/mcs51/Makefile.in: fixed the config.status warning
1921           "... seems to ignore the --datarootdir setting"
1922
1923 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1924
1925         * device/include/mcs51/c8051f020.h,
1926         * device/include/mcs51/c8051f040.h,
1927         * device/include/mcs51/c8051f060.h,
1928         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
1929         * src/z80/gen.c (gencjneshort),
1930         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
1931
1932 2006-10-31 Borut Razem <borut.razem AT siol.net>
1933
1934         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1935           debugger/mcs51/configure: get readline version
1936
1937 2006-10-30 Borut Razem <borut.razem AT siol.net>
1938
1939         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
1940         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1941           debugger/mcs51/configure: locate readline even when cross compiling
1942         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
1943
1944 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1945
1946         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
1947           serial port.
1948
1949 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1950
1951         * device/include/malloc.h,
1952         * device/lib/calloc.c,
1953         * device/lib/free.c,
1954         * device/lib/malloc.c,
1955         * device/lib/realloc.c: moved definition of struct into sources
1956         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
1957
1958 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1959
1960         * as/asx8051.dsp: corrected output directories
1961         * as/link/hc08: new directory for hc08 linker
1962         * as/hc08/aslink.h,             as/link/aslink.h,
1963         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
1964         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
1965         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
1966         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
1967         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
1968         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
1969         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
1970         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
1971         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
1972         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
1973         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
1974         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
1975         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
1976         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
1977         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
1978         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
1979         * as/link/hc08/conf.mk,
1980         * configure,
1981         * configure.in,
1982         * Makefile.in,
1983         * sdcc.dsw: moved hc08 linker to as/link/hc08
1984         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
1985         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
1986         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
1987         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
1988         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
1989         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
1990         * as/link/mcs51/aslink.dsp,
1991         * as/link/mcs51/Makefile.in: factored out the common files
1992         * as/hc08/lkstore.c: deleted, use the one already in as/link/
1993         * as/clean.mk: extra cleaning common files
1994         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
1995         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
1996         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
1997
1998 2006-10-29 Raphael Neider <rneider AT web.de>
1999
2000         * src/pic/ralloc.c (newReg): create aliases for registers with
2001           multiple names to fix #1579535 and #1584001,
2002           (regWithIdx,dirregWithName): resolve aliases on lookup
2003         * src/pic/pcode.c (DoBankSelect): die with error message on failing
2004           bankselect
2005         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
2006           to prevent build errors on small devices
2007
2008 2006-10-28 Raphael Neider <rneider AT web.de>
2009
2010         * src/pic/gen.c (genFunction,genCall): drop "same code page"
2011           assumption within interrupt handlers, fixes #1584940
2012         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
2013           "emitted" to avoid emitting them again in udata
2014
2015 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2016
2017         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2018         Removed.
2019
2020 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2021
2022         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
2023         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
2024         on/off CR to CRLF conversion.
2025
2026 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2027
2028         * doc/sdccman.lyx: updated IRQ section
2029
2030 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2031
2032         * device/lib/serial_io.c: removed
2033         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
2034         replacements for serial_io.c
2035
2036 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
2037
2038         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
2039
2040 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2041
2042         * device/lib/serial_io.c: Default putchar() and getchar() for
2043           mcs51 uses serial port.
2044
2045 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
2046
2047         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
2048
2049 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2050
2051         * support/regression/ports/mcs51/support.c: smaller
2052         _sdcc_external_startup()
2053         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
2054
2055 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
2056
2057         * device/lib/gbz80/crt0.s,
2058         * device/lib/gbz80/crt0_rle.s,
2059         * device/lib/gbz80/div.s,
2060         * device/lib/gbz80/fstubs.s,
2061         * device/lib/gbz80/heap.s,
2062         * device/lib/gbz80/mul.s,
2063         * device/lib/gbz80/putchar.s,
2064         * device/lib/gbz80/stubs.s,
2065         * device/lib/z80/crt0.s,
2066         * device/lib/z80/crt0_rle.s,
2067         * device/lib/z80/div.s,
2068         * device/lib/z80/fstubs.s,
2069         * device/lib/z80/heap.s,
2070         * device/lib/z80/mul.s,
2071         * device/lib/z80/putchar.s,
2072         * device/lib/z80/stubs.s: reverted, I was mistaken
2073
2074 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2075
2076         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
2077         * support/regression/ports/mcs51/support.c: removed race
2078         condition on TI in _putchar allowing to use serial port mode 0
2079
2080 2006-10-20 Borut Razem <borut.razem AT siol.net>
2081
2082         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
2083
2084 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2085
2086         * device/lib/gbz80/crt0.s,
2087         * device/lib/gbz80/crt0_rle.s,
2088         * device/lib/gbz80/div.s,
2089         * device/lib/gbz80/fstubs.s,
2090         * device/lib/gbz80/heap.s,
2091         * device/lib/gbz80/mul.s,
2092         * device/lib/gbz80/putchar.s,
2093         * device/lib/gbz80/stubs.s,
2094         * device/lib/z80/crt0.s,
2095         * device/lib/z80/crt0_rle.s,
2096         * device/lib/z80/div.s,
2097         * device/lib/z80/fstubs.s,
2098         * device/lib/z80/heap.s,
2099         * device/lib/z80/mul.s,
2100         * device/lib/z80/putchar.s,
2101         * device/lib/z80/stubs.s: removed all leading underscores from area names
2102
2103 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
2104
2105         * support/regression/ports/mcs51/support.c: use highest baudrate so the
2106           regression tests are not waiting in the simulator for simulated
2107           transmission of debug output
2108
2109 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2110
2111         * device/lib/printf_large.c: slightly smaller
2112         * doc/sdccman.lyx: do not use spaces within html links
2113
2114 2006-10-16 Borut Razem <borut.razem AT siol.net>
2115
2116         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
2117           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
2118           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
2119           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
2120           debugger/mcs51/configure:
2121           [ 1185668 ] add gnu readline support to sdcdb - enabled
2122
2123 2006-10-16 Raphael Neider <rneider AT web.de>
2124
2125         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
2126           fixes #1577882, removes close to all banking optimizations
2127
2128 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
2129
2130         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
2131           variables in code memory
2132         * support/regression/tests/absolute.c: added test for this
2133
2134 2006-10-15 Raphael Neider <rneider AT web.de>
2135
2136         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
2137           devices,
2138           (BankSelect): emit BANKSEL before touching linker-placed regs,
2139           fixes #1570934
2140
2141 2006-10-10 Raphael Neider <rneider AT web.de>
2142
2143         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
2144         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
2145         * src/pic/main.c (_pic14_parseOptions),
2146         * src/pic/main.h: mostly reverted to previous state, now use results
2147             from SDCCmain.c's argument parsing
2148
2149 2006-10-10 Borut Razem <borut.razem AT siol.net>
2150
2151         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2152           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2153           [ 1185668 ] add gnu readline support to sdcdb -
2154           prepared for READLINE, not enabled yet,
2155           thanks to <tal.bav AT gmail.com>
2156
2157 2006-10-10 Raphael Neider <rneider AT web.de>
2158
2159         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2160         * src/pic16/devices.inc,
2161         * device/include/pic16 (pic18f[24]620.h),
2162         * device/include/pic18fregs.h,
2163         * device/lib/pic16/pics.all,
2164         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2165             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2166             Gary Plumbridge and Anton Strobl
2167
2168 2006-10-10 Raphael Neider <rneider AT web.de>
2169
2170         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2171           --stack-siz=NUM options to configure the argument passing stack
2172         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2173         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2174           (pic14_getSharebankSize): obey --stack-siz=NUM,
2175           (pic14_getSharebankAddress): obey --stack-loc=NUM
2176
2177 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2178
2179         * doc/sdccman.lyx: added to the manual
2180         * doc/figures/ddd_example.png: added (neither pdflatex nor
2181         most browsers seem to like the .eps file)
2182
2183 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2184
2185         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2186         to /tmp and /var/tmp acc. LSB
2187         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2188         RESULT_TYPE_IFX
2189         * support/regression/tests/onebyte.c: added test
2190
2191 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2192
2193         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2194
2195 2006-10-05 Borut Razem <borut.razem AT siol.net>
2196
2197         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2198           thanks to dfulab:
2199           - sdcc.dsw: changed property eol-style to CRLF
2200           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2201
2202 2006-10-04 Raphael Neider <rneider AT web.de>
2203
2204         * device/include/pic/{pic16f84.h,pic16f84a.h},
2205         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2206           from patch #1522504, thanks to Robas Teodor
2207
2208 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2209
2210         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2211           fixes bug 1566015
2212
2213 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2214
2215         * src/pic16/glue.c (pic16emitMaps),
2216         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2217         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2218         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2219         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2220           Philipp Krause
2221         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2222         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2223
2224 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2225
2226         * support/librarian/sdcclib.c: Added option -l.
2227         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2228           usage totals.
2229         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2230           using Windows command prompt.
2231
2232 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2233
2234         * device/lib/libsdcc.lib: added module rand
2235         * src/ds390/ralloc.c (rematStr),
2236         * src/hc08/ralloc.c (rematStr),
2237         * src/mcs51/ralloc.c (rematStr),
2238         * src/z80/ralloc.c (rematStr): made output more consistent
2239         * src/mcs51/gen.c: cosmetic changes
2240
2241 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2242
2243         * src/port.h: added mem.cabs_name to PORT
2244         * src/ds390/main.c,
2245         * src/hc08/main.c,
2246         * src/mcs51/main.c,
2247         * src/pic16/main.c,
2248         * src/pic/main.c,
2249         * src/xa51/main.c,
2250         * src/z80/main.c: added cabs_name initializers
2251         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2252           constants
2253           (emitMaps): emit absolutes in code memory into cabs_name
2254         * src/SDCCmem.c,
2255         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2256         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2257         * support/regression/fwk/include/testfwk.h: added define for at
2258         * support/regression/tests/absolute.c: added, new
2259
2260 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2261
2262         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2263           optimizations, see also patch 887161 by Stas Sergeev
2264         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2265           to be necessary anymore,
2266           (102, 103, 104, 127): renamed all occurances of bp to _bp
2267
2268 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2269
2270         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2271           thanks Weston T. Schmidt for patch 1555221
2272         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2273         * src/SDCCicode.c(geniCodeMultiply): small optimization
2274
2275 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2276
2277         * device/include/stdlib.h: added rand prototypes
2278         * device/lib/rand.c: new, added
2279         * device/lib/Makefile.in: added rand.c
2280         * src/z80/peeph.def,
2281         * src/z80/peeph-gbz80.def,
2282         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2283
2284 2006-09-20 Raphael Neider <rneider AT web.de>
2285
2286         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2287
2288 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2289
2290         * as/link/aslink.h: cosmetic changes
2291         * as/link/mcs51/Makefile.in,
2292         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2293
2294 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2295
2296         * as/link/aslink.h,
2297         * as/link/mcs51/aslink.h,
2298         * as/link/z80/aslink.h: merged and moved to as/link/
2299         * as/link/lkstore.c,
2300         * as/link/mcs51/lkstore.c: moved to as/link/
2301         * as/link/clean.mk: remove *.o
2302         * as/link/mcs51/alloc.h: deleted
2303         * as/link/mcs51/lkarea.c: added lnksect prototype
2304         * as/link/mcs51/lkdata.c,
2305         * as/link/mcs51/lklex.c,
2306         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2307         * as/link/mcs51/lkmem.c,
2308         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2309         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2310         * as/link/mcs51/aslink.dsp,
2311         * as/link/mcs51/Makefile.aslink,
2312         * as/link/mcs51/Makefile.bcc,
2313         * as/link/mcs51/Makefile.in: updated for moved files
2314         * as/link/z80/lkarea.c,
2315         * as/link/z80/lkhead.c,
2316         * as/link/z80/lklex.c,
2317         * as/link/z80/lklibr.c,
2318         * as/link/z80/lklist.c,
2319         * as/link/z80/lkmain.c,
2320         * as/link/z80/lkrloc.c,
2321         * as/link/z80/lksym.c: synced with mcs51
2322         * as/link/z80/lkdata.c,
2323         * as/link/z80/lkeval.c,
2324         * as/link/z80/lkihx.c,
2325         * as/link/z80/lks19.c: cosmetic changes
2326         * as/link/z80/Makefile.in,
2327         * as/link/z80/linkgbz80.dsp,
2328         * as/link/z80/linkz80.dsp: updated for moved files
2329
2330 2006-09-16 Borut Razem <borut.razem AT siol.net>
2331
2332         * debugger/mcs51/sdcdb.c: partially fixed
2333           [ 1203664 ] sdcdb fails to open files w. two "." periods
2334         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2335           debugger/mcs51/symtab.h: fixed indenting
2336         * configure.in, configure: up to date with latest Maarten's changes
2337
2338 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2339
2340         as/link/mcs51
2341         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2342         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2343         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2344         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2345         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2346         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2347         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2348         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2349         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2350         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2351         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2352         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2353         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2354         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2355         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2356         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2357         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2358         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2359         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2360         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2361         as/link/mcs51/alloc.h,
2362         as/link/mcs51/clean.mk,
2363         as/link/mcs51/conf.mk,
2364         as/link/mcs51/Makefile.bcc,
2365         as/link/mcs51/Makefile.in,
2366         as/link/mcs51/readme.390,
2367         as/link/mcs51/strcmpi.c,
2368         as/link/mcs51/strcmpi.h,
2369         as/mcs51/clean.mk,
2370         as/mcs51/Makefile.bcc,
2371         as/mcs51/Makefile.in,
2372         configure,
2373         Makefile.in,
2374         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2375
2376 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2377
2378         * as/link,
2379         * as/link/Makefile.in,
2380         * as/link/z80/linkgbz80.dsp,
2381         * as/link/z80/linkz80.dsp,
2382         * configure,
2383         * link,
2384         * link/clean.mk,
2385         * link/Makefile.in,
2386         * link/README,
2387         * link/z80,
2388         * link/z80/aslink.h,
2389         * link/z80/clean.mk,
2390         * link/z80/conf.mk,
2391         * link/z80/linkgbz80.dsp,
2392         * link/z80/linkz80.dsp,
2393         * link/z80/lkarea.c,
2394         * link/z80/lkdata.c,
2395         * link/z80/lkeval.c,
2396         * link/z80/lkgb.c,
2397         * link/z80/lkgg.c,
2398         * link/z80/lkhead.c,
2399         * link/z80/lkihx.c,
2400         * link/z80/lklex.c,
2401         * link/z80/lklibr.c,
2402         * link/z80/lklist.c,
2403         * link/z80/lkmain.c,
2404         * link/z80/lkrloc.c,
2405         * link/z80/lks19.c,
2406         * link/z80/lksym.c,
2407         * link/z80/Makefile.in,
2408         * Makefile.in,
2409         * sdcc.dsw: moved link/ to as/link/
2410
2411 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2412
2413         * as/mcs51/i51mch.c (machine): fixed warning
2414
2415 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2416
2417         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2418
2419 2006-09-09 Borut Razem <borut.razem AT siol.net>
2420
2421         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2422           sdcdb WIN32 native port
2423         * src/clean.mk: fixed
2424
2425 2006-09-08 Borut Razem <borut.razem AT siol.net>
2426
2427         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2428
2429 2006-09-08 Raphael Neider <rneider AT web.de>
2430
2431         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2432         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2433             to gplink to disable processor mismatch warning and to allow
2434             the use of devices with only aliased (shared) memory banks,
2435           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2436
2437 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2438
2439         * doc/sdccman.lyx: Some re-formating plus example on using
2440           #pragma preproc_asm +/-
2441
2442 2006-09-07 Borut Razem <borut.razem AT siol.net>
2443
2444         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2445           section
2446
2447 2006-09-06 Borut Razem <borut.razem AT siol.net>
2448
2449         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2450           line at sdcc.nsi:153
2451         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2452
2453 2006-09-05 Borut Razem <borut.razem AT siol.net>
2454
2455         * configure.in, configure: support for winsock2
2456         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2457           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2458           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2459           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2460           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2461
2462 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2463
2464         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2465           and OP_DEFS
2466         * support/regression/tests/bug1551947.c: new, added
2467         * src/SDCCsymt.h: strings are char* not byte*
2468
2469 2006-09-05 Raphael Neider <rneider AT web.de>
2470
2471         * device/lib/pic16/libdev/pic18f4550.c,
2472           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2473             declarations/definitions from patch #1520949
2474
2475 2006-09-05 Raphael Neider <rneider AT web.de>
2476
2477         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2478           byte-aligned bitfields, fixes #1539278
2479
2480 2006-09-05 Raphael Neider <rneider AT web.de>
2481
2482         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2483           fixes #1544120
2484
2485 2006-09-04 Borut Razem <borut.razem AT siol.net>
2486
2487         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2488         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2489           -mno-cygwin is a part of the compiler name
2490         * support/scripts/sdcc_mingw32: don't disable ucsim
2491
2492 2006-09-03 Borut Razem <borut.razem AT siol.net>
2493
2494         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2495         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2496
2497 2006-09-03 Raphael Neider <rneider AT web.de>
2498
2499         * src/pic/ralloc.c,
2500         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2501           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2502           fixes #1550049
2503
2504 2006-09-01 Borut Razem <borut.razem AT siol.net>
2505
2506         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2507           to make ppc-osx happy
2508
2509 2006-08-31 Borut Razem <borut.razem AT siol.net>
2510
2511         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2512         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2513         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2514         * support/regression/ports/ds390/spec.mk,
2515           support/regression/ports/mcs51/spec.mk,
2516           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2517           To run regression tests in mingw environment:
2518           make DEV_NULL=NUL CC=gcc
2519
2520 2006-08-30 Borut Razem <borut.razem AT siol.net>
2521
2522         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2523           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2524           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2525           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2526           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2527           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2528           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2529           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2530           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2531           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2532           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2533           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2534           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2535           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2536           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2537           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2538           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2539           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2540           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2541           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2542           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2543           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2544           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2545           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2546           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2547           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2548           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2549           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2550           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2551           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2552           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2553           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2554           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2555           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2556           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2557           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2558           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2559           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2560           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2561           ucsim WIN32 native port
2562
2563 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2564
2565         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2566
2567 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2568
2569         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2570         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2571
2572 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2573
2574         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2575         * support/regression/tests/bug1546986.c: new, added
2576         * as/mcs51/.cvsignore,
2577         * debugger/mcs51/.cvsignore,
2578         * src/.cvsignore: deleted
2579
2580 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2581
2582         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2583           definitions)
2584
2585 2006-08-20 Borut Razem <borut.razem AT siol.net>
2586
2587         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2588           removed cl_listen_console::match(), cl_console::match(),
2589           restructured cl_commander::proc_input()
2590
2591 2006-08-16 Borut Razem <borut.razem AT siol.net>
2592
2593         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2594           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2595           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2596
2597 2006-08-14 Borut Razem <borut.razem AT siol.net>
2598
2599         * support/regression/Makefile.in,
2600           support/regression/ports/pic14/gpsim.cmd,
2601           support/regression/ports/pic14/spec.mk,
2602           support/regression/ports/pic14/support.c:
2603           added pic14 regression test
2604
2605 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2606
2607         * as/doc/asxhtm.html: documented changed ABS behaviour
2608         * as/doc/README: fixed some typos
2609
2610 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2611
2612         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2613           not defined on host
2614
2615 2006-08-12 Borut Razem <borut.razem AT siol.net>
2616
2617         * support/regression/fwk/include/testfwk.h,
2618           support/regression/fwk/lib/testfwk.c,
2619           support/regression/generate-cases.py,
2620           support/regression/Makefile.in:
2621           regression test framework does not depend on function pointers and
2622           variable arguments
2623
2624 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2625
2626         * device/include/stddef.h: c temporary hack to fix bug 1518273
2627
2628 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2629
2630         * device/include/mcs51/cc2510fx.h: added
2631         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2632           to projects.
2633
2634 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2635
2636         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2637         * as/z80/Makefile.in: added strcmpi.c
2638         * as/z80/z80adr.c: added upper case registers and lower case conditionals
2639         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2640
2641 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2642
2643         * device/lib/gbz80/asm_strings.s,
2644         * device/lib/gbz80/crt0_rle.s,
2645         * device/lib/gbz80/div.s,
2646         * device/lib/gbz80/mul.s,
2647         * device/lib/gbz80/shift.s,
2648         * device/lib/z80/asm_strings.s,
2649         * device/lib/z80/crt0_rle.s,
2650         * device/lib/z80/div.s,
2651         * device/lib/z80/mul.s,
2652         * device/lib/z80/shift.s: changed to all lower case menmonics except the
2653           flags which are all upper case
2654
2655 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2656
2657         * as/z80/asm.h: made CASE_SENSITIVE 1
2658         * link/z80/aslink.h: made CASE_SENSITIVE 1
2659         * src/z80/gen.c (throughout): made all conditionals upper case
2660         * support/regression/tests/bug1503067.c: new
2661
2662 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2663
2664         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2665           (shiftIntoPair): added case 2 for PAIR_IY,
2666           (setupToPreserveCarry): replaced parameters with iCode and check if
2667            PAIR_DE is in use to fix bug 1399290,
2668           (genPlus, genMinus): updated call to setupToPreserveCarry
2669         * support/regression/tests/bug1399290.c: new
2670
2671 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2672
2673         * device/lib/Makefile.in (Z80SOURCES): enabled float support
2674         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2675         * src/ds390/gen.c (shiftRLong),
2676         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2677         * src/mcs51/gen.c (sameReg): changed to sameByte,
2678           (xch_a_aopGet): new,
2679           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2680            shiftRLong): fixed bug 1533966
2681         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2682           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2683         * support/regression/Makefile.in: disabled z80, enabled ucz80
2684         * support/regression/tests/float_trans.c: enabled test for z80 and host
2685         * support/regression/tests/shifts2.c: new, for testing bug 1533966
2686
2687 2006-08-01 Borut Razem <borut.razem AT siol.net>
2688
2689         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2690           comparison is always false due to limited range of data type
2691           on PPC64 machine (openpower-linux1) where "char = unsigned char"
2692
2693 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2694
2695         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2696         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2697         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2698         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2699
2700 2006-07-31 Borut Razem <borut.razem AT siol.net>
2701
2702         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2703           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2704           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2705           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2706           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2707           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2708           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2709           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2710           enable ucsim mingw compilation. Serial port is disabled,
2711           since it uses termios.h API, which is not available on native
2712           WIN32
2713
2714 2006-07-31 Borut Razem <borut.razem AT siol.net>
2715
2716         * Small Device C Compiler 2.6.0 released
2717         * support/scripts/sdcc.nsi: added FULL_DOC option
2718         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2719
2720 2006-07-28 Borut Razem <borut.razem AT siol.net>
2721
2722         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2723         * doc/INSTALL.txt: updated
2724
2725 2006-07-27 Borut Razem <borut.razem AT siol.net>
2726
2727         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2728           device/lib/pic/libdev/Makefile.in: fixed bug
2729           [ 1438354 ] pic libsdcc: distclean doesn't work
2730         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2731           device/lib/pic16/libio/Makefile.in: fixed bug
2732           [ 1438344 ] pic16 lib: clean doesn't work properly
2733         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2734
2735 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2736
2737         * device/lib/pic/libsdcc/fsdiv.c,
2738         * device/lib/pic/libsdcc/fsmul.c,
2739         * device/lib/pic16/libsdcc/float/fsdiv.c,
2740         * device/lib/pic16/libsdcc/float/fsmul.c,
2741         * device/lib/_fsdiv.c,
2742         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2743         * support/regression/tests/bug1520966.c: added
2744         * doc/knownbugs.html: removed [ 1520966 ] from the list
2745
2746 2006-07-25 Borut Razem <borut.razem AT siol.net>
2747
2748         * configure.in, configure, sdccconf_in.h: fixed bug
2749           [ 1519095 ] regression test onebyte.c fails on ppc64 host
2750         * doc/knownbugs.html: removed [ 1519095 ] from the list
2751
2752 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2753
2754         * doc/knownbugs.html: added, contains list of known bugs at release
2755         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2756
2757 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2758
2759         * device/include/mcs51/compiler.h: added SFRX for xdata based special
2760           function registers and corrected defaults with additional warning
2761         * device/lib/malloc.c: cosmetic changes
2762         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2763         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2764           (fillGaps): and used it
2765
2766 2006-07-20 Raphael Neider <rneider AT web.de>
2767
2768         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2769           output unless SDCCPICDEBUG is set
2770         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2771           output if SILENT is set
2772
2773 2006-07-11 Borut Razem <borut.razem AT siol.net>
2774
2775         * doc/README.txt: updated
2776
2777 2006-07-10 Borut Razem <borut.razem AT siol.net>
2778
2779         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2780           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2781           in WIN32 installation
2782         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2783           release candidate 1
2784
2785 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2786
2787         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2788         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2789
2790 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2791
2792         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2793
2794 2006-07-06 Borut Razem <borut.razem AT siol.net>
2795
2796         * support/regression/tests/bitfields.c:
2797           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2798         * support/regression/tests/constantRange.c:
2799           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2800
2801 2006-07-04 Borut Razem <borut.razem AT siol.net>
2802
2803         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2804           src/port.mk,
2805           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2806           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2807           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2808           reverted changes from 2006-07-03
2809         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2810         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2811           added CPPFLAGS, used by the host port
2812
2813 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2814
2815         * support/regression/valdiag/tests/switch.c,
2816         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2817         * support/regression/tests/libmullong.c: fixed for host
2818         * support/regression/ports/host/spec.mk: disable all warnings for host,
2819         SDCC runs with --less-pedantic too
2820
2821 2006-07-03 Borut Razem <borut.razem AT siol.net>
2822
2823         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2824           defined CPPFLAGS
2825         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2826         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2827           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2828           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2829           include ../port.mk
2830         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2831           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2832           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2833           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2834
2835 2006-07-02 Raphael Neider <rneider AT web.de>
2836
2837         * src/pic16/devices.inc,
2838         * device/include/pic16/pic18fregs.h,
2839         * device/include/pic16/pic18f4550.h,
2840         * device/lib/pic16/pics.all,
2841         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
2842
2843 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2844
2845         * as/hc08/lkaomf51.c (OutputName),
2846         * as/mcs51/lkaomf51.c (OutputName),
2847         * as/z80/asmain.c (asmbl),
2848         * src/ds390/main.c (asmLineNodeFromLineNode),
2849         * src/hc08/ralloc.c (hc08_assignRegisters),
2850         * src/mcs51/main.c (asmLineNodeFromLineNode),
2851         * src/xa51/ralloc.c (checkRegMask),
2852         * src/xa51/gen.c (emitcode),
2853         * src/z80/gen.c (_emit2),
2854         * src/SDCCast.c (searchLitOp),
2855         * src/SDCCglobl.h,
2856         * support/packihx/packihx.c,
2857         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
2858         * src/ds390/gen.c (aopPutUsesAcc),
2859         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
2860         * support/regression/tests/libmullong.c (mullong_wrapper),
2861         * src/SDCCsymt.c (powof2),
2862         * src/SDCCast.c,
2863         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
2864         * src/SDCCsymt.h: added TYPE_TARGET_*
2865         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
2866         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
2867         SDCCast because 1) header problems 2) this is the right place
2868         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
2869         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
2870         prototype
2871
2872 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2873
2874         * src/SDCCicode.h: removed buggy semicolon in unused macro
2875         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
2876         search for previous definiton of auto symbols too,
2877         (findPrevUse): fixed logic of emitWarnings
2878
2879 2006-06-26 Raphael Neider <rneider AT web.de>
2880
2881         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
2882           PCLATH and PCLATU on interrupts, potentially fixes #1505141
2883
2884 2006-06-25 Raphael Neider <rneider AT web.de>
2885
2886         * device/lib/pic/libm: NEW, added math library functions
2887         * device/lib/pic/libsdcc: NEW; added float support functions
2888         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
2889         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
2890           NEW, added math related headers
2891         * device/include/asm/pic/features.h: NEW
2892         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
2893           (popGet): allow larger offsets for AOP_PCODE,
2894           (genDataPointerSet): handle literals explicitly, more debug output,
2895           (genAssign): fixed for float using aopLiteral ;-)
2896         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
2897           GOTO initialisation routine
2898         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
2899           flag on registers, fixes #1469043 (local variables do not work)
2900         * src/pic/main.c (_pic14_do_link),
2901         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
2902           available
2903
2904 2006-06-25 Borut Razem <borut.razem AT siol.net>
2905
2906         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
2907           characters printed (not including the trailing '\0' used to end
2908           output to strings). Problem detected in regression test bug-927659.c.
2909           NOTE: printf() family functions should return int instead
2910           unsigned int!
2911         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
2912           specifier are printed as themselves
2913         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
2914           support flags, width and precision specifiers
2915
2916 2006-06-24 Borut Razem <borut.razem AT siol.net>
2917
2918         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
2919           to the list of sdcc tagrets not supporting bit type
2920         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
2921           testfor pic16 due to bug:
2922           [ 1511794 ] pic16: regression test bug-895992.c fails
2923
2924 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
2925
2926         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
2927         * src/SDCCglue.c (initPointer), fixed bug 1496419
2928         * support/regression/tests/bug1496419.c: new, added
2929
2930 2006-06-22 Borut Razem <borut.razem AT siol.net>
2931
2932         * support/regression/ports/pic16/support.c: use gpsim usart module from
2933           libgpsim_modules library
2934
2935 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2936
2937         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
2938         IP0H to IPH0.
2939
2940 2006-06-19 Raphael Neider <rneider AT web.de>
2941
2942         * src/pic/glue.h,src/pic16/glue.h: added prototypes
2943         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
2944           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
2945           (pic14printExterns,pic14printPublics,pic16printPublics,
2946           pic16_printExterns): use new functions to emit symbols
2947           (picglue,pic16glue): emit publics before emitting externs
2948         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
2949           locally defined functions to avoid bug #1443651
2950         * support/regression/tests/bug-716242.c: removed pic16 workaround
2951         * support/regression/ports/pic16/spec.mk: ignore errors during build
2952
2953 2006-06-19 Raphael Neider <rneider AT web.de>
2954
2955         * src/pic/glue.h: added pic14aopLiteral prototype
2956         * src/pic/glue.c (pic14aopLiteral): return unsigned int
2957         * src/pic/gen.c: removed stdint.h dependency
2958           (aopGet): use Safe_strdup()
2959           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
2960           (genDataPointerSet): use pic14aopLiteral()
2961         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
2962           for pic16; thanks to Bernhard and Maarten
2963
2964 2006-06-18 Borut Razem <borut.razem AT siol.net>
2965
2966         * support/regression/tests/structflexarray.c: flexible array members
2967           not supported by gcc < 3
2968         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
2969           GUI tool by default
2970         * src/pic/gen.c: don't include [p]strdin.h on solaris
2971         * support/Util/pstdint.h: addad svn attributes
2972         * support/regression/tests/constantRange.c,
2973           support/regression/tests/rotate.c: include inttypes.h instead
2974           stdint.h on solaris, addad svn attributes
2975
2976 2006-06-18 Raphael Neider <rneider AT web.de>
2977
2978         * src/SDCCsymt.c (initCSupport): change return type of divschar to
2979           int for PIC16
2980         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
2981           (pic16_genMinusBits): simplified sign-extension
2982           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
2983             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
2984             adjusted to correctly handle mixed-signed operands, disabled
2985             now unused multiplciation routines
2986         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
2987           (assignResultValue): added argument denoting the size of the result
2988             as returned by the function (fixes upcasts in assigning from
2989             function calls: char foo(); int i = foo();)
2990           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
2991             function result to assignResultValue
2992           (genMult): disabled inlined multiplication code
2993           (genDiv): augmented to also handle the modulus operator, fixed to
2994             handle mixed-signed operands correctly
2995           (genMod): simply call genDiv, disabled unused code
2996           (genAssign): fixed missing (sign-)extension on result
2997         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
2998             valid char operands, allow signed operands for native code, added
2999             division and modulo operator handling
3000         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
3001
3002         As a consequence, onebyte.c (if split into two files) and muldiv.c
3003         pass regression tests.
3004
3005 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3006
3007         * doc/Makefile.in: two runs of makeindex seem needed to get
3008         correct page references in the index of sdccman.pdf
3009         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
3010
3011 2006-06-17 Borut Razem <borut.razem AT siol.net>
3012
3013         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
3014
3015 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3016
3017         * doc/sdccman.lyx: updated, added (porting source code, debugging),
3018         mentioned ec2drv and paulmon
3019
3020 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
3021
3022         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
3023           consecutive abs areas
3024           (find_empty_space, allocate_space): added map to handle codemap or
3025            xdatamap,
3026           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
3027            absolute idata and xdata
3028         * as/mcs51/lkmem.c (summary2): updated legend
3029
3030 2006-06-16 Raphael Neider <rneider AT web.de>
3031
3032         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
3033
3034 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
3035
3036         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
3037           1208515
3038         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
3039
3040 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
3041
3042         * src/port.h (struct PORT): added field gp_tags, to hold the tag
3043         value of generic pointers,
3044         * src/avr/main.c,
3045           src/ds390/main.c,
3046           src/hc08/main.c,
3047           src/izt/i186.c,
3048           src/izt/tlcs900h.c,
3049           src/mcs51/main.c,
3050           src/pic/main.c,
3051           src/pic16/main.c,
3052           src/xa51/main.c,
3053           src/z80/main.c: PORT structure, added elements for gp_tags field,
3054         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
3055         fields in the PORT structure of each port,
3056         * src/SDCCast.c (decorateType): allow processing of generic pointers
3057         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
3058         S_FIXED symbols
3059
3060 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
3061
3062         * link/z80/lkgb.c,
3063         * link/z80/lkgg.c,
3064         * src/pic16/gen.c,
3065         * src/pic16/main.c,
3066         * src/pic16/pcode.c,
3067         * src/pic/main.c,
3068         * src/pic/pcoderegs.c,
3069         * src/SDCCicode.c,
3070         * src/SDCCmain.c,
3071         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
3072           bug 1504689 on minGW
3073
3074 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3075
3076         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
3077
3078 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
3079
3080         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
3081
3082 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
3083
3084         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
3085           for optimization
3086
3087 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
3088
3089         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
3090         to a char variable. Fixed bug #1504211
3091         * device/include/pic16/adc.h,
3092         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
3093         and fixed bug #1364390
3094
3095 2006-06-10 Borut Razem <borut.razem AT siol.net>
3096
3097         * CVSROOT: removed the CVS left-over
3098
3099 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3100
3101         * as/hc08/asmain.c (asexit),
3102         * as/hc08/lkmain.c (lkexit),
3103         * as/mcs51/asmain.c (asexit),
3104         * as/mcs51/lkmain.c (lkexit),
3105         * src/SDCCglue.c (DEFSETFUNC),
3106         * src/SDCCmain.c (linkEdit, assemble),
3107         * support/librarian/sdcclib.c (AddRel),
3108           replaced unlink() by standard C remove()
3109         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
3110         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
3111           gatherImplicitVariables): new, added to fix bug 608752,
3112           (createFunction): added gatherImplicitVariables()
3113         * src/SDCCast.h: added createRMW prototype
3114         * src/SDCCsymt.h (struct symbol): added infertype
3115         * support/regression/tests/bug608752.c: new, added
3116
3117 2006-06-10 Raphael Neider <rneider AT web.de>
3118
3119         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
3120           multibyte dummy reads (fixes #1503234)
3121
3122 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3123
3124         * device/include/mcs51/compiler.h: new, added header file to enable
3125           creating common sfr definition header files for different compilers
3126
3127 2006-06-05 Raphael Neider <rneider AT web.de>
3128
3129         * src/pic16/{pcode.h,genarith.c}:
3130           introduced pCodeOp combining any two pCodeOps (previously only
3131           two register operands could be combined), removed pcop2 from
3132           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
3133         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
3134         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
3135           rewritten to use new PO_TWO_OPS
3136         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
3137         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
3138           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
3139           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
3140           (pic16_get_op): embraced return arg to allow #define return(x),
3141             added new case for combined opcodes
3142           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
3143           (pic16_pCode2str,pic16_getRegFrompCodeOp,
3144            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
3145
3146 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3147
3148         * src/SDCCval.c (checkConstantRange): added
3149         * src/SDCCval.h: added checkConstantRange
3150         * support/Util/SDCCerr.c,
3151         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3152         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3153         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3154         * src/SDCCast.c (decorateType): added checkConstantRange,
3155         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3156         can be emitted with the correct always true/false warning,
3157         added optimization for double '!';
3158         result of decorateType() must be assigned back to the tree, because
3159         decorateType() can change the tree
3160         * src/SDCCicode.c (geniCodeLogic),
3161         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3162         (checkConstantRange): removed, it was only a fragment which never
3163         emitted a warning
3164         * src/SDCCsymt.c (computeType): fixed promotion for
3165         "-1 < (unsigned bit) b"
3166         * src/pic/ralloc.c (packRegsForAssign),
3167         * src/pic16/ralloc.c (packRegsForAssign),
3168         * src/hc08/ralloc.c (packRegsForAssign),
3169         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3170         from mcs51
3171         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3172         * support/regression/tests/constantRange.c: added
3173         * support/valdiag/tests/constantRange.c: added
3174         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3175
3176 2006-06-02 Borut Razem <borut.razem AT siol.net>
3177
3178         * support/regression/ports/pic16/support.c: increase stack size
3179           to 255 bytes
3180         * support/regression/Makefile.in: sort tests by name so that the
3181           resutlts can be compared on different machines / platforms
3182
3183 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3184
3185         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3186         * src/ds390/gen.c (emitLabel): new, added,
3187           (genDjnz): fixed stack overflow bug,
3188           (throughout): cosmetic changes to sync with mcs51/gen.c,
3189           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3190         * src/mcs51/gen.c (genEndFunction): small optimization,
3191           (throughout): cosmetic changes to sync with ds390/gen.c
3192
3193 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3194
3195         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3196           (_print_format): fixed printing pointers
3197         * src/mcs51/gen.c (emitLabel, movb): new, added,
3198           (genAssign): small optimization,
3199           (genDjnz): fixed stack overflow bug,
3200           (throughout): replaced sprintf with SNPRINTF,
3201           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3202           replaced emitcode("mov", "b,...") with MOVB(...),
3203           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3204           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3205         * src/mcs51/peeph.def: added rules 140 and 264
3206         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3207           so they may get optimized into registers
3208
3209 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3210
3211         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3212           immediately when encountered,
3213           (printUsage): always use stderr even on windows
3214
3215 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3216
3217         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3218         (processParms): fixed bug #1247551
3219         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3220         parseCmdLine, main): print '--version' to stdout,
3221         print 'help' to stdout if --help is given,
3222         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3223         arguments are given; fixed --help
3224
3225 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3226
3227         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3228         * support/regression/tests/bug-1493710.c: added
3229
3230 2006-05-27 Borut Razem <borut.razem AT siol.net>
3231
3232         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3233           static instead auto
3234         * support/regression/ports/pic16/support.c: increase stack size
3235           from default 64 bytes to 128 bytes
3236         * support/regression/tests/staticinit.c,
3237           support/regression/tests/float.c: regression tests fully enabled
3238           for pic16 port by putting the initialized data arrays into the code
3239           section
3240         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3241           This was changed by mistake in the previous version.
3242
3243 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3244
3245         * src/pic16/gen.c (genFunction, genEndFunction): some
3246         beautifications, fixed bug with falsely restoring FSR2 in large
3247         stack model, thanks to Beau E. Cox for reporting the bug
3248
3249 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3250
3251         * debugger/mcs51/break.c,
3252         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3253           use %p to print pointers, made address variables unsigned
3254         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3255         * debugger/mcs51/symtab.c (parseSymbol): must return something
3256         * src/mcs51/gen.c (aopForSym): small optimization,
3257            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3258           (freeAsmop): added missing break,
3259           (aopPut): removed parameter bvolatile, determine it inside the function,
3260           (saveRegisters, unsaveRegisters): small optimization,
3261           (genIpush): removed pointless check,
3262           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3263           replaced sprintf with SNPRINTF,
3264           replaced strcpy with strncpyz,
3265           updated aopPut calls,
3266           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3267         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3268
3269 2006-05-24 Borut Razem <borut.razem AT siol.net>
3270
3271         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3272           modification of test for the pic16 port, put the array to the code
3273           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3274
3275 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3276
3277         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3278         * support/Util/pstdint.h: added
3279
3280 2006-05-22 Borut Razem <borut.razem AT siol.net>
3281
3282         * src/regression/Makefile: removed bool2.c test, added -q linker option
3283         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3284           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3285           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3286           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3287           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3288           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3289           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3290           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3291           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3292
3293 2006-05-22 Raphael Neider <rneider AT web.de>
3294
3295         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3296           bug #1492360 (problematic due to generic pointers, see code)
3297
3298 2006-05-22 Borut Razem <borut.razem AT siol.net>
3299
3300         * support/regression/ports/pic16/specs.mk: removed stack size linker
3301           directive
3302         * support/regression/tests/array.c,
3303           support/regression/tests/bitopcse.c,
3304           support/regression/tests/bug-908454.c,
3305           support/regression/tests/malloc.c: modified for pic16 regression test
3306         * support/regression/tests/bitfields.c:
3307           pic16 - excluded bitfileds of size > 8
3308         * support/regression/tests/bp.c: pic16 - reduced data size
3309         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3310         * support/regression/tests/bug-460010.c:
3311           pic16 - used the absolute address the fits in memory
3312         * support/regression/tests/bug-716242.c:
3313           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3314         * support/regression/tests/float.c:
3315           pic16 - excluded - data size too big
3316         * support/regression/tests/onebyte.c:
3317           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3318         * support/regression/tests/shifts.c:
3319           pic16 - function names probably have to differ in first X characters
3320           (gpasm limitation?)
3321         * support/regression/tests/staticinit.c:
3322           pic16 - excluded some tests due error: no target memory available for
3323           section ".idata"
3324
3325 2006-05-22 Borut Razem <borut.razem AT siol.net>
3326
3327         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3328           second try. Thanks Stas Sergeev once more.
3329
3330 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3331
3332         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3333           (genLeftShift, genRightShift): fixed bug 1491627
3334         * src/hc08/peeph.def (rules 7, 8.x): added
3335         * support/regression/tests/shifts.c (ShiftLeftByParam,
3336           ShiftRightByParam, testShiftByParam): added to test variable shifting
3337
3338 2006-05-20 Raphael Neider <rneider AT web.de>
3339
3340         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3341         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3342           (allocReg): add only new registers to dynAllocRegs,
3343           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3344             #1489055, #1445850, and probably #1483693
3345
3346 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3347
3348         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3349         bug in for-loop that didn't emit the last of CONFIG and ID registers
3350
3351 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3352
3353         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3354           with offset
3355         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3356           1489016, 1434401 and 1490124
3357         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3358           1489016, 1434401 and 1490124
3359
3360 2006-05-17 Borut Razem <borut.razem AT siol.net>
3361
3362         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3363           thanks Stas Sergeev
3364
3365 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3366
3367         * device/include/mcs51/P89c51RD2.h,
3368         * device/include/mcs51/P89LPC901.h,
3369         * device/include/mcs51/P89LPC922.h,
3370         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3371
3372 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3373
3374         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3375         to fix missing stack pragma in compiled binary object file,
3376
3377 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3378
3379         * support/packihx/configure.in,
3380         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3381         determine sizeof basic types even while cross compiling
3382
3383 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3384
3385         * src/avr/gen.c (aopop),
3386         * src/ds390/gen.c (aopOp),
3387         * src/hc08/gen.c (aopOp),
3388         * src/mcs51/gen.c (aopop),
3389         * src/pic16/gen.c (pic16_aopOp),
3390         * src/pic/gen.c (aopOp),
3391         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3392         if size of operand is smaller than spill location
3393
3394 2006-05-12 Borut Razem <borut.razem AT siol.net>
3395
3396         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3397           have to have CR/LF line endings even if they are checked out on *nix
3398           or on WIN32 in cygwin binmode
3399
3400 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3401
3402         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3403         * device/include/ds80c390.h: added sfr16 definitions
3404         * src/ds390/gen.c,
3405         * src/ds390/gen.h,
3406         * src/ds390/main.c,
3407         * src/ds390/ralloc.c,
3408         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3409           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3410           bit returning functions
3411         * support/regression/tests/sfr16.c: enabled test on ds390
3412
3413 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3414
3415         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3416         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3417
3418 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3419
3420         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3421         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3422           (cl_address_space constructor): removed expensive initialization,
3423           (cl_address_space::get_cell): extended for late initialization,
3424           (cl_address_space::*): use late initialization,
3425           (cl_address_decoder::activate): removed expensive initialization,
3426           This reduced regression test running time by 25%
3427
3428 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3429
3430         * packihx/,
3431         * configure.in,
3432         * configure,
3433         * sdcc.dsw,
3434         * Makefile.bcc,
3435         * Makefile.in,
3436         * support/packihx/Makefile.in,
3437         * support/packihx/clean.mk,
3438         * support/packihx/Makefile.bcc,
3439         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3440
3441 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3442
3443         * src/SDCCval.c (valNot): fix for regression test failure
3444           of not.c on big endian hosts
3445
3446 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3447
3448         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3449
3450 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3451
3452         * device/lib/mcs51/Makefile.in: changed string comparison operator
3453           to = for POSIX compliance; == is bash extension
3454
3455 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3456
3457         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3458           kosmonaut_pirx
3459
3460 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3461
3462         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3463         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3464         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3465         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3466         bug report #1478657,
3467
3468 2006-05-05 Borut Razem <borut.razem AT siol.net>
3469
3470         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3471           making the html
3472
3473 2006-05-02 Borut Razem <borut.razem AT siol.net>
3474
3475         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3476           create *.ind, which made make to fail if invoked with -j 2
3477
3478 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3479
3480         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3481           Hubert Sack for patch 1479782
3482
3483 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3484
3485         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3486
3487 2006-05-01 Raphael Neider <rneider AT web.de>
3488
3489         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3490           (create_pic): store only prefix-free device name,
3491           (init_pic): check for device names with "16" prefix,
3492           (list_valid_pics),
3493         * src/pic/device.h (struct PIC_device),
3494         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3495             stored device name,
3496         * device/include/pic/pic12f{635,675,629,683}.h,
3497         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3498         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3499         * device/include/pic/pic16f505.h,
3500         * device/lib/pic/libdev/pic16f505.c: removed
3501         * device/include/pic/pic14devices.txt: added support for pic12f
3502             devices, removed unsupported non 16-bit devices
3503             [above changes provided by patch from Zik Saleeba]
3504         * src/pic/*, src/pic16/*, device/include/pic16/*,
3505           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3506
3507 2006-05-01 Borut Razem <borut.razem AT siol.net>
3508
3509         * configure.in, configure, doc/Makefile.in:
3510           sync with nightly build makefile - latex, dvipdf and dvips
3511           not needed any more
3512
3513 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3514
3515         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3516         in the library source
3517
3518 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3519
3520         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3521
3522 2006-04-28 Raphael Neider <rneider AT web.de>
3523
3524         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3525         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3526           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3527         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3528
3529 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3530
3531         * device/lib/pic/libdev/Makefile.in,
3532         * device/lib/hc08/Makefile.in,
3533         * device/lib/gbz80/Makefile.in,
3534         * device/lib/z80/Makefile.in,
3535         * device/lib/ds390/Makefile.in,
3536         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3537         thanks to Borut for the bug report
3538         * configure.in,
3539         * configure: always create doc/Makefile independent from --enable-doc
3540         * Makefile.in: always install from directory doc independent from
3541         --enable-doc
3542         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3543         removed
3544         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3545         * doc/Makefile.in: install *.txt if present
3546         * device/include/Makefile.in (install): added installation of pic/*.inc
3547         and pic/*.txt files again, they were erroneously removed
3548
3549 2006-04-28 Raphael Neider <rneider AT web.de>
3550
3551         * src/pic/{gen.c,main.h,pcode.c},
3552         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3553             concerning signedness with casts
3554
3555 2006-04-28 Raphael Neider <rneider AT web.de>
3556
3557         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3558             definition of an interrupt handler,
3559         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3560             interrupt handler stuff from picglue() to separate routine,
3561           (picglue): enabled definition of intr handlers in files w/o main()
3562
3563 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3564
3565         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3566           compilation with MSVC 2005 Express Edition (VC8)
3567
3568 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3569
3570         * device/lib/Makefile: fixed build of gbz80 lib
3571
3572 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3573
3574         * support/regression/tests/bug-460010.c,
3575         * support/regression/tests/bug-524691.c,
3576         * support/regression/tests/bug-716242.c: removed conditional defines
3577           that are already in testfwk.h
3578
3579 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3580
3581         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3582           (AccAXRsh1): added, shift right by 1,
3583           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3584            AccAXLrl1
3585         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3586
3587 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3588
3589         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3590         remove cast to same type
3591         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3592         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3593         * as/z80/Makefile,
3594         * link/z80/Makefile: removed, they have moved to
3595         Makefile.in files
3596         * configure,
3597         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3598         * install-sh: fix bug #1204398 by setting umask 0022
3599         * device/lib/Makefile: separate build of z80 and gbz80 lib
3600
3601 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3602
3603         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3604         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3605
3606         One basic decision: e.g. src/clean.mk includes further files. In order
3607         to make this work there are two solutions:
3608         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3609           run configure on them. This way they can use
3610           'include $(srcdir)/port-clean.mk'
3611         - always include clean.mk by the Makefile at the same level. To avoid
3612           that `make clean` tries to include and build Makefile.dep the
3613           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3614           implemented, because now even `make uninstall` doesn't create
3615           Makefile.in. clean.mk could be eliminated by pasting it in
3616           Makefile.in.
3617
3618         * debugger/mcs51/Makefile.in: build own objects from library sources
3619         (SLIB, SDCC) in current directory
3620
3621         * configure, configure.in: renamed --disable-device-lib-build in
3622         --disable-device-lib; added --enable-doc, the required tools are
3623         searched by configure; added result message; the toolchain for the
3624         belonging ports are now only built, if the port is enabled.
3625
3626         * support/regression/*: all output is written in directory gen, because
3627         the fwk and ports directories don't livet in the build tree using vpath
3628
3629         * doc/sdccman.lyx: renamed --disable-device-lib-build to
3630         --disable-device-lib, added --enable-doc, added section VPATH
3631
3632         * sim/ucsim/configure.in,
3633         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3634         z80 are enabled by default
3635
3636 2006-04-24 Raphael Neider <rneider AT web.de>
3637
3638         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3639             to config word, "pic14_"-prefixed some extern functions
3640           (pic14_emitConfigWord): emit __config directive(s) if assignment to
3641             config word has been found
3642         * src/pic/device.h: added prototypes
3643         * src/pic/pcode.c: added "pic14_"-prefix where needed
3644         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3645             fixup
3646         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3647             words,
3648           (pic14emitRegularMap): ignore config words,
3649           (pic14createInterruptVect): moved generating __config directives away
3650           (picglue): have __config directives emitted
3651
3652 2006-04-24 Borut Razem <borut.razem AT siol.net>
3653
3654         * doc/Makefile: sync with nightly build makefile
3655
3656 2006-04-24 Raphael Neider <rneider AT web.de>
3657
3658         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3659             registers that have not been assigned proper liveranges,
3660             fixes #1469504 and #1474602,
3661           (pCodeRegOptimizeRegUsage): fixed typo in comment
3662
3663 2006-04-24 Borut Razem <borut.razem AT siol.net>
3664
3665         * device/examples/main8051.c: deleted - it was removed from CVS
3666           24.mar.2000 and after that modified 18.feb.2001, so it reappered
3667           after the transition to Subversion
3668         * src/SDCCalloc.h: deleted - it was removed  from CVS
3669           3.feb.2001 and after that modified 18.feb.2001, so it reappered
3670           after the transition to Subversion
3671         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3672           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3673           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3674           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3675
3676 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3677
3678         * as/asx8051.dsp: added mcs51/strcmpi.h
3679         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3680         * as/hc08/aslink.h: updated lnksect prototype
3681         * as/hc08/asm.h,
3682         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3683         * as/hc08/asmain.c,
3684         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3685           (newdot): handle A_ABS
3686         * as/hc08/asout.c,
3687         * as/mcs51/asout.c (outarea): output address
3688         * as/hc08/lkaomf51.c,
3689         * as/mcs51/lkaomf51.c: disabled unused array UsageType
3690         * as/hc08/m08pst.c,
3691         * as/mcs51/i51pst.c,
3692         * as/z80/z80pst.c: "ABS" is not A_OVR
3693         * as/hc08/lkarea.c (newarea): read a_addr,
3694           (lnkarea): added codemap array, sort absolute areas to the front,
3695            combine all GSINITx/GSFINAL,
3696           (find_empty_space, allocate_space): new functions,
3697           (lnksect): return next address, handle absolute sections
3698         * as/mcs51/lkarea.c (newarea): read a_addr,
3699           lnksect2 prototype changed,
3700           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3701           (find_empty_space, allocate_space): new, factored out of lnksect2,
3702           (lnksect2): return next address, handle absolute sections
3703         * as/hc08/lkhead.c,
3704         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3705         * as/hc08/lklibr.c (addfile, fndsym),
3706         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3707           index out of range and detect both '\' and '/'
3708         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3709         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3710           regression tests (ds390 cannot return bool yet)
3711         * doc/sdccman.lyx: changed version number, document changed --no-peep,
3712           document critical interrupts on z80, document changed SDCC define
3713         * src/asm.c (_asxxxx_mapping): fixed .org directive,
3714           (_a390_mapping): added .org directive
3715         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3716           (genMultOneByte): fixed warnings
3717         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3718           ones
3719         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3720         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3721           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3722         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3723         * src/pic16/main.c: removed newReg prototype
3724         * src/pic16/pcode.c,
3725         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3726           warnings
3727         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3728           ones
3729         * src/pic16/ralloc.c
3730         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3731           to fix warnings
3732         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3733           from short to PIC_OPTYPE
3734         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3735         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3736           optype from short to PIC_OPTYPE
3737         * src/port.h: made int_size unsigned to fix warnings
3738         * src/SDCC.y: fixed warning on MSVC
3739         * src/SDCCicode.c (getArraySizePtr): return unsigned int
3740         * src/SDCCopt.c (convertToFcall): fixed warnings
3741         * src/SDCCsymt.h: removed double prototype for genSymName
3742         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3743           offset int to fix warnings
3744
3745 2006-04-22 Borut Razem <borut.razem AT siol.net>
3746
3747         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3748           references to CVS replaced with Subversion
3749
3750 2006-04-21 Borut Razem <borut.razem AT siol.net>
3751
3752         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3753           references to CVS replaced with Subversion
3754
3755 2006-04-19 Borut Razem <borut.razem AT siol.net>
3756
3757         * src/version.awk: adapted for svn
3758         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3759           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3760           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3761           /binutils-avr/etc/*.vi, *.jin: removed all properties
3762           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3763
3764 2006-04-19 Borut Razem <borut.razem AT siol.net>
3765
3766         * CVS to Subversion migration completed
3767
3768 2006-04-18 Borut Razem <borut.razem AT siol.net>
3769
3770         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3771           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3772
3773 2006-04-17 Borut Razem <borut.razem AT siol.net>
3774
3775         * device/include/Makefile.in: added pic/*.inc to the installation
3776
3777 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3778
3779         * support/regression/collate-results.py: fixed output in case of
3780         a valdiag error
3781         * support/regression/generate-cases.py: fixed splitting of pathnames
3782         with dots
3783         * as/hc08/lklibr.c (addfile),
3784         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3785
3786 2006-04-11 Raphael Neider <rneider AT web.de>
3787
3788         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3789         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3790         * src/pic16/pcode.c (assignValnums): fixed #1460578
3791
3792 2006-04-11 Raphael Neider <rneider AT web.de>
3793
3794         * device/lib/pic/libdev/*.c,
3795         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3796           fixes #1468739, enables compilation in --std-c99 mode
3797         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3798
3799 2006-04-11 Raphael Neider <rneider AT web.de>
3800
3801         * src/pic/device.c (find_device): removed debug output
3802           (list_valid_pics): enabled verbose listing of supported devices
3803         * device/include/stdbool.h: define bool as char for pic14/16 as well
3804
3805 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3806
3807         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3808
3809 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3810
3811         * .version: bumped version to 2.5.6
3812         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3813
3814 2006-04-06 Raphael Neider <rneider AT web.de>
3815
3816         * .version: bumped version to 2.5.6 (pic14 ABI changed)
3817         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3818         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3819           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3820             pic14_constructAbsMap
3821           (pic14printPublics): declare absolute global symbols as global
3822           (pic14createInterruptVect),
3823         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3824           (newReg): assume new registers unused, use correct name in
3825             hashtable (reg->name instead of name), more debugLog output
3826         * src/pic/device.h (PIC_device): added fields for verbose output
3827         * src/pic/device.c: moved device definition to pic14devices.txt,
3828             added routines for runtime parsing of pic14devices.txt,
3829             added support for second config word
3830         * src/pic/main.c (_process_pragma): removed #pragma maxram,
3831           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3832           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3833           (_pic14_parseOptions): moved pCodeInitRegisters here
3834           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3835         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3836           (pCodeInitRegisters): rewrapped comments, perpared new approach to
3837             handling the pseudo stack
3838         * device/lib/Makefile.in: ignore failures in objects-pic16,
3839         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3840         * device/lib/pic/NEWS: document new dependency on picXXX.lib
3841         * device/lib/pic/Makefile.subdir,
3842         * device/lib/pic16/Makefile.subdir: improved clean rules
3843         * device/lib/pic/libdev/: NEW, pic14 device libraries
3844         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
3845         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
3846         * device/include/Makefile.in: create subdir and install pic14 headers
3847         * device/include/pic/p16f_common.inc: removed unused declarations
3848         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
3849             PICs from inc2h.pl v1.6,
3850             replaced BIT_AT macros with struct declarations
3851         * device/include/pic/pic14devices.txt: definition of supported devices,
3852             all above improvements contributed by Zik Saleeba, thanks
3853         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
3854         * support/scripts/sdcc.nsi: also install pic14 device libraries and
3855             headers
3856
3857 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3858
3859         * device/include/mcs51/c8051f410.h: added interrupt numbers,
3860         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
3861           thanks to Charles Olds
3862
3863 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3864
3865         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
3866
3867 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3868
3869         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
3870         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
3871         * support/regression/bug1464657.c: added, new test
3872
3873 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3874
3875         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
3876           version number
3877
3878 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3879
3880         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
3881           --no-peep and --peep-file <file> are used don't use default rules but
3882           do use the <file>
3883
3884 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3885
3886         * src/mcs51/gen.c (genCall): fixed bug 1457608
3887
3888 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3889
3890         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
3891         changes seem to cause (trigger?) problems with the build system.
3892
3893 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
3894
3895         * src/SDCCpeeph.c (operandsLiteral): new, added,
3896           (callFuncByName): inserted operandsLiteral
3897         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
3898
3899 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3900
3901         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
3902         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
3903
3904 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3905
3906         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
3907           implemented patch 1120823 Thanks to Willy De la Court (normal
3908           interrupts need an interrupt number now if they are made critical),
3909           and enabled nesting of critical functions though not for gbz80
3910           (genCritical, genEndCritical): added functions
3911           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
3912         * src/z80/mappings.i: added "ei" to all mappings
3913
3914 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3915
3916         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
3917         submitted by the Debian SDCC maintainer Aurelien Jarno:
3918         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
3919         archive with gcc 4.1 on mips and wrote the patch"
3920
3921 2006-03-16 Raphael Neider <rneider AT web.de>
3922
3923         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
3924           the left operand is shorter than the result (c* = lit-c* + int),
3925           fixes bug #1450796
3926         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
3927           OP_SYMBOL
3928
3929 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3930
3931         * src/.version: increased version number to 2.5.5
3932         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
3933         linking is done manually in pic16 port's _linkEdit,
3934         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
3935         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
3936         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
3937         allocate asmop as AOP_ACC,
3938         (aopForRemat): added parameter 'bool result' in function declaration,
3939         (pic16_aopGet): return AOP_ACC when accessing WREG,
3940         (pic16_popGetTempReg): minor modification,
3941         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
3942         'pic16_allocWithIdx',
3943         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
3944         calling function in absolute addresses,
3945         (genAssign): take into account AOP_ACC asmop,
3946         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
3947         * src/pic16/pcoderegs.c: some debug functions and lines added,
3948         * src/pic16/ralloc.c (decodeRegType): added but commented out,
3949         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
3950         register too,
3951         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
3952         call to allocReg, not by manually allocating a new one,
3953         (pic16_assignRegisters): now before going through the register
3954         allocating functions mark all registers as free. This eliminates some
3955         side effects resulting from peephole parser done earlier in the backbone
3956
3957 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
3958
3959         * src/SDCCicode.c (geniCodeLogic),
3960         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
3961
3962 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
3963
3964         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
3965           (genSend): bugfix, do not allocate and free twice,
3966           (shiftRLong): handle partially overlapping aops
3967         * support/regression/tests/bitopcse.c: fixed warning redefined idata
3968
3969 2006-03-08 Borut Razem <borut.razem AT siol.net>
3970
3971         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
3972           for pic16
3973
3974 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
3975
3976         * support/regression/tests/bug1409955.c: new, added
3977         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
3978         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
3979           (aopForSym, aopOp): increment asmop.allocated if reused,
3980           (freeAsmop): decrement asmop.allocated and check for zero instead of
3981           using asmop.freed,
3982           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
3983           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
3984            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
3985            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
3986            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
3987            genSignedRightShift, genRightShift, genDataPointerGet,
3988            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
3989            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
3990             in reverse order from allocation,
3991           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
3992             added swappedLR to keep track
3993         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
3994           pdata & code for GCC, z80, gbz80 & hc08
3995         * support/regression/tests/zeropad.c: moved defines to testfwk.h
3996
3997 2006-03-08 Raphael Neider <rneider AT web.de>
3998
3999         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
4000
4001 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
4002
4003         * device/include/mcs51/c8051f410.h: new SiLabs mcu
4004         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
4005         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
4006
4007 2006-03-06 Borut Razem <borut.razem AT siol.net>
4008
4009         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
4010           made the linker quiet
4011
4012 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4013
4014         * src/pic16/gen.c (genPcall): fixed bug #1443644
4015         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
4016         which dumps before the function entry point a data byte which represents
4017         the number of the local variables used by the specified function, added
4018         'xinst' for initial support for Extended Instruction Support,
4019         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
4020         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
4021         port->fun_prefix anymore (may change later),
4022         (genFunction, genEndFunction): do not store/restore local registers for
4023         _main (this should take care the --main-return command line option in
4024         the future),
4025         (genOr): removed some legacy pic-port instructions,
4026         * src/pic16/genarith.c (genAddLit): re-enabled old code because
4027         performing operations with SFR's causes data to be written more than
4028         once to each SFR. Perhaps SFRs should be handled in special cases...
4029         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
4030         pcode.h
4031         * src/pic16/main.c (_process_pragma): stack bound checking did not take
4032         into account for stack starting position,
4033         (struct OPTIONS pic16_optionsTable): added command line argument
4034         --extended or -y for Extended Instruction Support,
4035         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
4036         (deassignLRs): *** perhaps the most important change, old 'for' code
4037         (commented out for reference), didn't account for some registers which
4038         were left marked 'not free' after a pointer operation. The change
4039         reduces register usage a lot in some cases
4040
4041 2006-03-04 Borut Razem <borut.razem AT siol.net>
4042
4043         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
4044           _clean
4045         * support/regression/tests/bug-524697.c: decreased array size for
4046           mcs51 to fit into the internal RAM
4047         * support/regression/Makefile.in: a little bit more verbose
4048
4049 2006-03-03 Borut Razem <borut.razem AT siol.net>
4050
4051         * support/regression/fwk/lib/testfwk.c,
4052           support/regression/fwk/include/testfwk.h: introduced function
4053           _prints(), nonrecursive _printn(), call _initEmu() from main()
4054         * support/regression/ports/gbz80/support.asm,
4055           support/regression/ports/ucz80/support.asm,
4056           support/regression/ports/z80/support.asm,
4057           support/regression/ports/ds390/support.c,
4058           support/regression/ports/hc08/support.c,
4059           support/regression/ports/host/support.c,
4060           support/regression/ports/mcs51/support.c,
4061           support/regression/ports/xa51/support.c: added empty _initEmu()
4062           function
4063         * support/regression/ports/pic16/gpsim.cmd,
4064           support/regression/ports/pic16/spec.mk,
4065           support/regression/ports/pic16/support.c,
4066           support/regression/Makefile.in: added pic16 regression test
4067
4068 2006-03-01 Raphael Neider <rneider AT web.de>
4069
4070         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
4071           genConstPointerGet): use safe way of generating MOVFF to cover
4072             literals as well as registers, fixes bug #1440527
4073         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
4074             dereference
4075           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
4076             more correctly, fixes bug #1232186
4077           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
4078         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
4079             gplink guess the correct processor in more cases, applied patch
4080             from Till Riedel attached to and fixing bug #1436552
4081
4082 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4083
4084         * support/regression/tests/array.c: added, contains check for #1434401
4085         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
4086
4087 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
4088
4089         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4090         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
4091         * device/include/mcs51/c8051f326.h,
4092         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
4093         * device/include/mcs51/c8051f000.h,
4094         * device/include/mcs51/c8051f018.h,
4095         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
4096           PCON_IDLE,PCON_STOP and added sfr16 definitions
4097
4098 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4099
4100         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
4101           genGetWord): fixed bug 1409955
4102
4103 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4104
4105         * device/include/hc08/mc68hc908gp32.h,
4106         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
4107
4108 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
4109
4110         * src/SDCCast.c (constExprValue): return NULL if not a value
4111         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
4112         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
4113         * support/regression/tests/bitfields.c: enabled signed bitfield for all
4114
4115 2006-02-13 Borut Razem <borut.razem AT siol.net>
4116
4117         * src/regression/ptrarg.c: added, fails due to bug #1430967
4118         * src/regression/Makefile: ptrarg.c added, ...
4119
4120 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
4121
4122         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
4123         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
4124
4125 2006-02-11 Borut Razem <borut.razem AT siol.net>
4126
4127         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
4128           print "Processor: xxx" message to stdout only if --verbose
4129
4130 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4131
4132         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
4133         * support/regression/tests/bug1426356.c: added
4134         * support/regression/tests/bitfields.c: removed 2 tests
4135
4136 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4137
4138         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
4139         * device/include/mcs51/c8051f330.h,
4140         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
4141           PCON_IDLE,PCON_STOP and added sfr16 definitions
4142         * device/lib/_divsint.c,
4143         * device/lib/_divuint.c,
4144         * device/lib/_divulong.c,
4145         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
4146           register bank bug for small stackauto
4147
4148 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4149
4150         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4151
4152 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4153
4154         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4155         * all.dsp: corrected several bin paths
4156         * device/include/mcs51/c8051f120.h,
4157         * device/include/mcs51/c8051f300.h,
4158         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4159           to PCON_IDLE,PCON_STOP
4160         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4161         * device/lib/printf_large.c (output_float): fixed bug 1388703
4162         * support/regression/tests/bug1057979.c: added test for bug 1388703
4163
4164 2006-02-08 Raphael Neider <rneider AT web.de>
4165
4166         * src/pic/pcode.c (pciTRIS): fixed typo,
4167           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4168           (LinkFlow): fixed handling of flows that end in a call,
4169           (ReuseReg): perform safety check earlier
4170         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4171             to work with flows at the beginning of a pBlock,
4172             fixes #1426557 (Symbol not previously defined),
4173           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4174             usage information
4175           (RemoveUnusedRegisters): update register usage info
4176         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4177             created, reuse existing ones instead
4178         * src/pic/gen.c (genPcall): fixed #1424719
4179
4180 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4181
4182         * link/z80/lkmain.c,
4183         * link/z80/lklex.c,
4184         * link/z80/lkdata.c,
4185         * link/z80/aslink.h: fixed build on current cygwin:
4186         replaced getline() by lk_getline()
4187
4188 2006-02-01 Borut Razem <borut.razem AT siol.net>
4189
4190         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4191           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4192           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4193           src/regression/bool1.c, src/regression/bool2.c,
4194           src/regression/bool3.c, src/regression/call1.c,
4195           src/regression/compare.c, src/regression/compare10.c,
4196           src/regression/compare2.c, src/regression/compare3.c,
4197           src/regression/compare4.c, src/regression/compare5.c,
4198           src/regression/compare6.c, src/regression/compare7.c,
4199           src/regression/compare8.c, src/regression/compare9.c,
4200           src/regression/configword.c, src/regression/for.c,
4201           src/regression/inline.c, src/regression/mult1.c,
4202           src/regression/nestfor.c, src/regression/or1.c,
4203           src/regression/pointer1.c, src/regression/ptrfunc.c,
4204           src/regression/rotate1.c, src/regression/rotate2.c,
4205           src/regression/rotate3.c, src/regression/rotate4.c,
4206           src/regression/rotate5.c, src/regression/rotate6.c,
4207           src/regression/rotate7.c, src/regression/string1.c,
4208           src/regression/struct1.c, src/regression/sub.c,
4209           src/regression/sub2.c, src/regression/switch1.c,
4210           src/regression/while.c, src/regression/xor.c,
4211           src/regression/create_stc, src/regression/simulate,
4212           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4213           regression tests
4214         * src/regression/gpsim_assert.h: added
4215
4216 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4217
4218         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4219         ((void (code *) (void)) 0) ();
4220         * as/hc08/aslex.c,
4221         * as/hc08/aslink.h,
4222         * as/hc08/asm.h,
4223         * as/hc08/asmain.c,
4224         * as/hc08/lkdata.c,
4225         * as/hc08/lklex.c,
4226         * as/hc08/lkmain.c,
4227         * as/mcs51/aslex.c,
4228         * as/mcs51/aslink.h,
4229         * as/mcs51/asm.h,
4230         * as/mcs51/asmain.c,
4231         * as/mcs51/lkdata.c,
4232         * as/mcs51/lklex.c,
4233         * as/mcs51/lkmain.c,
4234         * as/z80/aslex.c,
4235         * as/z80/asm.h,
4236         * as/z80/asmain.c: fixed build on current cygwin:
4237         replaced getline() by as_getline()
4238
4239 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4240
4241         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4242         declarator in the symbol chain
4243         * src/SDCCsymt.h,
4244         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4245         parameter list for function pointers
4246         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4247         * support/regression/tests/bug-716242.c: added
4248
4249 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4250
4251         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4252         offset if possible
4253         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4254
4255 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4256
4257         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4258         inifinitely recurseable, added static
4259         * support/regression/tests/bug-1408066.c: added
4260
4261 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4262
4263         * src/SDCCicode.h,
4264         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4265         renamed, added possibility to create "postLoopLbl"-labels
4266         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4267         newiTempLoopHeaderLabel
4268         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4269         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4270         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4271         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4272         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4273         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4274         (basicInduction): fixed bug #136564, made static,
4275         (loopInduction): changed parameter of basicInduction, made static,
4276         (addPostLoopBlock): added
4277         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4278         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4279         findLoopEndSeq
4280         * support/regression/tests/bug-136564.c: added
4281         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4282         --std-sdcc99 to LIBSDCCFLAGS
4283
4284 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4285
4286         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4287         while loop
4288         * support/regression/tests/bug-1406131.c: added
4289
4290 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4291
4292         * src/SDCCast.c (decorateType): fix promotion of unary minus
4293         * src/SDCCsymt.c (computeType): beautified
4294         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4295         (valUnaryPM, valComplement): fix sign and promotion,
4296         (valNot): ANSI: result type is int (SDCC: unsigned char)
4297         * support/regression/tests/uminus.c: speedup by removing superflous
4298         test case 'int'
4299         * support/regression/tests/onebyte.c: added promotion and signedness
4300         tests for unary minus
4301         * support/regressions/tests/bug-477927.c: disable warning about
4302         uninitialized variables
4303         * support/regression/tests/not.c: added
4304
4305 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4306
4307         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4308         * src/mcs51/gen.c (gen51Code): show final register usage after
4309         fillGaps in asm with --i-code-in-asm
4310         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4311         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4312         incUsed, rliveClear, adjustIChain): made static,
4313         (setFromRange): excluded because it's unused,
4314         (findPrevUseSym, markWholeLoop): added,
4315         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4316         through all branches of predecessors enables sdcc to emit the warning
4317         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4318         (rlivePoint): made static, added parameter emitWarnings which is only
4319         true during the first run out of two,
4320         (findRecursiveSucc, findRecursivePred): removed,
4321         (computeLiveRanges): made static, added parameter emitWarnings,
4322         (dumpIcRlive): added for debugging only
4323         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4324         removed prototype of setFromRange()
4325         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4326         in call of computeLiveRanges()
4327         * support/regression/tests/bug-895992.c: added
4328         * support/regression/tests/bug-971834.c: added
4329         * support/valdiag/tests/bug-895992.c: added
4330         * support/valdiag/tests/bug-971834.c: added
4331
4332 2005-12-18 Raphael Neider <rneider AT web.de>
4333
4334         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4335           (genUnpackBits): improved code for direct operands,
4336           (genPackBits): improved code for literal assignment to bitfields
4337             and for direct destination operands (no FSR indirection),
4338             prevented redundant AND, fixes #1362800,
4339           (AccLsh): added parameter to disable masking of the result
4340         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4341           skip instructions with side-effects (like incfsz),
4342           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4343         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4344         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4345           fixes #1375263
4346
4347 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4348
4349         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4350         volatile variables as spill location
4351
4352 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4353
4354         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4355         replacing literals
4356         * support/regression/tests/bug-1376320.c: added
4357
4358 2005-12-08 Raphael Neider <rneider AT web.de>
4359
4360         * src/pic/device.c: renamed is_shared to pic14_is_shared
4361         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4362         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4363           (is_valid_identifier): added for above workaround
4364
4365 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4366
4367         * device/lib/Makefile.in: fixed to enable port-specific-objects
4368         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4369           char, thanks Hubert Sack
4370         * doc/sdccman.lyx: documented --xstack-loc,
4371           elaborated a bit more on interrupts and pitfalls,
4372           removed "setjmp/longjmp unsupported",
4373           documented some unsupported C99 features
4374         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4375         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4376           if, thanks Hubert Sack
4377         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4378         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4379           make make_library
4380         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4381           regression tests can report resource usage (rfe 700441)
4382         * support/regression/collate-results.py: report resource usage
4383         * support/regression/ports/ds390/spec.mk,
4384         * support/regression/ports/hc08/spec.mk,
4385         * support/regression/ports/mcs51/spec.mk,
4386         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4387         * support/regression/ports/ds390/uCsim.cmd,
4388         * support/regression/ports/hc08/uCsim.cmd,
4389         * support/regression/ports/mcs51/uCsim.cmd,
4390         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4391         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4392           library, use the default one
4393         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4394           building the library
4395
4396 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4397
4398         * config.dsp: added dependency on .version and configure_vc.awk
4399         * device/include/setjmp.h: updated for --stack-auto and --xstack
4400         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4401         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4402         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4403         * device/lib/libsdcc.lib: added _setjmp
4404         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4405           (decorateType): fixed bug 1372851,
4406           (optimizeGetHbit): fixed warning
4407         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4408           array initialisation
4409         * support/regression/tests/bug1057979.c: added test for bug 1358192
4410         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4411
4412 2005-12-03 Borut Razem <borut.razem AT siol.net>
4413
4414         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4415           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4416
4417 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4418
4419         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4420         createIval): implement symbol independant "flexible array member",
4421         (createIvalCharPtr): implemented flexible array initialisation with a
4422         string
4423         * src/SDCCsymt.c (copyStruct): removed,
4424         (getSize): fixed misleading comment,
4425         (getAllocSize): removed, the additional allocation size is now in
4426         sym->flexArrayLength,
4427         (checkStructFlexArray): new, syntax checks for flexible array members,
4428         (compStructSize): added syntax checks for "flexible array members"
4429         (copyStruct): removed,
4430         (copyLinkChain): removed inefficient fix for bug 770487
4431         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4432         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4433         symbol->flexArrayLength
4434         * src/SDCCerr.c,
4435         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4436         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4437         * support/regression/tests/structflexarray.c: added
4438         * support/valdiag/tests/structflexiblearray.c: added
4439
4440 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4441
4442         * src/SDCCast.c (decorateType): fixed bug 1368489
4443         * support/Util/SDCCerr.c,
4444         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4445
4446 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4447
4448         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4449           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4450
4451 2005-11-27 Borut Razem <borut.razem AT siol.net>
4452
4453         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4454           support/cpp2/mkdeps.h: added command line option
4455           -obj-ext=<extension> to SDCPP to define object file externion, used
4456           for generation of make dependencies (-M)
4457         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4458
4459 2005-11-26 Borut Razem <borut.razem AT siol.net>
4460
4461         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4462           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4463           added pic and pic16 libraries
4464
4465 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4466
4467         * device/include/float.h: Corrected typo in prototype of __fsgt
4468
4469 2005-11-25 Borut Razem <borut.razem AT siol.net>
4470
4471         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4472           added creation of model-mcs51-stack-auto libraries
4473
4474 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4475
4476         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4477         and fields-list too
4478         * src/SDCCast.c (createIvalArray): removed obsolete comment
4479
4480 2005-11-24 Borut Razem <borut.razem AT siol.net>
4481
4482         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4483           added missing device/lib/mcs51/crt*.asm sources
4484
4485 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4486
4487         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4488
4489 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4490
4491         * device/lib/_fs2schar.c,
4492         * device/lib/_fs2sint.c,
4493         * device/lib/_fs2slong.c: optimized inline asm
4494
4495 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4496
4497         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4498           Better handling of floats between -1.0 and 0.0.
4499
4500 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4501
4502         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4503           (the missing "if"s prohibited removal of redundant labels)
4504
4505 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4506
4507         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4508           Properly convert floats between -1.0 and 0.0 to long, int, and char
4509           types (max integer value of negative floats tends to zero).
4510         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4511           Removed changes made so to work properly with floats between
4512           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4513           and _fs2char.c
4514
4515 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4516
4517         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4518         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4519         (genCast) cosmetic change
4520         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4521         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4522         from mcs51
4523         * support/regression/tests/bitfields (testSignedBitfields): added
4524
4525 2005-11-18 Borut Razem <borut.razem AT siol.net>
4526
4527         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4528         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4529           introduced SILENT option to make building of pic16 libraries less
4530
4531 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4532
4533         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4534           Now they work properly with floats between -1.0 and 0.0
4535         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4536
4537 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4538
4539         * src/SDCCicode.c (printOperand): added missing else
4540
4541 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4542
4543         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4544         reformatted for better readability
4545         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4546         signed bitfields
4547
4548 2005-11-17 Borut Razem <borut.razem AT siol.net>
4549
4550         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4551           introduced SILENT option to make building of pic16 libraries less
4552           verbose - used for nightly snapshot build
4553         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4554           available on Win32 platforms.
4555         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4556           medium, large, pic and pic16
4557
4558 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4559
4560         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4561           printf("%f"...) sets fraction to zero.
4562
4563 2005-11-16 Raphael Neider <rneider AT web.de>
4564
4565         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4566           fixes #1357221
4567         * src/pic/gen.c (genIfx): implemented for CARRY bit
4568         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4569           to generic pointers, fixes #1357332,
4570           (pic16_movLit2f): NEW,
4571           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4572
4573 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4574
4575         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4576
4577 2005-11-11 Raphael Neider <rneider AT web.de>
4578
4579         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4580         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4581           compute pointer's type from operand,
4582           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4583           improved single bit reads, fixes bug #1353379
4584
4585 2005-11-09 Borut Razem <borut.razem AT siol.net>
4586
4587         * support/scripts/sdcc.nsi: added lib/pic to the package
4588
4589 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4590
4591         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4592
4593 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4594
4595         * support/regression/tests/bug1348008.c: added
4596         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4597         * support/regression/tests/bug1337835.c: updated comment
4598
4599 2005-11-06 Borut Razem <borut.razem AT siol.net>
4600
4601         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4602           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4603           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4604           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4605           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4606           dynamic construction of cl_error_class and derivates - 2.nd try
4607
4608 2005-11-05 Borut Razem <borut.razem AT siol.net>
4609
4610         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4611           bug, which caused Bus Errors on sparc solaris
4612
4613 2005-11-04 Borut Razem <borut.razem AT siol.net>
4614
4615         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4616           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4617           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4618           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4619           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4620           and derivates to resolve the initialization problem on OSX
4621
4622 2005-11-02 Borut Razem <borut.razem AT siol.net>
4623
4624         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4625           corrected typo - #include <winsock2.h>
4626
4627 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4628
4629         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4630           (_asxxxx_mapping): added org directive for future enhancements
4631
4632 2005-11-01 Borut Razem <borut.razem AT siol.net>
4633
4634         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4635           enabled sockets on WIN32
4636         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4637
4638 2005-10-31 Borut Razem <borut.razem AT siol.net>
4639
4640         * support/regression/generate-cases.py: escape backslashes in {testcase}:
4641           WIN32 backslash path delimiters should be escaped when used in C strings
4642         * support/regression/tests/bitfields.c: exclude failing assertions for
4643           __CYGWIN32__ and __MINGW32__ hosts
4644
4645 2005-10-30 Borut Razem <borut.razem AT siol.net>
4646
4647         * src/SDCCutil.c: corrected double comparison typo
4648
4649 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4650
4651         * device/lib/medium/Makefile: added for new memory model medium
4652         * device/include/asm/mcs51/features.h: updated for medium/pdata
4653         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4654           added Multiply & Accumulate sbit's and MAC0_PAGE define
4655         * device/include/mcs51/c8051f300.h: added sfr16 definitions
4656         * device/include/mcs51/c8051f310.h: added sfr16 definitions
4657         * device/lib/_mullong.c: update for medium model
4658         * device/lib/incl.mk: added medium model
4659         * doc/sdccman.lyx: documented medium model
4660         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4661         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4662         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4663         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4664           (allocParms): set SCLS and OCLS to pdata for medium model
4665         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4666           for pdata,
4667           (powof2): return <0 if not power of 2
4668         * src/avr/gen.c (genBitWise): use updated powof2
4669         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4670           (shiftR2Left2Result): small optimization in setup, save acc when storing,
4671           (shiftLLeftOrResult): use B if necessary
4672         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4673         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4674         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4675         * support/regression/Makefile.in: added test-mcs51-medium
4676         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4677
4678 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4679
4680         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4681         specifier unsigned
4682         * device/lib/time.c (mktime): fixed bug 1334315
4683
4684 2005-10-28 Raphael Neider <rneider AT web.de>
4685
4686         * device/include/pic/p16f_common.inc: added common declarations
4687         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4688
4689 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4690
4691         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4692           (aopPutUsesAcc): added to predict accumulator use,
4693           (assignResultValue): save acc if necessary,
4694           (genMinusDec): store result if indirectly addressed,
4695           (genDivOneByte):  save acc if necessary,
4696           (movLeft2Result): bugfix if left already in acc,
4697           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4698             attention to accumulator use (esp. pdata),
4699           (genReceive): receive pdata correctly
4700         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4701         * src/SDCCicode.h: added isOperandInPagedSpace prototype
4702
4703 2005-10-27 Raphael Neider <rneider AT web.de>
4704
4705         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4706
4707 2005-10-27 Raphael Neider <rneider AT web.de>
4708
4709         * .version: changed version to 2.5.4
4710         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4711         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4712           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4713             arithmetics support routines
4714         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4715         * device/lib/Makefile.in: also create installdir for pic
4716
4717         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4718           pic14 port as well
4719         * src/pic/device.c (dump_sfr): rewritten to delegate register
4720           placement to the linker (use `extern sym' rather than sym EQU addr),
4721           (validAddress): fixed to check last specified address
4722         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4723           (popGetLit): truncate literal value to 8 bit,
4724           (popGet): moved assert to more appropriate place
4725           (popGetExternal): create pCode operand from and mark the according
4726             symbol as being `extern'
4727           (popGetAddr): added sanity check on immediate's offset, provide
4728             GPOINTER tag on demand
4729           (aopPut): fixed for immediates,
4730           (mov2w_op): move operand's address or contents to WREG (depending on
4731             operand type), safer variant of mov2w,
4732           (movwf,call_libraryfunc): NEW, handy abbreviations,
4733           (get_argument_pcop,get_return_val_pcop,pass_argument,
4734           get_returnvalue): interface for accessing function parameters and
4735             return values,
4736           (assignResultValuei,genRet): use new parameter/return value interface
4737           (pic14_getDataSize): back to old version handling generic pointers,
4738           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4739             provided implementation and/or fixed old one,
4740           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4741             calls, removed legacy 8051 reference code
4742           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4743           (loadSignToC): NEW, move the operands sign bit to CARRY,
4744           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4745             genRightShiftSigned, accepts negative shift counts,
4746           (setup_fsr): load FSR and adjust IRP (indirect memory access),
4747           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4748             generic pointers, __data pointers and __code pointers,
4749           (genUnpackBits,genPackBits): rewritten to work with generic pointers
4750             and signed bitfields, limit bitfields to 8 bit,
4751           (genDataPointerGet): fixed number of bytes read,
4752           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4753           (genPointerGet,genPointerSet): fixed handling of __code pointers,
4754             pointers to constant data are no longer assumed to point to __code
4755             space, removed invalid pointer types,
4756           (bitpatternFromVal): retrieve the PICs representation of an integer
4757             or float literal,
4758           (genDataPointerSet): fixed assigning to po_immediate operands,
4759           (genGenPointerSet): implemented as library call,
4760           (genIfx): fixed incorrect condition,
4761           (genAddrOf): limit generic pointers' addresses to 2 bytes,
4762             provide GPOINTER tag according to destination's storage class,
4763           (genCast): added code to handle casting to generic pointers, added
4764             sign-/zero extension of the result
4765           (aop_isLitLike,op_isLitLike): fixed handling of immediates
4766         * src/pic/gen.h: added macros to access IRP bit in STATUS register
4767         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4768           extend the result
4769         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4770           address/register resides in the shared banks
4771           (emitSymbolToFile): improved to handle global and `pinned' symbols,
4772             put all variables into separate sections (have the linker arrange
4773             them)
4774           (picglue): put init code and interrupt handlers in separate sections
4775         * src/pic/main.c: added port specific options table, modified to PORT
4776           structure to make GPOINTERs 3 byte, added pic14_options
4777           (_pic14_do_link): private linking routine (update paths to libraries,
4778             add libsdcc.lib by default)
4779         * src/pic/main.h: declare pic14_options
4780         * src/pic/pcode.c: fixed instructions i/o relations,
4781           (RegCond): reverted to correct version,
4782           (newpCodeOpLit): truncate literals to 8 bit,
4783           (genericPrint): added debug output,
4784           (getRegFromInstruction): fixed for various operand types, simplified
4785           (BuildFlow): fixed broken handling of isntructions with labels
4786           (LinkFlow): start at last instruction in flow (skip trailing comments),
4787             pass the flow on to the next instruction after CALL
4788           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4789           (insertPCodeInstruction): fixed inserting after a skip instruction,
4790           (DoBankSelect): fixed for labeled instructions
4791           (OptimizepBlock): honor --nopeep switch
4792           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4793         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4794         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4795           (pCodeOptime2pCodes): allow disabling this optimization via
4796             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4797             but is still buggy), started implementation of a dataflow based
4798             pCode optimization (CSE + dead code elimination)
4799           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4800         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4801           names are independant of the stack location and therefore portable across
4802           devices
4803
4804 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4805
4806         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4807           (selectSpil): fixed bug 1337835 by not spilling bit variables
4808         * support/regression/tests/bug1337835.c: added test for this bug
4809         * src/mcs51/peeph.def: restart after rule 3.c,
4810           addded rules 263.x to optimize loading constants
4811
4812 2005-10-26 Raphael Neider <rneider AT web.de>
4813
4814         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4815         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4816           (genAssign): emit warning when casting literals to generic pointer
4817             type, also applies when taking the address of a fixed variable,
4818           (genCast): improved casting to generic pointers
4819         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4820           extern variables, added verbose error message
4821         * device/include/pic16/{string.h,errno.h}: added #pragma library c
4822
4823 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4824
4825         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4826         carry must be complemented too
4827         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4828         could be emitted by genMinus
4829         * src/SDCCval.c (constVal): fixed bug 1305065
4830
4831 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4832
4833         * src/SDCCast.c (addCast): added promotion for bit variables
4834         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4835         promotion casts + optimisation
4836         (optimizeGetWord): fix warning 'i' might be used uninitialized
4837         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4838         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4839
4840 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
4841
4842         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
4843         all chars are promoted to int; promotion should be handled in SDCCast.c
4844
4845 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4846
4847         * device/lib/_strcmp.c: Fixed bug 1326457
4848
4849 2005-10-11 Raphael Neider <rneider AT web.de>
4850
4851         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
4852         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
4853
4854 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4855
4856         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
4857         * support/regression/tests/sfr16.c: added test for the sfr32 bug
4858
4859 2005-10-04 Raphael Neider <rneider AT web.de>
4860
4861         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
4862           device/lib/pic16/pics.all: added pic18f1320
4863         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
4864
4865 2005-09-30 Raphael Neider <rneider AT web.de>
4866
4867         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
4868         * src/pic16/devices.inc: NEW, provides device descriptions
4869         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
4870
4871 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4872
4873         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
4874           GETHBIT
4875
4876 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
4877
4878         * doc/sdccman.lyx: updated Highest Order Bit documentation,
4879           documented Any Order Bit, Higher Order Byte and Higher Order Word
4880         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
4881         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
4882           (optimizeGetAbit): new, to get any bit, not only the high bit,
4883           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
4884           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
4885           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
4886           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
4887             RIGHT_OP: also try GETBYTE, GETWORD optimization,
4888             GETABIT, GETBYTE, GETWORD: decorate them,
4889           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
4890           (ast_print): added GETABIT, GETBYTE, GETWORD
4891         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
4892         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
4893           (geniCodeBinary): new generic binary icode,
4894           (ast2iCode): added GETABIT, GETBYTE, GETWORD
4895         * src/port.h: updated comment for PORT.hasExtBitOp
4896         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
4897           (genGetByte): new, to get a single byte,
4898           (genGetWord): new, to get a word from a long,
4899           (gen51Code): added GETABIT, GETBYTE, GETWORD
4900         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
4901
4902 2005-09-23 Raphael Neider <rneider AT web.de>
4903
4904         * configure.in, configure: have device/lib/pic configured
4905         * device/lib/Makefile.in: added model-pic14
4906         * device/lib/clean.mk: added pic/ to clean rule
4907         * device/lib/pic: added rudimentary pic14 library providing support
4908           functions for multiplication/division/generic pointer access
4909         * src/SDCCopt.c (convilong): mark support functions as extern
4910           for pic14 port as well
4911         * src/pic/gen.c (genMult): added assertions,
4912           (genpic14Code): emit warning on unhandled iCodes
4913         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
4914         * src/pic/pcode.c (pCodeOpCopy),
4915         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
4916           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
4917           SFR_REGISTER}), made safe for future extensions
4918         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
4919           instructions even if preceeded by SKIP instructions (also remove
4920           them); removed unused code
4921         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
4922           prevents leaving parts of the structure uninitialized after copying
4923
4924 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
4925
4926         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
4927           ago by me
4928         * support/regression/tests/addsub.c: added test for the bug
4929
4930 2005-09-21 Raphael Neider <rneider AT web.de>
4931
4932         * device/include/pic16/pic18f1220.h,
4933           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
4934         * device/lib/pic16/Makefile.rules: added missing opening paren
4935         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
4936           are provided in genutils.c,
4937           (genUminusFloat,genUminus,genCmpEq): added asserts on different
4938           operand/result sizes,
4939           (genCmp): assert on NULL pointers first, then check deref'ed values
4940         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
4941           result size
4942
4943 2005-09-18 Raphael Neider <rneider AT web.de>
4944
4945         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
4946           as these are now unused,
4947           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
4948         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
4949           local, avoids uninitialized pointer dereference on r->name
4950         * src/pic16/ralloc.c (newReg): fixed indentation
4951
4952 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
4953
4954         * src/SDCCval.c (constVal): fixed bug 730366
4955         * support/Util/SDCCerr.c,
4956         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
4957
4958 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4959
4960         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
4961
4962 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
4963
4964         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
4965
4966 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4967
4968         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
4969           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4970         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
4971           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4972         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
4973         * packihx/packihx.c (hexDigit): made c unsigned char
4974         * as/mcs51/lklibr.c (fndsym),
4975         * link/z80/lkgb.c (gb),
4976         * link/z80/lklibr.c (fndsym),
4977         * link/z80/lkrloc.c (relr),
4978         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
4979         * src/SDCC.lex (checkCurrFile, process_pragma),
4980         * src/SDCCglue.c (spacesToUnderscores),
4981         * src/SDCCmain.c (setParseWithComma, processFile),
4982         * src/asm.c (tvsprintf, printCLine),
4983         * src/avr/gen.c (emitcode, aopPut),
4984         * src/ds390/gen.c (emitcode),
4985         * src/hc08/gen.c (emitcode, emitinline),
4986         * src/mcs51/gen.c (emitcode, genInline),
4987         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4988           tokenizeLineNode),
4989         * src/pic/ralloc.c (debugLog),
4990         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4991           tokenizeLineNode),
4992         * src/pic16/ralloc.c (debugLog),
4993         * src/z80/main.c (_process_pragma):
4994            made all ctype.h function calls safe
4995         * src/SDCCopt.c: include math.h for fabs
4996         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
4997           and used them throughout the code to make ctype.h function calls safe
4998         * src/ds390/main.c (asmLineNodeFromLineNode),
4999         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
5000         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
5001            unsigned char*
5002         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
5003           (newpCodeAsmDir): made ctype.h function calls safe
5004         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
5005           pic16_emitcode):  made lbp unsigned char*
5006         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
5007           (pic16_newpCodeAsmDir): made ctype.h function calls safe
5008         * src/xa51/gen.c (emitcode),
5009         * src/z80/gen.c (_emit2): made lbp unsigned char*
5010         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
5011            char*
5012
5013 2005-09-05 Raphael Neider <rneider AT web.de>
5014
5015         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
5016           access bank splitpoint
5017
5018 2005-09-05 Raphael Neider <rneider AT web.de>
5019
5020         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
5021
5022 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
5023
5024         * .version: changed to version 2.5.3
5025         * doc/sdccman.lyx: changed version to 2.5.3,
5026           documented --codeseg and --constseg and pragma codeseg and constseg,
5027           documented bit parameters (reentrant) and bit returning
5028         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
5029            currFunc->recvSize, but is this ok for all ports?
5030           (ast2iCode): result of ~ on unsigned char must be cast to int for
5031            bool to work
5032         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
5033           function pointers in bit space
5034         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
5035           (processFuncArgs): call port.reg_parm() with reentrancy info
5036         * src/port.h,
5037         * src/avr/main.c,
5038         * src/ds390/main.c,
5039         * src/hc08/main.c,
5040         * src/pic/main.c,
5041         * src/pic16/main.c,
5042         * src/xa51/main.c,
5043         * src/z80/main.c: port.reg_parm prototype extended with
5044           "bool reentrant" parameter
5045         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
5046           options.stackAuto for allocating bit register parameters
5047         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
5048           (genSend): set BitBankUsed if it is,
5049           (selectRegBank): factored out of genCall for use in genPcall,
5050           (genCall): removed redundant dtype assignmen, use selectRegBank,
5051           (genPcall): handle returning in Carry properly, save in F0 if needed,
5052           (genReceive): handle bit register parameters
5053         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
5054           (mcs51_assignRegisters): enable bit registers for all reentrant
5055            functions and don't set BitBankUsed unconditionally
5056         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
5057         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
5058         * support/regression/tests/funptrs.c: added tests for BOOL and for return
5059
5060 2005-08-27 Borut Razem <borut.razem AT siol.net>
5061
5062         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
5063         ppc-osx (Darwin) does not support -u option. It seems that it is
5064         supported only on Linux - GNU cp
5065
5066 2005-08-25 Borut Razem <borut.razem AT siol.net>
5067
5068         * sim/ucsim/gui.src/serio.src/Makefile.in,
5069           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
5070           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5071           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
5072           install and strip, since the strip at /usr/ccs/bin should be used
5073           on solaris
5074
5075 2005-08-24 Borut Razem <borut.razem AT siol.net>
5076
5077         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
5078
5079 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
5080
5081         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
5082         ffffffffu
5083
5084 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
5085
5086         * as/mcs51/aslink.h: completed lkrloc.c prototypes
5087         * as/mcs51/lkmain.c (link_main): fixed warning
5088         * device/include/stdbool.h: ds390 has no advanced bit support yet
5089         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
5090         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
5091         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
5092           and updated their macros
5093         * src/SDCCval.c (constVal): updated comment for renamed b_long
5094
5095 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
5096
5097         * as/mcs51/asdata.c: changed ctype['['] to BINOP
5098         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
5099           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
5100           (oprio): set priority for '['
5101         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
5102            and adb_24_bit
5103         * as/mcs51/asm.h: added defines R_BIT and S_BIT
5104         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
5105         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
5106         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
5107           added overlayable BIT_BANK area
5108         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
5109           (summary2): explain 'T' in legenda
5110         * as/mcs51/lkrloc.c: replaced old K&R style,
5111           (relr): added R_BIT processing,
5112           (errmsg): added "Bit-addressable relocation error",
5113           (adb_bit): added for converting from byte- to bit-addressable space,
5114           (adb_24_bit): added for converting from byte- to bit-addressable space
5115         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
5116            used in reentrant functions now even as return value
5117         * device/lib/_gptrput.c (_gptrput): removed obsolete code
5118         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
5119           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
5120         * src/SDCCglobl.h: added indicator BitBankUsed
5121         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
5122            the bit registers b0-b7
5123         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
5124           (geniCodeCast): fixed bug 1263853,
5125           (geniCodeLogicAndOr): put result in bool or char,
5126           (geniCodeReceive): added parameter func for accessing the return type,
5127           (geniCodeFunctionBody): pass func to geniCodeReceive
5128         * src/SDCCmain.c: added indicator BitBankUsed
5129         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
5130         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
5131           (checkSClass): don't put automatic bool/bit on stack,
5132           (checkFunction): removed check on function cannot return bit
5133         * src/SDCCsymt.h: added newBoolLink prototype
5134         * src/mcs51/gen.c (rb1regs): added bit registers,
5135           (movc): created for assigning to carry,
5136           (pushReg, popReg): created for pushing registers,
5137           (sameRegs): check both AOP_REG and AOP_CRY types,
5138           (aopOp): handle bit registers,
5139           (aopPut): optimization no self-assign,
5140           (saveRegisters): push reg->base (bits) only once for bit registers,
5141            and use pushReg,
5142           (unsaveRegisters): pop reg->base only once and use popReg,
5143           (assignResultValue): added parameter func and return in carry for bits,
5144           (genIpush): optimization no reload in A if not changed,
5145           (genSend): bit parameters in reentrant functions are passed in bit
5146            registers by first assigning to bits in B, then save registers and
5147            copy B to bits,
5148           (genCall): handle returning in Carry properly, save it in F0 if needed,
5149           (genPcall): updated assignResultValue call, this is not safe yet for bit
5150            returning function !!!
5151           (genFunction): don't generate equ's for bit registers and use pushReg,
5152           (genEndFunction): take care of bit returning functions and use popReg,
5153           (genRet): return bit in Carry,
5154           (genIfx): optimize bit registers and other directly addressable bits,
5155           (genReceive): updated assignResultValue call
5156         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5157           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5158            registers when using stack-auto
5159         * src/mcs51/ralloc.c (_G): added allBitregs,
5160           (regs8051): added the bit registers,
5161           (createStackSpil): use macro IS_BIT,
5162           (getRegBit): added to allocate a bit register, else spill,
5163           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5164           (updateRegUsage): factored out to ease stepping while debugging,
5165           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5166            also allocate bit registers,
5167           (fillGaps): handle bit registers,
5168           (findAllBitregs): added to create bit vector with all bit registers,
5169           (mcs51_allBitregs): returns this bit vector,
5170           (mcs51_assignRegisters): when using stack-auto use bit registers for
5171            passing parameters and creating local variables
5172         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5173
5174 2005-08-22 Borut Razem <borut.razem AT siol.net>
5175
5176         * device/lib/Makefile.in: replaced find option -or with -o
5177           to make it run on solaris
5178
5179 2005-08-22 Raphael Neider <rneider AT web.de>
5180
5181         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5182           fixes #1265442 (crash on Solaris)
5183
5184 2005-08-20 Borut Razem <borut.razem AT siol.net>
5185
5186         * configure, configure.in: added tests for libsocket and libnsl libraries,
5187           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5188           from support/regression/Makefile.in
5189         * support/regression/Makefile.in: added
5190         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5191         * sim/ucsim/libtool: regenerated on sparc-solaris
5192         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5193           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5194           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5195           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5196           sparc-solaris, which doesn't use GNU ld linker
5197         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5198         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5199
5200 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5201
5202         * src/mcs51/peeph.def: updated comments
5203
5204 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5205
5206         * device/lib/_gptrget.c,
5207         * device/lib/_gptrput.c: slightly shorter
5208         * doc/sdccman.lyx: incremented version
5209         * src/mcs51/peeph.def: moved peephole comments to the line of first
5210           change to better keep line correlation, reanimated 186.e
5211         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5212
5213 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5214
5215         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5216           David Saxton with quotes around file name.
5217
5218 2005-08-15 Borut Razem <borut.razem AT siol.net>
5219
5220         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5221           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5222           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5223           make tests run on x86_64 platform
5224
5225 2005-08-13 Raphael Neider <rneider AT web.de>
5226
5227         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5228           as it might be executed DURING a build (parallel make is wonderful)
5229
5230 2005-08-13 Raphael Neider <rneider AT web.de>
5231
5232         * device/lib/Makefile.in (port-specific-objects-pic16):
5233           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5234         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5235           dependency
5236         * device/lib/pic16/Makefile.rules: build subdirs before creating
5237           the library, removed builddir rule, create $(builddir) early in
5238           recurse rule, use empty recurse rule for leaf directories
5239         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5240           mkdir errors (race condition), removed duplicate suffix "hex"
5241           from clean rules
5242         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5243         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5244           prevents mkdir -p from aborting on Alpha
5245
5246 2005-08-12 Raphael Neider <rneider AT web.de>
5247
5248         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5249           db-statements in order to allow for arrays of pointers in code
5250           sections to be placed without interspersed 0-padding, fixes
5251           bug #1256215
5252         * (emitStatistics): fixed division by zero for pic18f1220
5253         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5254           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5255         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5256         * (pic16_pCodeConstString): keep track of already emitted string
5257           literals to prevent "duplicate definitions of symbol _str_NR"
5258         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5259           debug message
5260         * device/lib/Makefile.in: ignore failing PIC16 library builds
5261         * device/lib/pic16/Makefile: do not build if gputils are missing
5262         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5263
5264 2005-08-10 Raphael Neider <rneider AT web.de>
5265
5266         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5267           my last commit)
5268
5269 2005-08-10 Raphael Neider <rneider AT web.de>
5270
5271         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5272           Rokas' patch to add the new fixed point type "__fixed16x16"
5273         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5274           functions for __fixed16x16 arithmetics
5275         * device/lib/pic16: reimplemented the build system to support
5276           a separate build directory, better handling of libio (create
5277           the library in a separate subdir for each architecture) and
5278           easier configuration (centralized in Makefile.common)
5279
5280 2005-08-07 Raphael Neider <rneider AT web.de>
5281
5282         * src/pic16/gen.c (genrshTwo): fixed sign extension
5283         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5284         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5285           added T0CONbits
5286         * device/include/pic16/pic18f4220.h: NEW, header for
5287           pic18f4220 and pic18f4320
5288         * device/include/pic16/pic18fregs.h: added new devices,
5289           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5290         * device/include/pic16/signal.h: resolved name clashes
5291           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5292           to also allow testing for interrupt enable bits, added
5293           comments on how to use the macros
5294         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5295         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5296           register definitions for the devices
5297         * device/lib/pic16/pics.all: added new devices
5298         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5299           allocated memory
5300         * device/lib/pic16/libc/stdlib/memfree: do not count
5301           the block header as free memory
5302         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5303           simplified and added missing end-of-blocklist-marker
5304           (reported by Peter Onion, fixes #1252814)
5305         * (_mergeHeapBlock): fixed loop condition
5306         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5307           len==0, restructured code
5308         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5309           up a bit, reduced bitfield accesses, prevent endless loops
5310           in case of heap corruption
5311         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5312           "unreferenced arguments/must return a value" warnings
5313         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5314           replaced BAUDREG with SPBRG
5315         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5316           device/lib/pic16/debug/gstack/gstack.c: replaced
5317           _naked, _asm, _endasm with __naked, __asm, __endasm
5318
5319 2005-08-05 Raphael Neider <rneider AT web.de>
5320
5321         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5322           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5323
5324 2005-08-05 Borut Razem <borut.razem AT siol.net>
5325
5326         * device/lib/Makefile.in: added missing ';'
5327         * configure: removed ^M characters
5328
5329 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5330
5331         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5332           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5333           License
5334
5335 2005-08-04 Borut Razem <borut.razem AT siol.net>
5336
5337         * configure.in: pic16 libraries build 2nd try - enable running
5338           configure in device/lib/pic16
5339         * configure: regenerated from configure.in
5340         * device/lib/Makefile.in: create $(PORT)/bin directory
5341
5342 2005-08-03 Raphael Neider <rneider AT web.de>
5343
5344         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5345           to get/set values via pointers
5346         * (genUnpackBits,genPackBits): changed detection of
5347           ptr->bitfield vs. sym.bitfield, fixed access via generic
5348           pointers, removed dead (wrong) code for multibyte bitfields
5349         * (genNearPointerGet, genGenPointerGet): removed useless code,
5350           fixed bitfield detection, fixes #1250594
5351         * (genNearPointerSet): removed useless code
5352         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5353           and introduced macro pic16_emitpcode that conditionally emits
5354           the origin of the following pCode (useful for debugging SDCC)
5355         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5356         * (createDefmap): fixed handling of LFSR for --optimize-df
5357
5358 2005-08-02 Borut Razem <borut.razem AT siol.net>
5359
5360         * device/lib/Makefile.in: pic16 libraries build enabled since
5361           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5362
5363 2005-08-02 Raphael Neider <rneider AT web.de>
5364
5365         * src/pic16/gen.c (genPackBits): removed deprecated warning
5366         * (genGenPointerSet): fixed bitfield detection
5367
5368 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5369
5370         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5371
5372 2005-07-31 Raphael Neider <rneider AT web.de>
5373
5374         * device/lib/pic16/libdev/pic18f458.c,
5375           device/include/pic16/pic18f458.h: added missing T0CONbits
5376
5377 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5378
5379         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5380
5381 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5382
5383         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5384
5385 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5386
5387         * device/include/mcs51/at89c51ed2.h: added.
5388
5389 2005-07-23 Raphael Neider <rneider AT web.de>
5390
5391         * src/pic/gen.h: added emitpcode macro for debugging
5392         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5393           and replace by macro adding debug information on demand
5394         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5395         * (gencjne): tried to fix; replaced with correct (slower) code
5396         * (gen{Unp,P}ackBits): fixed single bit access
5397         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5398         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5399           previous instruction
5400         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5401           register has to be handled with care (forbidding movement
5402           of assignments/uses, removing assignments completely, ...)
5403         * (pCodeOptime2pCodes): make use of regIsSpecial
5404         * added lots of debugging output (commented out)
5405         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5406           from being reused as result UNLESS it is known to work
5407
5408 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5409
5410         * support/Util/dbuf.h: include <stddef.h> for size_t
5411         * .version: changed to version 2.5.2
5412
5413 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5414
5415         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5416
5417 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5418
5419         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5420           (genModOneByte): removed needless psha/pula
5421
5422 2005-07-22 Raphael Neider <rneider AT web.de>
5423
5424         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5425           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5426         * src/pic/gen.c (resolveIfx): do not "invent" labels
5427         * (genSkipc): changed to positive logic
5428         * (genSkipCond): removed as no longer needed
5429         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5430           backport from PIC16
5431         * (genLeftShift): check operands are in different registers
5432         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5433           INCF does not update CARRY...
5434         * src/pic/main.c: fixed _linkCmd
5435         * src/pic/pcode.c (unlinkpCode): added inactive code
5436         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5437           alive (do not assign result and operand overlapping registers)
5438
5439 2005-07-22 Raphael Neider <rneider AT web.de>
5440
5441         * src/pic/device.c (dump_sfr): replaced register declaration with
5442           call to emitSymbolToFile() to avoid duplicate symbols
5443         * (assignRelocatableRegisters): do not declare external symbols
5444         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5445           right (take size of type, not etype)
5446         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5447         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5448         * (packRegsForAccUse): disabled assignment of WREG as
5449           the result reg to prevent occurence of just fixed #1235003,
5450           fixes #1242954
5451         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5452           symbols (avoids duplicate symbols in .asm file)
5453         * (pic14emitRegularMap): use emitSymbolToFile()
5454         * src/pic/gen.c (aopOp): fixed spillLocation handling
5455         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5456         * (genDataPointerSet): removed unneccessary variables/output
5457
5458 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5459
5460         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5461         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5462
5463 2005-07-21 Raphael Neider <rneider AT web.de>
5464
5465         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5466           architecture cannot handle them efficiently, fixes bug #1235003
5467         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5468           check for empty sets before using them (fixes bug #1232190)
5469
5470 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5471
5472         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5473           (lnksect2): generate warnings for memory overlap
5474         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5475           constseg to set the name of these segments so you can instruct the linker
5476           to place them in banks
5477         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5478         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5479           added code_seg and const_seg to options
5480         * src/SDCCglue.c (emitMaps): use options.const_seg,
5481           (createInterruptVect): put interrupt vectors in segment HOME,
5482           (glue): put HOME before static segment and put the main glue in HOME,
5483           (glue): use options.code_seg
5484         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5485         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5486           these segments so you can instruct the linker to place them in banks
5487           (linkEdit): use code_loc for HOME segment which should be the first
5488           segment in code memory now
5489         * src/SDCCmem.c: fixed more stuff like bug 1238386
5490         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5491           (changePointer): don't change function pointers to code pointers for
5492           banked functions,
5493           (compareType): added exceptional check for banked function pointers
5494         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5495         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5496           after static in code memory
5497         * src/mcs51/gen.c: added aopLiteralLong prototype,
5498           (aopForSym): use getSize for functions,
5499           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5500           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5501           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5502           the segment,
5503           (genPcall): use call for literal function pointers and generate banked
5504           calls over the one trampoline so there's only one place for the user to
5505           modify according to his/hers hardware,
5506           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5507           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5508         * src/mcs51/main.c: added keyword banked,
5509           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5510         * support/Util/SDCCerr.c,
5511         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5512           needed for passing the bank and address to the trampoline
5513         * device/lib/mcs51/crtbank.asm: added for bankswitching
5514         * device/lib/mcs51/Makefile: added crtbank
5515
5516 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5517
5518         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5519           for fields at offset 0 of a struct or union as reported
5520           on 2005-07-07 in the developer mailing list.
5521
5522 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5523
5524         * src/SDCCmem.c: fixed bug 1238386
5525
5526 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5527
5528         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5529           (patch #1144962), added peephole 300, enabled 259.x
5530         * doc/sdccman.lyx: removed screenshot and provided link instead
5531
5532 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5533
5534         * doc/sdccman.lyx: added section about debugging with ddd
5535         * doc/figures/ddd_example.eps: screenshot of debugging session
5536
5537 2005-07-04 Raphael Neider <rneider AT web.de>
5538
5539         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5540           like CODE pointers, fixes #1115683
5541         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5542           call, fixes bugs #1232211, #1228110,
5543           fixed wrong casts to pCodeFlow from pCodeInstructions
5544
5545 2005-07-04 Raphael Neider <rneider AT web.de>
5546
5547         * src/pic/gen.c (popGet): changed assert to allow for
5548           bit operands
5549         * (popGetAddr): changed signature to provide
5550           an additional index, patched all call sites
5551         * (genCmpEq): handle literal-like operands correctly
5552         * (genAddrOf): added sanity checks on __code/__data pointers
5553         * (genAssign): added handling of symbols from __code section
5554         * (gencjne): do not generate code for comparisons whose result
5555           is neither stored nor used, fixes bug #1171114
5556         * (AccLsh, AccRsh): operate on operand instead of WREG
5557         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5558           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5559           by known count
5560         * rewrote complete shift-by-literal logic, commented unused
5561           functions out
5562         * (genConstPointerGet): get multiple bytes (if result size > 1),
5563           fixed handling of non-immediate addresses
5564         * (genPointerGet): handle CODE pointers like CONST pointers
5565         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5566         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5567           operand is to be treated as a literal or not
5568         * (mov2w,genPcall,genCmpEq),
5569           src/pic/genarith.c: use aop_isLitLike() to decide between
5570           literal/register contents
5571         * (addSign): added missing offset
5572         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5573           only emit comment in debug-mode,
5574           use {aop,op}_isLitLike throughout the file
5575         * src/pic/glue.c: fix initializers for pointers (work in progress)
5576         * src/pic/pcode.c (get_op): honor index on _const symbols
5577         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5578         * (dumppBlock): added pCode size estimation
5579         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5580           check for IS_SYMOP before OP_SYMBOL'ing
5581         * fixed indentation, compacted switch-statements
5582         * (allocReg): find free register and allocate it instead of
5583           allocating new registers all the time
5584         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5585           registers as its operands (necessary only for multibyte GETs)
5586
5587 2005-07-01 Raphael Neider <rneider AT web.de>
5588
5589         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5590           debugging .asm-output macros FENTRY + FEXIT
5591         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5592           way... I wonder...
5593         * (emitpComment): NEW, printf to pCode
5594         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5595           offset handling
5596         * (popGetAddr): NEW, variant of popGet to access an immediates
5597           high(er) bytes instead of the n'th byte of memory they reference,
5598           replaced popGet with popGetAddr where neccessary
5599         * (genDataPointerGet): reactivated and fixed implementation
5600         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5601           accesses
5602         * (genDataPointerSet): fixed multibyte assignments
5603         * (genpic14Code): fixed --i-code-in-asm handling
5604         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5605         * (genPlus): fixed index-out-of-bounds error
5606         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5607         * src/pic/ralloc.c: added debugging output macro FENTRY2
5608         * (spillThis): fixed indentation, enbraced for-body for clarity
5609         * (rematStr): commented out as now unused
5610         * (regTypeNum): commented out special spill case (overwrites
5611           arbitrary values)
5612         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5613
5614 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5615
5616         * doc/sdccman.lyx: documented sfr16/sfr32,
5617           added example for using storage class with function pointers
5618         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5619
5620 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5621
5622         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5623         * device/lib/_itoa.c,
5624         * device/lib/_ltoa.c: optimized codesize
5625         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5626           but don't know how to suppress the double warning.
5627         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5628         * support/Util/SDCCerr.c,
5629         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5630
5631 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5632
5633         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5634           fixed old K&R prototypes
5635         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5636         * device/lib/_gptrget.c,
5637         * device/lib/_gptrgetc.c,
5638         * device/lib/_gptrput.c: changed versions for new memory indicator values,
5639           also new versions for small generic pointers and banked generic pointers
5640         * src/port.h: added const_name
5641         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5642         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5643         * src/SDCCcse.c (findPrevIc): check all associative operators
5644         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5645         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5646         * src/SDCCmem.c: updated comments,
5647           set far-space to 0 for pdata, results in optimized code
5648         * src/SDCCmem.h: added macro CONST_NAME
5649         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5650           moving the info into the highest bits, see also gptrget/gptrput
5651         * src/src.dsp: added sdcc.ico to project files
5652         * src/avr/gen.c (genCast): fixed bug 0x%d
5653         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5654         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5655           relation between ptr_type and DCL_TYPE,
5656           (genCast): fixed bug 0x%d
5657         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5658           (CODE)" for const_name
5659         * src/hc08/gen.c (genCast): fixed bug 0x%d
5660         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5661           (hc08_port): added "CONST (CODE)" for const_name
5662         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5663           (aopForRemat, adjustArithmeticResult): disconnected direct relation
5664           between ptr_type and DCL_TYPE,
5665           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5666           operand* and took AOP() inside function so sfr-ness can be checked,
5667           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5668           new prototype,
5669           (genFunction, genEndFunction): optimized stack setup,
5670           (genMinus): optimized for literals with ending zeroes (in bytes),
5671           (genCast): fixed bug 0x%d
5672         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5673           (mcs51_port): added "CONST (CODE)" for const_name
5674         * src/mcs51/peeph.def: made rule 226 more generic
5675         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5676         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5677         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5678         * src/z80/main.c (z80_port): added NULL for const_name,
5679           (gbz80_port): added NULL for const_name
5680         * support/regression/tests/bug663539.c,
5681         * support/regression/tests/sfr16.c: new tests
5682
5683 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5684
5685         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5686
5687 2005-06-24 Raphael Neider <rneider AT web.de>
5688
5689         * device/lib/pic16/libdev/pic18f[68][567]20.c:
5690           corrected typos...
5691         * device/include/pic16/signal.h: added USBIF
5692           and SIG_USB
5693
5694 2005-06-24 Raphael Neider <rneider AT web.de>
5695
5696         * device/lib/pic16/libdev/pic18f2455.c,
5697           device/include/pic16/pic18f2455.h: NEW
5698         * device/include/pic16/pic18fregs.h,
5699           device/lib/pic16/pics.all,
5700           src/pic16/device.c: added 18f2455
5701         * device/lib/pic16/libdev/pic18f[68][567]20.c,
5702           device/include/pic16/{pic18f[68][567].h,usart.h}:
5703           replaced MULTIPLE_USARTS define with more relaible
5704           compatibility sfrs (for USART access)
5705
5706 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5707
5708         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5709           and the output asm file line is printed on two lines.
5710
5711 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5712
5713         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5714           BGT, BLE, BHI, and BLS instructions
5715         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5716           genCmpEq): removed
5717         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5718           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5719           fixes bug #1216342
5720         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5721
5722 2005-06-15 Raphael Neider <rneider AT web.de>
5723
5724         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5725         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5726         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5727           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5728           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5729
5730 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5731
5732         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5733           Marcel Telka in bug #1215704
5734
5735 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5736
5737         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5738           located in shared memory bank.
5739
5740 2005-05-31 Raphael Neider <rneider AT web.de>
5741
5742         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5743           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5744           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5745
5746 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5747
5748         * device/lib/_strncpy.c: fixed the fix
5749
5750 2005-05-26 Raphael Neider <rneider AT web.de>
5751
5752         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5753           initializers with \0, bug #1208187
5754         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5755           intializers with \0, bug #1208187
5756
5757 2005-05-26 Raphael Neider <rneider AT web.de>
5758
5759         * src/pic16/glue.c (pic16_printIvalChar): fixed string
5760           initializers with \0, bug #1208187
5761         * src/pic16/main.c (_process_pragma): added sanity checks
5762           for stack position and size, emit warnings when appropriate
5763
5764 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5765
5766         * device/lib/_strncpy.c: fixed not filling with \0
5767
5768 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5769
5770         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5771           createFunction),
5772         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5773           compound_statement),
5774         * src/SDCCsymt.h,
5775         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5776
5777 2005-05-24 Raphael Neider <rneider AT web.de>
5778
5779         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5780
5781 2005-05-24 Raphael Neider <rneider AT web.de>
5782
5783         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5784           TRISE definitions, closes bug #1162453
5785
5786 2005-05-22 Raphael Neider <rneider AT web.de>
5787
5788         * src/pic16/main.c (_process_pragma): check for missing
5789           arguments to pragmas code and udata
5790         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5791           consistency fixes to match other headers (thanks to Jim Paris)
5792         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5793
5794 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5795
5796         * src/SDCCicode.c (isOperandEqual): fixed missing ;
5797
5798 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5799
5800         * support/regression/tests/bug1198642.c: new test
5801         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5802         * src/SDCCcse.c (findPrevIc): added comment, please have a look
5803         * support/scripts/resource.h,
5804         * support/scripts/resource.rc,
5805         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5806         * support/scripts/sdcc.ico: added 32x32 icon
5807
5808 2005-05-18 Raphael Neider <rneider AT web.de>
5809
5810         * device/lib/pic16/libdev/pic18f*.c,
5811         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5812           keywords to "__sfr" and "__at (X)"
5813         * device/include/pic16/pic18fregs.h: added pic18f4520
5814         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5815           #1203088 (MPLAB compatibility)
5816
5817 2005-05-17 Raphael Neider <rneider AT web.de>
5818
5819         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5820         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5821         * device/lib/pic16/pics.all: added new devices
5822         * src/pic16/device.c: added support for pic18f4520
5823
5824 2005-05-16 Raphael Neider <rneider AT web.de>
5825         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5826         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5827         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5828           convenience function for bit access
5829
5830 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5831
5832         * device/lib/printf_large.c: fixed bug 1193299
5833         * support/regression/tests/bug1057979.c: added test %3.3s
5834
5835 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5836
5837         * device/include/mcs51/8051.h,
5838         * device/include/mcs51/8052.h: made parseable with lint
5839         * device/include/mcs51/lint.h: added include file for (sp)lint
5840         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
5841         * doc/cdbfileformat.lyx,
5842         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
5843
5844 2005-05-14 Raphael Neider <rneider AT web.de>
5845
5846         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
5847         * device/lib/pic16/libc/stdlib/itoa.c (new)
5848         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
5849         * device/lib/pic16/libio/Makefile: exclude subdir according to
5850           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
5851         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
5852         * src/pic16/gen.c (genFunction): prevent annoying warning
5853         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
5854           nameclashes on BeOS
5855         * support/cpp2/cppmain.c (cpp_output_string): new
5856         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
5857           fixes bug 1116802
5858
5859 2005-05-13 Borut Razem <borut.razem AT siol.net>
5860
5861         * src/SDCCmain.c (linkEdit): fixed bug 1195202
5862
5863 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5864
5865         * .version: changed to version 2.5.1; back to bleeding edge development
5866
5867 2005-05-11 Borut Razem <borut.razem AT siol.net>
5868
5869         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
5870           generate PDF version 1.3 documents
5871
5872 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5873
5874         * .version: changed to version 2.5.0
5875
5876 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5877
5878         * doc/sdccman.lyx: updated weblinks, index and smaller updates
5879
5880 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5881
5882         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
5883         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
5884         well as many smaller updates.
5885         * .version: changed to version 2.5.0-pre1
5886
5887 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5888
5889         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
5890
5891 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5892
5893         * support/regression/tests/bug1185672.c: added
5894         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
5895           bug 1185672
5896         * src/mcs51/gen.c (genCall): added comments, made it look safer
5897         * src/mcs51/gen.c (genEndFunction): simplified
5898
5899 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5900
5901         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
5902
5903 2005-04-14 Borut Razem <borut.razem AT siol.net>
5904
5905         * fixed bug 1045046 - SIGSEGV with really simple code?:
5906           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
5907           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
5908
5909 2005-04-14 Borut Razem <borut.razem AT siol.net>
5910
5911         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
5912           src/pic16/device.h: temporarily disabled experimental #inline pragma
5913           for 2.5.0 release
5914
5915 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
5916
5917         * device/include/z80/stdio.h,
5918         * device/include/z80/string.h: removed these highly incomplete files so
5919           SDCC can use the default ones in device/include/
5920
5921 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5922
5923         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
5924         gcc warning.
5925         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
5926         fix sdcpp warnings.
5927
5928 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5929
5930         * device/include/malloc.h: removed redundant __reentrant prototypes
5931         * device/lib/_mullong.c: added working xstack variant in asm (C version
5932           doesn't pass regression tests)
5933         * device/lib/bpx.c: used __data and made bpx char for mcs51
5934         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
5935           (createFunction): fixed bug with xstackPtr
5936         * src/SDCCcse.c: corrected comments
5937         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
5938           (killDeadCode, eBBlockFromiCode): removed unused code
5939         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
5940           corrected comments
5941         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
5942           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
5943           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
5944           (genModOneByte): fixed warning in MSVC
5945         * src/mcs51/main.c (): added comments
5946         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
5947
5948 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5949
5950         * src/SDCCmain.c (linkEdit): oops, changed one line too many
5951
5952 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
5953
5954         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
5955
5956 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
5957
5958         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
5959         characters arrays of larger size than the declared one.
5960
5961 2005-04-10 Borut Razem <borut.razem AT siol.net>
5962
5963         * src/pic/gen.c (genInline),
5964           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
5965           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
5966           (findNextInstruction), (findPrevInstruction),
5967           (findInstructionUsingLabel),
5968           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
5969         * src/pic/pcode.c (findLabel): added missing '\n'
5970         * src/src.dsp: added SDCCdwarf2.c to the project
5971
5972 2005-04-09 Borut Razem <borut.razem AT siol.net>
5973
5974         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
5975
5976 2005-04-08 Raphael Neider <rneider AT web.de>
5977
5978         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
5979           into the chain after a given one) and mergeDefmapSymbols (combine
5980           defmap entries for each symbol per pcode)
5981         * (createDefmap): have defmap entries merged in the end
5982         * (defmapReplaceSymRef): split defmap entries covering two accesses to
5983           a symbol before replacing one access type's symbol, merge symbols in
5984           the end (replacement symbol might already have an entry)
5985         * (assignValnums): keep reference to written WREG intact
5986
5987 2005-04-08 Raphael Neider <rneider AT web.de>
5988
5989         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
5990           Alpha)
5991
5992 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
5993
5994         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
5995         bytes
5996
5997 2005-04-07 Raphael Neider <rneider AT web.de>
5998
5999         * device/include/pic16/usart.h: added compatibility defines for
6000           devices with more than one USART
6001         * device/include/pic16/pic18f[68][567]20.h: activated above defines
6002
6003 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6004
6005         * device/lib/Makefile.in: updated for port specific include
6006
6007 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6008
6009         * support/regression/ports/mcs51/spec.mk: added mcs51 include
6010
6011 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6012
6013         * device/include/8051.h,
6014         * device/include/8052.h,
6015         * device/include/at89S8252.h,
6016         * device/include/at89c55.h,
6017         * device/include/at89x051.h,
6018         * device/include/at89x51.h,
6019         * device/include/at89x52.h,
6020         * device/include/mcs51reg.h,
6021         * device/include/reg51.h,
6022         * device/include/reg764.h,
6023         * device/include/regc515c.h,
6024         * device/include/sab80515.h: (re)moved these 12 files
6025         * device/include/mcs51/8051.h,
6026         * device/include/mcs51/8052.h,
6027         * device/include/mcs51/at89S8252.h,
6028         * device/include/mcs51/at89c55.h,
6029         * device/include/mcs51/at89x051.h,
6030         * device/include/mcs51/at89x51.h,
6031         * device/include/mcs51/at89x52.h,
6032         * device/include/mcs51/mcs51reg.h,
6033         * device/include/mcs51/reg51.h,
6034         * device/include/mcs51/reg764.h,
6035         * device/include/mcs51/regc515c.h,
6036         * device/include/mcs51/sab80515.h: and added them here
6037
6038 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6039
6040         * device/include/stdarg.h: changed SDCC specific keywords to double
6041           underlined form.
6042         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
6043           mcs51 and ds390.
6044         * device/include/hc08/mc68hc908gp32.h,
6045         * device/include/hc08/mc68hc908jb8.h,
6046         * device/include/hc08/mc68hc908jkjl.h,
6047         * device/include/hc08/mc68hc908qy.h: fixed comments
6048         * device/include/mcs51/README: updated
6049         * device/include/mcs51/c8051f120.h: added PINRSF
6050         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
6051         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
6052           amidst code. Also inline is not supported.
6053
6054 2005-04-06 Raphael Neider <rneider AT web.de>
6055
6056         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
6057         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
6058           callers stack/frame pointers
6059
6060 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6061
6062         * device/include/pic16/usart.h: added, missing in previous commit,
6063         * device/include/pic16/adc.h: fixed typo,
6064         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
6065         commit,
6066         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
6067         <p18fxxx.inc>
6068         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
6069         uninitialized because a bug appears with gplink
6070         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
6071         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
6072         complains for unrecognised option
6073
6074 2005-04-05 Raphael Neider <rneider AT web.de>
6075
6076         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
6077           structs as well (using memcpy)
6078         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
6079           on ISRs (GOTO has no label)
6080         * src/pic16/device.h: added OF_OPTIMIZE_DF
6081         * src/pic16/main.c: added compiler switch --optimize-df to enable the
6082           new data flow analysis/optimization
6083         * src/pic16/pcode.c: added (prototypes for and implementation of)
6084           dataflow analysis functions, fixed pCodeInstructions' inCond and
6085           outCond values, made RCALL a branch instruction
6086         * (pic16_unlinkpCode): keep C line if possible
6087         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
6088           C line moved if possible
6089         * (pic16_getRegFrompCodeOp): NEW, improved version of...
6090         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
6091           to use new pic16_getRegFrompCodeOp (works for more SFRs)
6092         * (pic16_BuildFlow): fixed skip instructions with label (did not start
6093           new flow)
6094         * (pic16_getJumptabpCode): NEW, needed in...
6095         * (LinkFlow): fixed handling of jumptables, calls and conditional
6096           branches
6097         * (pic16_InsertCommentAfter): NEW
6098         * (pic16_pCodeReplace): made verbose and flow preserving
6099         * (AnalyzeFlow): added call to data flow analysis
6100         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
6101         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
6102         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
6103
6104 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6105
6106         * src/SDCCast.c (decorateType): fixed bug #1105626
6107
6108 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
6109
6110         * device/include/asm/pic16/features.h,
6111         * pic18f*.h headers,
6112         * device/include/pic16/adc.h,
6113         * device/include/pic16/delay.h,
6114         * device/include/pic16/i2c.h,
6115         * device/include/pic16/malloc.h,
6116         * device/include/pic16/stdio.h,
6117         * device/include/pic16/stdlib.h,
6118         * device/include/pic16/string.h,
6119         * device/lib/pic16/libc/stdio/printf_tiny.c,
6120         * device/lib/pic16/libc/stdio/printf_small.c,
6121         * device/lib/pic16/libc/stdio/strmgpsim.c,
6122         * device/lib/pic16/libc/stdio/strmmssp.c,
6123         * device/lib/pic16/libc/stdio/strmusart.c,
6124         * device/lib/pic16/libc/stdio/vfprintf.c,
6125         * device/lib/pic16/libc/stdlib/ltoa.c,
6126         * device/lib/pic16/libc/stdlib/putchar.c,
6127         * device/lib/pic16/libc/stdlib/x_ftoa.c,
6128         * device/lib/pic16/libc/stdlib/memchrpgm.c,
6129         * device/lib/pic16/libc/stdlib/memchrram.c,
6130         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
6131         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
6132         * device/lib/pic16/libio/adc/adcbusy.c,
6133         * device/lib/pic16/libio/adc/adcread.c,
6134         * device/lib/pic16/libio/adc/adcsetch.c,
6135         * device/lib/pic16/libio/usart/ubaud.c,
6136         * device/lib/pic16/libio/usart/ubusy.c,
6137         * device/lib/pic16/libio/usart/udrdy.c,
6138         * device/lib/pic16/libio/usart/uopen.c,
6139         * device/lib/pic16/libio/usart/uputc.c,
6140         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
6141         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
6142         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
6143         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
6144         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
6145         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
6146         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
6147         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
6148         specific keywords to double underlined form,
6149         * device/lib/pic16/libc/Makefile.rules,
6150         * device/lib/pic16/libsdcc/Makefile.rules,
6151         * device/lib/pic16/libm/Makefile,
6152         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6153         to compile with C standard set in Makefile.common
6154         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6155         rand.c and crc.c in compilation process,
6156         * device/lib/pic16/libsdcc/int/divuint.c,
6157         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6158         `c' from signed to unsigned,
6159         * device/lib/pic16/startup/crt0.c,
6160         * device/lib/pic16/startup/crt0i.c,
6161         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6162         keywords to double underlined form, bug fixes in _do_cinit function
6163         which prevented the correct initialization of the .idata segment,
6164         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6165         core to enter a infinite loop
6166         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6167
6168 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6169
6170         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6171
6172 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6173
6174         * device/include/Makefile.in: add support for hc08 subdirectory
6175         * device/include/hc08/: new subdirectory
6176         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6177         Lucas Loizaga, thanks!
6178         * device/include/hc08/mc68hc908qy.h,
6179         * device/include/hc08/mc68hc908gp32.h,
6180         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6181         their own directory. Changed internal macro names to use the compiler
6182         reserved namespace. Changed SDCC specific keywords to double
6183         underlined form.
6184         * device/include/math.h,
6185         * device/include/malloc.h,
6186         * device/include/stdarg.h,
6187         * device/include/stdbool.h
6188         * device/include/string.h,
6189         * device/include/tinibios.h,
6190         * device/include/ds400rom.h,
6191         * device/include/8051.h,
6192         * device/include/8052.h,
6193         * device/include/80c51xa.h,
6194         * device/include/at89c55.h,
6195         * device/include/at89S8252.h,
6196         * device/include/at89x51.h,
6197         * device/include/at89x52.h,
6198         * device/include/ds80c390.h,
6199         * device/include/reg764.h,
6200         * device/include/regc515c.h,
6201         * device/include/sab80515.h,
6202         * device/include/mcs51/c8051f000.h,
6203         * device/include/mcs51/c8051f018.h,
6204         * device/include/mcs51/c8051f020.h,
6205         * device/include/mcs51/c8051f040.h,
6206         * device/include/mcs51/c8051f060.h,
6207         * device/include/mcs51/c8051f120.h,
6208         * device/include/mcs51/c8051f300.h,
6209         * device/include/mcs51/c8051f310.h,
6210         * device/include/mcs51/c8051f320.h,
6211         * device/include/mcs51/c8051f330.h,
6212         * device/include/mcs51/c8051f350.h,
6213         * device/include/z180.h: Changed SDCC specific keywords to double
6214         underlined form.
6215
6216 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6217
6218         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6219         18F4455,
6220         * (pic16_assignConfigWordValue): disable testing of configuration
6221         register value with config mask,
6222         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6223         function with port->fun_prefix,
6224         * (genFunction): when generating a naked interrupt function never
6225         create an absolute segment placed in interrupt vector address, place
6226         the actual interrupt function at IVA instead, when an interrupt
6227         function is generated with unspecified interrupt then do not create
6228         the absolute section,
6229         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6230         code for generating a call to generic pointer get/put function with
6231         a call to function pic16_callGenericPointer(),
6232         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6233         the call to the generic pointer get/put functions with prefixing the
6234         function name with port->fun_prefix,
6235         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6236         * src/pic16/main.c (_process_pragma): prefix function with
6237         port->fun_prefix,
6238         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6239         calling assembler, old 18Fxxxx macro is deprecated,
6240         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6241         PC_ASMDIR in while condition,
6242         * (findInstruction): add PC_ASMDIR in while condition,
6243         * (buildCallTree): prefix main with port->fun_prefix,
6244         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6245         identifier for variable with banked access in instructions BTFSS,
6246         BTFSC, BCF, BSF, BTG
6247         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6248         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6249         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6250         perform optimization when enviroment variable NO_REG_OPT is set,
6251         * (insideLRBlock): NEW, return 1 if register is inside an
6252         INF_LOCALREGS block,
6253         * (RemoveRegFromLRBlock): remove a register that is completely
6254         eliminated by register optimization, but it is still left in local
6255         register store/restore in/from stack block,
6256         * (Remove2pcodes): after removing register, check to see if it
6257         should be removed from local register store/restore in/from stack
6258         block,
6259         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6260         DUMMY_READ_VOLATILE,
6261
6262         * device/include/pic16/adc.h: minor prototype modifications and
6263         update,
6264         * device/include/pic16/malloc.h: added GPL notice various
6265         modifications,
6266         * device/include/pic16/stdint.h: NEW, standard header for ints
6267         * device/include/pic16/delay.h: NEW, header for delay functions,
6268         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6269         delay1mtcy,
6270         * device/include/pic16/signal.h: NEW, header providing helper macros
6271         for implementing signal handlers,
6272         * device/include/pic16/stdio.h: added prototypes for functions,
6273         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6274         prototypes for stdin and stdout, added macro PUTCHAR to
6275         automatically implement putchar function prototype,
6276         * device/include/pic16/usart.h: modified and updated USART library,
6277         * device/lib/pic16/libio/adc/,
6278         * device/lib/pic16/libio/i2c: some modifications to improve library
6279         performance,
6280         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6281         family of functions,
6282         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6283         family of functions and other sources,
6284         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6285         of the PIC18Fxx[28] devices,
6286         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6287         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6288         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6289         _do_cinit function, because the previous failed when local variables
6290         where not placed in the same memory bank,
6291         * device/lib/pic16/libsdcc/char/: various modifications to improve
6292         library performance,
6293         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6294         information on the new functions of the c library and more...
6295
6296 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6297
6298         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6299
6300 2005-03-26 Raphael Neider <rneider AT web.de>
6301
6302         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6303           if condition == CARRY)
6304         * (genCmp): adapted to new genSkipc semantics
6305         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6306           on rIfx (genCmp was broken)
6307
6308 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6309
6310         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6311         * src/z80/main.c (_keywords[]),
6312         * src/SDCCglobal.h (struct options),
6313         * src/SDCC.y,
6314         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6315         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6316         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6317         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6318         always available in leading double underscore form. The C99 support is
6319         mostly missing, but it's a start.
6320         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6321         reserved identifier "__data".
6322
6323 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6324
6325         * src/mcs51/peeph.def: fixed bug 1170013
6326
6327 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6328
6329         * device/include/mcs51reg.h: fixed bug 842007
6330
6331 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6332
6333         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6334         last time.
6335
6336 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6337
6338         * src/port.h (struct PORT),
6339         * src/avr/ralloc.c (avr_assignRegisters),
6340         * src/avr/main.c,
6341         * src/ds390/ralloc.c (ds390_assignRegisters),
6342         * src/ds390/main.c,
6343         * src/hc08/ralloc.c (hc08_assignRegisters),
6344         * src/hc08/main.c,
6345         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6346         * src/mcs51/main.c,
6347         * src/pic/ralloc.c (pic14_assignRegisters),
6348         * src/pic/main.c,
6349         * src/pic16/ralloc.c (pic16_assignRegisters),
6350         * src/pic16/main.c,
6351         * src/xa51/ralloc.c (xa51_assignRegisters),
6352         * src/xa51/main.c,
6353         * src/z80/ralloc.c (z80_assignRegisters),
6354         * src/z80/ralloc.h,
6355         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6356         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6357         * src/SDCCcse.h,
6358         * src/SDCCdflow.c (computeDataFlow),
6359         * src/SDCCdflow.h,
6360         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6361         * src/SDCCloop.h,
6362         * src/SDCCcflow.c (*),
6363         * src/SDCCcflow.h,
6364         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6365         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6366         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6367         immedDom() returning wrong block; probably fixes bug #1160833)
6368
6369 2005-03-20 Borut Razem <borut.razem AT siol.net>
6370
6371         * support/scripts/inc2h.pl: WIN32 port
6372
6373 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6374
6375         * device/lib/makefile.in: added abs.c and labs.c
6376
6377 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6378
6379         * device/include/stdint.h: added
6380         * device/lib/abs.c: added
6381         * device/lib/labs.c: added
6382         * device/include/stdlib.h: added abs() and labs() prototypes
6383         * device/lib/libsdcc.lib: added abs and labs
6384         * device/include/float.h,
6385         * device/lib/_fsmul.c,
6386         * device/lib/printf_fast.c,
6387         * device/lib/printf_tiny.c: updated comments
6388
6389 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6390
6391         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6392         bug #1164313
6393
6394 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6395
6396         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6397         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6398
6399 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6400
6401         * device/lib/printf_large.c: removed inline assembly for portability and
6402           readability. Use printf_fast if speed or size are more important.
6403         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6404         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6405
6406 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6407
6408         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6409         prevent compiler warning
6410
6411 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6412
6413         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6414         moved to level 0 and declared as static. Also they are explicit
6415         placed in access bank. This was necessery because some times they
6416         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6417         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6418         optimizations. Currently only compare to unsigned char is implemented,
6419         * src/pic16/gen.c: added fReturnIdx array,
6420         * (struct resolvedIfx) is moved to gen.h and made public,
6421         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6422         * (aopForSym): added an optimization to directly store in stack of
6423         the operand of a SEND iCode,
6424         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6425         but as registers instead (AOP_REG) using the fReturnIdx array,
6426         * (pic16_freeAsmop): remove the freed register from the
6427         _G.sregsAlloc field,
6428         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6429         a compare of 'WREG',
6430         * (pic16_popGetTempRegCond): changed function prototype, now
6431         function takes also a bitVector argument v which holds the current
6432         set of registers that are allocated for stack access by aopForSym,
6433         registers allocated in aopForSym for accessing stack symbols are not
6434         any more part of the functions usedRegs field,
6435         * (genCall): some times aopOp is called for a stack variable to be
6436         send, aopForSym might perform the push, if this is true make sure
6437         that genCall doesn't push the variable twice by testing _G.resDirect,
6438         * (genFunction): changed testing for unspecified interrupt number
6439         from 256 to INTNO_UNSPEC,
6440         * modified selection scheme of frame pointer generation. Previously
6441         if function did use local registers a frame pointer was generated,
6442         now a frame pointer is generated only if function has arguments
6443         (that need PLUSW2 register access), or has stack arguments, or the
6444         compiler is not instructed to omit the frame pointer,
6445         * (genEndFunction): before restoring local registers that were saved
6446         in the function preamble, also restore the registers that *might*
6447         have been allocated for stack access,
6448         * (genRet): removed some old comments,
6449         * (genCmp, the active (RN's) version): added a call to the
6450         pic16_genCmp_special function to perform the compare with a more
6451         robust and optimized way,
6452         * (genInline): a feature has been added in inline code generation,
6453         which allows a wildcard variable substitution when writing inline
6454         assembly. Code is incomplete and experimental therefore undocumented,
6455         * (genCast): changed order of aopOp for result and right to allow
6456         aopForSym to directly load the result if possible,
6457         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6458         perform an optimized compare on some selected special occasions,
6459         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6460         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6461         generate an IVT any more,
6462         * src/pic16/main.c (pic16_optionsTable): added command line option
6463         --optimize-cmp,
6464         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6465         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6466         macros,
6467         * src/pic16/NOTES: Raphael Neider added in list of active developers
6468         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6469         jumptable_end to prevent bug #,
6470         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6471         inCond and outCond fields,
6472         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6473         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6474         turn off register spilling,
6475         * (packRegsForOneUse): synced with other ports' versions although it
6476         is not used currently,
6477         * (pic16_packRegisters): added an optimization while reading
6478         structure bitfields, some registers may be saved (malloc code is
6479         decreased by 80 bytes)
6480
6481 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6482
6483         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6484         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6485         this can be optimized more?
6486
6487 2005-03-10 Raphael Neider <rneider AT web.de>
6488
6489         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6490           genNearPointerGet): (hopefully) fixed access to bitfields via
6491           pointers (p->bitN = x; and x = p->bitN; failed)
6492
6493 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6494
6495         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6496
6497 2005-03-09 Raphael Neider <rneider AT web.de>
6498
6499         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6500
6501 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6502
6503         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6504         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6505           (regTypeNum): set REG_BIT type if necessary
6506         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6507         * support/regression/tests/critical.c: check bug 1144613
6508
6509 2005-03-02 Raphael Neider <rneider AT web.de>
6510
6511         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6512
6513 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6514
6515         * src/avr/ralloc.c (serialRegAssign),
6516         * src/ds390/ralloc.c (serialRegAssign),
6517         * src/hc08/ralloc.c (serialRegAssign),
6518         * src/mcs51/ralloc.c (serialRegAssign),
6519         * src/pic/ralloc.c (serialRegAssign),
6520         * src/pic16/ralloc.c (serialRegAssign),
6521         * src/xa51/ralloc.c (serialRegAssign),
6522         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6523
6524 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6525
6526         * src/SDCCast.c (decorateType): fixed bug 1124787
6527
6528 2005-02-20 Hubert Sack <sack AT digiplan.de>
6529         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6530
6531         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6532         patch #1121755
6533
6534 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6535
6536         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6537         to keep the correct label reference count when adding/removing references
6538         to labels. A peephole file using this is appended to patch #1144962.
6539
6540 2005-02-14 Raphael Neider <rneider AT web.de>
6541
6542         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6543         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6544         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6545           retrievals of result operand's value on assignment
6546
6547 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6548
6549         * device/include/pic16/string.h: modified prototype for memccpy()
6550         to memccpy(void *, void *, char, size_t)
6551         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6552         check whether to omit frame pointer or not,
6553         * (genInline): convert all occurences of "\n" to LF in inline
6554         assembler blocks, this helps formatting the inline text,
6555         * (pic16_loadFSR0): modified prototype,
6556         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6557         removed some 8051 legacy code,
6558         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6559         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6560         before allocating temporary registers in functions,
6561
6562 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6563
6564         * support/regression/tests/bitvars.c: corrected the "fix"
6565
6566 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6567
6568         * support/regression/tests/bitvars.c,
6569         * support/regression/tests/bitwise.c,
6570         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6571
6572 2005-02-10 Raphael Neider <rneider AT web.de>
6573
6574         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6575           different size for Alpha
6576         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6577
6578 2005-02-09 Raphael Neider <rneider AT web.de>
6579
6580         * src/SDCC.lex(doPragma) : save and restore warning options as well
6581           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6582         * have #pragma less_pedantic set the errorlevel to WARNING
6583           (fixes #1117001)
6584         * (cloneOptimize) : fixed wrong malloc's size
6585         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6586           facilitate correct handling of #pragma (save|restore)
6587
6588 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6589
6590         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6591
6592 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6593
6594         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6595
6596 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6597
6598         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6599
6600 2005-02-02 Raphael Neider <rneider AT web.de>
6601
6602         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6603         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6604         * (pic16_storeForReturn): fixed to allow returning function pointers
6605         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6606         * device/include/pic16/{stddef.h,stdbool.h}: added
6607
6608 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6609
6610         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6611
6612 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6613
6614         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6615         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6616          appeared to be required
6617
6618 2005-01-31 Borut Razem <borut.razem AT siol.net>
6619
6620         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6621           include/mcs51 and include/z80 directories to the package
6622
6623 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6624
6625         * src/hc08/gen.c (genFunction): fixed bug #1112752
6626
6627 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6628
6629         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6630
6631 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6632
6633         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6634
6635 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6636
6637         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6638
6639 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6640
6641         * device/include/c8051fxxx.h: removed these 6 files
6642         * device/include/mcs51/c8051fxxx.h: added these 11 new files
6643
6644 2005-01-26 Raphael Neider <rneider AT web.de>
6645
6646         * src/pic16/gen.c (genAssign): fixed assignment from longs
6647           in codespace (were cut to three bytes)
6648         * (genDummyRead): implemented (except for CODESPACE...),
6649           fixed bug #1108575
6650         * src/pic16/glue.c (emitStatistics): beautified
6651         * device/lib/pic16/libm/Makefile: added include path
6652
6653 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6654
6655         * src/z80/gen.c (aopPut): fixed bug #1103902
6656
6657 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6658
6659         * device/lib/expf.c: fixed bug #1095792
6660
6661 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6662
6663         * device/lib/pic16/libm: added Math library sources
6664
6665 2005-01-24 Raphael Neider <rneider AT web.de>
6666
6667         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6668           to enable upcast to pCodeOpReg2 (there is no type tag to
6669           differenciate the two and pic16_popGet2p cast into PCOR2)
6670         * src/pic16/main.c (_process_pragma): fixed another malloc bug
6671           (sizeof(sectNames) changed to sizeof(sectName))
6672           Both patches fix segfaults under MinGW.
6673
6674 2005-01-23 Raphael Neider <rneider AT web.de>
6675
6676         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6677           Safe_[mc]?alloc()'ed variables
6678         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6679           of (byte sized) temporaries (assign them to WREG for now)
6680         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6681           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6682           this might fix SIGSEGVs on MinGW...
6683         * src/SDCCopt.c (killDeadCode): restored original behaviour
6684           (volatile operands might get thrown away though)
6685
6686 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6687
6688         * src/pic16/gen.c: fixed bug #1106975,
6689         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6690         pointer update, INTCON is saved, global interrupts are disabled and
6691         restored after updateing TOS.
6692         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6693         * added function attribute 'shadowregs' to take advantage of shadow
6694         registers,
6695         * added function attribute 'wparam' as an alternative to the wparam
6696         pragma,
6697         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6698         user declares a non-ISR function as 'shadowregs',
6699         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6700
6701 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6702
6703         * .version: bumped version number to 2.4.8
6704         * device/lib/pic16/pics.all: list of PIC18F devices supported by
6705         pic16 port,
6706         * device/lib/pic16/libio/i2c/: I2C module support library,
6707         * device/include/pic16/i2c.h: I2C support library header,
6708         * device/lib/pic16/libc/stdio/: standard IO support sources,
6709         * (printf_small.c): printf_small() source, supports float print,
6710         * (printf_tiny.c): printf_tiny() source, does not support floats,
6711         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6712         enable global optimizations for entire library source, other
6713         Makefiles in the source tree are also modified to reflect this,
6714         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6715         function,
6716         * doc/sdccman.lyx: updated to reflect new changes,
6717         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6718         sym->onStack if-case,
6719         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6720         sbit, idata, _idata, xdata, _xdata,
6721         * added pragma library, to link an external library, (see doc),
6722         * removed command line options, --pomit-config-words, --pomit-ivt,
6723         --pleave-reset-vector,
6724         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6725         when calling assembler to reflect memory model used, also define
6726         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6727         reflect stack model used,
6728         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6729         on stack return NULL,
6730
6731 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6732
6733         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6734           of the operands is volatile. Fixes #1020220
6735
6736 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6737
6738         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6739         * (OptimizeRegUsage): make sure that there is really no other flow where
6740           the first pCode is used
6741
6742 2005-01-22 Raphael Neider <rneider AT web.de>
6743
6744         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6745           to fix #1106967 (pCode->seq are not set up correctly)
6746
6747 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6748
6749         * src/SDCCglue.c (glue): make sure code area is declared before the
6750         static initialization area.
6751
6752 2005-01-21 Raphael Neider <rneider AT web.de>
6753
6754         * device/lib/Makefile.in: fixed test for pic16 install dir
6755         * device/lib/pic16/*/Makefile*: modified compile flags to enable
6756           optimizations
6757         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6758           added --optimize-goto compiler switch and pragma wparam documentation
6759         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6760         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6761           and PRODH closing bug #1071770 (peephole optimizer)
6762
6763 2005-01-19 Raphael Neider <rneider AT web.de>
6764
6765         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6766           cmdLine buffers (used when calling sdcpp...) are large enough
6767           (MAX_PATH=256 truncates arguments leading to system halts when
6768           used in MinGW...)
6769         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6770         * (genUminus): rewritten to for efficiency
6771         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6772           used uninitialized in some cases)
6773         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6774           copy the third byte from the int -- now assumes 0x80 (data memory)
6775         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6776           operands (genAddLit expects the iCode's operands to swapped as
6777           well), fixed leftover bytes (crashed for short left operands)
6778         * (pic16_genMinusDec): performance improvements, removed false
6779           PIC14 emitSKPNCs
6780         * (pic16_genMinus): fixed to cope with differently sized operands
6781         * src/pic16/glue.c (pic16_glue): added new banksel optimization
6782           for --obanksel > 1
6783         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6784         * src/pic16/graph.[ch]: implementation of directed graphs, used by
6785           new banksel optimization
6786         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6787           analysis for temporary registers (segfaults...)
6788         * src/pic16/peeph.def: added rule
6789
6790 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6791
6792         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6793         which converts a float number to its ASCII representation
6794         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6795         functions to convert the fractional and integer part of a float to ASCII,
6796         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6797         realloc.c): added _MALLOC_SPEC to explicit place variables in data
6798         ram
6799         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6800         _STATMEM macros,
6801         * device/include/pic16/adc.h: added GPL info,
6802         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6803         a pCodeOp as tested operand,
6804         * (genNearPointerGet): optimized bit testing, does not use
6805         intermediate register for bit value, test directly instead with
6806         BTFSS, BTFSC, works only for single bits,
6807         * (genpic16Code): dump the name of the iCode in the asm,
6808         * src/pic16/ralloc.c (decodeOp): removed static declaration and
6809         renamed to pic16_decodeOp,
6810         * (serialRegAssign): do not allocate a temporary register for iCode
6811         sequences that test a single bit for 1/0
6812
6813 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6814
6815         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6816         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6817         access stack and frame pointers. They are initially assigned to
6818         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6819         accessing SFRs. Updated all occurences of modification of stack or
6820         frame pointer in gen.c and pcode.c,
6821         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6822         assigning of a literal value to pointers,
6823         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6824         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6825         selected
6826
6827 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6828
6829         * doc/sdccman.lyx: update documentation about stack pragma, added
6830         some info for stack memory models
6831
6832 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6833
6834         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6835
6836 2005-01-08 Raphael Neider <rneider AT web.de>
6837
6838         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6839           udata sections to fix bug #1097823
6840
6841 2005-01-05 Raphael Neider <rneider AT web.de>
6842
6843         * src/pic16/gen.c (genGenericShift): added handling of differently
6844           sized left operand and result
6845
6846 2005-01-04 Raphael Neider <rneider AT web.de>
6847
6848         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
6849         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
6850           to hold the condition bit)
6851         * added new version of genCmp (old code available via #define)
6852         * added new version of genShiftLeft/genShiftRight in a generic
6853           way, now supports shifting by negative values
6854         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
6855           shiftCount (expected by genGenericShift)
6856         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
6857         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
6858           dump
6859         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
6860           is an invalid literal too...)
6861
6862 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
6863
6864         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
6865         from Raphael Neider,
6866         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
6867         for 8-bit literals. This fixes some literal operands which are sign
6868         extended to 16-bits ints when instruction needs only 8-bits.
6869
6870 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
6871
6872         * device/lib/logf.c: added mcs51 assembly version
6873         * device/lib/expf.c: added mcs51 assembly version
6874         * device/lib/_logexpf.c: new shared asm code for expf and logf
6875         * device/include/math.h: add defines for assembly math library
6876         * device/lib/Makefile.in: build new _logexpf.c
6877         * device/lib/libfloat.lib: use new _logexpf.c
6878
6879 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6880
6881         * src/pic/device.c
6882         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
6883           device types which have less than 0x7f registers.
6884
6885 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6886
6887         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
6888
6889 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6890
6891         * device/lib/printf_fast.c: only build on supported arch.
6892         * device/lib/printf_tiny.c: only build on supported arch.
6893         * device/lib/printf_fast_f.c: only build if asm float lib
6894         * device/lib/_fsget1arg.c: only build if asm float lib
6895         * device/lib/_fsget2args.c: only build if asm float lib
6896         * device/lib/_fsnormalize.c: only build if asm float lib
6897         * device/lib/_fsreturnval.c: only build if asm float lib
6898         * device/lib/_fsrshift.c: only build if asm float lib
6899         * device/lib/_fsswapargs.c: only build if asm float lib
6900         * device/include/stdio.h: don't provide print_fast,
6901           print_fast_f, print_tiny prototypes if --xstack used
6902
6903 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
6904
6905         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
6906         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
6907           to the SOURCES
6908
6909 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6910
6911         * device/lib/printf_fast_f.c: same as printf_fast, but
6912           with floating point enabled
6913         * device/lib/printf_fast.c: minor tweaks
6914         * device/include/stdio.h: add printf_fast_f
6915
6916 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6917
6918         * src/SDCCmain.c: make --float-reent default for mcs51
6919         * device/lib/_fsadd.c: added mcs51 assembly version
6920         * device/lib/_fssub.c: added mcs51 assembly version
6921         * device/lib/_fsmul.c: added mcs51 assembly version
6922         * device/lib/_fsdiv.c: added mcs51 assembly version
6923         * device/lib/_fseq.c: added mcs51 assembly version
6924         * device/lib/_fsneq.c: added mcs51 assembly version
6925         * device/lib/_fsgt.c: added mcs51 assembly version
6926         * device/lib/_fslt.c: added mcs51 assembly version
6927         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
6928         * device/lib/Makefile.in: add _fscmp to build
6929         * device/lib/libfloat.lib: add _fscmp to build
6930
6931 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6932
6933         * device/lib/_fs2slong.c: added mcs51 assembly version
6934         * device/lib/_fs2sint.c: added mcs51 assembly version
6935         * device/lib/_fs2schar.c: added mcs51 assembly version
6936         * device/lib/_fs2ulong.c: added mcs51 assembly version
6937         * device/lib/_fs2uint.c: added mcs51 assembly version
6938         * device/lib/_fs2uchar.c: added mcs51 assembly version
6939         * device/lib/_slong2fs.c: added mcs51 assembly version
6940         * device/lib/_sint2fs.c: added mcs51 assembly version
6941         * device/lib/_schar2fs.c: added mcs51 assembly version
6942         * device/lib/_ulong2fs.c: added mcs51 assembly version
6943         * device/lib/_uint2fs.c: added mcs51 assembly version
6944         * device/lib/_uchar2fs.c: added mcs51 assembly version
6945         * device/include/float.h: added #define to select asm vs c
6946
6947 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
6948
6949         * device/lib/printf_fast.c: improvements to float output
6950         * device/include/float.h: add defines for assembly float library
6951         * device/lib/_fsget1arg.c: receive 1 float arg
6952         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
6953         * device/lib/_fsnormalize.c: normalize a float
6954         * device/lib/_fsreturnval.c: return float, various helper routines
6955         * device/lib/_fsrshift.c: right shift a float's mantissa
6956         * device/lib/_fsswapargs.c: swap 2 floats
6957         * device/lib/Makefile.in: build these 6 new files for mcs51
6958         * device/lib/libfloat.lib: add these 6 files to the library
6959
6960 2004-12-26 Borut Razem <borut.razem AT siol.net>
6961
6962         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
6963           built by gcc 3.4.2
6964
6965 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
6966
6967         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
6968           and fully reentrant and register bank neutral.
6969         * device/lib/printf_fast.c: added float (not enabled by default),
6970           added compact/slower integer (also not enabled by default),
6971           improved size/speed of fast integer code, other minor changes
6972         * device/include/stdio.h, device/lib/Makefile.in,
6973           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
6974
6975 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
6976
6977         * src/pic16/pcode.c: declaring variables other than at the start of a
6978           block is not supported in C by VC6.
6979
6980 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
6981
6982         * applied a previous patch from Raphael Neider that wasn't included
6983         in the previous commits, which fixes infinite loops within jumptable
6984         improvements,
6985         * made some fixes that previous patches introduced
6986
6987 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
6988
6989         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
6990         that fixes an issue with AOP_PCODE asmop's offset,
6991         * (pic16_popCopyReg): update instance field too,
6992         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
6993         function of pic port,
6994         * (genCmp, genAnd, genAssign),
6995         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
6996
6997 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
6998
6999         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
7000         variables initial values to idata section,
7001         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
7002         variables in some functions. This utilizes parmBytes field of iCode
7003         structure to hold the offset of the variable in stack. (might be
7004         able to use the stack field too?)
7005         * applied patch from Raphael Neider # ### , # ###
7006         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
7007         variable initial values in idata section,
7008         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
7009         for static variables with initial value
7010         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
7011         applied fix in while loop from Raphael Neider.
7012
7013 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
7014
7015         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
7016         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
7017         * src/ds390/ralloc.c (serialRegAssign): spill bits
7018         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
7019         * support/Util/SDCCerr.c,
7020         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
7021         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
7022         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
7023
7024 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
7025
7026         * device/include/sdcc-lib.h: inserted LGPL, added includes
7027           asm/ds390/features.h and asm/mcs51/features.h
7028         * device/include/asm/default/features.h,
7029         * device/include/asm/gbz80/features.h,
7030         * device/include/asm/z80/features.h: added empty _AUTOMEM
7031           and _STATMEM
7032         * device/include/asm/ds390/features.h,
7033         * device/include/asm/mcs51/features.h: added files with defines for
7034           _AUTOMEM and _STATMEM indicating automatic and static storage class
7035         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
7036         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
7037         * src/SDCCicode.c (geniCodeCast),
7038         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
7039         * src/SDCCloop.c (loopInduction): removed unused variable lr
7040         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
7041           to convertToFcall to include char modulo (RFE 1065037), added check
7042           if left operand is unsigned and use abs of literal value
7043         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
7044           as it doesn't work after conversion from peephole.def to peephole.rul
7045         * src/mcs51/gen.c (toBoolean): added check for size,
7046           (genModOneByte): optimized code for signed char modulo a literal
7047           power of 2 (thanks to Hubert Sack),
7048           (genRRC): removed unnecessary "clr c",
7049           (genRLC): replaced "add a,acc" with cheaper "rlc a"
7050         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
7051           jump optimization,
7052           swapped rules 256.c and 256.d,
7053           extended 256.d by using new multiple checks (thanks Erik),
7054           added rules 256.e and 256.f,
7055           updated rule 261.a and 261.b to new generated code
7056         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
7057
7058 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7059
7060         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
7061           induction related bugs, including first part of bug #1074377
7062
7063 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
7064
7065         * applied patch from bug-report #1076292,
7066         * applied patches for genAnd and Goto-optimizations for Raphael
7067         Neider,
7068         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
7069         dump a less iCode information,
7070         * src/pic16/device.h (pic16_options_t): added field debgen,
7071         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
7072         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
7073         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
7074         puclic,
7075         * (various functions): added macros FENTRY and FENTRY2 to functions,
7076         to emit function prologue,
7077         * (various functions): fixed indentation,
7078         * (genNearPointerGet): fixed loading of FSR0,
7079         * (genPackBits): applied patch from Raphael Neider to fix updating
7080         of FSR0 and touching only the modified bits,
7081         * src/pic16/genarith.c (various functions): added macros FENTRY to
7082         emit function prologue in comments,
7083         * src/pic16/pcode.h: added functions debugf2, debugf3,
7084         * src/pic16/ralloc.c: partial fix for packForPush caused
7085         segmentation fault,
7086
7087 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7088
7089         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
7090           <stsp AT users.sourceforge.net> with reversed byte order
7091         * support/regression/tests/rotate.c: added (ds390 skips some tests)
7092
7093 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7094
7095         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
7096           bug #1074377
7097         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
7098         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
7099
7100 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7101
7102         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
7103
7104 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7105
7106         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
7107           conditions,
7108           (setFromConditionArgs): friendly operand parser for peephole rules,
7109           (operandBaseName, operandsNotRelated): new peephole condition
7110           "operandsNotRelated" -- similar to "operandsNotSame", but takes
7111           architecture specific register naming into account, handles n-way
7112           comparisons, and supports quoted literals
7113         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
7114
7115 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7116
7117         * src/mcs51/peeph.def: fixed bug #1076940
7118
7119 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7120
7121         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
7122
7123 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7124
7125         Adding support for replacing ljmps with sjmps in jumptables
7126         generated for switch statements. For now you need to set the
7127         environment variable SDCC_SJMP_JUMPTABLE to enable this.
7128         Now 4 algorithms for mcs51 jumptable generation are used:
7129         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
7130         addresses loaded pc-relative for up to 112 cases and stack-pushing
7131         target addresses loaded with offset from dptr for up to 256 cases.
7132
7133         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
7134         * src/mcs51/main.c: adapted constants for switch table generation
7135         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
7136
7137 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
7138
7139         * device/lib/printf_large.c (_print_format): fixed bug 1073386
7140         * support/regression/tests/bug1057979.c: added test for bug 1073386
7141
7142 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7143
7144         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
7145         compilers
7146
7147 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7148
7149         * src/pic16/device.h,
7150         * src/pic16/genarith.c,
7151         * src/pic16/glue.c,
7152         * src/pic16/main.c,
7153         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7154
7155 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7156
7157         Large cummulative patch for pic16 port.
7158         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7159         to call when a stack overflow occurs,
7160         * (malloc.h): added CVS Id tag,
7161         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7162         variable,
7163         * added libc directory. The current version of LibC contains string
7164         functions, ctype functions and macros and some functions of the
7165         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7166         be extensively tested in the future. Standard disclaimer here.
7167         Library is not automatically build yet. But one can build it by
7168         invoking 'make' inside the libc directory.
7169         * added ADC library under libio. Preliminary version yet.
7170
7171         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7172         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7173         aopForRemat() now and not by pic16_aopOp(),
7174         * (pic16_popGetTempReg): removed warning messgae when allocating
7175         temporary registers, its a buggy feature and will be removed,
7176         * (pic16_popGet): set register instance field in AOP_CRY,
7177         * (pic16_outBitC): fixed for results in size greater than 1,
7178         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7179         * (pic16_storeForReturn): optimized return of 0,
7180         * (genCmp): experimental code for new genCmp which uses PIC18's
7181         special compare&skip instructions. Initial tests fail some times
7182         with variables grater than 1 byte in size, so new code is disabled,
7183         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7184         a single bit,
7185         * (genCast): began a fix to optimize the casting of a bit to another
7186         bit, now assigning a bitfield to another bitfield will fail, sorry,
7187         * src/pic16/main.c: disabled the use of lr-support feature,
7188         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7189         * added some function prototypes, added function _debugf prototype,
7190         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7191         bits with offset (case PO_GPR_BIT),
7192         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7193         command line,
7194         * (isBankInstruction): modified to return 0 for no banking instruction,
7195         and 1 for banking instruction,
7196         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7197         caused stop processing pCodes after a inline assembly block,
7198         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7199         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7200         registers when it shouldn't,
7201         * src/pic16/ralloc.c (allocReg): add preliminary support for
7202         supporting a limited set of temporary registers,
7203
7204 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7205
7206         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7207           genDataPointerSet): ensure assignments always copy in MSB to LSB
7208           order,
7209           (loadRegFromAop): recognize CLRH optimization,
7210           (genFunction): optimize RECEIVE iCodes in reentrant functions
7211
7212 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7213
7214         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7215           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7216           selected.
7217         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7218         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7219           contiguous with data
7220
7221 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7222
7223         * device/lib/_gptrget.c (_gptrget),
7224         * device/lib/_gptrgetc.c (_gptrgetc),
7225         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7226           instead of sjmp to ret
7227         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7228           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7229
7230 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7231
7232         * .version: bumped version to 2.4.7
7233         * device/lib/_gptrget.c (_gptrget): is now _naked
7234         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7235         * device/lib/_gptrput.c (_gptrput): is now _naked
7236         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7237           (createFunction): fixed xstack
7238         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7239         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7240           or bit either,
7241           (geniCodeCritical): store original interrupt state in an iTemp bit
7242           var unless stack-auto
7243         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7244         * src/SDCCmain.c (setIncludePath): added include/target to search path
7245         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7246         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7247           prototype,
7248           (processFuncArgs): put bit vars in bit area
7249         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7250           unsaveRBank): fixed xstack,
7251           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7252           (genFunction, genEndFunction): fixed xstack,
7253           (genAssign): optimization don't walk backwards through mem
7254         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7255         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7256         * support/regression/Makefile: also make library (for stack-auto) when
7257           making "all" and added "test-mcs51-xstack-auto"
7258         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7259         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7260         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7261         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7262         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7263           make-library by MAKE_LIBRARY
7264         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7265           regression tests for xstack
7266         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7267         * support/regression/tests/critical.c: test for critical on mcs51
7268
7269 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7270
7271         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7272           built version of sdcc instead of installed version
7273
7274 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7275
7276         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7277         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7278           vprintf.c now
7279         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7280         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7281           WARNING: remove device/lib/build/z80/printf.o by hand when
7282           updating from previous build!
7283         * device/lib/z80/printf.c: updated comment
7284         * support/regression/tests/bug1057979.c: test all ports now
7285         * support/regression/tests/bug1065458.c: file added
7286
7287 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7288
7289         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7290           *_start and *_end symbols for static functions
7291
7292 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7293
7294         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7295           and search crt0.o in all library paths,
7296           (setIncludePath): proper handling of --nostdinc,
7297           (setLibPath): proper handling of --nostdlib
7298         * support/regression/Makefile,
7299         * support/regression/ports/ds390/spec.mk,
7300         * support/regression/ports/gbz80/spec.mk,
7301         * support/regression/ports/hc08/spec.mk,
7302         * support/regression/ports/mcs51/spec.mk,
7303         * support/regression/ports/mcs51-large/spec.mk,
7304         * support/regression/ports/mcs51-stack-auto/spec.mk,
7305         * support/regression/ports/z80/spec.mk: use include and lib files from
7306           built version of sdcc instead of installed version
7307         * doc/sdccman.lyx: fixed typo in --nostdinc
7308
7309 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7310
7311         * src/pic/pcode.c,
7312         * src/pic/device.c,
7313         * src/pic/ralloc.c,
7314         * src/pic/gen.c : added support to generate code for struct bit fields.
7315
7316 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7317
7318         * as/xa51/xa_version.h,
7319         * device/include/errno.h,
7320         * device/include/regc515c.h,
7321         * device/lib/_itoa.c,
7322         * device/lib/_ltoa.c,
7323         * device/lib/ser_ir_cts_rts.c,
7324         * sim/ucsim/xa.src/glob.cc,
7325         * sim/ucsim/xa.src/inst_gen.cc,
7326         * sim/ucsim/xa.src/xa_bit.cc,
7327         * sim/ucsim/xa.src/xa_sfr.cc,
7328         * sim/ucsim/z80.src/inst_dd.cc,
7329         * sim/ucsim/z80.src/inst_fdcb.cc,
7330         * support/scripts/keil2sdcc.pl,
7331         * src/pic16/pic16.dsp,
7332         * src/pic16/pic16a.dsp: corrected cvs line endings
7333         * device/lib/printf_large.c: fixed bug 1057979
7334         * src/pic16/gen.c: fixed non-C standard code
7335         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7336         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7337         * support/regression/ports/mcs51/support.c: reload T1 asap
7338         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7339           pdata use and clear idata startup behaviour
7340         * support/regression/tests/bug1057979.c: added
7341
7342 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7343
7344         * device/examples/ds390/ow390/ad26.h,
7345         * device/examples/ds390/ow390/cnt1d.h,
7346         * device/examples/ds390/ow390/crcutil.c,
7347         * device/examples/ds390/ow390/ownet.h,
7348         * device/examples/ds390/ow390/owsesu.c,
7349         * device/examples/ds390/ow390/swt12.h,
7350         * device/examples/ds390/ow390/swtoper.c,
7351         * device/examples/ds390/ow390/temp10.h,
7352         * device/examples/ds390/ow390/thermodl.c,
7353         * device/examples/ds390/tinitalk/tinitalk.dsp,
7354         * device/examples/ds390/tinitalk/tinitalk.dsw,
7355         * device/examples/mcs51/clock/hw.h,
7356         * device/examples/mcs51/simple2/go.bat,
7357         * device/examples/serialcomm/windows/serial.h,
7358         * device/examples/xa51/dummy.c,
7359         * device/examples/xa51/hello.c,
7360         * device/include/80c51xa.h,
7361         * device/include/at89x051.h: corrected cvs line endings
7362
7363 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7364
7365         * src/pic16/main.c (options): added command line --gstack, to trace
7366         stack over/under flows,
7367         * added pragma 'wparam' to allow passing first byte of function
7368         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7369         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7370         call to __gstack_test function and sets up the symbol as extern,
7371         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7372         * popaop): added call to pic16_testStackOverflow,
7373         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7374         wparamList list,
7375         * (genCall, genPcall): now all parameters are passed via stack
7376         except in functions that are pass to wparam pragma in which WREG is
7377         used too,
7378         * (genPcall): REENTRANT flag is checked to see if variable prototype
7379         contains reentrant keyword, don't call a non-reentrant function, via
7380         a reentrant function pointer or vice versa, functions are never
7381         passed via WREG,
7382         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7383         D.Winkler,
7384         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7385         SIGSEGV when accessing a NULL register stucture,
7386         * (pic16_printGPointerType): modified to handle UPPER modifier for
7387         function initializers, changed prototype of function to simpler one,
7388         * (pic16_printIvalFuncPtr): check to see if function is already
7389         added in externs list,
7390         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7391         optimized a move from W to SFR with a move to the same register
7392         later after a CALL,
7393         * device/lib/pic16/debug: NEW directory, contains debug features
7394         which are enabled when linking with libdebug.lib, currently command
7395         line option --gstack enables stack pointer tracing for over/under
7396         flow, corresponding sources are in debug/gstack
7397
7398 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7399
7400         * doc/sdccman.lyx: updated SDCC version,
7401         * (PIC16 port): update list of command line options,
7402         * src/pic16/device.h (structure pic16_options_t): added field gstack
7403         to enable stack overflow tracing on push/pops,
7404         * src/pic16/device.c (statistics structure): added statistics
7405         structure,
7406         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7407         pic16_dump_int_registers): increase statistics counters for each
7408         * variable which is encountered
7409         * (pic16_dump_usection): emit each .udata variable to its own udata
7410         section,
7411         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7412         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7413         parameters via stack, otherwise use old scheme,
7414         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7415         assembler output file,
7416         * src/pic16/main.c: added command line options --gstack to enable
7417         push/pop tracing for stack overflow,
7418         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7419         instructions): added size of each instruction,
7420         * (pic16_countInstruction): estimate size of instructions in
7421         the_pFile list, inline assembly blocks are not counted,
7422         * (pic16_FixRegisterBanking): trace previous register usage, when
7423         banksel optimizations is greater than 0, don't emit a redudant
7424         banksel directive,
7425
7426 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7427
7428         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7429         * src/pic16/ralloc.c : applied same fix for pic16.
7430         * src/pic/gen.c : tidied it up a little.
7431
7432 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7433
7434         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7435         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7436
7437 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7438
7439         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7440
7441 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7442
7443         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7444         non-reentrant function __modsint in the interrupt function (thus
7445         corrupting math operations during serial I/O)
7446         * device/lib/ser_ir.c: as above, changed buffersize
7447         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7448         256.c,d for zeroing
7449         * doc/Makefile: added option -t for rsync
7450
7451 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7452
7453         * src/SDCCast.h (struct ast),
7454         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7455
7456 2004-10-20 Borut Razem <borut.razem AT siol.net>
7457
7458         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7459         package
7460
7461 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7462
7463         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7464         makefile targets,
7465         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7466         support functions to replace long sequences of MOVFF's from access
7467         bank registers to stack and vice versa,
7468         * src/pic16/device.h: added new field opt_flags, where optimization
7469         flags can be set to enable certain features,
7470         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7471         * pBlock, (genFunction, genEndFunction): surroung loop for
7472         saving/loading used registers in stack with PC_INFO pCodes,
7473         INF_LREGS. Code in between can then be optimized by pCode optimizer
7474         to support function calls,
7475         * (genDataPointerSet): fixed bug which loaded float fields in
7476         structures with corrupt data,
7477         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7478         in a standard way debug info on stderr. Feature used for developing
7479         and debugging only,
7480         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7481         obsolete chunks of code,
7482         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7483         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7484         * pic16/src/pcode.c (pic16_newpCodeInfo,
7485         * (pic16_newpCodeOpLocalRegs),
7486         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7487         feature,
7488         * (pic16_pCodeConstString): printing of the initial value of a
7489         symbol as a comment is inhibited since parsing was already done by
7490         copyStr and output is corrupt,
7491         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7492
7493 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7494
7495         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7496
7497 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7498
7499         * as/mcs51/lkarea.c: removed old K&R style,
7500           (lnksect): changed check on boundary error,
7501           (lnksect2): changed check on boundary error,
7502           (lnksect2): extend XSTK to end of page if size = 1
7503         * as/mcs51/lkmain.c: removed old K&R style,
7504           (Areas51): create l_IRAM symbol
7505         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7506         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7507           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7508         * device/lib/_mullong.c: added version to be compiled with xstack
7509         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7510         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7511         * device/lib/mcs51/crtxstack.asm: fixed comment
7512         * src/SDCCglue.c: maxInterrupts defaults to 0,
7513           (emitMaps): added pdata,
7514           (createInterruptVect): (re)moved default,
7515           (glue): added pdata,
7516           (glue): moved __start__xstack to XSTK with default size 1
7517         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7518           and options.float_rent when options.stackAuto is set,
7519           (linkEdit): only write XDATA_NAME if provided on command line
7520         * src/SDCCmem.h,
7521         * src/SDCCmem.c: added pdata
7522         * src/port.h: added pdata_name to PORT
7523         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7524           (saveRegisters, unsaveRegisters): removed usage of B,
7525           (genMinus): fixed accumulator clash,
7526           (genJumpTab): added comment, this needs another look
7527         * src/mcs51/gen.c: added check for "B in use" paranoia,
7528           added pushB() and popB()
7529         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7530           chance
7531         * src/avr/main.c,
7532         * src/ds390/main.c,
7533         * src/hc08/main.c,
7534         * src/mcs51/main.c,
7535         * src/pic/main.c,
7536         * src/pic16/main.c,
7537         * src/xa51/main.c,
7538         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7539           added PSEG (PAG,XDATA) or NULL to port specifier
7540         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7541         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7542           (_mcs51_genInitStartup): removed __start__xstack equ,
7543           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7544         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7545         * src/z80/gen.c (_rleAppend): fixed warnings
7546         * support/regression/tests/zeropad.c: added pdata test
7547         * .version: bumped to 2.4.6
7548
7549 2004-10-17 Borut Razem <borut.razem AT siol.net>
7550
7551         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7552         as a part of nightly build
7553
7554 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7555
7556         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7557         WREG holds the first byte function parameters,
7558         * (aopForSym): take special case for symbols which are in FARSPACE
7559         but in CODESPACE too,
7560         * (assignResultValue): modified to take into account _G.useWreg,
7561         * (genCall): don't use wreg for parameter passing when function is
7562         declared as reentrant, too, added optimization INCF to stack
7563         pointer when stack parameter count is 1,
7564         * (genFunction, genEndFunction): refurnished and fixed to not using
7565         wreg for passing parameters when function has varargs or is
7566         reentrant, fixed bug with symbol name compare for generating
7567         functions in absolute address,
7568         * (pic16_storeForReturn): refurnished,
7569         * (genCmp): began writing a new version of the function, not ready
7570         yet, therefore it is disabled,
7571         * (genAssign): do not read code memory when assigning a function to
7572         a pointer function,
7573         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7574         array of characters, not pointer,
7575         * (pic16initialComments): in debug mode emit an .ident directive for
7576         the assembler,
7577         * (_process_pragma): emit a new warning type (internal to pic16)
7578         when setting stack to default length, emit a similar warning when
7579         placing a function at absolute address and address is not word aligned
7580         * (_pic16_parseOptions): added 'return TRUE' statement,
7581         * (_pic16_linkEdit): if compiling a source, then add the source's
7582         file object, first in the list of objects to link,
7583
7584 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7585
7586         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7587         * src/pic/main.c : removed VC warning.
7588         * src/pic/gen.c : changed comment.
7589
7590 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7591
7592         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7593         reference to a deprecated symbol _GPTRREG was causing failure to
7594         link. Thanks G. M. Gallant for the info.
7595
7596 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7597
7598         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7599         comments for Bugs item #954788.
7600
7601 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7602
7603         * src/pic16/device.c (pic16_dump_gsection,
7604         * pic16_groupRegistersInSection): handle symbols declared to be in
7605         access bank differently,
7606         * src/pic16/gen.c (struct _G): added field resDirect,
7607         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7608         send values read from stack directly to result and don't allocate
7609         temporary values,
7610         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7611         same registers,
7612         * (pic16_sameRegsOfs): NEW,
7613         * (freeAsmop): if _G.resDirect is set then do not mark registers as
7614         free because they were not allocated from temporary pool,
7615         * pic16_popRegFromString): workaround to fix a problem with
7616         allocating variables twice or never,
7617         * (genGenPointerGet): using PRODL instead of FSR0H,
7618         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7619         instead of FSR0H,
7620         * (genAssign): take advantage of the _G.resDirect flag,
7621         * (genCast): around line 11844, use mov2f instead of directly
7622         MOVFF'ing between operands to account for literal values,
7623         * src/pic16/genutils.c: some new debug functions for gpsim have been
7624         added,
7625         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7626         float with integer part only,
7627         * src/pic16/main.c (_process_pragma): handle pragma udata access to
7628         place variables in access bank
7629         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7630         updated sources to reflect recent changes in gen.c
7631
7632 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7633
7634         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7635         sources that searched for headers in installation path, now the
7636         device/include/pic16 is used,
7637         * src/pic16/glue.c (pic16glue),
7638         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7639         .line directives if not in debug mode, this suppresses assembler's
7640         warnings for ignored directives
7641
7642 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7643
7644         * src/port.h: made reset_regparms prototype void parameter explicit.
7645         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7646         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7647         * doc/sdccman.lyx: documented warning disabling and how to use
7648           printf_large to make it print floats.
7649         * device/include/stdbool.h: NEW
7650         * device/lib/_atof.c,
7651         * device/lib/_divuint.c,
7652         * device/lib/_divulong.c,
7653         * device/lib/expf.c,
7654         * device/lib/printf_large.c,
7655         * device/lib/sincosf.c,
7656         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7657         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7658           a completely reentrant lib.
7659
7660 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7661
7662         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7663         * device/include/pic16/stdio.h: fixed bug with colon
7664
7665 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7666
7667         * device/include/pic16/stdio.h,
7668         * device/include/pic16/stdlib.h,
7669         * device/include/pic16/math.h: NEW
7670         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7671         declared as _naked to reduce overhead
7672         * device/lib/Makefile.in (target port-specific-objects-pic16):
7673         changed * to *.* so to ignore the CVS directory,
7674         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7675         stacked variables back in stack,
7676         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7677         corruption
7678
7679 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7680
7681         * .version: bumped version number to 2.4.5
7682         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7683         * support/Util/SDCCerr.c (messages structure): added entry for
7684         W_POSSBUG2
7685
7686         Large cumulative patch for pic16 port and libraries.
7687         * device/include/pic16/sdcc-lib.h,
7688         * device/include/pic16/stdarg.h,
7689         * device/include/asm/pic16/features.h,
7690         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7691         * device/include/pic16/float.h: changes reentrant keyword with
7692         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7693         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7694         updated target build-libraries to include objects from gptr,
7695         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7696         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7697         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7698         all function headings,
7699         * src/SDCCmain.c: added global parameter userIncDirsSet,
7700         * (parseCmdLine): when option -I is encountered add directory to
7701         userIncDirsSet too,
7702         * src/version.awk: added space between control and long,
7703         * src/pic16/NOTES: added some notes for the port,
7704         * src/pic16/gen.c: added prototype for mov2fp function,
7705         * (fReturnpic16[]): properly named return value registers,
7706         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7707         * (aopForSym): added code to handle symbols with onStack flag set,
7708         symbols onStack are allocated PTRSIZE bytes,
7709         * (aopFreeAsmop): handles special case where asmops are stack objects,
7710         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7711         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7712         added argument lock to trace flaws in allocating temporary registers
7713         when developing port,
7714         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7715         * (pic16_popRegFromString): reenabled allocating a direct register
7716         from string,
7717         * (assignResultValue): various beautifications,
7718         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7719         referenced function argument,
7720         * (genIpush): reenabled to allow stacked arguments, handles only
7721         ic->parmPush iCodes,
7722         * (genCall, genPcall): major changes to allow for variable argument
7723         functions, fixed a bug with falsely restoring stack pointer after
7724         returning from call,
7725         * (genFunction): pending code for critical function,
7726         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7727         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7728         * (genNearPointerGet): fixed bug with indirect reading, was always
7729         reading from INDF0
7730         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7731         pointers,
7732         * (genAddrOf): rewrote code to take address of a stacked function parameter
7733         * (genCast): fixed casting to generic pointer type,
7734         * src/pic16/gen.h: added AOP_STA,
7735         * (struct asmop): added field stk,
7736         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7737         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7738         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7739         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7740         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7741         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7742         generic pointers,
7743         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7744         and library paths,
7745         * (pic16_port structure): generic pointer size is set to 3,
7746         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7747         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7748         compiler warning,
7749         * src/pic16/ralloc.c (allocReg): prevent allocating register when
7750         operand is an iTemp,
7751
7752 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7753
7754         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7755         * debugger/mcs51/simi.c: addapt new syntax of s51
7756
7757 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7758
7759         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7760         * src/pic16/pcode.c: commented out some calls to free() in order to
7761         fix bug #989576,
7762
7763 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7764
7765         * src/SDCCicode.h,
7766         * src/SDCCicode.c (isiCodeInFunctionCall),
7767         * src/avr/ralloc.c (selectSpil),
7768         * src/pic/ralloc.c (selectSpil),
7769         * src/pic16/ralloc.c (selectSpil),
7770         * src/ds390/ralloc.c (selectSpil),
7771         * src/hc08/ralloc.c (selectSpil),
7772         * src/xa51/ralloc.c (selectSpil),
7773         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7774         stack in the middle of a function call sequence (fixes bug #1020268)
7775         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7776         costs associated with the minimum switch case.
7777
7778 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7779
7780         * src/SDCC.lex: fixed bug #1030549
7781
7782 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7783
7784         * src/SDCCcse.h (struct cseDef),
7785         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7786         over a function call if the CSE is derived from a symbol whose
7787         address has been taken (fixes bug #1029883)
7788         * support/regression/tests/bug-1029883: a new regression test for
7789         this bug
7790
7791 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7792
7793         * src/hc08/gen.c (emitinline): fixed bug #1029778
7794         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7795         to a cast object is no longer a syntax error ("fixes" bug #1030006,
7796         and starts toward RFE #905167)
7797
7798 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7799
7800         * src/pic16/gen.c (mov2f): New function to move an operand to
7801         another without considering if it is a literal or a register,
7802         * (pic16_sameRegs): don't check if they are both AOP_REG,
7803         * (AccRsh): removed andmask=0 lines,
7804         * (genLeftShift): duplicated to be improved in future versions,
7805         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7806         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7807         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7808         * (pic16initMnemonics): added initialization for POC_INFSNZW,
7809         * (insertBankSwitch): fixed inserting banksel directives algorithm
7810         for instructions that follow a skip instruction, this fixes a report
7811         for broken subtraction code generation,
7812         * src/pic16/ralloc.c (deassignLRs): do not free register if current
7813         iCode is a left op, just in case result and right share the same
7814         registers
7815
7816 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7817
7818         * src/hc08/main.c,
7819         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7820         preservation of HX
7821         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7822         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7823         on 2004-09-12; it was buggy
7824
7825 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7826
7827         * src/SDCCsymt.h: removed RESULT_CHECK
7828         * src/SDCCast.c,
7829         * src/SDCCglue.c,
7830         * src/SDCCval.c,
7831         * src/pic/glue.c,
7832         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7833
7834 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7835
7836         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7837         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7838         configuration values no more rejected by compiler, they are assigned
7839         to configuration registers with a warning message instead,
7840         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
7841         the for-loop so last conf register is emitted too,
7842         * (_pic16_initPaths): link library libsdcc.lib by default,
7843         * (_hasNativeMulFor): modified test for multiplication according to
7844         Raphael Neider's remarks. Integer multiplication is also done with
7845         support functions,
7846         * device/include/pic16/pic18fregs.h: corrected type error in while
7847         testing and including 18f6720 header file
7848
7849 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
7850
7851         * src/pic16/device.h (pic16_options): removed field use_crt,
7852         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
7853         until an optimization to handle single bits is added,
7854         * (pic16_loadFSR0): moved before genUnpackBits,
7855         * (genAnd): some white lines removed,
7856         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
7857         leave_reset flags in pic16_options when using crt modules,
7858
7859 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
7860
7861         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
7862           for bugs 898889 & 979599. Also used some safer print instructions.
7863
7864 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
7865
7866         * src/pic16/device.h (pic16_options_t): added field use_crt,
7867         crt_name, no_crt,
7868         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
7869         catch a probable future bug,
7870         * src/pic16/gen.c: aopIdx function commented out,
7871         * (genAssign): commented out old code which used aopIdx,
7872         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
7873         code, added if conditionals to take into account the --use-crt
7874         command line options,
7875         * src/pic16/main.c (pic16_optionsTable): added new command line
7876         options, --use-crt= and --no-crt,
7877         * (_pic16_linkEdit): now the proper crt object is added in the
7878         linker command line except than when --no-crt is specified,
7879         * src/pic16/pcode.c,
7880         * src/pic16/pcode.h: added some structures and functions for a new
7881         optimization scheme to compansate for instruction overhead between
7882         same iCodes, this scheme is currently under development and is not
7883         working in any way,
7884         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
7885         to && operator,
7886         * device/lib/pic16/startup/crt0i.c,
7887         * device/lib/pic16/startup/crt0iz.c: added global char variable
7888         __uflags to force the generation of an idata section
7889
7890 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
7891
7892         * doc/Makefile,
7893         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
7894         * doc/sdccman.lyx: updated sdcc version to 2.4.4
7895
7896 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7897
7898         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
7899         Frieder) and clarified the default code optimization mode
7900
7901 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7902
7903         * src/SDCC.lex (doPragma, process_pragma),
7904         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
7905         "opt_code_size", and "opt_code_balanced"
7906         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
7907         regrouped options by category, added support for category headers
7908         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
7909         and "--opt-code-size"
7910         * doc/sdccman.lyx: documented these new options and pragmas
7911         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
7912         preference into account
7913
7914 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7915
7916         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
7917           geniCodePreDec): Fixed bug 904237 by generating a warning
7918         * src/SDCCerr.h,
7919         * src/SDCCerr.c: added warning W_SIZEOF_VOID
7920
7921 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
7922
7923         * src/pic/device.c : When no max ram set validate full memory range.
7924         * src/pic/pcode.c,
7925         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
7926
7927 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7928
7929         * device/lib/_gptrget.c,
7930         * device/lib/_gptrput.c: updated comment
7931         * device/lib/calloc.c,
7932         * device/lib/free.c,
7933         * device/lib/malloc.c,
7934         * device/lib/realloc.c: added LGPL, made them reentrant-safe
7935         * src/SDCCcse.c (cseBBlock),
7936         * src/SDCCicode.c (printOperand, geniCodeArray),
7937         * src/SDCCicode.h (struct operand): fixed bug 868103
7938         * support/regression/tests/bug-868103.c: added
7939         * src/SDCCast.c (searchLitOp),
7940         * src/SDCCcse.h (struct cseDef),
7941         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
7942         * src/SDCCicode.h (struct operand),
7943         * src/SDCCsymt.h (struct sym_link),
7944         * src/avr/gen.c (hasInc),
7945         * src/ds390/gen.c (hasInc),
7946         * src/hc08/gen.c (genPlusIncr, hasInc),
7947         * src/mcs51/gen.c (hasInc),
7948         * src/pic16/glue.c (pic16_printIvalChar),
7949         * src/pic16/ralloc.c (regWithIdx),
7950         * src/xa51/gen.c (hasInc) : removed warnings
7951         * src/SDCCast.c (createBlock): added comment ???
7952         * src/hc08/ralloc.c: updated comments
7953
7954 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7955
7956         * doc/sdccman.lyx: updated section on switch statements, added
7957         section about semaphore locking
7958         * doc/Makefile: added option -info for latex2html
7959         * device/lib/_gptrget.c,
7960         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
7961
7962 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7963
7964         * src/pic/device.h,
7965         * src/pic/device.c,
7966         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
7967          maxram is less than 0x100.
7968
7969 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7970
7971         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
7972
7973 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7974
7975         * src/port.h,
7976         * src/mcs51/main.c,
7977         * src/ds390/main.c,
7978         * src/z80/main.c,
7979         * src/hc08/main.c,
7980         * src/pic/main.c,
7981         * src/pic16/main.c,
7982         * src/avr/main.c,
7983         * src/xa51/main.c
7984         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
7985         a jump table is the best form for a switch statement, including
7986         automatic insertion of missing cases to make the case range
7987         continuous. Developed in collaboration with Frieder Ferlemann.
7988
7989 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7990
7991         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
7992         accumulator result if it needs sign extension
7993
7994 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7995
7996         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
7997
7998 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7999
8000         * device/lib/gbz80/printf.c,
8001         * device/lib/z80/printf.c: removed define for NULL
8002
8003 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
8004
8005         * as/xa51/xa_link.c,
8006         * device/examples/ds390/ow390/ad26.c,
8007         * device/examples/ds390/ow390/cnt1d.c,
8008         * device/examples/ds390/ow390/counter.c,
8009         * device/examples/ds390/ow390/ds2480.h,
8010         * device/examples/ds390/ow390/ds2480ut.c,
8011         * device/examples/ds390/ow390/findtype.c,
8012         * device/examples/ds390/ow390/gethumd.c,
8013         * device/examples/ds390/ow390/owllu.c,
8014         * device/examples/ds390/ow390/ownetu.c,
8015         * device/examples/ds390/ow390/swt12.c,
8016         * device/examples/ds390/ow390/swtloop.c,
8017         * device/examples/ds390/ow390/temp.c,
8018         * device/examples/ds390/ow390/temp10.c,
8019         * device/examples/ds390/ow390/thermo21.c,
8020         * device/examples/ds390/ow390/tinilnk.c,
8021         * device/examples/ds390/ow390/tstfind.c,
8022         * device/examples/serialcomm/windows/serial.cpp,
8023         * device/examples/serialcomm/windows/test_serialcomm.cpp,
8024         * device/include/reg51.h: fixed line endings for cvs
8025
8026 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8027
8028         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
8029         packRegsForAccUse, packRegisters): new accumulator register
8030         packing algorithm
8031         * support/regression/ports/hc08/support.c (_putchar): suppress
8032         warning of unused variable
8033         * src/SDCCicode.c: added SWAP entry to codeTable
8034
8035 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
8036
8037         * device/lib/sprintf.c: forgot to add this file before previous commit
8038
8039 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
8040
8041         * src/pic16/gen.c (genPackBits): added operand right in function
8042         parameters, load result directly if p_type is POINTER (that is
8043         called by genNearPointerSet)
8044         * (genUnPackBits): added operand left in function parameters,
8045         * (genNearPointerGet, genNearPointerSet): prevent the loading of
8046         FSR0 if accessing bitfields,
8047
8048 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
8049
8050         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
8051           _print_format; updated printf, sprintf, vsprintf
8052         * device/include/asm/default/features.h: corrected comment/define
8053         * device/lib/Makefile.in: added sprintf.c
8054         * device/lib/libsdcc.lib: added sprintf module
8055         * device/lib/printf_large.c,
8056         * device/lib/vprintf.c,
8057         * device/lib/sprintf.c: totally refactored printf_large and vprintf
8058           into these 3 files
8059         * support/regression/Makefile: changed ALL_PORTS into a usefull default
8060         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
8061         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
8062           hc08 test
8063         * support/regression/tests/zeropad.c: define idata as data for hc08
8064
8065 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8066
8067         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
8068         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
8069         labels are referenced at least once (even if a reference is not found)
8070         * src/hc08/gen.c (emitcode): set isComment flag for comments
8071         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
8072         loads), rules 6a..6b (optimize jumps to return)
8073
8074 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8075
8076         * device/lib/acosf.c (acosf),
8077         * device/lib/asinf.c (asinf),
8078         * device/lib/atanf.c (atanf),
8079         * device/lib/ceilf.c (ceilf),
8080         * device/lib/cosf.c (cosf),
8081         * device/lib/coshf.c (coshf),
8082         * device/lib/cotf.c (cotf),
8083         * device/lib/fabsf.c (fabsf),
8084         * device/lib/floorf.c (floorf),
8085         * device/lib/log10f.c (log10f),
8086         * device/lib/logf.c (logf),
8087         * device/lib/sinf.c (sinf),
8088         * device/lib/sinhf.c (sinhf),
8089         * device/lib/sqrtf.c (sqrtf),
8090         * device/lib/tanf.c (tanf),
8091         * device/lib/tanhf.c (tanhf),
8092         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
8093         replaced all instances of "reentrant" in the library functions
8094         defined in math.h with this macro.
8095         * support/regression/tests/float_trans.c: reenabled test for hc08
8096
8097 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
8098
8099         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
8100         erroneously deleted
8101
8102 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8103
8104         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
8105         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
8106         multi-byte volatile operands are used
8107         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
8108         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
8109         initialization to area GSINIT0 so that it would always precede
8110         any static initializers in GSINIT
8111         * support/regression/tests/zeropad.c: fixed idata define for hc08
8112         * support/regression/tests/bug-927659.c,
8113         * support/regression/tests/float_trans.c: disabled tests for hc08
8114         pending missing library routines
8115         * .version: increased version number to 2.4.4 - hc08 port now passes
8116         regression tests
8117
8118
8119 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
8120
8121         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
8122         * Makefile.common.in,
8123         * as/Makefile,
8124         * as/hc08/Makefile.in,
8125         * as/mcs51/Makefile.in,
8126         * as/z80/Makefile.in,
8127         * debugger/mcs51/Makefile.in,
8128         * device/include/Makefile.in,
8129         * device/lib/Makefile.in,
8130         * doc/Makefile,
8131         * link/Makefile,
8132         * link/z80/Makefile.in,
8133         * packihx/Makefile.in,
8134         * sim/ucsim/main_in.mk,
8135         * sim/ucsim/avr.src/Makefile.in,
8136         * sim/ucsim/doc/Makefile.in,
8137         * sim/ucsim/gui.src/serio.src/Makefile.in,
8138         * sim/ucsim/hc08.src/Makefile.in,
8139         * sim/ucsim/s51.src/Makefile.in,
8140         * sim/ucsim/xa.src/Makefile.in,
8141         * sim/ucsim/z80.src/Makefile.in,
8142         * src/Makefile.in,
8143         * support/cpp2/Makefile.in,
8144         * support/librarian/Makefile,
8145         * support/makebin/Makefile: added DESTDIR to the install path proposed
8146         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
8147         * doc/sdccman.lyx: added DESTDIR documentation
8148
8149 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8150
8151         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8152         instruction for interrupt handlers, use fast returns when returning
8153         from high priority interrupts
8154
8155 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8156
8157         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8158         code generation
8159         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8160         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8161         bugs, ported much of Bernhard's code from mcs51
8162         * src/mcs51/gen.c (genSend),
8163         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8164         than one when calling a reentrant function
8165         * device/lib/_mullong.c: defined an alternate struct layout for big
8166         endian ports (hc08)
8167
8168 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8169
8170         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8171         test
8172
8173 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8174
8175         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8176         are sane and complete before asking the port its prefered parameter
8177         passing method (fixes bug #1017633)
8178         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8179         and _ret3
8180
8181 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8182
8183         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8184         problem in bitfields >= 8 bits.
8185
8186 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8187
8188         * src/SDCCsymt.c: undid changes that were not meant to be committed
8189
8190 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8191
8192         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8193
8194 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8195
8196         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8197           copied and wrong bit got inverted
8198
8199 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8200
8201         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8202         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8203         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8204         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8205         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8206         assignments to bitfields at known addresses
8207         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8208         reads from bitfields at known addresses
8209         * src/hc08/ralloc.c (packRegisters),
8210         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8211         genhc08Code): optimize pointer get values used as conditionals
8212         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8213         and branch
8214
8215 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8216
8217         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8218         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8219         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8220         as conditionals
8221
8222 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8223
8224         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8225
8226 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8227
8228         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8229         related problems
8230
8231 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8232
8233         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8234
8235 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8236
8237         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8238         mcs51 port
8239
8240 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8241
8242         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8243
8244 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8245
8246         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8247         cases use more compact code.
8248
8249 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8250
8251         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8252
8253 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8254
8255         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8256
8257 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8258
8259         * src/SDCCsymt.h,
8260         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8261         parameter of changePointer() from symbol* to sym_link*
8262         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8263         * src/SDCCsymt.c (compareType): void* type is castable to other
8264         pointers, but not necesarily an exact match.
8265         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8266         is no longer blindly treated as an exact match.
8267         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8268
8269 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8270
8271         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8272
8273 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8274
8275         * src/pic/gen.c,
8276         * src/pic/pcode.c,
8277         * src/pic/ralloc.h,
8278         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8279
8280 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8281
8282         * src/pic/device.c,
8283         * src/pic/device.h,
8284         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8285
8286 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8287
8288         * src/mcs51/gen.c (emitcode): fixed bug #992819
8289
8290 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8291
8292         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8293           there's no need to make it worse
8294
8295 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8296
8297         * src/mcs51/ralloc.c (deassignLR),
8298         * src/ds390/ralloc.c (deassignLR),
8299         * src/hc08/ralloc.c (deassignLR),
8300         * src/z80/ralloc.c (deassignLR),
8301         * src/pic/ralloc.c (deassignLR),
8302         * src/pic16/ralloc.c (deassignLR),
8303         * src/avr/ralloc.c (deassignLR),
8304         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8305         rlivePoint): fixed another part of bug #971834
8306
8307 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8308
8309         * src/z80/main.c: enabled "critical" keyword
8310         * src/z80/mappings.i,
8311         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8312         functions (fixes bug #979646)
8313         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8314
8315 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8316
8317         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8318           such as c:\mydir.
8319
8320 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8321
8322         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8323           doesn't disable too much optimizations
8324
8325 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8326
8327         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8328
8329 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8330
8331         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8332
8333 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8334
8335         * src/pic/gen.c tidied up tabs
8336         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8337         * src/pic/main.c tidied up tabs
8338         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8339         * src/pic/pcoderegs.c tidied up tabs
8340         * src/pic/ralloc.c tidied up tabs
8341
8342 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8343
8344         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8345         to S_FIXED for pic16 port and when symbol is not in level 0,
8346         allocate for S_REGISTER storage class and pic16 port, too,
8347         * src/pic16/device.h: prototype for checkSym,
8348         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8349         * (pic16_assignConfigWordValue): test the value and the mask to
8350         validate that the value is suitable for the configuration word,
8351         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8352         collect extern declared symbols, don't emit symbol twice, check
8353         first if symbol is in publics set first,
8354         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8355         * added command line '--fstack' which enables an experimental
8356         feature for stack access, too buggy to be used yet...
8357         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8358         * (pic16_allocDirReg): when register has storage class S_REGISTER
8359         allocate in pic16_dynAccessRegs,
8360         * device/include/pic16/pic18f????.h: modified configuration word
8361         naming convention, words started as CONFIG0H but should be CONFIG1H
8362
8363 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8364
8365         * device/include/mcs51reg.h: fixed bug 970993
8366
8367 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8368
8369         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8370         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8371         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8372         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8373         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8374         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8375           error/warning numbers,
8376           added function setWarningDisabled()
8377         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8378         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8379           _memcmp.c _memmove.c calloc.c realloc.c free.c
8380         * support/regression/tests/malloc.c: added tests for new functionality
8381         * support/regression/tests/zeropad.c: added tests for truncated initializers
8382           and initialized char arrays starting with '\x0'
8383         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8384
8385 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8386
8387         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8388
8389 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8390
8391         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8392         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8393         peephole 177.e. Thanks to anonymous
8394
8395 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8396
8397         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8398         function isn't used in the source but referenced as a
8399         variable initializer then declare it as extern in .asm file
8400
8401 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8402
8403         * .version: increased version number to 2.4.3
8404
8405         Adding version extension according to ChangeLog CVS revision
8406         * src/Makefile.in (target all): added dependency 'version.h'
8407         * (rule version.h): added rule to create version.h from ChangeLog,
8408         * (rule dep): added dependency version.h,
8409         * src/version.awk: AWK script to create version.h
8410         * src/SDCCdwarf2.c (dwWriteModule),
8411         * src/SDCCglue.c (initialComments),
8412         * src/SDCCmain.c (printVersionInfo): modified to write after
8413         version string the version extension number,
8414         * src/SDCCutil.c: included "version.h"
8415         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8416         number,
8417         * src/SDCCutil.h: added prototype for getBuildNumber
8418
8419         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8420         includeDirsSet, too,
8421         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8422         const char [] is found in function prototype...
8423
8424         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8425         moving to WREG with source is already in WREG,
8426         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8427         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8428         * (aopForSym): stack'ed symbols are partially supported, added
8429         if-clause to support symbols in FARSPACE,
8430         * (sameRegs): added test for AOP_ACC to see if registers are same,
8431         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8432         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8433         * (pic16_popRegFromString): will not allocate a new register if it
8434         doesn't find one by name, bug may have introduced...
8435         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8436         * (genIpush): revived to use pic16 port's stack,
8437         * (genAddrOf): added incomplete case for stack'ed operand,
8438         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8439         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8440         can handle multibyte operands,
8441         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8442         * (pic16initialComments): added message for MPLAB compatibility
8443         mode enabled,
8444         * src/pic16/main.h: prototype for pic16_mplab_comp,
8445         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8446         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8447         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8448         because of increased complexity of procedure,
8449         * (_process_pragma): stack pragma changed to format 'stack pos len',
8450         emit symbol '_stack_end' to conform with gplink,
8451         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8452         to search for register,
8453         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8454         PO_GPR_REGISTER,
8455         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8456         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8457         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8458         case for PO_GPR_REGISTER,
8459         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8460         dies, the new era is ahead !...
8461         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8462         pic16_dynInternalRegs,
8463         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8464         * (pic16_allocDirReg): minor optimizations and bug fixes,
8465         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8466
8467         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8468         load stack and frame pointer with address of 'stack_end' symbol
8469
8470 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8471
8472         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8473         without source code but only variable initializers
8474
8475 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8476
8477         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8478         external are not declared as extern to reduce overhead while linking
8479
8480 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8481
8482         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8483
8484 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8485
8486         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8487           Yee Keat for the patch
8488         * src/SDCCast.c (decorateType): fixed bug #979599
8489         * src/ds390/gen.h: removed local fReturnSizeDS390
8490         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8491         * src/ds390/gen.c (genAnd, genOr, genXor),
8492         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8493
8494 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8495
8496         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8497         add relFilesSet to $3, manipulate $2 to handle linking of object
8498         files without source files in command line,
8499         * device/include/pic16 (all headers): added ID location macros,
8500         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8501         entries for ID location bytes,
8502         * (pic16_assignIdByteValue): NEW,
8503         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8504         added field dumpcalltree to pic16_options_t,
8505         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8506         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8507         emitting rFalseIfx label after check_carry label,
8508         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8509         pic16_emitDIRegs), NEW
8510         * (pic16glue): dump .calltree file when option --calltree found,
8511         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8512         * (_pic16_genAssemblerPreamble): emit ID locations after
8513         configuration registers,
8514         * (pic16_linkCmd): modifications of the link command,
8515         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8516         * (pic16_pCodeInitRegisters): don't init stack registers,
8517         * (pic16_findPrevInstruction): fixed bug,
8518         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8519         bug with immediate registers,
8520         * (buildCallTree): traces stack push and pop,
8521         * (pct2): dump also stack usage for each function,
8522         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8523         * (pic16_allocDirReg): various modifications,
8524         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8525         fixed to 1,
8526
8527 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8528
8529         * src/pic16/pcode.c: removed buggy double colon
8530
8531 2004-07-01 Borut Razem <borut.razem AT siol.net>
8532
8533         * support/scripts/sdcc.nsi: added include/pic16 to setup
8534
8535 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8536
8537         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8538         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8539         target 'clean',
8540         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8541         specific command line arguments. Also added sample lkr script
8542         for placing a variable at a specific memory bank.
8543         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8544         at a specific memory bank,
8545         * (pic16_dump_isection): fixed bug which caused string literals to
8546         be omitted when dumping idata section,
8547         * (pic16_groupRegistersInSection): added code to handle registers
8548         in specific memory banks,
8549         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8550         public, all references are renamed too,
8551         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8552         AOP_DPTR2,
8553         * (pic16_storeForReturn): added case to handle when dest is WREG,
8554         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8555         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8556         pic16_rel_udata, check to see if that register is marked as being
8557         a member of a specific memory bank,
8558         * (pic16_printIvalCharPtr): added code to add string literals either
8559         to code or the idata sections,
8560         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8561         also accept the 'udata' pragma,
8562         * src/pic16/main.h: new structure types sectName and sectSym
8563         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8564         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8565         * (pic16_findPrevInstruction): fixed, it returned nothing,
8566         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8567         instruction combinations,
8568         * (pic16_FixRegisterBanking): heavily reorganised,
8569         * (pic16_AnalyzeBanking): if generating banksel directives is
8570         disabled, then don't call FixRegisterBanking at all,
8571         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8572         completely removed,
8573         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8574
8575 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8576
8577         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8578         Phuah Yee Keat <yk.phuah AT nestac.com>
8579
8580 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8581
8582         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8583         correctly the IVT even if it is relocated to some other location
8584
8585 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8586
8587         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8588         * device/include/pic16/pic18f2220.h: NEW,
8589         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8590         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8591         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8592         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8593         nodefaultlibs, ivt_loc is the location of the interrupt vector
8594         table, and nodefaultlibs signs that default libraries should not be
8595         linked in link stage,
8596         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8597         according to --ivt-loc argument,
8598         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8599         when pragma stack is found,
8600
8601 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8602
8603         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8604         256 (range check), 257 (do while), 258.a-f (bit banging
8605         f.e. on 3-wire SPI bus)
8606
8607 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8608
8609         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8610         variables used exclusively within a loop
8611
8612 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8613
8614         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8615
8616 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8617
8618         * src/SDCClrange.c (computeClash): fixed bug #971834
8619
8620 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8621
8622         * src/mcs51/gen.c (genCmp): fixed bug #975903
8623         * src/hc08/gen.c (operandsEqu),
8624         * src/ds390/gen.c (operandsEqu),
8625         * src/z80/gen.c (operandsEqu),
8626         * src/pic/gen.c (operandsEqu),
8627         * src/pic16/gen.c (operandsEqu),
8628         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8629         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8630
8631 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8632
8633         * src/SDCCcse.c (cseBBlock): fixed bug #966963
8634
8635 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8636
8637         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8638         default case in switch statement,
8639         * glue.c (pic16_initPointer): expr is initialised via decoarteType
8640         to eliminate problem with initialisation of pointers, but problem
8641         still exists,
8642         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8643         * (emitStaticSegment): removed various lines emitting debug info,
8644         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8645         added processor registers for utilizing EEPROM,
8646         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8647         configurable and set 8
8648
8649 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8650
8651         * .version: increased version number to 2.4.2,
8652
8653         Cumulative patch for pic16 port
8654         * src/pic16/device.c: changed scheme to dump initial values for
8655         variables in idata segment, all print_idata* functions were removed,
8656         now the pic16_printIval* will be called,
8657         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8658         * _pic16_printPointerType, pic16_printPointerType,
8659         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8660         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8661         NEW, similar to the respective functions in SDCCglue.c,
8662         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8663         way, emitting hex bytes,
8664         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8665
8666 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8667
8668         * src/avr/ralloc.c (serialRegAssign),
8669         * src/xa51/ralloc.c (serialRegAssign),
8670         * src/pic/ralloc.c (serialRegAssign),
8671         * src/pic16/ralloc.c (serialRegAssign),
8672         * src/hc08/ralloc.c (serialRegAssign),
8673         * src/z80/ralloc.c (serialRegAssign),
8674         * src/ds390/ralloc.c (serialRegAssign),
8675         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8676
8677 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8678
8679         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8680         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8681
8682 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8683
8684         Cumulative patch for pic16 port:
8685         * src/pic16/device.h (typedef PIC16_device) modified fields for
8686         defining microcontrollers,
8687         * src/pic16/device.c: added new info for all devices in Pics16 array,
8688         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8689         to be optimised out by the pCode optimiser,
8690         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8691         specially, bug reported by G.M. Gallant,
8692         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8693         as force'd so that cannot be optimised out by pCode optimiser,
8694         * src/pic16/pcode.c,
8695         * src/pic16/pcodepeeph.c,
8696         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8697         they are disabled by default, but can be enabled explicit with
8698         command argument --denable-peeps, for testing,
8699         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8700         --pomit-ivt in COMPILE_FLAGS
8701
8702 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8703
8704         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8705           compilation on MSVC
8706
8707 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8708
8709         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8710
8711 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8712
8713         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8714         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8715
8716 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8717
8718         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8719         would only assign 0x300001 register.
8720
8721 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8722
8723         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8724         in COMPILE_FLAGS. Thanks to G. Gallant for report.
8725
8726 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8727
8728         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8729         for ds80c400
8730         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8731         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8732         added peephole 254 (left shift), 255 (jump table)
8733
8734 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8735
8736         * device/lib/Makefile.in: removed comment line with model-pic16,
8737         * (target port-specific-objects-pic16): the libraries and objects
8738         are copied to the build directory form the device/lib/pic16/bin
8739         directory
8740
8741         Cumulative patch concerning pic16 port:
8742         * library directory has been re-organized,
8743         * added support for PIC18F1220,
8744         * added headers and library sources for chips 18f1220,18f6520,
8745         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8746
8747         * configuration registers setting has changed, now each supported
8748         device has a complete description of the registers it uses,
8749         * all initialisations are moved to idata sections, these section
8750         can be absolute or relocatable,
8751         * fixed initialisation of codespace variables,
8752         * fixed warning about PCLATU and gpsim,
8753         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8754         * (genAssign): use table reads when assigning from variables in codespace,
8755         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8756         char/int variables placed in codespace,
8757         * (pic16_emitConfigRegs): NEW, emits a list with configuration
8758         registers set in .asm file, no need for --pomit-config-words anymore,
8759         * (pic16glue): some 8051 legacy segments are commented out
8760         (to be removed completely),
8761         * added support for alternative assembler and linker with --asm=
8762         and --link= command line arguments,
8763         * peepholes are disabled automatically in the port, no need to
8764         specify on command line,
8765         * port supports natively char/int/long multiplication, but converts
8766         all divisions to support functions,
8767         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8768         to the file set in variable $2,
8769         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8770         strings in ASCII format and not in hex,
8771         * ralloc.c (serialRegAssign): added a triplet of conditional calls
8772         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8773         allocate proper register if iCodes aren't temporary,
8774
8775 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8776
8777         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8778
8779 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8780
8781         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8782         is commented out
8783
8784 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8785
8786         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8787         computed address is reused
8788         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8789         multi-byte bitfields
8790
8791 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8792
8793         * src/z80/gen.c: (genArrayInit): must check for pointers too
8794
8795 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8796
8797         * support/regression/tests/zeropad.c: never meant to commit the
8798           nestedstruct test: removed, added check for GCC version
8799
8800 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8801
8802         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8803         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8804         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8805           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8806           bugs 928906 and 954082 half-empty initializers
8807         * src/SDCCsymt.h,
8808         * src/SDCCsymt.c (getAllocSize): added for above fix
8809         * src/z80/gen.c (genArrayInit): fixed bug 741044
8810         * support/regression/tests/zeropad.c: added tests
8811
8812 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8813
8814         * src/pic16/device.c (pic16_dump_section): corrected bug which
8815         caused some symbols of the libraries to be misplaced
8816
8817 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8818
8819         * src/pic16/glue.c,
8820         * src/pic16/ralloc.h,
8821         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8822         to fix conflict with pic port
8823
8824 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8825
8826         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8827         externs configuration variables,
8828         * src/pic16/ralloc.h,
8829         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8830         prototype in header, commented out some debug messages
8831
8832 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8833
8834         * src/pic16/glue.c,
8835         * src/pic16/main.c,
8836         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8837         for gpasm COFF object generation. Thanks to D. Hawkins for
8838         his patch info
8839
8840 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8841
8842         * src/ds390/main.c,
8843         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
8844         Brock for spotting this)
8845         * src/ds390/gen.c (genEndFunction),
8846         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
8847         interrupt handler and critical. Disable push/pop optimizations when
8848         peephole optimizations disabled.
8849
8850 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8851
8852         Updated pic16 library sources and headers.
8853         * device/lib/pic16/pic18f*/ ,
8854         * device/include/pic16/*.h: modified to handle structured SFR
8855         definitions
8856
8857 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8858
8859         * src/port.h (PORT structure): added hook initPaths, now each
8860         port can declare its own default search paths,
8861         which can been seen with the --print-search-dirs option,
8862         see pic16 port for example,
8863         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
8864         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
8865         * (doPrintSearchDirs): NEW, replaces in a central manner the
8866         printing of search dirs which was split in set*Paths functions,
8867         * (main): added call to port->initPaths and doPrintSearchDirs,
8868         * src/avr/main.c,
8869         * src/ds390/main.c,
8870         * src/hc08/main.c,
8871         * src/izt/i186.c,
8872         * src/izt/tlcs900h.c,
8873         * src/mcs51/main.c,
8874         * src/pic/main.c,
8875         * src/pic16/main.c: modified port structures to reflect addition of
8876         initPaths hook,
8877
8878         * src/pic16/device.c (regCompare): registers are finally sorted by name,
8879         * (pic16_dump_section): for registers in same address reserve memory once,
8880         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
8881         to no_banksel,
8882         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
8883         result is greater in size than right or left,
8884         * (pic16_genUMult8X8_8): there are some cases where the result can
8885         be 16 bits size, so handle these,
8886         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
8887         * (pic16_outBitC): modified to emit pcodes,
8888         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
8889         or not,
8890         * (genDivOneByte): implemented algorithm to divide 8-bits,
8891         * (genCmp): uncommented goto, but issues still exist,
8892         * (genAnd): fixed a bug with variables >8bits,
8893         * (genPackBits): optimization added that uses BCF/BSF to change a
8894         single bit,
8895         * (genAssign): fixed bug when assigning floating point literals,
8896         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
8897         __sdcc_gsinit_startup label,
8898         * src/pic16/main.c (_pic16_init): removed search directory
8899         initialisations,
8900         * (_pic16_initPaths): NEW, used to initialise search directories,
8901         * (_hasNativeMulFor): support functions for all except char/int
8902         multiplication, and char division,
8903         * (PIC16_port struct): modified entry for native mul support,
8904         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
8905         no_banksel option,
8906         * (buildCallTree): call to register_usage is ifdef'ed out,
8907
8908 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8909
8910         * device/include/string.h: applied Stas Sergeev's patch to make this
8911         header file compatible with the preprocessor -Wundef option
8912         * src/SDCCmain.c (main): abort compilation if preprocessor reports
8913         failure (fixes bug #941458)
8914
8915 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8916
8917         * src/SDCCopt.c (killDeadCode): fixed bug #907733
8918         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
8919         that the variable, not the function, should be static
8920         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
8921         to be consistent with non-literal case
8922
8923 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8924
8925         * src/SDCCast.c (isConformingBody): fixed bug #949967
8926         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
8927         convilong): fixed bug #952086
8928
8929 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8930
8931         * src/SDCCmem.c (allocVariables): fixed bug #955321
8932
8933 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8934
8935         * src/hc08/main.c (_hc08_genAssemblerEnd),
8936         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
8937         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
8938         completely eliminated the use of a temporary file
8939         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
8940         when more than one file linked
8941         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
8942
8943 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8944
8945         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
8946         which fixes bug #543481
8947         * support/regression/tests/bug-751703.c: fixed comments left from a
8948         cut and paste error
8949         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
8950         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
8951         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
8952         scopes
8953         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
8954         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
8955         are now changed to underscores in moduleName
8956
8957 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8958
8959         * as/mcs51/lkmem.c: better fix for bug #954173
8960
8961 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8962         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8963
8964         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
8965         * device/include/c8051f000.h,
8966         * device/include/c8051f120.h,
8967         * device/include/c8051f300.h,
8968         * device/include/c8051f310.h,
8969         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
8970         PWM16) and detab'ed
8971
8972 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8973
8974         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
8975         and mailing lists, doc'ed --no-peep-comments, removed reference
8976         to knoppix (newest version has no LyX/LaTeX), other minor changes
8977         * src/SDCCglue.c (glue): save 2 bytes stack space with
8978         option --main-return. The ljmp could probably be avoided too
8979
8980 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8981
8982         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
8983
8984 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8985
8986         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
8987         * src/SDCCopt.c (isLocalWithoutDef),
8988         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
8989         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
8990         (credit to Maarten Brock for patch #949363, on which this is based)
8991         * support/regression/tests/bug-751703.c: some test cases of extern used
8992         within inner scopes.
8993
8994 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8995
8996         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
8997         SPEC_STRUCT
8998         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
8999         struct definitions
9000         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
9001         dwWriteLabel): fix to create valid debugger symbols even when
9002         the module name has non-alphanumeric symbols in it
9003         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
9004         when a variable's allocation has been optimized away
9005
9006
9007 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9008
9009         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
9010         * src/hc08/main.c,
9011         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
9012         * src/mcs51/main.c,
9013         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
9014         * src/ds390/main.c,
9015         * src/z80/gen.c (z80_emitDebuggerSymbol),
9016         * src/z80/main.c,
9017         * src/pic/gen.c (pic14_emitDebuggerSymbol),
9018         * src/pic/main.c,
9019         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
9020         * src/pic16/main.c,
9021         * src/avr/gen.c (avr_emitDebuggerSymbol),
9022         * src/avr/main.c,
9023         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
9024         * src/xa51/main.c,
9025         * src/SDCCdebug.c (emitDebuggerSymbol),
9026         * src/SDCCdebug.h,
9027         * src/port.h: added a debugger struct to the port struct. Added a
9028         callback for defining debugger symbols
9029
9030         * src/SDCCast.c (createLabel),
9031         * src/SDCC.y (labeled_statement): mark all compiler generated labels
9032         with isitmp = 1
9033         * src/SDCCicode.h,
9034         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
9035         iCode back to the ast for the function
9036
9037         * src/hc08/ralloc.c (hc08_assignRegisters),
9038         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
9039         unneeded fields from the regs struct.
9040         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
9041         pushReg() & pullReg() functions instead of emitcode()
9042
9043         * src/hc08/gen.c (genLabel, genhc08Code),
9044         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
9045
9046         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
9047         debugger hooks
9048
9049         * src/hc08/gen.c (genEndFunction, genhc08Code),
9050         * src/hc08/gen.h,
9051         * src/mcs51/gen.c (genEndFunction, gen51Code),
9052         * src/mcs51/gen.h,
9053         * src/ds390/gen.c (genEndFunction, gen390Code),
9054         * src/ds390/gen.h,
9055         * src/z80/gen.c (genEndFunction, genZ80Code),
9056         * src/z80/gen.h,
9057         * src/z80/z80.h,
9058         * src/pic/gen.c (genEndFunction, genpic14Code),
9059         * src/pic/gen.h,
9060         * src/pic16/gen.c (genEndFunction, genpic16Code),
9061         * src/pic16/gen.h,
9062         * src/avr/gen.c (genEndFunction, genAVRCode),
9063         * src/avr/gen.h,
9064         * src/xa51/gen.c (genEndFunction, genXA51Code),
9065         * src/xa51/gen.h,
9066         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
9067         specific code to cdbFile.c and out of the backend code generators
9068
9069         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
9070         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
9071         starting address is now 0
9072
9073         * as/hc08/asm.h,
9074         * as/hc08/m08pst.c,
9075         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
9076         assembler directive for DWARF support
9077         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
9078
9079         * src/src.dsp,
9080         * src/Makefile.in,
9081         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
9082
9083 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9084
9085         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
9086         and inappropriate peephole optimization in jump tables
9087
9088 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9089
9090         * as/hc08/m08pst.c,
9091         * src/SDCCglue.c: sdccopt works for the hc08 port now
9092
9093 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
9094
9095         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
9096
9097 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9098
9099         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
9100
9101 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9102
9103         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
9104         rules
9105         * src/SDCCmain.c,
9106         * src/SDCCglobl.h,
9107         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
9108         comments from the peephole optimizer replacement rules
9109         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
9110         symbols
9111         * src/SDCCcse.c (updateSpillLocation),
9112         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
9113         equivalents
9114         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
9115         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
9116         objects far pointers
9117
9118 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9119
9120         * src/SDCCsymt.h: a missing part of my last change
9121         * src/pic/ralloc.c (regTypeNum),
9122         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
9123
9124 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9125
9126         * src/SDCCicode.h,
9127         * src/SDCCicode.c (aggrToPtrDclType),
9128         * src/SDCCptropt.h,
9129         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
9130         ptrPseudoSymConvert),
9131         * src/pic/ralloc.c (regTypeNum),
9132         * src/pic16/ralloc.c (regTypeNum),
9133         * src/hc08/ralloc.c (regTypeNum),
9134         * src/ds390/ralloc.c (regTypeNum),
9135         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
9136         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
9137
9138 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9139
9140         * link/z80/lkmain.c (afile),
9141         * as/hc08/lkmain.c (afile),
9142         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
9143         prevent a pointer problem when a filename has no directory and
9144         no extension specified.
9145
9146 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9147
9148         * link/z80/lkmain.c (afile): allow periods in directory names
9149         * link/z80/lkmain.c (afile),
9150         * as/mcs51/lkmain.c (afile),
9151         * as/hc08/lkmain.c (afile): allow linker script file to have an
9152         extension other than ".lnk"
9153         * link/z80/lklex.c (getfid),
9154         * link/z80/lkmain.c (parse),
9155         * as/mcs51/lklex.c (getfid),
9156         * as/mcs51/lkmain.c (parse),
9157         * as/hc08/lklex.c (getfid),
9158         * as/hc08/lkmain.c (parse): Support comments in the linker script
9159         file on lines by themselves and after filenames
9160
9161 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9162
9163         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9164
9165 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9166
9167         * src/z80/peeph-z80.def: removed some peephole rules that don't
9168         work with multibyte arithmetic (fixed bug #937126)
9169         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9170         to registers and not global variables
9171         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9172         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9173         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9174         checking for assignments not internally generated (fixed bug #931895)
9175         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9176         structure member (fixed bug #930072)
9177
9178 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9179
9180         * src/SDCCmain.c (linkEdit),
9181         * src/hc08/main.c (_hc08_parseOptions),
9182         * as/hc08/Makefile.in,
9183         * as/hc08/aslink.h,
9184         * as/hc08/asm.h,
9185         * as/hc08/m08pst.c,
9186         * as/hc08/lkrloc.c (relr, rele),
9187         * as/hc08/lkarea.c (lnkarea)
9188         * as/hc08/lkmain.c (afile, parse),
9189         * as/hc08/lkelf.c: support for ELF output
9190         * as/hc08/lks19.c (s19),
9191         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9192
9193 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9194
9195         * as/mcs51/lkihx.c: Fixed bug #899105.
9196
9197 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9198
9199         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9200         .dsp files from Unix to DOS.
9201
9202 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9203
9204         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9205         function pointers; we have been compliant for several months now.
9206         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9207         change that was accidently commented out
9208         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9209         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9210         bug #922319
9211
9212 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9213
9214         * src/hc08/gen.c: output of all of the internal debugging information
9215         is now controlled by the D() macro; it is disabled by default
9216
9217 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9218
9219         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9220         harder to keep the same registers during a CAST iCode
9221         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9222         long via int can be done in a single cast, if the signedness is
9223         correct.
9224         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9225         putchar() in tinibios.c in ds390's library
9226
9227 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9228
9229         * src/SDCCast.c (decorateType): fixed bug #898889,
9230         cast result of a literal complement too
9231         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9232         fixed check for bitfields
9233
9234 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9235
9236         * src/SDCCicode.c (geniCodeLogic): made it static,
9237         (geniCodeLogicAndOr): added in order to fix bug #905492,
9238         (ast2iCode): fixed bug #905492
9239         * support/regression/tests/bug-905492.c: added
9240         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9241         (processParms): fixed bug #927659: don't copy parms, this will clear
9242         decorated flag
9243         * support/regression/tests/bug-927659.c: added
9244
9245 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9246
9247         * src/SDCCast.c (addCast): don't cast float to char
9248         * device/lib/libsdcc.lib: added _memmove
9249
9250 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9251
9252         * device/lib/large/Makefile: fixed parallel execution by
9253         replacing `make` by `$(MAKE)`
9254
9255 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9256
9257         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9258         offsets (fixes bug #923936)
9259
9260 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9261
9262         * device/lib/small/Makefile: fixed parallel execution by
9263         replacing `make` by `$(MAKE)`
9264
9265 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9266
9267         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9268
9269 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9270
9271         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9272         * src/regression/Makefile: Regression test was not running.
9273
9274 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9275
9276         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9277         complement if possible
9278         * src/SDCCval.c (valComplement),
9279         * src/SDCCicode.c (operandOperation): fixed complement of literal
9280         * support/regression/tests/onebyte.c (testComplement): added
9281
9282 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9283
9284         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9285         return an optimized tree; actually replace actParm with the new tree
9286         * src/SDCCast.h: added some parantheses to remove side effects
9287         * support/regression/tests/bug-920866.c
9288
9289 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9290         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9291         Bit operands were not being handled properly in the pic14 port.
9292         (now src/regression/add.c passes again).
9293
9294 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9295
9296         * src/SDCC.y (labeled_statement): case and default no longer require
9297         a following statement (RFE #893037)
9298
9299 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9300
9301         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9302         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9303         disabled (fixes bug #916294)
9304         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9305         "mov a,acc"; patch provided by Lenny Story
9306         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9307
9308 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9309
9310         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9311         functions
9312         * src/ds390/gen.c (genFunction, genEndFunction),
9313         * src/ds390/ralloc.c (ds390_assignRegisters),
9314         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9315         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9316         pushed if there are parameters passed on the stack. Also, a cleaner
9317         way to decide if r0/r1 should be pushed/popped. (Together they fix
9318         bug #918693)
9319
9320 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9321
9322         * doc/sdccman.lyx,
9323         * device/lib/mcs51/crtpagesfr.asm,
9324         * device/lib/mcs51/crtxinit.asm,
9325         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9326         to avoid confusion with Si Lab's SFRPAGE register.
9327
9328 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9329
9330         * src/SDCCglue.c (emitMaps): allow public sfr variables
9331         * src/SDCCglue.c (initialComments): include compiler build date
9332         with compiler version and put the timestamp of the generated
9333         assembly file on a serperate line to be less confusing.
9334         * src/port.h: added genInitStartup hook
9335         * src/avr/main.c,
9336         * src/ds390/main.c,
9337         * src/hc08/main.c,
9338         * src/pic/main.c,
9339         * src/pic16/main.c,
9340         * src/xa51/main.c,
9341         * src/z80/main.c: genInitStartup initialize as NULL (default to
9342         historical behaviour)
9343         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9344         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9345         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9346         library instead of hard coding it into the compiler.
9347         * support/regression/ports/mcs51-stack-auto/spec.mk,
9348         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9349         * device/lib/mcs51/Makefile,
9350         * device/lib/small/Makefile,
9351         * device/lib/large/Makefile,
9352         * device/lib/mcs51/crtpagesfr.asm,
9353         * device/lib/mcs51/crtstart.asm,
9354         * device/lib/mcs51/crtxclear.asm,
9355         * device/lib/mcs51/crtxinit.asm,
9356         * device/lib/mcs51/crtclear.asm,
9357         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9358         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9359         and into user configurable files.
9360         * device/lib/clean.mk: clean mcs51 directory too
9361         * support/regression/tests/longlit.c: added static to T1 declaration
9362         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9363         accesses in the initialization code
9364
9365 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9366
9367         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9368         OSCTRIMVAL as noted in bug #916008
9369
9370 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9371
9372         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9373         in loops with multiple exits (reported as incorrect registers
9374         used by Martin Helmling in Sdcc-user list)
9375
9376 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9377
9378         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9379         made ds390 register extensions look less like error messages
9380
9381 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9382
9383         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9384         reported by Adam Wozniak in Sdcc-user list
9385
9386 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9387
9388         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9389         arithmetic optimizations, added debug output
9390
9391 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9392
9393         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9394         * sdcc.spec: updated and split sdcc into 3 rpms
9395         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9396         needed for literals of LEFT_OP and '+'
9397         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9398         introduced RESULT_TYPE_NOPROM
9399         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9400         left shift
9401         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9402         limited promotion to int only for '*'
9403         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9404
9405 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9406
9407         * src/pic16/gen.c (genSkip),
9408         (genc16bit2lit), (gencjneshort): commented out
9409         (is_LitOp): new helper function, checks operand type
9410         (genCmpEq): rewritten
9411
9412 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9413
9414         * support/regression/tests/bug-908454.c: added
9415
9416 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9417
9418         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9419         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9420         (geniCodeCast): cosmetic, don't preserve bit storage class
9421         (geniCodeLeftShift): added promotion
9422         (geniCodeLogic): fixed regression
9423         * src/SDCCsymt.c (computeTypeOr): accept bits too
9424         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9425
9426 2004-03-07  Borut Razem <borut.razem AT siol.net>
9427
9428         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9429
9430 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9431
9432         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9433         version of pic16_genPackRegisters which does not check if ic is a
9434         CAST operator,
9435         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9436         function cause string1.c regression test fails
9437
9438 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9439
9440         * sim/ucsim/configure.in,
9441         * sim/ucsim/configure,
9442         * sim/ucsim/doc/Makefile.in: use docdir
9443         * src/SDCC.y: fixed sbit atrributes
9444         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9445         * src/SDCCast.c (decorateType): |^& need special promotion handling
9446         * src/SDCCast.h,
9447         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9448         * src/SDCCsymt.h (computeType),
9449         * src/SDCCicode.c: computeType() needs op
9450         * src/SDCCsymt.c (checkTypeSanity),
9451         * doc/sddman.lyx: "plain" bitfields are unsigned
9452         * src/SDCCsymt.c (computeTypeOr): added
9453         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9454         |^& ops
9455         * src/SDCCval.c (val*): computeType() needs op
9456         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9457         * support/regression/tests/onebyte.c: added tests for |^&
9458
9459 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9460
9461         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9462         for writing icode into asm output.
9463
9464 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9465
9466         * src/pic16/device.c: added some debug lines enabled
9467         with macro DEBUG_CHECK,
9468         * src/pic16/genarith.c: more debug in genPlus,
9469         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9470         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9471         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9472         * (aopForSym): onStack symbols are re-placed in data memspace,
9473         and onStack flag is cleared,
9474         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9475         copy temporary pcodeop,
9476         * (genPcall): added warning for not updating PCLATU,
9477         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9478         always true for pic16 port,
9479         * (genMultOneWord): NEW, supports integer multiplication,
9480         * (genMult): modified to call genMultOneWord,
9481         * (ifxForOp): added warning when return NULL,
9482         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9483         flag is set before call to operandFromSymbol for implicit
9484         added structures,
9485         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9486         options.intlong_rent are set by default,
9487         * (_hasNativeMulFor): modified to allow port generation of integer
9488         multiplication,
9489         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9490         set regtype to REG_SFR for all registers, restricting seting the
9491         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9492
9493 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9494
9495         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9496         more than 500 times in the regression tests
9497
9498 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9499
9500         * support/Util/SDCCerr.h,
9501         * support/Util/SDCCerr.c,
9502         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9503         enumerator_list),
9504         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9505         for symbol conflicts.
9506         * support/valdiags/tests/enum.c,
9507         * support/valdiags/tests/tentdecl.c,
9508         * support/valdiags/tests/struct.c: expect possible error messages
9509         referring to original symbol definitions.
9510         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9511         * src/SDCCsymt.h,
9512         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9513
9514 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9515
9516         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9517
9518 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9519
9520         * src/pic16/ralloc.c (newReg): fixed bug #908929
9521
9522 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9523
9524         * src/ds390/gen.c: added missing #include "main.h"
9525
9526 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9527
9528         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9529         checking if symbol is already in set,
9530         * src/pic16/device.h: prototype for checkAddSym,
9531         * src/pic16/gen.c: (_G): added entry interruptvector,
9532         * (assignResultValue): removed some commented out lines,
9533         * (genFunction): check for ISR via sym->type, absolute section for
9534         interrupt code is created via a new pBlock, the goto instruction is
9535         placed now correctly at the interrupt vector position, changed all
9536         references from ivec to _G.interruptvector,
9537         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9538         is the interrupt is a high priority one, same for return from ISR,
9539         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9540         externs to calls of checkAddSym,
9541         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9542         pic16_pcode_verbose flag is set,
9543         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9544         * src/pic16/pcoderegs.c: message about how many registers are saved
9545         will only be emitted if pic16_pcode_verbose flag is set,
9546
9547 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9548
9549         * src/ds390/ralloc.h,
9550         * src/ds390/ralloc.c (ds390_regWithIdx),
9551         * src/ds390/gen.c (emitcode),
9552         * src/ds390/main.h,
9553         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9554         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9555         ds390operandCompare, getRegsRead, getRegsWritten,
9556         initializeAsmLineNode): customized instruction size calculation for
9557         ds390, started basis for some register optimizations
9558         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9559         corresponding assembly output
9560         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9561         missing push/pop of r0/r1. Optimized push/pops
9562
9563 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9564
9565         * src/mcs51/main.c (instructionSize): fixed ACALL size
9566         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9567
9568 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9569
9570         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9571         the sorting of rlist with NULL elements
9572         * (print_idataType, print_idata): NEW to create idata sections
9573         * src/pic16/device.h: idataSymSet new variable
9574         * src/pic16/gen.c (genFunction): fixed some bugs in string
9575         comparing, improved the absolute section creation for ISRs,
9576         added FSR0L/FSR0H in registers that are saved in an ISR,
9577         * (genInline): fixed the processing of inline snippets,
9578         now they undergo no process by the peephole optimizer
9579         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9580         are placed in idataSymSet,
9581         * (pic16emitStaticSeg): extern symbols are added in externs,
9582         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9583         switching when aboslute variables are placed in access bank memory
9584         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9585         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9586         commented out with #if,
9587         * (pic16_packRegisters): reintroduce the check for CAST because some
9588         symbols are not correctly handled,
9589         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9590         pCodeInstruction instead of pCode,
9591         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9592         pCodeAsmDir definition,
9593         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9594         directive, then the argument directive is emitted without the leading
9595         tab, hack for inline labels which must be in the first column,
9596         * (compareLabel,pic16_findNextInstruction),
9597         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9598         * (insertBankSwitch): modified for the new pCodeAsmDir,
9599
9600 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9601         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9602
9603         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9604         instance,
9605         * (pushSide): commented out with #if,
9606         * (assignResultValue): fixed some typos in saving
9607         registers,
9608         * (genPcall): FIXED and sync'ed with genCall,
9609         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9610         * (genNearPointerGet): fixed to handle some more cases,
9611         implementation scheme via table reads,
9612         * (genConstPointerGet): modified to access code memory correct,
9613         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9614         and improved to handle some cases
9615         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9616         instead of "RETLW" for init data
9617         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9618         not IN_DIRSPACE, work around to reduce bank switching when aboslute
9619         variables are placed in access bank memory (<0x80 and >=0xf80),
9620         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9621         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9622         TBLWT_POSTDEC,TBLWT_PREINC
9623         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9624         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9625         directives
9626         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9627         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9628         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9629         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9630
9631 2004-02-29  Borut Razem <borut.razem AT siol.net>
9632
9633         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9634         support/Util/findme.h, support/Util/system.h: enhance binary relative
9635         search for lib and include by using findProgramPath()
9636
9637 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9638
9639         * src/SDCCpeeph.h,
9640         * src/SDCCpeeph.c (pcDistance),
9641         * src/port.h,
9642         * src/mcs51/ralloc.h,
9643         * src/mcs51/ralloc.c (mcs51_regWithIdx),
9644         * src/mcs51/main.h,
9645         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9646         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9647         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9648         size calculation port specific, started basis for some register
9649         optimizations
9650         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9651         missing push/pop of r0/r1. Optimized push/pops
9652         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9653         * device/lib/_modsint.c (_modsint),
9654         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9655         and stack version so regression tests pass
9656
9657 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9658
9659         * src/Makefile.in (dep): include SLIBOBJS in dependency check
9660         * src/SDCCast.c (decorateType): catch another small optimization
9661         with '?' operator
9662         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9663         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9664         modified to finally use computeType() all over SDCC,
9665         see Feature Request #877103
9666         * src/SDCCval.h: cosmetic
9667         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9668         valCompare(); regression tested in muldiv.c
9669         * support/regression/tests/muldiv.c (testMod): mod sign follows
9670         dividend only
9671
9672 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9673
9674         * src/SDCCast.c (decorateType): fixed bug #902362
9675         * doc/INSTALL.txt: fixed install instructions for win32
9676
9677 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9678
9679         * device/include/Makefile.in (install): fixed by replacing spaces
9680         by tabs
9681         * doc/README.txt,
9682         * doc/INSTALL.txt: updated for release
9683         * doc/sdccman.lyx: added warning for --xstack being buggy
9684
9685 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9686
9687         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
9688         to eliminate build warnings.
9689         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9690
9691 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9692            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9693
9694         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9695         removed -penable-stack, added comment for stack pragma, added
9696         warning for not initializing the stack/frame registers, removed
9697         comment at interrupts section
9698
9699         Stack is made permanent, there is no ability to disable stack usage.
9700         * src/pic16/device.h,
9701         * src/pic16/device.c: removed all references to USE_STACK macro,
9702         * src/pic16/device.c (pic16_dump_section): when no elements in
9703         rlist, free rlist before return,
9704         * (pic16_dump_int_registers): NEW, internal registers are a new set
9705         of general purpose registers reused by each function,
9706         * (checkAddReg): returns 1 if registers is added to set,
9707         * (pic16_groupRegistersInSection): when a registers is of type
9708         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9709         * src/pic16/device.h: memRange and Assigned Memory are deleted,
9710         SRCASECMP macro is moved here from device.c
9711         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9712         PO_PCLATU, PO_PRODL, PO_PRODH,
9713         * (pic16_pCodeOpType, genMinus,
9714         changed compares to "a" register, with AOP_ACC,
9715         * (pic16_genPlus): fixed some bugs and indented properly,
9716         * (pic16_addSign): changed size to size+offset in the MOVWF
9717         instruction,
9718         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9719         multiply 8-bit operand by literal, result is 8-bit,
9720         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9721         multiply 2 8-bit operand, result is 8-bit,
9722         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9723         genUMult8X*_16,
9724         * src/pic16/gen.c: changed accUse to contain WREG only,
9725         * (pic16_emitcomment): renamed to pic16_emitpcomment,
9726         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9727         true, do not use immediate addressing any more unless sym is a
9728         pointer in codespace,
9729         * (aopForRemat): do not use immediate addressing when symbol not in
9730         codespace and when symbol's address is requested,
9731         * (aopOp): for-loop in if(sym->accUse) is modified for the new
9732         accUse size (= 1),
9733         * (aopGet): added case for AOP_ACC and don't return "accumulator
9734         bug" but WREG instead,
9735         * (popGetTempReg): pushes contents of temporary register in stack,
9736         * (popReleaseTempReg): pops contents of temporary register from
9737         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9738         * (pic16_popGet): separated case AOP_ACC to return register WREG
9739         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9740         or PO_IMMEDIATE and initializes their instance/offset appropriately,
9741         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9742         the use of immediate pointers to certain cases only.
9743
9744         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9745         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9746         * (assignResultValue, genCall, genRet): modified to use the new
9747         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9748         genPcall is still broken,
9749         * (genFunction): added code to create 'A' type pBlocks when
9750         interrupt functions are generated, code not extensively tested yet,
9751         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9752         * (genEndFunction): modified so ISRs pop stored registers from stack,
9753         * (genMultOneByte): cleanup,
9754         * (AccRsh): added flag andmask, to and result with appropriate mask,
9755         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9756         * (genDataPointerGet): fixed and reenabled its use,
9757         * (genNearDataPointerGet): bugs fixed,
9758         * (genDataPointerSet): bugs fixed,
9759         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9760         pic16_DumpSymbol, pic16_DumpOp,
9761         * src/pic16/genutils.h: function prototypes for the above functions,
9762         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9763         pointers,
9764         * (pic16emitRegularMap): many many many improvements, but needs a
9765         major cleanup,
9766         * src/pic16/main.c: enable_stack in pic16_options is removed,
9767         * (_pic16_parseOptions): removed command line options -penable-stack,
9768         * (_process_pragma): emit stack symbol only when stack pragma is
9769         processed,
9770         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9771         redirected to FSR0L/FSR0H pair,
9772         * (pic16_get_op, pic16_get_op2): modifications and improvements,
9773         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9774         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9775         for immediates,
9776         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9777         * (dumpPicOptype): NEW,
9778         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9779         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9780         with movff instruction,
9781         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9782         added pic16_int_regs, some packRegsFor* functions are commented out,
9783         because produce errors,
9784         * src/pic16/NOTES: minor modifications
9785
9786 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9787
9788         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9789         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9790         --pack-iram.
9791         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9792         * as/mcs51/lkaomf51.c: fixed bug #895763
9793
9794 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9795
9796         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9797
9798 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9799
9800         * doc/sdccman.lyx: added details about the HC08 storage classes and
9801         interrupts, fixed the register usage info for z80 & gbz80
9802
9803 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9804
9805         * doc/sdccman.lyx: added more pic16 port documentation
9806         * device/include/pic16/: added header pic18fregs.h
9807
9808 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9809
9810         * doc/sdccman.lyx: added Vangelis' contribution
9811
9812 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9813
9814         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9815         extend to the next CALL or PCALL, not just to the next CALL.
9816
9817 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9818
9819         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9820
9821 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9822
9823         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9824         bug #895752 and a better fix for bug #716790
9825
9826 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9827
9828         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9829
9830 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9831
9832         * doc/sdccman.lyx: minor changes, minor changed
9833
9834 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9835
9836         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9837         which can't handle SDCC_NEWONEBYTEOPS,
9838         (geniCodeMultiply): removed conversion from mult to shift for pic14
9839         and pic16
9840
9841 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9842
9843         * src/hc08/gen.h,
9844         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
9845         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
9846         thus fixing bug #895406
9847
9848 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
9849
9850         * device/lib/_modsint.c,
9851         * device/lib/_modslong.c: sign follows divisor only
9852         * src/hc08/gen.c (genMultOneByte): if result size is 1,
9853         signs or signedness can be ignored
9854         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
9855         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
9856         added optimization for IFX,
9857         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
9858         arguments;
9859         reenabled optimization for IFX, which was removed on 2004-01-11
9860         * src/SDCCast.h: added return type IFX
9861         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
9862         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
9863         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
9864         SDCC_OLDONEBYTEOPS selects the old behaviour
9865         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
9866         changed again and commented promotion rule
9867         * src/SDCCval.c (valDiv): promotion no longer necessary
9868         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
9869         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
9870         rewritten
9871         * support/regression/tests/onebyte.c: added
9872
9873 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
9874
9875         * gen.c (genInline): reverted to old code for assemnling inline
9876         code because of bug reported James Chadd
9877
9878 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
9879
9880         * ralloc.h: missing declarations from previous patch,
9881         seems that patch for ralloc.h was never applied, fixed
9882
9883 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9884            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9885
9886         * pcode.c,
9887         * pcode.h,
9888         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
9889         indirect addressing. Marked FSR0 as deprecated
9890         * gen.c (pointerCode): commented out, not needed now
9891         (pic16_popGet2p): new MOVFF helper function
9892         (genGenPointerGet),
9893         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
9894         (shiftRLong): removed duplicate debugging info
9895
9896 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9897
9898         * src/ds390/gen.c (genNearPointerGet),
9899         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
9900         optimization with bits, but not bitfields.
9901         * src/ds390/ralloc.c (packRegisters),
9902         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
9903
9904 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9905
9906         * src/SDCCcse.c (algebraicOpts): copy operands before modification
9907
9908 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9909
9910         * src/SDCCsymt.h,
9911         * src/SDCCicode.c (operandFromSymbol),
9912         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
9913         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
9914         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
9915         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
9916         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
9917         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
9918         bug #892038
9919         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
9920         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
9921         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
9922         * src/SDCCsymt.c (newSymbol),
9923         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9924         enumerator_list),
9925         * src/SDCCval.h,
9926         * src/SDCCval.c (newiList): fixed bug #885705
9927
9928 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9929
9930         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
9931         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
9932
9933 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9934
9935         * device/include/c8051f120.h,
9936         * device/include/c8051f300.h,
9937         * device/include/c8051f310.h: added/updated header files for Silicon
9938         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9939         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
9940         in new section Submitting patches
9941
9942 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9943
9944         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
9945         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9946         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9947         genGenPointerSet),
9948         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
9949         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9950         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9951         genGenPointerSet),
9952         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
9953         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9954         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9955         genGenPointerSet),
9956         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
9957         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9958         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9959         genGenPointerSet): fixed bug #892400
9960         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
9961         to eliminate build warnings.
9962         * src/SDCCast.c (processParms),
9963         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
9964         fixed bug 751859
9965         * support/valdiag/valdiag.py: added GCC to the list of defines active
9966         when compiling with gcc
9967
9968 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9969
9970         * support/Util/SDCCerr.h,
9971         * support/Util/SDCCerr.c,
9972         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
9973         with an incomplete type (fixed bug #883734)
9974         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
9975
9976 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9977
9978         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
9979
9980 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9981
9982         * src/SDCCast.c (decorateType),
9983         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
9984         function pointer implementation
9985         * support/regression/tests/funptrs.c: added tests to verify both forms
9986         of function pointers work correctly. Added tests to verify parameters
9987         are passed in the correct order.
9988
9989 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
9990
9991         * device.c (regCompare): registers are sorted by ascending
9992         address and increasing size,
9993         * main.c (_pic16_finaliseOptions): removed the declaration
9994         of compiler macro MCU. Now a macro of the format pic18fxxxx
9995         will be defined from the command line
9996
9997 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9998             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9999
10000         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
10001         PCOP_RLCF was overwritten!
10002         * gen.c (genSkip): commented out calls to pic16_emitcode,
10003         * (genCmpEQ): fixed "long" compares, only high word did get compared,
10004         * (genlshTwo),
10005         * (genRRC): added debugging info,
10006         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
10007         overwritten while shifting,
10008         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
10009         overwritten while shifting,
10010         * (AccLsh),
10011         * (AccRsh),
10012         * (shiftLLeftOrResult),
10013         * (shiftRLeftOrResult),
10014         * (shiftRLong),
10015         * (shiftLLong): Implemented with pic16_emitpcode
10016         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
10017         * (genLeftShift): Fixed bug, operand for shift by variable always
10018         was "and"ed with 0x0f,
10019         * (genLeftShiftLiteral),
10020         * (genrshTwo),
10021         * (genRightShiftLiteral): added debugging info,
10022         * (genrshFour): added comment,
10023         * (genRightShift): determined signedness from operand "left"
10024         instead of "result"
10025
10026 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10027
10028         * src/SDCCicode.c (geniCodeParms),
10029         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
10030         function pointers, fixed function pointer bugs #861242 and #861896
10031
10032 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10033
10034         * device/include/c8051f000.h,
10035         * device/include/c8051f120.h,
10036         * device/include/c8051f300.h: added header files for Silicon
10037         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10038
10039 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
10040
10041         * src/SDCCast.c (processParams): added new type flow and restructured
10042         (gatherAutoInit): added new type flow
10043         (addCast): cosmetic changes
10044         (getLeftResultType): added new type flow for array indices, patch
10045         provided by Stas, see FR #877103
10046         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
10047         array index patch by Stas
10048         * src/SDCCast.h: added prototype getResultTypeFromType()
10049         * src/SDCCval.h,
10050         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
10051         * src/pic/glue.c (pic14emitStaticSeg),
10052         * src/pic16/glue.c (pic16emitStaticSeg),
10053         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
10054         for initialization of symbols
10055         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
10056         * support/Util/SDCCerr.h:
10057         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
10058         * .version: bumped version number to 2.3.8
10059         * device/include/Makefile.in (install),
10060         * doc/Makefile (install): changed to 'rm `find ...`' construct to
10061         avoid warnings
10062
10063 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
10064
10065         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
10066         Slade Rich fixed an optimization bug
10067         * src/pic/pcodepeep.c,
10068         * src/pic/pcoderegs.c
10069         * doc/Makefile (install): added test for directory
10070
10071 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10072
10073         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
10074         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
10075         * src/pic/ralloc.c (getRegPtr, getRegGpr),
10076         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
10077         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
10078         * as/mcs51/asexpr.c (term),
10079         * as/hc08/asexpr.c (term): fixed bug #887146
10080
10081 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10082
10083         * src/z80/gen.c (genMult): handle single byte result product
10084         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
10085         DUMMY_READ_VOLATILE (fixed bug #886367)
10086
10087 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10088
10089         * support/regression/tests/libmullong.c: fixed logic, on little endian
10090         hosts we ended without a mullong_wrapper()
10091
10092 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10093
10094         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
10095         virus/worm forged address usage.
10096
10097 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10098
10099         Fixed promotion, it should be done on AST level:
10100         * src/SDCCast.c (addCast): added promotion to int
10101         (decorateType): updated call to upCast()
10102         * src/SDCCicode.c (geniCodeLeftShift): removed call to
10103         usualUnaryConversions()
10104
10105 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
10106
10107         * support/regression/tests/literalop.c (mulWrapper): Added a
10108         wrapper to remove integer overflow warnings.
10109
10110         * support/regression/tests/float_trans.c: Made work on host.
10111
10112         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
10113         location of sz80.
10114
10115         * support/regression/generate-cases.py (main): Changed from inline
10116         to a main method.
10117
10118         * doc/Makefile (install): Changed to depth first to get rid of
10119         missing directory install warning.
10120
10121         * as/Makefile (install-doc): Made work on Mac.
10122
10123 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
10124
10125         * src/SDCCast.c: added an additional type flow in decorateType() of
10126         opposite direction, see feature request #860006; it's enabled at runtime
10127         by setting the environment variable SDCC_NEWTYPEFLOW
10128         * src/SDCCast.h: changed prototype of decorateType()
10129         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
10130         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
10131         'char' to 'int' can be omitted, if both operands are 'unsigned char';
10132         see feature request #877103
10133         * src/SDCCval.c: updated call of decorateType()
10134         (valBitwise): fixed bug #882876
10135         (valMinus): added promotion
10136         (valLogicAndOr): result is unsigned
10137         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
10138         * src/SDCCsymt.c (computeType),
10139         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
10140         must not cause an unsigned operation
10141         * src/pic/glue (pic14emitRegularMap),
10142         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
10143
10144 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
10145
10146         * src/pic/pcode.c (PCodeID): commented out left over debug code
10147
10148 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10149
10150         * support/valdiag/tests/overflow.c: added shift tests
10151         * src/pic/device.c,
10152         * src/pic/gen.c,
10153         * src/pic/gen.h,
10154         * src/pic/glue.c,
10155         * src/pic/main.c,
10156         * src/pic/pcode.c,
10157         * src/pic/pcode.h,
10158         * src/pic/pcodepeep.c,
10159         * src/pic/pcoderegs.c,
10160         * src/pic/ralloc.c,
10161         * src/pic/ralloc.h: applied patch from Slade Rich;
10162         added support for multiple code pages and multiple RAM banks on the
10163         PIC 14 port. The ASM files now no longer simply assume all the
10164         code / RAM are in the same page / bank. This means the linker can
10165         safely allocate code/RAM of separate ASM files to different pages/banks.
10166         * doc/sdccman.lyx: added Slade's tips
10167         * src/mcs51/peeph.def: fixed bug #880768
10168
10169 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10170
10171         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10172         * src/SDCCast.c (decorateType): fixed bug #880197
10173
10174 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10175
10176         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10177         getopt.h.
10178
10179         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10180         strtof is not part of C89 and isn't included with Mac OS X.
10181
10182 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10183
10184         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10185         shiftL2Left2Result): fixed bug #879326
10186         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10187         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10188         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10189         address fetch for clr instruction
10190         * device/lib/hc08/_mulint.c: created optimized assembly version
10191         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10192
10193 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10194
10195         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10196         proposed in FR #877103
10197
10198 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10199
10200         * src/SDCCval.c (cheapestVal): added missing checks
10201         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10202         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10203
10204 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10205
10206         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10207         equal operands
10208
10209 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10210
10211         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10212         loaded with the linker search paths (-L arguments) and the libraries
10213         to be linked with the current source (-l arguments). Changes
10214         currently will affect only the pic16 port.
10215         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10216         include path the port specific paths and port specific libraries,
10217         * gplink command now contains the $3 argument,
10218         * src/pic16/device.h,
10219         * src/pic16/device.c,: structure PIC_device is made public and
10220         renamed to PIC16_device, the same for variable Pics which is renamed
10221         to Pics16. Updated all references to them.
10222         * src/pic16/glue.c (pic16glue): corrected bug with code
10223         initialization which bypassed the variable initializations block.
10224
10225         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10226         COMPILE_FLAGS and added the --nostdinc option
10227
10228 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10229
10230         * device/include/mc68hc908jb8.h: Register defs for another member
10231         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10232
10233 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10234
10235         Documenting changes from previous commits.
10236         * configure.in (version 1.56),
10237         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10238         when generating output files to configure the pic16 library,
10239         but now I've commented it out, since gputils aren't installed in the
10240         SF compile farm, so library won't compile
10241
10242         * device/lib/Makefile.in (version 1.56): initially I've added in
10243         target 'all' the prerequestive 'model-pic16' so it compiled the
10244         pic16 library, but now I've commented it out for the same reasons
10245         above,
10246         * added targets 'model-pic16' and 'objects-pic16' to compile the
10247         library
10248         * added target 'port-specific-objects-pic16' to handle the
10249         generated libraries and copy them into the build/ directory
10250         * added target 'clean-intermediate-pic16' to clean intermediate
10251         files into pic16 directory
10252         * in target 'installdirs' added line to create directory pic16 in
10253         the installation path
10254
10255         * device/include/Makefile.in (version 1.11): in target 'install'
10256         added lines to copy all header files to installation path,
10257         * in target 'installdirs' added line create directory for pic16
10258         headers in the installation path
10259
10260 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10261
10262         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10263          a function call
10264
10265 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10266
10267         * configure,
10268         * device/lib/configure.in,
10269         * device/lib/configure: fixed for autoconf 2.57
10270
10271 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10272
10273         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10274         option so that it actually works. Made it specific to the z80, since
10275         the gbz80 doesn't have these kinds of I/O ports.
10276
10277 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10278
10279         * device/include/z180.h,
10280         * device/lib/_memcpy.c,
10281         * device/lib/_memmove.c,
10282         * device/lib/_mulint.c,
10283         * device/lib/ser_ir.c,
10284         * device/lib/ser_ir_cts_rts.c,
10285         * device/lib/_strcmp.c,
10286         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10287         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10288         portmode; added deprecation warning for bank= and protmode= forms.
10289         Also, guard against buffer overflow.
10290         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10291
10292 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10293
10294         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10295         changed interrupt vector table generation to only emit declared vectors.
10296         * device/include/Makefile.in: added missing backslash
10297         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10298
10299 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10300
10301         Mainly changes to support compilation of the device libraries
10302         * src/pic16/device.c: stack is allocated via symbol and not
10303         via literal number. The symbol is placed in the corresponding
10304         position of the data ram
10305         * (pic16_dump_section): relocatable and absolute uninitialized
10306         data are now emitted in sorted order to reduce section naming,
10307         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10308         weren't marked as being in the access bank,
10309
10310 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10311
10312         Added portion of GNU PIC Library under the directory
10313         device/include/pic16 and device/lib/pic16. These files
10314         contain the declarations of SFRs for the PIC18Fxx2 devices.
10315         The directory is initialized via configure from toplevel.
10316
10317 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10318
10319         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10320         the spilllocations to be compared correctly
10321
10322 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10323
10324         * src/SDCCast.c (decorateType): fixed bug introduced today
10325
10326 2004-01-12  Borut Razem <borut.razem AT siol.net>
10327
10328         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10329         doc/sdccman.lyx: upper case pragmas are deprecated
10330
10331 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10332
10333         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10334         in simpler and even better code
10335
10336 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10337
10338         * src/SDCCicode.c (operandOperation): fixed bug #874819
10339         * src/SDCCast.c (decorateType): fixed
10340         char foo (unsigned long ul) { return ul > 0; }
10341
10342 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10343
10344         * doc/sdccman.lyx: Moved and added some sections, small changes
10345         all over. Telling LaTeX to be less strict with word spacing
10346         to better keep the right margin. Changed some notes about
10347         maintainance of the ports in section 3.2.1 - is it OK like this?
10348
10349 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10350
10351         SDCC source changes:
10352         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10353         convilong): modified to inform the pic16 port that builtin functions
10354         are external
10355
10356         PIC16 PORT specific changes:
10357         * src/pic16/device.c pic16_dump_equates() added,
10358         processor registers declared internally by the port are emitted in
10359         the translation as equates,
10360         * src/pic16/gen.c: inline code is passed unprocessed to the
10361         translation,
10362         * (pic16_popGetLit2): fnuction modified to take second operand as
10363         pCodeOp pointer and not as literal,
10364         * (popRegFromIdx): prefixed with pic16_,
10365         * (pic16_popCombine2): modified to receive already allocated pCode
10366         operands,
10367         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10368         * (genFunction): initializes local stack frame and pushes on stack
10369         all the registers used by this function,
10370         * (genEndFunction): restores all registers from stack and restores
10371         stack frame,
10372         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10373         improvements,
10374         * (pic16glue): changed the program startup sequence,
10375         * added new dbName code 'A' for functions placed in absolute section
10376         * src/pic16/main.c: added function attribute _naked,
10377         * added pragma 'code' to place a fnuction at an absolute address,
10378         * added command line arguments --debug-ralloc and --pcode-verbose,
10379         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10380         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10381         * (pic16_newpCodeOpLit2): modified to take the second operand as
10382         pCodeOp pointer,
10383         * (pic16_printpBlock): modified to emit each function in a separate
10384         section,
10385         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10386         UPPER for immediate operands,
10387         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10388         instruction,
10389         * src/pic16/peeph.def: all peepholes with movff are commented out,
10390         because there is a problem in the pcode peep optimizer,
10391         * src/pic16/ralloc.c: the register allocator can now reuse local
10392         function symbols for another function. This saves register usage.
10393         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10394
10395         Added file src/pic16/NOTES with information about program writing on
10396         the current port version.
10397
10398 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10399
10400         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10401         and peephole 252 (array access)
10402
10403 2004-01-09  Borut Razem <borut.razem AT siol.net>
10404
10405         * src/SDCCmain.c : fixed #872250: -l command line defined library
10406           files are scanned before standard library files
10407
10408 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10409
10410         * src/SDCCast.c (decorateType): fixed bug #874046
10411
10412 2004-01-09  Borut Razem <borut.razem AT siol.net>
10413
10414         * support/scripts/sdcc.nsi: remove previous installation
10415
10416 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10417
10418         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10419         bytes for last interrupt vector (mcs51)
10420         * sdcc.spec: fixed typo
10421
10422 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10423
10424         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10425         gen51Code): more efficient parameter receive for --model-large
10426         ("bug" #845294)
10427
10428 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10429
10430         * src/ds390/main.c,
10431         * src/z80/main.c: added missed needLinkerScript flags (more than
10432         one port structure defined in these file)
10433         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10434         bug #795325
10435
10436 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10437
10438         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10439         * src/port.h: added flag needLinkerScript in port->linker
10440         structure to inform whether to create a .lnk file or not,
10441         * src/avr/main.c,
10442         * src/ds390/main.c,
10443         * src/hc08/main.c,
10444         * src/mcs51/main.c,
10445         * src/pic/main.c,
10446         * src/pic16/main.c,
10447         * src/xa51/main.c,
10448         * src/z80/main.c: changed appropriately to configure
10449         needLinkerScript flag
10450         * src/pic/gen.c,
10451         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10452         * src/pic/glue.c: added variable udata_section_name to
10453         override default uninitialized data segment definition for
10454         devices only with SHAREBANK memory (reported from Erik Epetrich)
10455         * (pic14emitOverlay): modified to emit a commented overlay segment
10456         directive when no overlay data exist
10457         * (picglue): modified to emit uninitialized data segment
10458         according to udata_section_name
10459         * src/pic/main.c (_pic14_parseOptions): added command line
10460         options --udata-section-name=[name] to override default
10461         udata definition name
10462         * modified _linkCmd and _asmCmd to include compiler passed
10463         arguments via -W option
10464         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10465         object file from '.rel' to '.o' in port->linker structure,
10466         changed size of fptr from 2 to 3 in port structure
10467
10468 2004-01-07  Borut Razem <borut.razem AT siol.net>
10469
10470         * support/scripts/sdcc.nsi: update PATH
10471         * support/scripts/sdcc.ico: craeted
10472
10473 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10474
10475         * device/include/Makefile.in: fix install
10476         * doc/Makefile: fix install
10477
10478 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10479
10480         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10481         in bug #860505
10482         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10483         how the function variable allocation summary is displayed; also
10484         include information about variables allocated to the overlay
10485         segment
10486
10487 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10488
10489         * as/mcs51/lkmain.c: Help about -Y option
10490         * as/mcs51/lkarea.c: Fixed gcc warnings
10491
10492 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10493
10494         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10495         fixed warning
10496         * support/valdiag/tests/overflow.c: added
10497         * src/SDCCast.c (decorateType),
10498         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10499         LEFT_OP (left shift)
10500
10501 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10502
10503         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10504         (default behaviour).
10505
10506 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10507
10508         A python script to validate compiler diagnostic messages. It can be
10509         used to verify that sdcc complains about bad c source code and
10510         gives a good location of the error.
10511         * support/valdiag/Makefile,
10512         * support/valdiag/valdiag.py,
10513         * support/valdiag/tests/*
10514
10515 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10516
10517         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10518         * src/SDCCsymt.c (newEnumType),
10519         * src/SDCCsymt.h
10520         * support/Util/SDCCerr.c,
10521         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10522         enum related bugs.
10523         * support/regression/tests/enum.c: added test for enum values that
10524         require at least 2 bytes of storage.
10525
10526 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10527
10528         * src/common.h: added ifndef/define/endif macros
10529         around the header file.
10530         Bug reported from Jesus Calvino-Fraga
10531
10532 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10533
10534         * sdcc.spec: updated
10535         * device/include/Makefile.in: don't install CVS directories
10536         * device/lib/Makefile.in: added removal of CVS directories after install
10537         * doc/Makefile: fixed install, added local_icons
10538         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10539         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10540         * src/ds390/gen.c (genRightShift): fixed bug #870788
10541         * src/SDCCast.c (decorateType): fixed bug #870781
10542
10543 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10544
10545         PIC16 port related changes:
10546         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10547         added variable stackPos,
10548
10549         * gen.c: genCall, assignResultValue: added support for
10550         pushing/retrieving function parameters to/from stack,
10551         genFunction,genEndFunction: setup stack frame for the
10552         generated function,
10553         genAddrOf: will be changed according to bug 863624
10554
10555         * added files genutils.c and genutils.h which contain gen*
10556         debugged and optimised functions extracted from gen.c
10557
10558         * glue.c: added variable 'externs' which holds extern symbols,
10559         pic16emitRegularMap: is modified to properly handle relocatable
10560          symbols under the new scheme,
10561         pic16createInterruptVect: is modified
10562         pic16printPublics: is modified to emit 'global' assembler directives,
10563         added pic16_printExterns to print extern symbols,
10564         pic16glue: initializes stack/frame pointer in the beginning of
10565         the assembly output. Temporary hack, will be corrected later,
10566         because gplink yet does not support stack and SDCC does not
10567         yet support a type of crt0.o object to create the final binary.
10568
10569         * Removed many lines that contain 8051 legacy code.
10570         * The code is finally placed under a 'code' directive.
10571         * Added port specific options.
10572
10573         * _process_pragma: simplified since now we do not need *special*
10574         include file to define SFR registers. But a separate header
10575         will be needed. This will be developed later.
10576         * _pic16_parseOptions: added, parses port specific options:
10577         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10578         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10579         --preplace-udata-with=
10580
10581         * _pic16_setDefaultOptions: modified to initialize section names,
10582         but hack is temporarly out of order since it needs improvement.
10583         * _pic16_genAssemblerPreamble: configuration words are emitted by
10584         their address instead of their name. This part is incomplete and
10585         supports only the 18Fxx2 devices. Other devices will emit an error
10586         during assembly since they do not contain the same set of config
10587         registers
10588         * _pic16_genIVT: is modified,
10589
10590         * pcode.c: added definitions for some hardware registers that are needed
10591         for stack support
10592         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10593         All PCI entries are updated. Now LFSR is supported.
10594         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10595         * added pic16_newpCodeOpLit2 to support instructions with
10596         two literal arguments
10597         * pic16_pCode2str: corrected code that emits assembler instructions
10598         with two literal operands and those that have an access bit modifier
10599         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10600         this fixes a bug which caused some labels to be lost, when an
10601         assembler directive was added, i.e. banksel,
10602         * pic16_FixRegisterBanking: improved logic that causes the insertion
10603         of bank switching,
10604         * InlineFunction: functions that are called once, are not any more
10605         inlined. This can be a port option in the future,
10606
10607         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10608
10609         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10610         hold the corresponding uninitialized symbols,
10611         * pic16_allocProcessorRegister: registers have explicit marked the
10612         accessBank field,
10613         * pic16_allocInternalRegister: registers are explicit marked as
10614         not used,
10615         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10616         processing list, so bit registers were lost,
10617         *
10618
10619         * ralloc.h: added field 'accessBank' and original symbol operand
10620         in register definition,
10621         * removed the field isMapped from register definition,
10622
10623         ** Several functions have been removed from various sources:
10624         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10625         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10626         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10627         pic16_assignRelocatableRegisters
10628
10629         ** others have been introduced:
10630         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10631         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10632
10633 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10634
10635         * support/scripts/inc2h.pl: changed definition of BIT_AT
10636         to emit 'sbit at' instead of 'bit at'. This was a request.
10637
10638         PIC16 port related preliminary changes:
10639         * gen.c: prefixed function popRegFromString with
10640         pic16_ and all references to it corrected
10641         * pcode.c: all pic16_pc_* hardware registers prefixed
10642         with underscore (_),
10643         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10644         * ralloc.c: newReg(): when register is REG_SFR then
10645         set address to rIdx,
10646         pic16_allocProcessorRegister(): marks register wasUsed=0
10647         pic16_writeUsedRegs(): added a call to assign processor
10648         registers via pic16_assignFixedRegisters
10649
10650 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10651
10652         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10653         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10654         variables in unused register banks.  Also the SSEG is placed
10655         wherever there is enough space for it, and IDATA can be anywhere
10656         in internal RAM.  For now compile using -Wl-Y[stack_size].
10657         The mem file is different for this option as well, since it
10658         makes no sense of talking about DSEG lenght.
10659
10660 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10661
10662         * src/SDCClrange.c: fixed bug 869095 that caused segfault
10663         in certain cases, e.g. when ROM assignment, patch provided
10664         from Albert den Haan.
10665
10666 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10667
10668         Many signedness and type propagation fixes:
10669         * src/SDCCicode.c: made geniCodeCast() static
10670         replaced SPEC_ by IS_ (cosmetic)
10671         (operandOperation): fixed div and mod operation
10672         (usualBinaryConversions): added support for promotion of char
10673         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10674         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10675         (geniCodeAdd): an array index will stay unsigned, even if promoted
10676         from char to int
10677         (geniCodeArray): ditto
10678         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10679         * src/SDCCsymt.c (computeType): added more support for char;
10680         promotion of char is selectable by promoteCharToInt, fixed signedness
10681         for all cases
10682         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10683         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10684         * src/SDCCval (val*): replaced signedness calculation by
10685         computeType()
10686         rearranged if-branches (cosmetic)
10687         (valShift): added warning W_SHIFT_CHANGED
10688         (valCompare): fixed problem with different types
10689         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10690         * support/regression/tests/literalop.c: added many cases
10691         * support/regression/tests/ast_constant_folding.c: changed finally to
10692         'unsigned int'
10693         * .version: new year, new version: 2.3.7
10694         * src/SDCCmain.c (main): applied patch #866468
10695         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10696         provided by Scott Bronson
10697         * doc/sdccman.lyx: updated documentation for sdcdb
10698         updated and added chapter tips
10699
10700 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10701
10702         * src/SDCCsymt.h: missing from yesterday's commits
10703
10704 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10705
10706         * src/SDCC.y (struct_or_union_specifier),
10707         * support/Util/SDCCerr.c,
10708         * support/Util/SDCCerr.h: verify that struct & union tags are used
10709         as declared.
10710
10711 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10712
10713         * src/SDCCglobl.h: missing from yesterday's commits
10714
10715 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10716
10717         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10718         sft_attributes, struct_declaration, parameter_declaration,
10719         type_name, start_block, declaration_list),
10720         * src/SDCC.lex (check_type): support redefinition of typedef names
10721
10722 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10723
10724         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10725         aligned xdata arrays. Erik helped me with the if clause.
10726
10727 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10728
10729         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10730         warning
10731
10732 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10733
10734         * src/SDCCast.h,
10735         * src/SDCCast.c (newAst_),
10736         * src/SDCCicode.h,
10737         * src/SDCCicode.c (ast2iCode, newiCode),
10738         * src/SDCCglobl.h,
10739         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10740         expr, statement, expression_statement, selection_statement,
10741         iteration_statement, expr_opt, jump_statement): foundation for tracking
10742         sequence points
10743         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10744         point code too)
10745
10746 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10747
10748         * support/Util/SDCCerr.c,
10749         * src/SDCCast.h,
10750         * src/SDCCast.c (createCase, createDefault, decorateType),
10751         * src/SDCClabel.c (labelUnreach),
10752         * src/SDCC.y (labeled_statement, jump_statement): More improvements
10753         to error messages.
10754         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10755         (with thanks to Stas Sergeev)
10756         * device/include/time.h,
10757         * device/lib/time.c (CheckTime): suppress unreachable code warning
10758
10759 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10760
10761         * src/SDCCast.c (createIvalCharPtr),
10762         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10763         bug #753752)
10764         * support/regression/tests/nullstring.c: tests for these two bugs
10765
10766 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10767
10768         * support/Util/SDCCerr.h,
10769         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10770         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10771         about storage class and 'at' used inside struct or union
10772         * src/SDCCBBlock.c (iCodeFromeBBlock),
10773         * src/SDCCcse.c (ifxOptimize),
10774         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10775         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10776         printIval, emitStaticSeg, emitOverlay),
10777         * src/SDCClabel.c (deleteIfx),
10778         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10779         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10780         gatherAutoInit, processParms),
10781         * support/Util/SDCCerr.h,
10782         * support/Util/SDCCerr.c (werrorfl): Support for better error location
10783         reporting for post-parse errors.
10784
10785 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10786
10787         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10788         implicit casts via union; they don't work on big endian systems
10789         (possible fix for bug #861138)
10790
10791 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10792
10793         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10794         * src/mcs51/main.c: fixed the fix for bug #737001
10795
10796 2003-12-15  Borut Razem <borut.razem AT siol.net>
10797
10798         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10799
10800 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10801
10802         * support/makebin/makebin.c: put output in binary mode
10803
10804 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10805
10806         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10807         xdata and data memory on startup. Set the environment variable
10808         SDCC_NOGENRAMCLEAR to disable this.
10809         * src/mcs51/peephole.def,
10810         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10811         (allows non-interrupt and interrupt code to safely compete for a resource
10812         without the non-interrupt code having to disable interrupts)
10813
10814 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10815
10816         * src/SDCCicode.c (geniCodeAdd),
10817         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10818         with valFromType if type might be a pointer and host is big endian).
10819         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10820         types, not just integer types.
10821         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10822         multiply defined with mismatching "at" address.
10823
10824 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10825
10826         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10827         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10828         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10829         with embedded nulls (fixed bug #753752)
10830
10831 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10832
10833         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10834         Apparently this did not see much testing (endless loop)
10835
10836 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10837
10838         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10839
10840 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10841
10842         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
10843         gracefully handle NULL memmap pointers
10844
10845 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10846
10847         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
10848         instead of deleting the iCode when an operand is volatile
10849         * src/z80/gen.c (genDummyRead),
10850         * src/mcs51/gen.c (genDummyRead),
10851         * src/ds390/gen.c (genDummyRead),
10852         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
10853         not just IC_RIGHT
10854         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
10855         * src/SDCC.y: fixed bug #850420
10856
10857 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10858
10859         Applied z80 i/o port patch from Peter Townson and fixed some operators
10860         to better handle operands in A register.
10861         * device/include/z180.h
10862         * src/SDCC.y
10863         * src/SDCCglue.c
10864         * src/z80/gen.c
10865         * src/z80/gen.h
10866         * src/z80/main.c
10867         * src/z80/peeph-z80.def
10868         * src/z80/peeph.def
10869         * src/z80/z80.h
10870
10871 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10872
10873         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
10874
10875 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10876
10877         * device/lib/hc08/_mullong.c: Removed extra #endif
10878
10879 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10880
10881         * sim/ucsim/hc08.src/inst.cc,
10882         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
10883         carries from x to h
10884         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
10885         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
10886         * device/include/stdarg.h: fixed varargs for hc08
10887         * device/lib/Makefile.in,
10888         * device/lib/hc08/Makefile,
10889         * device/lib/hc08/_mulint.c,
10890         * device/lib/hc08/_mullong.c: fixed some endian problems
10891
10892 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10893
10894         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
10895         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
10896         * device/lib/_gptrget.c,
10897         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
10898
10899 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10900
10901         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
10902         * src/SDCCast.c (astErrors): fixed bug #846007
10903         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
10904
10905 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10906
10907         * src/SDCCast.c (decorateType): disabled a transformation I added in
10908         revision 1.188 (access to fields of a structure at an absolute address);
10909         it breaks with bitfields, extern declarations, and gcse analysis.
10910         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
10911         could be assigned through a pointer, so don't complain.
10912         * src/SDCCast.c (astErrors),
10913         * src/SDCCast.h,
10914         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
10915
10916 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
10917
10918         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
10919         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
10920         output of __config directives, since gpasm now supports them
10921         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
10922         pre-processor macro, i.e. -DMCU=p18f452
10923         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
10924         and modified to handle 'cast' icode similarly to '=' icode
10925         * src/pic16/device.h (typedef struct PIC_device): added field
10926         'extMIface' to indicate that chip has external memory interface
10927         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
10928         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
10929         18F8720
10930
10931 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10932
10933         * src/SDCC.y (pointer): fixed bug #846006
10934         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
10935         * src/SDCCast.c (decorateType): fixed bug #846009
10936         * src/ds390/peeph.def,
10937         * src/ds390/gen.c (genAnd, genOr),
10938         * src/mcs51/peeph.def,
10939         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
10940
10941 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10942
10943         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
10944         * src/SDCCdflow.c
10945         * src/SDCCcse.c
10946         * src/SDCCcse.h
10947         * src/SDCCBBlock.h
10948         * src/SDCCBBlock.c
10949
10950 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
10951
10952         fixed bug #845089
10953         * src/SDCCbitv.h,
10954         * src/SDCCbitv.c: added function to free a bitvector
10955         * src/SDCClrange.h,
10956         * src/SDCClrange.c: added function to recompute the liveranges
10957         * src/avr/ralloc.c,
10958         * src/ds390/ralloc.c,
10959         * src/hc08/ralloc.c,
10960         * src/mcs51/ralloc.c,
10961         * src/pic/ralloc.c,
10962         * src/pic16/ralloc.c,
10963         * src/xa51/ralloc.c,
10964         * src/z80/ralloc.c: recompute the liveranges after register packing
10965
10966 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
10967
10968         * src/SDCCloop.c (newInduction): fixed bug #845630
10969
10970 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10971
10972         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
10973         inadvertantly left behind from my 2003-11-12 change
10974
10975 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10976
10977         Updated headers I neglected to commit yesterday.
10978         * src/SDCClrange.h,
10979         * src/SDCCicode.h
10980
10981 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10982
10983         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
10984         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
10985         * src/SDCCopt.c (eBBlockFromiCode),
10986         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
10987         the creation of the key hash table from the sequencing so it can be used
10988         earlier (for some GCSE bug fixes still pending)
10989
10990 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10991
10992         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
10993         * support/regression/tests/addsub.c: testing genPlus shortcut
10994
10995 2003-11-15  Borut Razem <borut.razem AT siol.net>
10996
10997         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
10998
10999 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11000
11001         * src/SDCCcse.c (cseBBlock): fixed bug #527779
11002         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
11003         ordering is immaterial.
11004         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
11005
11006 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11007
11008         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
11009         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
11010         (SIGSEV) of bug #840381
11011         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
11012         unlink new file before rename if new and old filenames are the same)
11013
11014 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11015
11016         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
11017         uninitialized variables) for the mcs51. Set environment variable
11018         SDCC_GENRAMCLEAR to test.
11019         xdata initialization slightly shorter
11020
11021 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11022
11023         * src/SDCCsymt.h,
11024         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
11025         #838241 & 780691 (basicly the same bug)
11026         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
11027         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
11028
11029 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
11030
11031         * src/SDCCmain.c (linkEdit): "fix" #834252
11032
11033 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11034
11035         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
11036         * src/SDCCast.h,
11037         * src/SDCC.y: fixed bug #819403
11038
11039 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11040
11041         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
11042         the reentrant attribute.
11043         * src/hc08/gen.c (genPackBits): added missing stack readjustment
11044         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
11045         simulation
11046         * src/SDCCast.c (decorateType): fixed bug with storage class not being
11047         updated during pointer dereference; f.e. ~(((char *)1)*) was being
11048         erroneously reduced to a literal.
11049         * src/hc08/ralloc.c (packRegisters, rematStr),
11050         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
11051         some cases
11052
11053 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11054
11055         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
11056         * doc/sdccman.lyx: changed from 'article' to 'book'
11057         * doc/Makefile: readded test_suite_spec and cdbfileformat
11058
11059 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
11060
11061         * device/include/stdlib.h: include malloc.h to comply with ANSI
11062         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
11063
11064 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11065
11066         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
11067         * doc/clean.mk: also remove *.out files
11068         * doc/sdccman.lyx: some additions, larger top/bottom margins
11069
11070 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11071
11072         * src/SDCC.y: fixed bug #837365
11073         * support/regression/tests/bitopcse.c
11074         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
11075         a symbol (might be valop instead)
11076         * device/lib/Makefile.in: added errno.c to HC08SOURCES
11077         * device/lib/clean.mk: added hc08 to the cleaning list
11078
11079 2003-11-04  Borut Razem <borut.razem AT siol.net>
11080
11081         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
11082           made 2003-11-04
11083         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11084           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
11085           malloc is declared in standard stdlib.h
11086
11087 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11088
11089         * device/lib/hc08/Makefile: need to clean .rel not .o files
11090         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
11091
11092 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11093
11094         * src/port.h,
11095         * src/hc08/main.c,
11096         * src/mcs51/main.c,
11097         * src/ds390/main.c,
11098         * src/z80/main.c,
11099         * src/avr/main.c,
11100         * src/pic/main.c,
11101         * src/pic16/main.c,
11102         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
11103         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
11104         tests (which uses the port's oclsExpense function)
11105         * src/SDCC.y,
11106         * src/SDCCast.c,
11107         * src/SDCCicode.c,
11108         * src/hc08/gen.c,
11109         * src/ds390/gen.c,
11110         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
11111
11112 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11113
11114         * src/SDCCcse.c (ifxOptimize),
11115         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
11116         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
11117         deleting the IFX iCode.
11118         * src/hc08/ralloc.c: reduced unneeded slocs
11119         * src/hc08/gen.c: fixed bug in asmopToBoolean
11120
11121 2003-11-04  Borut Razem <borut.razem AT siol.net>
11122
11123         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
11124           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11125           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
11126           transferred to configure
11127
11128 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
11129
11130         Use headers defined in the C[++] standards:
11131         * sim/ucsim/gui.src/serio.src/fileio.cc
11132         * sim/ucsim/gui.src/serio.src/frontend.cc
11133         * sim/ucsim/gui.src/serio.src/main.cc
11134         * sim/ucsim/gui.src/serio.src/posix_signal.cc
11135         * support/Util/NewAlloc.c
11136         * as/hc08/lklibr.c
11137         * as/mcs51/lklibr.c
11138         * as/z80/aslist.c
11139         * as/z80/assym.c
11140
11141 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11142
11143         * Added MSVC projects for hc08 assembler and linker:
11144         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
11145         /as/hc08/link_hc08.dsp
11146
11147 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
11148
11149         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11150
11151 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11152
11153         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11154
11155 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11156
11157         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11158
11159 2003-10-31  Borut Razem <borut.razem AT siol.net>
11160
11161         * support/cpp2/cpplib.h,
11162           support/cpp2/cpplib.c,
11163           support/cpp2/cpplex.c,
11164           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11165           to switch _asm block preprocessing on / off. Default is
11166           #pragma preproc_asm +
11167
11168 2003-10-31  Borut Razem <borut.razem AT siol.net>
11169
11170         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11171           when outputting comment blocks (when executed with -C option) and
11172           _asm (SDCPP specific) blocks
11173
11174 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11175
11176         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11177
11178 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11179
11180         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11181
11182 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11183
11184         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11185         * src/SDCCast.c (decorateType): fixed bug #832664
11186
11187 2003-10-31  Borut Razem <borut.razem AT siol.net>
11188
11189         * support/cpp2/cpplex.c: fixed for SDCPP:
11190           comments(when executed with -C option) and _asm blocks
11191           were included even if they where in skipped #if block.
11192           Applied solution from GCC cpp 3.3.2
11193
11194 2003-10-31  Borut Razem <borut.razem AT siol.net>
11195
11196         * src/SDCC.lex: sdcc now understands both formats:
11197           '# <line_number> <file_name>' and
11198           '#line <line_number> <file_name>'
11199         * support/cpp2/cppmain.c: sdcpp now generates the standard
11200           '# <line_number> <file_name>' instead of former
11201           '#line <line_number> <file_name>'
11202
11203 2003-10-30  Borut Razem <borut.razem AT siol.net>
11204
11205         * support/cpp2/cpphash.h,
11206         * support/cpp2/cpplib.h
11207         * support/cpp2/cpplex.c,
11208         * support/cpp2/cppmain.c,
11209         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11210
11211 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11212
11213         Fixed a number of problems revealed by bug #827883.
11214         * src/SDCCloop.c (loopInvariants): Spill location of the
11215         result operand should be recomputed if extracted from
11216         a loop. Also, don't extract assignments of an iTemp
11217         from a literal.
11218         * src/SDCCast.c (isConformingBody): loop reversal should
11219         not occur if the control variable is involved with a
11220         relational operator.
11221
11222 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11223
11224         * .version: bumped to 2.3.6 to reflect the big improvements
11225         made by Erik and Klaus. Thanks!
11226
11227 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11228
11229         Replaced the livrange code.
11230         * src/SDCClrange.c: added new LR code
11231         * src/SDCCloop.c,
11232         * src/SDCCBBlock.h: removed remainig parts from old LR code
11233         * src/ds390/ralloc.c,
11234         * src/ds390/gen.c: minor fixes to make it work with new code
11235
11236 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11237
11238         * as/hc08/asm.h,
11239         * as/hc08/lkrloc.c,
11240         * src/hc08/gen.c,
11241         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11242         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11243         (tweaked fix for bug #818696)
11244
11245 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11246
11247         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11248
11249 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11250
11251         * src/SDCCmain.c,
11252         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11253         * src/mcs51/gen.c (gencjneshort),
11254         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11255         more efficient (per Scott Bronson's suggestion)
11256
11257 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11258
11259         Extended the semantics of the critical keyword to include
11260         individual statements. See RFE #827755 and #799831
11261         * src/SDCC.y
11262         * src/SDCCicode.c
11263         * src/SDCCopt.c
11264         * src/SDCCast.c
11265         * support/Util/SDCCerr.c
11266         * support/Util/SDCCerr.h
11267         * src/mcs51/gen.c
11268         * src/ds390/gen.c
11269         * src/hc08/gen.c
11270
11271 2003-10-19  Borut Razem <borut.razem AT siol.net>
11272
11273         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11274
11275 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11276
11277         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11278         Fixed bug #818696
11279         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11280         and predecrement operand is displayed
11281
11282 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11283
11284         * src/SDCCval.c (valMinus): fixed bug #826041
11285
11286 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11287
11288         Some hc08 related updates that I missed earlier
11289         * sim/ucsim/stypes.h
11290         * support/regression/ports/hc08/spec.mk
11291
11292 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11293
11294         New target "hc08" for the Motorola 68hc08 family of micros
11295
11296         * configure
11297         * configure.in
11298         * Makefile
11299         * src/hc08/*
11300         * src/SDCCmain.c
11301         * src/port.h
11302         * sim/ucsim/hc08.src/*
11303         * sim/ucsim/configure.in
11304         * src/ucsim/configure
11305         * sim/ucsim/packages_in.mk
11306         * as/hc08/*
11307         * as/Makefile
11308         * device/include/mc68hc908qy.h
11309         * device/lib/hc08/*
11310         * device/lib/Makefile.in
11311         * support/regression/ports/hc08/*
11312         * support/regression/Makefile
11313
11314 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11315
11316         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11317         regression test
11318         * src/ds390/gen.c (genCast): fixed bug #821957
11319
11320 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11321
11322         * device/lib/logf.c: "fixed" overlay bug
11323         * support/regression/ports/host/spec.mk: added m library
11324         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11325         * support/regression/tests/float_trans: added (for Eric)
11326
11327 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11328
11329         * src/mcs51/gen.c (genCpl): fixed bug
11330         http://sf.net/mailarchive/message.php?msg_id=6263915
11331
11332 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11333
11334         * src/SDCCast.c (decorateType): added extended constant folding
11335         * src/SDCCsymt.c (computeType): cleanup
11336         * src/SDCCval.c (valShift): minor optimization
11337         * support/regression/tests/ast_constant_folding.c: added
11338
11339 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11340
11341         * src/SDCCmain.c: removed some unintended changes
11342
11343 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11344
11345         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11346         * src/z80/gen.c: fixed part of bug #817589
11347         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11348
11349 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11350
11351         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11352         * src/SDCCcflow.c
11353         * src/SDCCcse.c
11354         * src/SDCCdflow.c
11355         * src/SDCClabel.c
11356         * src/SDCClrange.c
11357         * src/SDCCmem.c
11358         * src/SDCCopt.c
11359         * src/SDCCpeeph.c
11360         * src/SDCCset.c
11361         * src/avr/ralloc.c
11362         * src/ds390/ralloc.c
11363         * src/izt/ralloc.c
11364         * src/mcs51/ralloc.c
11365         * src/pic/ralloc.c
11366         * src/pic16/ralloc.c
11367         * src/xa51/ralloc.c
11368         * src/z80/ralloc.c
11369         * src/z80/gen.c: removed unused label "release:"
11370
11371 2003-10-06  Borut Razem <borut.razem AT siol.net>
11372
11373         * src/SDCC.lex: removed definition of unused variables
11374           save_optimize and save_options
11375
11376 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11377
11378         * clean.mk: removed '=' in "-maxdepth=1"
11379         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11380         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11381
11382 2003-10-06  Borut Razem <borut.razem AT siol.net>
11383
11384         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11385           my_unput() replaced by unput()
11386
11387 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11388
11389         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11390         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11391         type-punned pointer will break strict-aliasing rules"
11392         Old LR behaviour is again default; Klaus' LR can be choosen by
11393         defining the environment variable LRKLAUS
11394         * src/SDCCBBlock.h
11395         * src/SDCCloop.c
11396         * src/SDCClrange.c
11397         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11398         * clean.mk: fixed removal of files in bin/CVS/
11399         * device/lib/clean.mk: fixed removal of directories small and large
11400         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11401         * src/SDCCicode.c,
11402         * src/SDCCval.c: removed superflous test for pedantic
11403
11404 2003-10-05  Borut Razem <borut.razem AT siol.net>
11405
11406         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11407           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11408           message "unmatched #pragma SAVE and #pragma RESTORE"
11409
11410 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11411
11412         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11413           assembly, critical functions, atomic, nojtbound)
11414
11415 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11416
11417         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11418         * src/SDCCBBlock.h
11419         * src/SDCCloop.c
11420         * src/SDCCloop.h
11421         * src/SDCClrange.c
11422
11423 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11424
11425         * src/z80/gen.h,
11426         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11427         * src/mcs51/gen.h
11428         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11429         * src/ds390/gen.h
11430         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11431         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11432         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11433
11434 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11435
11436         * src/z80/gen.c (genRet): fixed bug #524753
11437         * src/z80/gen.c (genCast): fixed internal error on cast from
11438         pointer to long
11439         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11440         fix for bug #477835 to the z80
11441         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11442         for tracking iCodes in the peephole optimizer for z80
11443
11444 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11445
11446         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11447         the other part of bug #814548
11448         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11449
11450 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11451
11452         * src/SDCCcse.c: fixed part of bug #814548
11453
11454 2003-09-28  Borut Razem <borut.razem AT siol.net>
11455
11456         * src/asm.c: rewrite of printILine() to use temporary file instead
11457           a pipe
11458         * src/xa51/main.c: commented out declaration of int rewinds
11459
11460 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11461
11462         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11463
11464 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11465
11466         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11467         * src/asm.c (printILine): Fixed bug #811015
11468
11469 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11470
11471         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11472         freeing.
11473
11474 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11475
11476         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11477         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11478         to correctly handle general case of AOP_PAIRPTR
11479         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11480
11481 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11482
11483         * src/mcs51/ralloc.c (fillGaps),
11484         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11485         register positioning bug)
11486
11487 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11488
11489         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11490
11491 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11492
11493         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11494         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11495         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11496         (ralloc doesn't intentionally do this now, but perhaps later)
11497         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11498         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11499         register positioning bugs (Fixed bug #762602 and #795325)
11500         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11501         (Fixed bug #808779)
11502         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11503         lines that --i-code-in-asm generates
11504
11505 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11506
11507         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11508         trying to fclose a FILE* that was already closed.
11509
11510 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11511
11512         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11513         of const struct should be treated as if const themselves)
11514
11515 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11516
11517         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11518
11519 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11520
11521         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11522         Unix (/n) and DOS (/r/n) line terminations.
11523
11524 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11525
11526         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11527         bug #613775
11528
11529 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11530
11531         * src/mcs51/gen.c (genFunction, genEndFunction),
11532         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11533         and restore of EA so that stack offsets to parameters are
11534         correct when using both critical and reentrant/stack-auto.
11535         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11536         size (can be triggered in error if sloc is shared between
11537         different sized objects)
11538         * device/include/float.h: fixed macros to explicitly use
11539         unsigned long where needed
11540
11541 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11542
11543         Feature req. 799831: added code to allow nesting of critical functions
11544         * src/mcs51/gen.c (genFunction, genEndFunction)
11545         * src/ds390/gen.c (genFunction, genEndFunction)
11546
11547 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11548
11549         * src/SDCCsymt.c (sclsFromPtr),
11550         * src/SDCCsymt.h,
11551         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11552         support for standard C idiom of memory mapped variables; for
11553         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11554         to xdata int at 0x1234 tempvar = 1.
11555         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11556         provided by Akiya ISHIDA
11557
11558 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11559
11560         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11561         * src/SDCCval.c (constVal): added reduction from int to char
11562         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11563         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11564         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11565         to ignore the sign
11566         * support/regression/tests/shifts.c: fixed
11567
11568 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11569
11570         * src/z80/gen.c (genXor): Fixed bug #805445
11571
11572 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11573
11574         Fixed bug #621531 (const & volatile confusion in the type chain).
11575         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11576         refer to the const or volatile state of the pointer itself.
11577
11578         * src/SDCCast.c
11579         * src/SDCCglue.c
11580         * src/SDCCicode.c
11581         * src/SDCCsymt.c
11582         * src/SDCCval.c
11583         * src/SDCC.y
11584         * src/SDCCsymt.h
11585         * src/pic/gen.c
11586         * src/pic/ralloc.c
11587         * src/pic16/gen.c
11588         * src/pic16/ralloc.c
11589         * support/regression/tests/const.c
11590
11591 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11592
11593         When checking for duplicated modules, use absolute paths
11594         instead of relative paths.  Files changed:
11595
11596         * as/mcs51/lklib.c
11597         * link/z80/lklib.c
11598
11599 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11600
11601         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11602
11603 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11604
11605         * device/include/string.h: added size_t typedef, changed
11606         prototypes to use size_t, eliminated separate reentrant and
11607         non-reentrant declarations, added _memmove declaration
11608         * device/lib/_memcpy.c: changed to use size_t instead of int,
11609         changed /4 to >>2 to avoid division library call
11610         * device/lib/_memcmp.c,
11611         * device/lib/_memset.c,
11612         * device/lib/_strncat.c,
11613         * device/lib/_strncpy.c,
11614         * device/lib/_strncmp.c: changed to use size_t instead of int
11615         * device/lib/_memmove.c: new file (fixed bug #772294)
11616         * device/lib/Makefile.in: added _memmove.c
11617         * device/lib/z80/asm_strings.s: fixed bug #772290
11618         * support/regression/tests/bitfields.c: attempt to fix host assertion
11619         failure on amd64-unknown-linux2.2
11620
11621 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11622
11623         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11624         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11625         * as/z80/asmain.c (main): fixed bug #801766
11626
11627 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
11628
11629         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11630         compilers
11631
11632 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11633
11634         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11635         reported in bug #800609
11636
11637 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
11638
11639         * Top header beautifications in src/pic16 directory:
11640           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11641           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11642           pcoderegs.h, ralloc.c, ralloc.h
11643         * main.c: added top header and GPL license notice
11644         * pcode.c: fixed the if-conditional warning
11645
11646 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
11647
11648         * device/lib/_mullong.c: replaced int by short for gcc
11649
11650 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11651
11652         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11653         and JUMPTABLE iCodes properly now (worked by accident before)
11654         * src/mcs51/gen.c (leftRightUseAcc),
11655         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11656         iCode properly now. Use getSize instead of nRegs since a & b
11657         aren't part of the nRegs tally.
11658
11659 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
11660
11661         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11662         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11663           before instructions that use the _STATUS register
11664
11665 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
11666
11667         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11668         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11669         fetching of the pointer
11670         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11671         copied from genNearPointerSet()
11672         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11673         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11674         If they pop r0/r1 they must be called in the opposite order than aopOp().
11675         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11676         (resp. --stack-auto), prepared for --xstack
11677
11678 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11679
11680         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11681
11682 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11683
11684         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11685         these ports have their own __sdcc_external_start()
11686
11687 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
11688
11689         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11690         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11691         type for bits was changed. It resulted in bit variables becoming
11692         global, which is not permitted in PIC 14 assembly output.
11693
11694 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11695
11696         * doc/sdccman.lyx: various additions and updates. Rearranged sections
11697
11698 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11699
11700         Z80 and MCS51 linkers complaint if a public symbol is defined
11701         in more than one library module:
11702
11703         * as/mcs51/lklib.c
11704         * link/z80/lklib.c
11705         * as/mcs51/Makefile.in
11706
11707 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11708
11709         A few small changes that speed up the peephole optimizer.
11710
11711         * src/SDCCpeeph.c
11712
11713 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11714
11715         Try to make the peephole optimizer smarter by maintaining
11716         an association between the assembly source code and the
11717         iCodes that originated them. Put this information to use
11718         with a new peephole rule condition "notVolatile" so that
11719         the rules can be aggressive yet still safe.
11720
11721         * src/SDCCpeeph.c
11722         * src/SDCCpeeph.h
11723         * src/mcs51/gen.c
11724         * src/mcs51/peeph.def
11725
11726 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11727
11728         Fixed bug #741761
11729
11730         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11731         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11732         if the left or right operand symbols have the accuse flag set.
11733
11734 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11735
11736         Changed the type of the result of the ! (NOT) operator to char;
11737         previously it returned the same type as the source. This allows
11738         us to eliminate all the genFloatNot functions (all of its target
11739         implementations were very buggy) since !float can use the same
11740         code as !long now.
11741
11742         * src/SDCCicode.c (ast2iCode): ! returns char
11743         * src/mcs51/gen.c (genNot, genNotFloat),
11744         * src/ds390/gen.c (genNot, genNotFloat),
11745         * src/z80/gen.c (genNot, genNotFloat),
11746         * src/pic/gen.c (genNot, genNotFloat),
11747         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11748
11749 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
11750
11751         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11752         1. Interrupt would not compile properly. Ensure PCLATH register is saved
11753            during interrupts. Ensure WSAVE is located at a shared bank address.
11754         2. Fixed page selection in some places
11755         3. Fixed BTFSS/C to where necessary use registers directly and not simply
11756            the registers name strings.
11757         4. Fixed "signed / unsigned compare" compiler warnings.
11758         5. The PIC port manages its own allocation of the general purpose
11759            registers, but makes no attempt to reuse them. As a result when
11760            compiling it soon runs out of general purpose registers. Some
11761            additional code was added to the files pcode.c and device.c to walk
11762            through the function call tree and rename the registers so that they
11763            get reused.
11764
11765         * src/pic/device.c
11766         * src/pic/gen.c
11767         * src/pic/glue.c
11768         * src/pic/pcode.c
11769         * src/pic/pcode.h
11770         * src/pic/ralloc.c
11771         * src/pic/ralloc.h
11772         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11773         genPlus() & genMinus() when the result is the same as left or right
11774
11775 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11776
11777         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11778
11779 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11780
11781         Made bitfield a distinct type from bit so that bitfields
11782         convert as per ANSI C and bits retain their traditional
11783         boolean style behaviour. Implemented bitfield support in
11784         the z80 port.
11785
11786         * src/SDCCsymt.h,
11787         * src/SDCCsymt.c,
11788         * src/SDCCast.c,
11789         * src/cdbFile.c,
11790         * src/mcs51/gen.c,
11791         * src/ds390/gen.c: bit v bitfield split
11792         * src/z80/gen.c: New support for bitfields
11793         * support/regression/tests/bitfields.c: reenabled z80,
11794         added more tests
11795
11796 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11797
11798         Rules 246.x, 247.x relate to bitfields, the others speed up
11799         access to xdata mapped I/O devices.
11800
11801         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11802
11803 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11804
11805         Cleaned up genPackBits and genUnpackBits and added two helper
11806         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11807         for literal assignments in genPackBits (thanks to Frieder for
11808         reminding me).
11809
11810         * src/mcs51/gen.c
11811         * src/ds390/gen.c
11812
11813 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11814
11815         Fixed bug #748310 (pointer to function type mishandled when the
11816         function name is omitted). Also fixed a SIGSEGV when a function
11817         attribute (reentrant, etc) is used on a non-function or on a
11818         function but misplaced before the parameter list.
11819
11820         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11821         bug #748310
11822         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11823         * support/Util/SDCCerr.h,
11824         * support/Util/SDCCerr.c: Added func attr misuse error msg
11825
11826 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11827
11828         Fixed bug #787649 by anonymous
11829         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11830         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11831
11832 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11833
11834         Fixed numerous bitfield problems.
11835
11836         * src/SDCC.y: More bitfield related error checking
11837         * src/SDCCsymt.h,
11838         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11839         * support/Util/SDCCerr.h,
11840         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
11841         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11842         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11843         * support/regression/tests/bitfields.c: tests added
11844
11845 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11846
11847         Made the constant following the "interrupt" keyword optional. If
11848         omitted, the function will not automatically be given an entry
11849         in the interrupt vector table (similar to #pragma NOIV, but
11850         less syntacticly kludgy). The interrupt number is also now
11851         range checked. Also fixed a bug in the high order bit example
11852         in the manual.
11853
11854         * src/SDCC.y
11855         * src/SDCCmem.c
11856         * src/SDCCglue.c
11857         * src/SDCCsymt.h
11858         * support/Util/SDCCerr.c
11859         * support/Util/SDCCerr.h
11860         * doc/sdccman.lyx
11861
11862 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11863
11864         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
11865         * src/SDCCicode.c (operandOperation): rewritten some ops
11866         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
11867         * src/SDCCsymt.c (computeType): literals are handled the same way as any
11868         other type
11869         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
11870         be re-activated by defining REDUCE_LITERALS)
11871         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
11872         unsigned, but are signed by default
11873         * src/SDCCval.c (constVal): rearranged
11874         * src/SDCCval.c (valMod): preliminary fix
11875         * src/SDCCval.c (valCastLiteral): use TYPE_* types
11876         * support/regression/literalop.c: added, work in progress
11877
11878 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11879
11880         Generate warnings for useless declarations like "char data;"
11881         that don't do what new users expect.
11882
11883         * src/SDCC.y
11884         * support/Util/SDCCerr.h
11885         * support/Util/SDCCerr.c
11886
11887 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
11888
11889         * src/SDCCval.c (valMult): fix overflow detection of negative int
11890
11891 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11892
11893         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
11894
11895         Changes to support big endian targets:
11896
11897         * src/ports.h
11898         * src/SDCCglue.c
11899         * src/avr/main.c
11900         * src/ds390/main.c
11901         * src/izt/i186.c
11902         * src/mcs51/main.c
11903         * src/pic/main.c
11904         * src/pic16/main.c
11905         * src/xa51/main.c
11906         * src/z80/main.c
11907
11908 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
11909
11910         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
11911         * device/lib/time.c: fixed warning "integer overflow in expression"
11912
11913 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
11914
11915         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
11916         * src/SDCCval.c (constVal): changed default to signed; hex and octal
11917         constants are unsigned; added recognition of "u" flag for unsigned
11918         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
11919         * src/SDCCval.c (valDiv, valMod): fixed signdness
11920         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
11921         signedness of modulo, left and right shift
11922         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
11923         * support/Util/SDCCerr.h: added warning W_INT_OVL
11924         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
11925         * src/SDCCast.c (ast_print): improved output of constants
11926
11927 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11928
11929         Fixed some warnings when building with MSVC:
11930
11931         * as/mcs51/asdata.c
11932         * as/z80/asdata.c
11933         * as/mcs51/asm.h
11934         * as/z80/asm.h
11935         * link/z80/aslink.h
11936         * link/z80/lkdata.c
11937         * link/z80/lkeval.c
11938         * link/z80/lkgb.c
11939         * link/z80/lkihx.c
11940         * link/z80/lks19.c
11941         * link/z80/lksym.c
11942         * support/cpp2/cpplib.c
11943         * src/ds390/gen.c
11944         * src/mcs51/gen.c
11945
11946 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
11947
11948         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
11949
11950 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11951
11952         * support/librarian/clean.mk: Do not remove Makefile.
11953         * support/librarian/Makefile: added.
11954
11955 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11956
11957         Added librarian to MSVC build:
11958         * all.dsp
11959         * sdcc.dsw
11960         * support/librarian/librarian.dsp
11961
11962         'configure' not needed for librarian, removed:
11963         * support/librarian/configure
11964         * support/librarian/configure.in
11965         * support/librarian/config_in.h
11966         * support/librarian/Makefile.in
11967
11968         Hopefully these ones built the librarian and the rest of sdcc properly:
11969         * Makefile
11970         * Makefile.common.in
11971
11972         Messed up 'configure', so revert to previous version:
11973         * configure
11974         * configure.in
11975
11976 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
11977
11978         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
11979         there, while the mantissa of a double is "only" 53 bits wide.
11980
11981 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11982
11983         Adding sdcclib to the build.  MSVC project coming soon.
11984         Files added/changed:
11985
11986         * support/librarian/clean.mk
11987         * support/librarian/configure
11988         * support/librarian/configure.in
11989         * support/librarian/config_in.h
11990         * support/librarian/Makefile.bcc
11991         * support/librarian/Makefile.in
11992         * support/librarian/sdcclib.c
11993         * Makefile.bcc
11994         * Makefile
11995         * Makefile.common.in
11996         * configure
11997         * configure.in
11998
11999 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12000
12001         Linker now complaints if linked modules have conflicting options, for
12002         example, one compiled using --model-large and another one compiled with
12003         --model-small.  The following files were modified:
12004
12005         * as/mcs51/asdata.c
12006         * as/mcs51/aslink.h
12007         * as/mcs51/asm.h
12008         * as/mcs51/asmain.c
12009         * as/mcs51/asout.c
12010         * as/mcs51/i51pst.c
12011         * as/mcs51/lkdata.c
12012         * as/mcs51/lklibr.c
12013         * as/mcs51/lkmain.c
12014         * as/z80/asdata.c
12015         * as/z80/asm.h
12016         * as/z80/asmain.c
12017         * as/z80/asout.c
12018         * as/z80/z80pst.c
12019         * link/z80/aslink.h
12020         * link/z80/lkdata.c
12021         * link/z80/lklibr.c
12022         * link/z80/lkmain.c
12023         * src/SDCCglue.c
12024
12025 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12026
12027         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
12028         as/mcs51/lklibr.c: Generate a warning when a library is not found.
12029
12030 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
12031
12032         * src/z80/mappings.i: fix _mul[us][int,long] entries
12033
12034 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12035
12036         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
12037
12038 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12039
12040         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
12041         * support/regression/tests/bitopcse.c: added
12042         fixed warning:
12043         * src/avr/gen.c:
12044         * src/pic/gen.c:
12045         * src/pic16/gen.c:
12046         * src/z80/gen.c:
12047         * src/xa51/gen.c:
12048
12049 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12050
12051         added support for new library format to z80, gbz80 linkers:
12052         *link/z80/aslink.h
12053         *link/z80/lklex.c
12054         *link/z80/lklib.c
12055         *link/z80/lklist.c
12056
12057 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12058
12059         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
12060         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
12061
12062 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
12063
12064         added DUMMY_READ_VOLATILE:
12065         * src/SDCC.y:
12066         * src/avr/gen.c:
12067         * src/xa51/gen.c:
12068         * src/z80/gen.c:
12069         * src/pic/gen.c:
12070         * src/pic16/gen.c:
12071         * src/mcs51/gen.c:
12072         * src/ds390/gen.c:
12073         * src/SDCCcse.c (algebraicOpts): many improvements
12074         * src/SDCCcse.h: removed algebraicOpts()
12075         * src/SDCCicode.c (picDummyRead): added
12076
12077 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12078
12079         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
12080         "Insufficient space in data memory".
12081
12082 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12083
12084         * src/mcs51/gen.c: fixed bug #771358
12085         * src/z80/gen.c: fixed bug #759087
12086
12087 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
12088
12089         * src/pic16/glue.c: minor cleanup by Vangelis
12090
12091 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12092
12093         * device/include/regc515c.h: fixed #758477
12094         * device/lib/_gptrget.c: saving some cycles in generic pointer get
12095         * device/lib/_gptrput.c: saved a few bytes
12096         * my tab spacing is 8, yours too?)
12097         * device/lib/_ser.c: process RX bytes earlier than TX bytes
12098         * device/lib/serial.c: process RX bytes earlier than TX bytes
12099         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
12100
12101 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12102
12103         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
12104
12105 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12106
12107     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
12108
12109 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
12110
12111         * device/lib/Makefile.in: bad fix, reverted to 1.43
12112
12113 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
12114
12115         * device/lib/Makefile.in: added missing z80 object files
12116
12117 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
12118
12119         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
12120         pic16 progress by Vangelis:
12121         * src/SDCCglobl.h:
12122         * src/SDCCmain.c:
12123         * src/pic/Makefile:
12124         * src/pic:
12125         * pic/Makefile:
12126         * pic16/device.c:
12127         * pic16/device.h:
12128         * pic16/gen.c:
12129         * pic16/gen.h:
12130         * pic16/genarith.c:
12131         * pic16/glue.c:
12132         * pic16/main.c:
12133         * pic16/pcode.c:
12134         * pic16/pcode.h:
12135         * pic16/pcodepeep.c:
12136         * pic16/peeph.def:
12137
12138 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12139
12140     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
12141
12142 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12143
12144     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
12145     added gbz80 build to MSVC project.
12146     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
12147     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
12148     from 8051 stuff and setup so it links using a .lnk file.
12149
12150 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12151
12152     * support/librarian/sdcclib.c: sdcc librarian.
12153     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12154     with sdcclib.
12155
12156 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12157
12158     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12159
12160 2003-07-02  Borut Razem <borut.razem AT siol.net>
12161
12162         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12163         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12164         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12165         src/xa51/main.c, src/z80/main.c:
12166         virtualization of glue() function: each port has it's own glue function,
12167         which is accessed by do_glue function pointer in PORT.general structure
12168
12169 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12170
12171         * DS800C400 fun, improved ROM interface and tinibios.
12172
12173 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12174
12175         * More support for DS80C400. Now includes beginning of interface to ROM.
12176
12177 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12178
12179         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12180
12181 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12182
12183         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12184
12185 2003-06-19  Borut Razem <borut.razem AT siol.net>
12186
12187         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12188
12189 2003-06-19  Borut Razem <borut.razem AT siol.net>
12190
12191         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12192         fixed Z80 port - crt0.o: cannot open.
12193
12194 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12195
12196         * support/Util/MySystem.c (merge_command): revert bad fix
12197
12198 2003-06-18  Borut Razem <borut.razem AT siol.net>
12199
12200         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12201
12202 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12203
12204         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12205         option --use-stdout sends errors to stdout instead of stderr.
12206
12207 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12208
12209         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12210
12211 2003-06-15  Borut Razem <borut.razem AT siol.net>
12212
12213         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12214         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12215         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12216         fixed width array of pointers replaced with sets;
12217         multiple include and lib paths ared transferred to preprocessor and linker
12218         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12219         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12220         fixed width array of pointers
12221         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12222         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12223         fixupPath(), getPathDifference()
12224         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12225         fixed width array of pointers
12226
12227 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12228
12229         * src/pic16/ralloc.c: fix warnings
12230         * src/pic16/pcode.c: fix warning
12231
12232 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12233
12234          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12235         know all the details, but essentially this set of changes enable
12236         the pic16 port to generate movff instructions and generate assembler
12237         directives,
12238         * src/SDCCmain.c:
12239         * src/pic16/gen.c:
12240         * src/pic16/glue.c:
12241         * src/pic16/pcode.c:
12242         * src/pic16/device.c:
12243         * src/pic16/main.c:
12244         * src/pic16/pcode.h:
12245         * src/pic16/pcoderegs.c:
12246         * src/pic16/ralloc.c:
12247         * src/pic16/ralloc.h:
12248
12249 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12250
12251         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12252         added option --vc, so sdcc errors and warnings are compatible with
12253         Microsoft Visual Studio.
12254
12255 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12256
12257         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12258           device/lib/libfloat.lib: added atof function.
12259
12260 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12261
12262         * doc/sdccman.lyx: updated to Lyx 1.3
12263         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12264         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12265         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12266
12267 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12268
12269         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12270
12271 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12272
12273         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12274           additions to the "related tools/documentation" section
12275
12276 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12277
12278         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12279
12280 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12281
12282         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12283         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12284
12285 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12286
12287         * doc/sdccman.lyx: fix double dash and other minor things
12288         * doc/Makefile: fix double dash
12289
12290 2003-05-28  Karl Bongers(patches from Martin Helmling)
12291         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12292           condition and ignore commands.
12293
12294 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12295
12296         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12297           is in parts still quite out of date, I did changes as far as I felt makes sense
12298           for a non-native english speaker.
12299           Please feel free to add to the manual or to correct my changes.
12300         * doc/Makefile: undid touching the date of intermediate tex files.
12301
12302 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12303
12304         * doc/sdccman.lyx: Manual has an index now
12305
12306 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12307
12308         Finalize muluint/mulsint and mululong/mulslong merging:
12309         * device/lib/_mulint.c
12310         * device/lib/_mullong.c
12311         * device/lib/gbz80/mul.s
12312         * device/lib/gbz80/stubs.s
12313         * device/lib/z80/mul.s
12314         * device/lib/z80/stubs.s
12315         * src/SDCCsymt.c (initCSupport)
12316
12317 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12318
12319         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12320         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12321           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12322           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12323           instead of /Zm500.
12324
12325 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12326
12327         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12328           the regression tests I'm not brave enough to enable 245.b, 245.c
12329         * doc/sdccman.lyx: added latex preamble for hyperref package.
12330           Using pdflatex this will give you a hyperlinked pdf file with
12331           bookmarks. (prepend '%' before /usepackage if this breaks something)
12332
12333 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12334
12335          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12336
12337 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12338
12339         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12340
12341 2003-05-21    <johan AT balder>
12342
12343         * src/SDCCglue.c (printIval): fixed bug #739934
12344
12345 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12346
12347         Applied patch from bug 737905 (renamed yylineo to mylineno):
12348         * src/altlex.c
12349         * src/SDCCast.c
12350         * src/SDCglobl.h
12351         * src/SDCC.lex
12352         * src/SDCCsymt.c
12353         * src/SDCCval.c
12354         * src/pic16/pcode.c: Cleaned warnings
12355         * src/pic16/pcodeflow.c: Cleaned warnings
12356         * src/pic16/pcoderegs.c: Cleaned warnings
12357
12358 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12359
12360         * src/pic16/pcode.c: Cleaned warnings
12361         * src/pic16/pcodepeep.c: Cleaned warnings
12362         * src/pic16/ralloc.c: Cleaned warnings
12363
12364 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12365
12366         * doc/sdccman.lyx: fixed bug 739745
12367         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12368
12369 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12370
12371         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12372         it can be defined with CFLAGS when running configure
12373         * src/SDCCmain.c: fixed compiling + linking with object files
12374
12375 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12376
12377         * configure.in: configure for pic16 port,
12378             added --disable-pic16-port
12379         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12380         * src/SDCCmain.c: linkOptions is changed to set *,
12381             added if/endif conditional macros to remove options help
12382             messages from optionsTable when a port is not configured, added
12383             support for the PIc16 port in the ports table, when executing
12384             the compiler with no port specified on command line, a default
12385             port is selected with the new macro DEFAULT_PORT which is
12386             defined in port.h, in setDefaultOptions() linkOptions is removed
12387             from initialization assignment, since now it is a set,
12388             parseCmdLine uses setParseWithComma for linkOptions, in
12389             linkEdit() linkOptions are accessed with new function indexSet()
12390             which returns the i'th item of a set variable. See SDCCset.c, in
12391             linkEdit() when calling buildCmdLine(), added linkOptions as
12392             last argument. Now users can pass arguments to gplink via the
12393             -Wl option, main() uses pic16glue() to glue up pic16 programs
12394         * src/SDCCpeeph.c: various changes to support pic16
12395         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12396             return the i'th item of the set
12397         * src/SDCCset.h: added function prototype for indexSet()
12398         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12399         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12400         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12401             added macro DEFAULT_PORT
12402         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12403         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12404             generated
12405         * src/pic16/glue.c: commented out some error producing lines
12406         * src/pic16/main.c: __config directives are commented out to stop
12407             gpasm complaining and test the linkage with gplink, _linkCmd and
12408             _asmCmd changed to be more gplink and gpasm friendly
12409         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12410             produced an error when parsed, peep rule 12 is added to utilize
12411             movff, but it is commented out since the pCode does not support
12412             yet a command with 2 address arguments
12413
12414 2003-05-18    <johan AT balder>
12415
12416         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12417         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12418 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12419
12420         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12421   Added feature to script commands from file.
12422
12423 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12424
12425         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12426         * src/SDCCutil.c: include ctype.h for win32
12427
12428 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12429
12430         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12431
12432 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12433
12434         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12435   Fixed so you can set breakpoints prior to run, run does not stop
12436   on entry now.  Add tbreak.  Other enhancements and fixes for use
12437   with ddd.
12438
12439 2003-05-12  Borut Razem <borut.razem AT siol.net>
12440
12441         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12442
12443 2003-05-11  Borut Razem <borut.razem AT siol.net>
12444
12445         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12446         the path of bin directory, so that PATH is the only env. variable, which has to be set
12447         in case of standard installation.
12448         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12449         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12450         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12451
12452 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12453
12454         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12455         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12456         temp files are in the port dir; clean the gen/test directory when
12457         generating new test.c
12458         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12459         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12460         * support/regression/tests/zeropad.c: added
12461
12462 2003-05-09    <johan AT balder>
12463
12464         * src/SDCCglue.c: fixed bug #597940
12465
12466 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12467
12468         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12469   cache sfr, optimize next,step, fix off by one sourceline,
12470   support ddd list function.
12471         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12472
12473 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12474
12475         * support/regression/HTMLgen.py: added compare_s2f()
12476         * support/regression/Makefile: redo 1.27
12477         * support/regression/generate-cases.py: redo 1.5
12478
12479 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12480
12481         * support/regression/tests/float.c: workaround 33 bit hex constant
12482         * support/regression/tests/simplefloat.c: fix division for host
12483
12484 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12485
12486         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12487         that tame's the PIC's over-aggressive optimizer.
12488
12489 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12490
12491          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12492          support for MSVC.
12493
12494 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12495
12496         Initial support for DS80C400. "Hello world" runs on TINIm400
12497         (with polled I/O).
12498
12499 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12500
12501          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12502          * Some notes on ddd usage added in debugger/README
12503          Martin Helmling adding more features and fixes for ddd GUI debugger.
12504          Code added for nexti, stepi, up, down, and other adjustments.
12505
12506 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12507
12508         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12509         * src/pic/peeph.def Added two rules to optimize carry manipulation
12510         * src/pic/* removed debug printfs
12511
12512 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12513
12514         * debugger/mcs51/cmd.c: added header newalloc.h
12515
12516 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12517
12518         * as/Makefile: new EXEEXT
12519         * as/z80/Makefile: remove trailing slash of BUILDIR
12520         * as/z80/clean.mk: new EXEEXT
12521         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12522         * support/cpp2/Makefile.in: new EXEEXT
12523         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12524
12525 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12526
12527         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12528         EXEEXT was introduced to fix all related problems with targets
12529         "clean", "install" and "uninstall"; a couple of further flaws
12530         especially with "clean" have been fixed too
12531         * as/mcs51/Makefile.in
12532         * as/mcs51/clean.mk
12533         * as/z80/Makefile
12534         * Makefile
12535         * clean.mk
12536         * debugger/mcs51/Makefile.in
12537         * debugger/mcs51/clean.mk
12538         * link/z80/Makefile
12539         * link/z80/Makefile.in
12540         * link/z80/clean.mk
12541         * link/Makefile
12542         * packihx/Makefile.in
12543         * packihx/clean.mk
12544         * sim/ucsim/Makefile
12545         * sim/ucsim/clean.mk
12546         * sim/ucsim/avr.src/Makefile.in
12547         * sim/ucsim/avr.src/clean.mk
12548         * sim/ucsim/s51.src/Makefile.in
12549         * sim/ucsim/s51.src/clean.mk
12550         * sim/ucsim/xa.src/Makefile.in
12551         * sim/ucsim/xa.src/clean.mk
12552         * sim/ucsim/z80.src/Makefile.in
12553         * sim/ucsim/z80.src/clean.mk
12554         * sim/ucsim/main_in.mk
12555         * sim/ucsim/packages_in.mk
12556         * sim/ucsim/gui.src/Makefile.in
12557         * sim/ucsim/gui.src/serio.src/Makefile.in
12558         * sim/ucsim/gui.src/serio.src/clean.mk
12559         * src/Makefile.in
12560         * src/clean.mk
12561         * support/cpp2/Makefile.in
12562         * support/cpp2/clean.mk
12563         * support/makebin/Makefile
12564         * support/makebin/clean.mk
12565         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12566         * doc/sdccman.lyx: --program-suffix no longer needed
12567
12568 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12569
12570          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12571          Martin Helmling added support for ddd GUI debugger.
12572          Code added to display assembly, set variables, and other commands
12573          to interface to ddd.
12574
12575 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12576
12577         * as/Makefile: fix target clean
12578         * as/clean.mk: fix target clean
12579         * as/z80/clean.mk: fix target clean
12580
12581 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12582
12583         * Makefile.common.in: added  AT EXEEXT AT
12584         * configure.in: removed all mingw32 stuff
12585         * configure: rebuilt from configure.in
12586         * doc/sdccman.lyx: updated section "installation"
12587         * support/scripts/sdcc_mingw32: adapted to configure
12588         * support/scripts/sdcc_cygwin_mingw32: added
12589
12590 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12591
12592         * src/pic Added object file support for the PIC port
12593         * src/pic Applied patch from Craig Franklin (this started the object file support)
12594         * src/regression Updated the PIC regression tests for object files
12595
12596 2003-04-20  Borut Razem <borut.razem AT siol.net>
12597
12598         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12599           lklex.c: In function `getfid':
12600           lklex.c:203: warning: array subscript has type `char'
12601         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12602           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12603         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12604           stack handling macros
12605
12606 2003-04-19  Borut Razem <borut.razem AT siol.net>
12607
12608         * "handling space characters in file path" task:
12609         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12610         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12611         * support/Util/MySystem.h: make it self-sufficient
12612         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12613           src/z80/main.c, sdcc/as/mcs51/lklex.c:
12614           handling space characters in file path
12615         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12616           (it will be used by assemblers, which have their own includes, e.g. gpasm)
12617         * support/Util/MySystem.c: handling space characters in executable's path
12618
12619 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
12620
12621         * as/z80/Makefile: fix permanent rebuild of z80
12622         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12623         * support/regression/tests/bitfields.c: added Johan's bitfields.c
12624
12625 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
12626
12627         * src/SDCCopt.c: add special case optimization to replace modulo by
12628           a power of two with a bitwise AND.
12629
12630 2003-04-18    <johan AT balder>
12631
12632         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12633
12634 2003-04-17    <johan AT balder>
12635
12636         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12637         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12638
12639 2003-04-13  Borut Razem <borut.razem AT siol.net>
12640
12641         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12642         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12643           fixed mingw problem in adl_NORMALIZE_PATH
12644
12645 2003-04-12  Borut Razem <borut.razem AT siol.net>
12646
12647         * fixed "#pragma SAVE/RESTORE can not be nested":
12648         * src/SDCC.lex: reworked pragma handling functions
12649         * sdcc/src/SDCCglobl.h: reworked stack handling macros
12650         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12651
12652 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12653
12654         * src/SDCCutil.c (pathEquivalent): defined but not used
12655         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12656         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12657         * configure: rebuilt from configure.in
12658         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12659         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12660         * device/include/Makefile.in: replace sdcc_datadir
12661         * device/lib/Makefile.in: replace sdcc_datadir
12662         * Makefile.common.in: add LDFLAGS from configure
12663         * packihx/Makefile.in: use LDFLAGS
12664         * src/Makefile.in: use LDFLAGS
12665         * support/cpp2/Makefile.in: add LDFLAGS from configure
12666         * support/makebin/Makefile: use LDFLAGS
12667         * .version: bumped version number to 2.3.5
12668
12669 2003-04-12  Borut Razem <borut.razem AT siol.net>
12670
12671         * completed "different paths" task:
12672         * src/SDCCmacro.c: fixed bug in handling quotes
12673         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12674         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12675
12676 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12677
12678         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12679
12680 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12681
12682         * ds390/gen.c ds390/peeph.def: fix bug 706781
12683
12684 2003-04-11  Borut Razem <borut.razem AT siol.net>
12685
12686         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12687
12688 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
12689
12690         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12691         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12692          set - this bit used to not be set...).
12693         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12694           bad code in PIC Port
12695         * src/regression/and2.c added to test bug 609268
12696         * src/regression/Makefile added and2.c to regression test
12697
12698
12699 2003-04-08    <johan AT CP255758-A>
12700
12701         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12702         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12703         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12704
12705 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
12706
12707         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12708         fix bug #487815
12709         * support/cpp2/Makefile.in: fix bug #487815
12710         * configure: rebuilt from configure.in
12711         * Makefile.common.in: docdir changed, new path suffixes
12712         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12713         * sdcc_vc_in.h: reflect changes from sdccconf.h
12714         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12715         * src/SDCCutil.h: remove BINDIR hack
12716         * doc/sdccman.lyx: update new path hierarchy
12717
12718 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12719
12720         * src/SDCCpeeph.c: added okToRemoveSLOC test
12721
12722 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12723
12724         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12725
12726 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12727
12728         * src/SDCCpeeph.c: added labelIsReturnOnly test
12729         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12730
12731 2003-04-05    <johan AT balder>
12732
12733         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12734         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12735         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12736         * src/SDCCast.c: fixed a warning
12737         * src/SDCCast.h: fixed a warning
12738         * src/SDCCicode.c (operandFromAst): fixed a warning
12739
12740 2003-04-04    <johan AT balder>
12741
12742         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12743         * src/SDCCast.c (decorateType): fixed bug #715076
12744         * src/SDCC.y: fixed bug #702907
12745
12746 2003-04-03    <johan AT balder>
12747
12748         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12749         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12750         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12751         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12752         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12753
12754 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
12755
12756         * _decdptr.c: fix return values
12757         * _gptrget.c: fix return values
12758         * _gptrgetc.c: fix return values
12759         * _gptrput.c: fix return values
12760         * _mulint.c: fix return values
12761         * as/z80/Makefile: fix 'make -j' problem
12762
12763 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
12764
12765         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12766         * configure.in: big cleanup, updated to autoconf 2.5x
12767         * configure: rebuilt from configure.in
12768         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12769         * sdcc_vc_in.h: reflect changes from sdccconf.h
12770         * doc/Makefile: fixed a flaw in "make install"
12771
12772 2003-04-02    <johan AT balder>
12773
12774         * src/ds390/gen.c (genCmp): no comments
12775         * src/mcs51/gen.c (genCmp): no comments
12776         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12777         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12778
12779 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
12780
12781         * support/regression/generate-cases.py: place generated file in given sub directory
12782         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12783         * support/regression/Makefile: improvements for 'make -j';
12784         side effect: it's simpler and faster now
12785
12786 2003-03-31  Borut Razem <borut.razem AT siol.net>
12787
12788         * src/z80/main.c: link-{port} and as-{port} defined without path
12789         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12790
12791 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
12792
12793         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12794
12795 2003-03-30  Borut Razem <borut.razem AT siol.net>
12796
12797         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12798           changed type of list parameter to set
12799         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12800         * src/port.h: changed type of do_assemble() parameter to set
12801         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12802           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12803           definition of "cppoutfilename" macro with NULL value in preProcess()
12804         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12805         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12806         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12807           replaced with set *binPathSet
12808         * shash_add() deallocates the item, if allready exsists, before adding the new one
12809         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12810
12811 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
12812
12813         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12814           a nested for loop bug in the PIC port
12815         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12816           for loops
12817
12818 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
12819
12820         * support/Util/dbuf.h: remove C++ stuff to make it portable
12821
12822 2003-03-28  Borut Razem <borut.razem AT siol.net>
12823
12824         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12825           literal strings in stringLiteral()
12826         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12827         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12828           to the project
12829
12830 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
12831
12832         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12833
12834 2003-03-26    <johan AT balder>
12835
12836         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12837         * src/ds390/gen.c (saveRegisters): catched symbol abuse
12838         * src/SDCCast.c (decorateType): fixed " -v < 3"
12839
12840 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
12841
12842         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
12843         Added Lenny Story's debug infrastructure changes:
12844         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
12845         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
12846         * src/cdbFile.c: added
12847         * src/SDCCdebug.c: added
12848         * src/SDCCdebug.h: added
12849         * src/SDCCast.c (createFunction)
12850         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
12851         * src/SDCCmain.c (parseCmdLine, main)
12852         * src/SDCCmem.c (redoStackOffsets)
12853         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
12854         * src/SDCCsymt.h
12855         * src/common.h
12856         * src/avr/gen.c (genAVRCode)
12857         * src/ds390/gen.c (gen390Code)
12858         * src/mcs51/gen.c (gen51Code)
12859         * src/pic/gen.c (genpic14Code)
12860         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
12861         * src/xa51/gen.c (genXA51Code)
12862         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
12863
12864 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12865
12866         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
12867         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
12868
12869 2003-03-22    <johan AT balder>
12870
12871         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
12872
12873 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
12874
12875         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
12876         * doc/cdbfileformat.lyx: added, written by Lenny Story
12877         * doc/Makefile: added cdbfileformat.lyx
12878         * doc/clean.mk: added cdbfileformat.lyx
12879
12880 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
12881
12882         * src/mcs51/peeph.def: fix bug #705773
12883
12884 2003-03-20    <johan AT balder>
12885
12886         An sfr/sbit can have an "at #" AND an initializer
12887         * src/SDCCsymt.c (checkSClass):
12888         * src/SDCCmem.c (allocGlobal):
12889         * src/SDCCmem.c (allocLocal):
12890         * src/SDCCast.c (createBlock):
12891
12892 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
12893
12894         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
12895
12896 2003-03-16    <johan AT balder>
12897
12898         Undid the hackup of const and volatile, the problem is much bigger
12899         * src/SDCC.y:1.65
12900         * src/SDCCast.c:1.171
12901         * src/SDCCglue.c:1.138
12902         * src/SDCCicode.c:1.146
12903         * src/SDCCsymt.c:1.150
12904         * src/SDCCval.c:1.65
12905
12906 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
12907
12908         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
12909         * src/ds390/gen.c (genAddrOf): fixed bug #704087
12910
12911 2003-03-13    <johan AT balder>
12912
12913         Hackup const and volatile modifiers in type chains a bit:
12914         * src/SDCC.y:1.63
12915         * src/SDCCast.c:1.169
12916         * src/SDCCglue.c:1.136
12917         * src/SDCCicode.c:1.143
12918         * src/SDCCsymt.c1.146
12919         * src/SDCCsymt.h1.59
12920         * src/SDCCval.c:1.63
12921
12922 2003-03-12    <johan AT balder>
12923
12924         * src/SDCCBBlock.h: more LRH debugging junk
12925         * src/SDCCcflow.h: more LRH debugging junk
12926         * src/SDCCloop.c: more LRH debugging junk
12927         * src/SDCC.y (struct_declaration): fixed bug #697590
12928         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
12929         * src/ds390/gen.c (aopForRemat): fixed bug #700031
12930         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
12931
12932 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12933         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
12934         test function names must now match exactly).
12935         * src/SDCCcse.c: added special case in findCheaperOp to allow
12936         extending a short integer. Makes less awful code for bug 700121 test case.
12937
12938 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12939
12940         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
12941         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
12942
12943 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12944
12945         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
12946         actually called (operandsNotEqual() was called for all
12947         operandsNotEqualX tests).
12948
12949 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12950
12951         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
12952         with shorter literals. Fixes bug 700121.
12953
12954 2003-03-11    <johan AT balder>
12955
12956         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
12957
12958 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
12959
12960         * src/SDCCloop.c (mergeRegions): an evil beast is dead
12961         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
12962
12963 2003-03-10  Borut Razem <borut.razem AT siol.net>
12964
12965         * src/SDCCmain.c: pipe preprocessor's output
12966         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12967         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12968         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12969         which closes all pipes in pipeSet set
12970         * src/SDCCset.c: free deleted item in function deleteSetItem()
12971         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12972         moved from z80 to src subproject
12973         * .version: increased version number to 2.3.4
12974
12975 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
12976
12977         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
12978         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
12979         * support/regression/ports/xa51/spec.mk: fix typo
12980
12981 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
12982
12983         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
12984
12985 2003-03-09  Borut Razem <borut.razem AT siol.net>
12986
12987         * src/SDCCmain.c: pipe preprocessor's output
12988         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12989         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12990         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12991         which closes all pipes in pipeSet set
12992         * src/SDCCset.c: free deleted item in function deleteSetItem()
12993         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12994         moved from z80 to src subproject
12995
12996 2003-03-09  Borut Razem <borut.razem AT siol.net>
12997
12998         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
12999         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
13000         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
13001         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
13002         * src/SDCCglobl.h: unification of WIN32 native definitions
13003
13004 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13005
13006         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
13007
13008 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13009
13010         * src/configure.in:   check for endianess (even while cross-compiling)
13011         * src/configure:      check for endianess (even while cross-compiling)
13012         * src/configure_in.h: check for endianess (even while cross-compiling)
13013         * src/avr/gen.c:        remove old endianess stuff
13014         * src/mcs51/gen.c:      remove old endianess stuff
13015         * src/ds390/gen.c:      remove old endianess stuff
13016         * src/pic/gen.c:        remove old endianess stuff
13017         * src/pic/genarith.c:   remove old endianess stuff
13018         * src/pic/glue.c:       fix endianess check
13019         * src/pic16/gen.c:      remove old endianess stuff
13020         * src/pic16/genarith.c: remove old endianess stuff
13021         * src/pic16/glue.c:     fix endianess check
13022         * src/xa51/gen.c:       remove old endianess stuff
13023         * src/z80/gen.c:        fix endianess check
13024         * src/SDCCglue.c:       fix endianess check
13025         * src/ds390/peeph.def: fix bug 700036
13026
13027 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
13028
13029         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
13030         * src/configure: find appropriate data-types on host for SDCC's int and long
13031         * src/configure.in: find appropriate data-types on host for SDCC's int and long
13032         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
13033         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
13034
13035 2003-03-07    <johan AT balder>
13036
13037         Just a big NOOP:
13038                 some minor cleanups before the big shot
13039                 OP_DEFS and OP_USES now use Kevin's protection
13040                 new option --nolabelopt
13041
13042         * src/SDCCBBlock.c:
13043         * src/SDCCast.c,:
13044         * src/SDCCcflow.c:
13045         * src/SDCCcse.c:
13046         * src/SDCCicode.c:
13047         * src/SDCCicode.h:
13048         * src/SDCClabel.c:
13049         * src/SDCCloop.c:
13050         * src/SDCCmain.c:
13051         * src/ds390/ralloc.c:
13052         * src/mcs51/ralloc.c:
13053         * src/pic/ralloc.c:
13054         * src/xa51/ralloc.c:
13055         * src/z80/ralloc.c:
13056
13057 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
13058
13059         * src/pic/pcode.c (get_op): fix 64 bit warnings
13060         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
13061         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
13062         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
13063         * support/regression/tests/malloc.c: fix 64 bit warnings
13064
13065 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
13066
13067         * src/mcs51/gen.c (genMinus): fixed bug 696436
13068
13069 2003-03-02  Borut Razem <borut.razem AT siol.net>
13070
13071         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
13072
13073 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
13074
13075         * configure.in: test for mkstemp
13076         * sdccconf_in.h: add HAVE_MKSTEMP
13077
13078 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
13079
13080         * device/include/ctype.h: removed warning while using --stack-auto
13081         * device/include/malloc.h: removed warning while using --stack-auto
13082         * device/include/string.h: removed warning while using --stack-auto
13083
13084 2003-02-23  Borut Razem <borut.razem AT siol.net>
13085
13086         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
13087         because NDEBUG is defined (see man assert)
13088         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
13089
13090 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13091
13092         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
13093         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
13094
13095 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13096
13097         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
13098         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
13099
13100 2003-02-18    <johan AT balder>
13101
13102         * as/mcs51/asmain.c (asmbl): module can start with a digit
13103         * as/z80/asmain.c (asmbl): module can start with a digit
13104
13105 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
13106
13107         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
13108         * src/asm.c: fix pipe() for Mingw32
13109
13110 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
13111
13112         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
13113         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
13114         make -V work again; --c1mode reads now from stdin
13115         * doc/sdccman.lyx: added --c1mode
13116         * support/Util/SDCCerr.c: new messages for c1 mode
13117         * support/Util/SDCCerr.h: new messages for c1 mode
13118         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
13119
13120 2003-02-15    <johan AT balder>
13121
13122         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
13123
13124 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
13125
13126         * doc/sdccman.lyx: Environment variables, -o and other minor things
13127
13128 2003-02-14    <johan AT balder>
13129
13130         * src/xa51/main.c: before anyone really tries to use it :)
13131
13132         * Install doc's in share/sdcc/doc
13133         * removed some obsolete files
13134         * Do a proper make distclean and uninstall
13135         M Makefile.common.in
13136         R sdccbuild.sh
13137         M as/Makefile
13138         M device/include/Makefile.in
13139         M device/lib/Makefile.in
13140         M doc/sdccman.lyx
13141         M link/Makefile
13142         M sim/ucsim/doc/Makefile.in
13143         M src/clean.mk
13144         R src/avr/peeph.rul
13145         R src/xa51/peeph.rul
13146         M support/cpp2/Makefile.in
13147         M support/makebin/Makefile
13148
13149
13150 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13151
13152         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13153
13154 2003-02-10  Borut Razem <borut.razem AT siol.net>
13155
13156         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13157         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13158         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13159         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13160         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13161         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13162         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13163         src/z80/Makefile.bcc: Borland Makefile cleanup
13164         * as/z80/Makefile.bcc: Added Borland Makefile
13165         * support/cpp2/borland.h: Removed
13166
13167 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13168
13169         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13170         * src/SDCC.lex: new pragma NOIV
13171         * src/SDCCglobl.h: new pragma NOIV
13172         * src/SDCCmem.c: new pragma NOIV
13173
13174 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13175
13176         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13177
13178 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13179
13180         * src/SDCCmain.c: signal handling is switched off by --debug
13181         * doc/Makefile: small fix for install; use clean.mk again
13182         * doc/clean.mk: clean *.pdf and *.html too
13183
13184 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13185
13186         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13187         * device/lib/printfl.c: fix a ds390 bug by making it portable
13188         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13189         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13190         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13191         * debugger/mcs51/cmd.c: converted multi-line string literals
13192         * sim/ucsim/globals.cc: converted multi-line string literals
13193         * src/SDCCmain.c: introduced signal handler to remove temp files
13194         * doc/Makefile: small tweaks, implement clean
13195         * doc: removed generated files
13196
13197 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13198
13199         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13200         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13201         Address Record is not correctly generated for DS390."
13202
13203 2003-02-02  Borut Razem <borut.razem AT siol.net>
13204
13205         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13206         * as/mcs51/asm.h: fixed compilation with Borland C
13207         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13208         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13209         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13210         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13211         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13212         src/z80/Makefile.bcc: delete $(LIB) only if exist
13213         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13214
13215 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13216
13217         * device/include/malloc.h: introduced NULL
13218         * device/include/string.h: introduced NULL
13219         * device/include/stdlib.h: introduced NULL
13220         * device/lib/_memcpy.c: removed NULL
13221         * device/lib/_strcat.c: removed NULL
13222         * device/lib/_strchr.c: removed NULL
13223         * device/lib/_strcmp.c: removed NULL
13224         * device/lib/_strcpy.c: removed NULL
13225         * device/lib/_strcspn.c: removed NULL
13226         * device/lib/_strlen.c: removed NULL
13227         * device/lib/_strncat.c: removed NULL
13228         * device/lib/_strncmp.c: removed NULL
13229         * device/lib/_strncpy.c: removed NULL
13230         * device/lib/_strpbrk.c: removed NULL
13231         * device/lib/_strrchr.c: removed NULL
13232         * device/lib/_strspn.c: removed NULL
13233         * device/lib/_strstr.c: removed NULL
13234         * device/lib/_strtok.c: removed NULL
13235         * device/lib/malloc.c: removed NULL, include own header
13236
13237 2003-02-02    <johan AT balder>
13238
13239         * 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
13240         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13241         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13242         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13243         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13244         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13245
13246 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13247
13248         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13249         area 'DATA'"
13250
13251 2003-02-01    <johan AT balder>
13252
13253         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13254
13255 2003-01-31    <johan AT CP255758-A>
13256
13257         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13258
13259 2003-01-30    <johan AT balder>
13260
13261         * src/SDCCBBlock.c: automatic bug detection
13262         * src/SDCCicode.c: automatic bug detection
13263
13264 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13265
13266         * src/SDCCglobl.h:   now --xram-size 0 works
13267         * src/SDCCmain.c:    now --xram-size 0 works
13268
13269 2003-01-29    <johan AT balder>
13270
13271         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13272
13273 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13274
13275         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13276         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13277         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13278         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13279         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13280         * src/SDCCmain.c:    Added options --xram-size and --code-size
13281
13282 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13283
13284         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13285         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13286
13287 2003-01-27    <johan AT balder>
13288
13289         * src/SDCC.y: fixed bug #613764
13290
13291 2003-01-26    <johan AT balder>
13292
13293         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13294         * src/SDCCsymt.h: fixed bug #673374
13295         * src/SDCCglue.c: fixed bug #661910
13296         * src/SDCCast.c: fixed bug #458099 and 673374
13297
13298 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13299
13300         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13301         * as/mcs51/strcmpi.h: added
13302         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13303         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13304         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13305         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13306         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13307         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13308         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13309         * as/mcs51/Makefile.aslink: new module strcmpi
13310         * as/mcs51/Makefile.asx8051: new module strcmpi
13311         * as/mcs51/Makefil.bcc: new module strcmpi
13312         * as/mcs51/Makefile.in: new module strcmpi
13313         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13314
13315 2003-01-26    <johan AT balder>
13316
13317         * src/SDCCglue.c: reverted back to 1.124
13318         * src/SDCCast.c: reverted back to 1.156
13319         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13320
13321 2003-01-25    <johan AT balder>
13322
13323         * src/SDCCglue.c: A better fix for bug #661910
13324         * src/SDCCast.c: A better fix for bug #661910
13325         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13326
13327 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13328
13329         * src/Makefile.in: remove spawn.o
13330         * src/SDCCmain.c: remove spawn.h
13331         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13332         * src/spawn.c: removed
13333         * src/spawn.h: removed
13334         * support/regression/ports/ds390/spec.mk: link with -r
13335
13336 2003-01-24    <johan AT CP255758-A>
13337
13338         * src/ds390/gen.c (aopOp): fixed bug #667458
13339         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13340         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13341         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13342
13343 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13344
13345         * src/mcs51/peeph.def: better assembler identation by Frieder
13346         * src/mcs51/gen.c: better assembler identation by Frieder
13347
13348 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13349
13350         * as/z80/string.h: removed for gcc 3.2
13351         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13352         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13353
13354 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13355
13356         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13357         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13358         * support/regression/Makefile: separate temp files for ports
13359         * support/regression/generate-cases.py: separate temp files for ports
13360         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13361         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13362
13363 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13364
13365         * moved tinitalk to device/examples/ds390
13366
13367 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13368
13369         * as/mcs51/lkmem.c: rflag is for DS390
13370         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13371         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13372                          (linkEdit): move mem- and map-files the same way as ihx-files
13373         * src/z80/main.c (_setDefaultOptions): removed --generic
13374         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13375         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13376         * src/pic/glue.c (picglue): --c1mode works again
13377         * src/pic16/glue.c (pic16glue): --c1mode works again
13378         * src/asm.c (printCLine): fix #660034
13379
13380 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13381
13382         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13383         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13384         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13385         * as/mcs51/lkmem (summary): better fix for sp problem
13386         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13387         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13388         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13389                                               remove --stack-after-data
13390
13391 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13392
13393         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13394         * src/SDCCutil.c (join): ugly bug: missing '\0'
13395         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13396
13397 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13398
13399         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13400         * src/port.h: typo
13401         * src/pic/main.c (_asmCmd): gpasm supports -o
13402         * src/z80/main.c: more general macros
13403         * device/lib/Makefile.in: remove intermediate files
13404
13405 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13406
13407         * .version: Bumped version number to 2.3.3
13408         * src/SDCCBBlock.c: new option -o
13409         * src/SDCCglobl.h: new option -o
13410         * src/SDCCglue.c: new option -o
13411         * src/SDCCmain.c: new option -o
13412         * src/asm.c: new option -o
13413         * src/ds390/main.c: new option -o
13414         * src/pic/glue.c: new option -o
13415         * src/pic/pcode.c: new option -o
13416         * src/pic/ralloc.c: new option -o
13417         * src/pic16/glue.c: new option -o
13418         * src/pic16/pcode.c: new option -o
13419         * src/pic16/ralloc.c: new option -o
13420         * src/z80/main.c: new option -o
13421         * device/lib/Makefile.in: use -o
13422         * support/regression/ports/ds390/spec.mk: use -o
13423         * support/regression/ports/gbz80/spec.mk: use -o
13424         * support/regression/ports/mcs51/spec.mk: use -o
13425         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13426         * support/regression/ports/z80/spec.mk: use -o
13427         * support/regression/ports/ucz80/spec.mk: use -o
13428         * support/regression/ports/xa51/spec.mk: use -o
13429         * support/regression/fwk/lib/timeout.c: fix usage string
13430
13431 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13432         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13433
13434 2003-01-07    <johan AT balder>
13435
13436         * src/SDCCast.c (decorateType): fixed bug #600035
13437
13438 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13439         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13440         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13441         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13442         * src/pic/pcode.c: outcommented unused variable to remove warnings
13443         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13444
13445 2003-01-06    <karl AT turbobit.com>
13446         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13447    regression tests.
13448
13449 2003-01-06    <johan AT balder>
13450
13451         * src/SDCCicode.c: fixed array add
13452
13453 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13454         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13455         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13456
13457 2003-01-04    <johan AT balder>
13458
13459         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13460
13461 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13462         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13463
13464 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13465         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13466         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13467
13468 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13469         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13470
13471 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13472         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13473
13474 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13475         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13476
13477 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13478
13479     * in /sdcc/as/mcs51/ changed these files in order to create an
13480     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13481     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13482     following files to include the previous two files: aslink.dsp,
13483     Makefile.aslink, Makefile.bcc, and Makefile.in.
13484
13485     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13486     .adb instead of .cdb
13487
13488 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13489
13490         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13491         value from option --iram-size.
13492
13493 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13494
13495         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13496         dram[] array.
13497
13498 2002-09-18    <wiml AT hhhh.org>
13499
13500         * SDCClrange.h: exposed setFromRange() and setToRange()
13501         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13502           packRegsForAccUse() (bug 542397)
13503         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13504           multiple times and emitting the fetch operations more than once
13505           added aopGetUsesAcc() function to allow binary operators to
13506           fetch their operands in the correct order; made genMinus() emit
13507           compact code for X = LITERAL - Y
13508
13509 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13510         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13511         sprintf() in line 1267.
13512
13513 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13514         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13515         like ports.
13516
13517 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13518         Changes to aslink (All the changes are marked with 'JCF'):
13519
13520         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13521         summary().
13522
13523         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13524         area BSEG.  Also moves, if possible, the DATA area down into the internal
13525         ram so more space is available.
13526
13527         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13528         sflag.
13529
13530         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13531         not bytes.  Function summary() which creates a memory usage summary
13532         file with extension .mem.  Reports of overlaping stack and small stack
13533         size.  If the space for the stack is less than 16 bytes aslink trows a
13534         warning.
13535
13536         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13537         the 8051.  Option 'y' for memory summary output file.
13538
13539         Changes to sdcc (All the changes are marked with 'JCF'):
13540
13541         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13542
13543         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13544         overlaying area for it (uses RegBankUsed[4]).
13545
13546         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13547         bank zero as used by default.  By default aslink locates the stack
13548         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13549         the creation of the .mem file.  Delegates the allocation of data area
13550         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13551         the begining of the stack area to aslink.
13552
13553         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13554         glue() in SDCCglue.c creates an area for it.
13555
13556 2002-09-03  Borut Razem <borut.razem AT siol.net>
13557         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13558         sdcc/src/pic/glue.c:
13559         introduced atexit() handler for teporay files removal in case of
13560         errors, assertions, ...
13561
13562 2002-08-29  Borut Razem <borut.razem AT siol.net>
13563         * sdcc/support/cpp2/auto-host_vc_in.h:
13564         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13565         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13566         Maybe there is a similar problem with BORLANDC? It should be checked!
13567
13568         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13569         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13570         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13571         was not executed, and the compiler (cl) launched a warning:
13572         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13573
13574 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13575         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13576
13577 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13578         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13579
13580         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13581           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13582           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13583           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13584           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13585           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13586           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13587         - added Release configuration in VS projects
13588         - review of compiler an linker options
13589         - VC .exe files are generated in bin_vc directory, not to interfere
13590           with binaries generated from other projects (cygwin, mingw, bcc ...)
13591
13592         * sdcc/src/yacc.dsp: added
13593
13594         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13595         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13596         and insert the version number definitions from .version
13597
13598         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13599
13600         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13601         added - genarate auto-host.h using auto-host_vc_in.h as template
13602
13603         * sdcc/sdcc_vc.h,
13604         removed from CVS, generated automatically
13605
13606 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13607         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13608
13609 2002-08-11  Borut Razem <borut.razem AT siol.net>
13610         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13611
13612 2002-08-10  Borut Razem <borut.razem AT siol.net>
13613         * src/SDCCmain.c (main):
13614         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13615         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13616         The consequence was that some temporary files were not removed.
13617
13618         * src/SDCCglue.c:
13619         unification of code in functions tempfilename() and tempfile():
13620         function tempnam() is defined in Visual Studio 6.0 and .NET
13621
13622         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13623
13624         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13625           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13626         - removed compiler command line option /WX: Treats all warnings as errors
13627         - update a list of source files, included into the project
13628
13629         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13630           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13631         changed project type to Generic Project so that can be correcly converted to VS.NET project
13632
13633         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13634
13635         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13636
13637         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13638
13639         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13640         added return 0 statements after assert() to make compiler happy
13641
13642         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13643         added newline in the def file to keep MSC compiler satisfied
13644
13645         * sdcc/src/z80/gen.c:
13646         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13647           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13648         - solved MSC error in function aopDump()
13649
13650         * sdcc_vc.h: define PREFIX as "\\sdcc"
13651
13652 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
13653         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13654
13655 2002-06-22  Scott Dattalo <scott AT dattalo.com>
13656         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13657         - Rewrote the register banking algorithm.
13658         - Added pCode live-range analysis to registers (for now, only non-used and
13659         singly-used registers optimized away)
13660
13661         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13662
13663         * 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.
13664
13665 2002-05-10  Scott Dattalo <scott AT dattalo.com>
13666         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13667
13668 2002-04-22  Michael Hope  <michaelh AT vroom>
13669
13670         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13671
13672         * configure.in (DD_COPT): Added include support required for gbdk.
13673
13674         * .version: Bumped version number just to increase it.
13675
13676         * src/SDCCmain.c: Added -nostdinc to the default options.
13677
13678 2002-04-15  Michael Hope  <michaelh AT vroom>
13679
13680         * device/lib/z80/printf.c (sprintf): Added.
13681
13682         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13683
13684         * src/z80/peeph.def: Added transpose redundent load rule.
13685
13686         * src/z80/main.c: Added force callee saves for jaune.
13687
13688         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13689
13690         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13691
13692 2002-03-28  Johan Knol  <johan AT balder>
13693
13694         * src/SDCCval.c: fixed bug #532436
13695
13696 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13697         * /src/port.h:
13698         Added "char *Processor" field to the port structure.
13699
13700         * /src/SDCCmain.c:
13701         Added -p option. Allows port dependent processor to be specified.
13702
13703         * all ports:
13704         Initialized the new field char *Processor field to NULL in all ports
13705
13706         * /src/pic/*:
13707         Compiler generated registers for interrupt context saving
13708         were not getting allocated.
13709
13710 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
13711
13712         * /src/SDCCast.c:
13713         Fixed left shift. Will promote the left side of a left shift
13714         if a) left shifting more than size of operand or b) when assigned
13715         to something size > size of left side
13716
13717 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13718         * src/pic/*
13719         tons of changes. Register allocation has been
13720         rewritten. Added customization for the various PICs. Flow
13721         analysis is restructured. ...
13722
13723         * src/pic/device.h:
13724         Added
13725
13726         * src/pic/device.c:
13727         Added. device.c is a PIC port hack to accomodate variations
13728         in PIC devices.
13729
13730 2002-03-13  Michael Hope  <michaelh AT vroom>
13731
13732         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
13733
13734 2002-03-04  johanknol  <johanknol AT manik>
13735
13736         * /src/SDCCval.c: fixed
13737
13738         const unsigned char arr[][2] = { { 0, 1 } };
13739         t18.c:1: error: Initializer element is not constant
13740
13741 2002-03-04  bela  <bela AT manik>
13742
13743         * /device/include/mcs51reg.h:
13744         ds89c420 register definition update
13745
13746 2002-03-03    <johan AT FRIJA>
13747
13748         * support/Util/SDCCerr.c: did something, but don't no why anymore
13749
13750         * support/regression/tests/bug-524691.c: made it a little less shy
13751
13752         * src/SDCCast.c (decorateType): fixed bug #524697
13753
13754         * src/SDCCast.c: made some lineno improvements
13755
13756         * src/SDCCval.c (getNelements): changed warning to error
13757
13758         * src/SDCCglue.c (printIvalArray): changed warning to error
13759
13760         * src/SDCCicode.c: fixed a warning for mingw
13761
13762         * src/SDCCast.c (decorateType): fixed the << promotion for ops
13763
13764         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13765
13766 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
13767
13768         * src/ds390/peeph.def:
13769         Added some more peephole rules
13770
13771         * src/ds390/gen.c: Various fixes & enhancements
13772
13773         * src/SDCClrange.c, src/SDCClrange.h:
13774         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13775
13776         * src/ds390/ralloc.c:
13777         various fixes & enhancements (ds390) specific
13778
13779         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13780         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13781         from rallocs.
13782
13783         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13784
13785 2002-03-02    <johan AT FRIJA>
13786
13787         * src/SDCCast.c (decorateType): fixed bug #524708
13788
13789         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13790
13791         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13792
13793 2002-03-01  Michael Hope  <michaelh AT vroom>
13794
13795         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13796
13797         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13798
13799 2002-03-01    <johan AT FRIJA>
13800
13801         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13802
13803         * src/SDCCast.c (decorateType): fixed bug #524209
13804
13805         * src/SDCCval.c (valNot): fixed bug #524195
13806
13807 2002-02-26    <johan AT balder>
13808
13809         * src/xa51/gen.c: fixed a warning
13810
13811         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13812
13813         * src/SDCCast.c (decorateType): fixed bug #522534
13814
13815 2002-02-23    <johan AT balder>
13816
13817         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13818
13819 2002-02-22    <johan AT balder>
13820
13821         * src/SDCCast.c: fixed bug #514865
13822
13823         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13824
13825 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
13826
13827         * sdcc/src/SDCCloop.c:
13828         Previous fix was not good. basic blocks that have "break" or "return" are
13829         not really partof a loop , but live ranges used in these blocks should
13830         be live thru the entire loop, so set partOfLoop but don't add them to
13831         loop region
13832
13833 2002-02-21    <johan AT FRIJA>
13834
13835         * src/SDCCcse.c: fixed bug #514308
13836
13837 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
13838
13839         * src/SDCCloop.c:
13840         Fixed BUG #519583. If a conditional block ended in a return/break
13841         statement inside a loop, it was not being considered part of the loop.
13842
13843         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
13844
13845 2002-02-10  Karl Bongers <karl AT turbobit.com>
13846
13847         * debugger/*:
13848         Fixed up SDCDB debugger somewhat.  Updated debugger/README
13849         with lots of comments and notes.
13850
13851         * device/examples/test2.c:
13852         Fix bug, "red" variable not being initialized(compiler complained).
13853
13854         * device/examples/Makefile, examples/test3.c:
13855         Add Makefile in device/examples folder, compiles test3.c
13856         for use as a multiple module SDCDB test case.
13857
13858         * sim/ucsim/cmd.src/cmdset.cc:
13859         Took out debug printfs in ucsim "next" command.
13860
13861         * sim/ucsim/xa.src:
13862         Karl and Johan start ucsim XA support.  Most dissassembly working,
13863         about 75% emulation done(plenty of work remaining).
13864
13865         * sim/ucsim/z80.src:
13866         Add Z80 support to ucsim, add test-ucz80 regression test,
13867         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
13868         Notice z80 compiler fails on examples/test3.c/crc code.
13869
13870 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
13871
13872         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
13873         Added support for --parms-in-bank1
13874
13875         * src/ds390/peeph.def:
13876         added a few more peephole optimzations
13877
13878         * src/ds390/main.c:
13879         1) added __builtin_inp & __builtin_outp used to read in data of given length
13880            from a memory mapped port
13881         2) added __builtin_memcmp
13882         3) added __builtin_swapw swap bytes of a short
13883
13884         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
13885         1) handle multiple send & receives from register bank1
13886         2) ralloc can now allocate DPTR1 to some liveRanges
13887
13888         * src/SDCCsymt.c, src/SDCCsymt.h:
13889         changes to handle multiple sends & receives
13890
13891         * src/SDCCptropt.h:
13892         added some pointer arithmetic optimization
13893
13894         * src/SDCCptropt.c:
13895         added some pointer arithmetic optimizations but not stable yet so not
13896         called from anywhere (will get this working shortly)
13897
13898         * src/SDCCopt.c: fixed for multiple sends & receives
13899
13900         * src/SDCCmain.c:
13901         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
13902         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
13903            set preprocessor defines (depending on options)
13904
13905         * src/SDCCicode.c, src/SDCCicode.h:
13906         changes made to handle multiple sends & receives
13907
13908         * src/SDCCglobl.h:
13909         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
13910
13911         * src/SDCCcse.c, src/SDCCcse.h:
13912         added function findbackward def (to be used in upcoming optimization)
13913
13914         * src/SDCCcflow.c, src/SDCCcflow.h:
13915         added function returnAtEnd - to determine if a basic block terminates with
13916         a RETURN iCode
13917
13918         * src/SDCCast.c, src/SDCCast.h:
13919         added option parms-in-bank1
13920
13921         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
13922         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
13923         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
13924         adjusted for --parms-in-bank1 option
13925
13926         * device/include/string.h:
13927         donot redefine "reentrant" keyword
13928
13929         * device/include/ds80c390.h: Added some more SFRs
13930
13931 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
13932
13933         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
13934
13935 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
13936
13937         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
13938
13939 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
13940
13941         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
13942
13943 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
13944
13945         * Added --xram-movc option
13946
13947 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
13948
13949         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
13950
13951 2002-01-11  Johan Knol
13952
13953         * Added math lib of Jesus Calvino-Fraga
13954
13955 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
13956
13957         * src/SDCCmain.c (processFile): fix processing of ../../src.c
13958         * support/regression/Makefile: new target test-mcs51-stack-auto
13959         * support/regression/ports/mcs51-stack-auto/spec.mk: added
13960
13961 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13962
13963         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
13964
13965 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13966
13967         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
13968
13969 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
13970
13971         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
13972
13973         * src/SDCCglue.h: add definition for printIvalChar()
13974
13975 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13976
13977         * src/SDCCast.c: fix #498138 by Johan
13978
13979         * src/SDCCglue.c: fix #498138 by Johan
13980
13981 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13982
13983         * support/regression/Makefile: fix clean
13984
13985         * support/regression/ports/ds390/support.c: fix transmission of last character
13986
13987 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
13988
13989         * /sdcc/src/ds390/gen.c:
13990         a) improved computing address of stack variable
13991         b) took out some #if 0 code
13992         c) improved parmBytes adjustment
13993         d) improved genPlusIncr & genMinusIncr
13994         e) genCmp could generate bad code (when left assigned to DPTR)
13995         f) Fixed bug in hasInc
13996
13997         * /sdcc/src/ds390/ralloc.c:
13998         a) packRegsForSupport could mess up live information (Fixed)
13999         b) packRegsDPTRuse could be incorrect for left & right shift
14000
14001         * /sdcc/src/mcs51/ralloc.c:
14002         packRegsForSupport could mess up the live information (Fixed)
14003
14004         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
14005
14006         * /sdcc/src/SDCCast.c:
14007         can reverse a loop even if function call is present as long
14008         as the loop control variable is local & is not passed as parameter
14009
14010 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14011
14012         * /sdcc/ChangeLog: *** empty log message ***
14013
14014         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
14015         More builtin function additions for TININative
14016
14017         * /sdcc/src/ds390/ralloc.c:
14018         Had broken the regression testsuite
14019
14020         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
14021
14022         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
14023         Added funcattr hasStackParms will be set for reentrant functions when there
14024         are paramteres on the stack, this helps in minimizing frame pointer generation
14025         typeFromStr can handle function pointers now
14026
14027         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
14028         *** empty log message ***
14029
14030 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14031
14032         * /src/ds390/gen.c, /src/ds390/main.c:
14033         More builtin function additions for TININative
14034
14035         * /src/ds390/ralloc.c:
14036         Had broken the regression testsuite
14037
14038         * /src/SDCCast.c: Fixed a bug in dumptree
14039
14040         * /src/SDCCsymt.c, /src/SDCCsymt.h:
14041         Added funcattr hasStackParms will be set for reentrant functions when there
14042         are paramteres on the stack, this helps in minimizing frame pointer generation
14043         typeFromStr can handle function pointers now
14044
14045         * /doc/builtins.txt, /doc/TININative.txt:
14046         *** empty log message ***
14047
14048
14049 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14050
14051         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
14052         ALPHA version for -mTININative
14053
14054         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
14055         updated to reflect changes in the port structure
14056
14057         * /src/port.h:
14058         added function do_assemble (similar to do_link) if non-null this function
14059         will be called to do assembly (-mTININative) requires a multi command
14060         assembly
14061         added function genAssemblerEnd will be called to generate assembler Epilogue
14062
14063         * /src/SDCCsymt.c:
14064         added _JavaNative to debug info printing
14065
14066         * /src/SDCCmain.c: added option --tini-libid
14067         added port->do_assemble function (-mTININative) has a multi command assemble
14068
14069         * /src/SDCCglue.c: Disabled "constExpr" check
14070         added port->genAssemblerEnd function
14071
14072         * /src/SDCCglobl.h: Added option --tini-libid value
14073
14074         * /src/SDCCast.h:
14075         tookout optimizeCompare from the header (has no external references)
14076
14077         * /src/SDCCast.c: made one more function "static"
14078
14079 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
14080
14081         * src/z80/mappings.i: Added z80asm support.
14082
14083         * src/z80/main.c: Added z80asm support on --asm=z80asm
14084
14085         * src/z80/gen.c: Fixed asm portability issues.
14086
14087         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
14088
14089         * src/SDCCglue.c (printExterns): Added global/extern split.
14090
14091 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
14092
14093         * support/regression/Makefile: added test for mcs51 model large
14094
14095         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
14096
14097         * support/regression/ports/gbz80/spec.mk: added -mgbz80
14098
14099 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
14100
14101         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
14102
14103 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
14104
14105         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
14106
14107         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
14108
14109 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
14110
14111         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
14112
14113         * support/regression/tests/simplefloat.c: Port to mcs51.
14114
14115 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
14116         * support/regression/tests/bug-485362.c: Added.
14117
14118         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
14119
14120         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
14121
14122         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
14123
14124         * src/z80/gen.c (aopDump): Added a dump function.
14125
14126 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
14127         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
14128
14129         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
14130
14131         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
14132
14133         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
14134
14135         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
14136
14137         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
14138
14139         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
14140
14141         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
14142
14143         * support/regression/ports/ds390/support.c: Use tinibios.
14144
14145         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
14146
14147 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
14148
14149         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14150         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14151
14152         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14153
14154         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14155
14156 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14157
14158         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14159
14160         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14161         (packRegsForIYUse): Created and optimised.
14162
14163 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14164
14165         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14166 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14167
14168         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14169
14170         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14171
14172         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14173
14174 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14175
14176         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14177
14178         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14179
14180 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14181
14182         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14183
14184         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14185
14186         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14187
14188 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14189
14190         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14191         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14192         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14193
14194         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14195
14196         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14197         (genNotFloat): Added.
14198         (genUminusFloat): Added.
14199
14200         * device/lib/z80/Makefile: Added floating pt stubs.
14201
14202         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14203
14204         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14205
14206         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14207
14208 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14209
14210         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14211
14212         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14213
14214         * sdcc/support/regression/Makefile: Add port ds390.
14215
14216         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14217
14218         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14219
14220         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14221
14222         * sdcc/support/regression/ports/ds390/support.c: Added.
14223
14224         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14225
14226         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14227
14228         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14229
14230 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14231
14232         * device/include/malloc.h: Added z80 and gbz80 support.
14233
14234         * device/lib/gbz80/heap.s: Added.
14235
14236         * device/lib/z80/heap.s: Added.
14237
14238         * device/lib/malloc.c: Added z80 and gbz80 support.
14239
14240         * support/regression/tests/malloc.c (testMalloc): Added.
14241
14242         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14243
14244         * support/regression/tests/bug-478094.c: Added.
14245
14246         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14247
14248 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14249
14250         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14251
14252         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14253
14254         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14255
14256         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14257
14258         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14259
14260 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14261
14262         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14263
14264 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14265
14266         * support/regression/tests/bug-477927.c: Added.
14267
14268         * src/z80/peeph.def: Added minor rules.
14269
14270         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14271
14272         * src/z80/peeph.def: Added jump optimisation modification.
14273
14274 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14275
14276         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14277
14278 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14279
14280         * support/regression/tests/funptrs.c: Added.
14281
14282 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14283
14284         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14285
14286 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14287
14288         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14289
14290         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14291
14292         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14293         (movLeft2ResultLong): Created.
14294
14295         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14296         (joinPushes): Added.  Joins two char pushes into a word push.
14297
14298 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14299
14300         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14301
14302         * support/makebin/Makefile (install): Added creation of dest dir.
14303
14304 2001-10-24 Karl Bongers <karl AT turbobit.com>
14305
14306         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14307
14308 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14309
14310         * src/z80/ralloc.c: Turned off faulty pack for one use.
14311
14312         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14313
14314         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14315
14316 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14317
14318         * support/regression/Makefile: Improved clean
14319
14320         * support/regression/ports/gbz80/spec.mk: Added clean
14321
14322         * support/regression/ports/host/spec.mk: Added clean
14323
14324         * support/regression/ports/z80/spec.mk: Added clean
14325
14326         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14327
14328         * support/regression/ports/mcs51/timeout.c: little improvements
14329
14330 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14331
14332         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14333
14334         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14335
14336         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14337
14338 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14339
14340         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14341
14342         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14343
14344 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14345         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14346
14347         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14348
14349         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14350
14351         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14352
14353         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14354
14355         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14356
14357         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14358
14359         * support/regression/tests/longor.c: Added.
14360
14361 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14362
14363         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14364
14365         * as/mcs51/aslink.h: define PATH_MAX
14366
14367         * as/mcs51/asm.h: define PATH_MAX
14368
14369         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14370
14371         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14372
14373         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14374
14375         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14376
14377         * src/SDCCglobl.h: define PATH_MAX
14378
14379         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14380
14381         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14382
14383 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14384
14385         * src/z80/gen.c (gencjneshort): Fixed
14386
14387         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14388
14389 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14390
14391         * support/regression/tests/bug-469671.c: Added.
14392
14393         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14394
14395 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14396
14397         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14398
14399         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14400
14401 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14402
14403         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14404
14405         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14406
14407         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14408
14409         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14410
14411         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14412
14413         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14414
14415         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14416
14417 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14418
14419         * 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.
14420
14421         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14422
14423         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14424
14425 2001-10-07    <johan AT FRIJA>
14426
14427         * device/lib/gets.c (gets): fixed the return value.
14428
14429 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14430         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14431
14432         * 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.
14433
14434         * 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.
14435
14436         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14437
14438         * src/pic/gen.c: Removed Safe_strdup.
14439
14440         * configure.in: Added option to enable libgc support.
14441
14442         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14443         (bitVectUnion): Optimised.
14444         (bitVectIntersect): Optimised.
14445         (bitVectBitsInCommon): Optimised.
14446         (bitVectCplAnd): Optimised.
14447
14448         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14449
14450 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14451
14452         * src/SDCCmain.c: distinguish between assembler debug and plain options
14453
14454         * src/avr/main.c:   remove standard assembler options
14455
14456         * src/ds390/main.c: remove standard assembler options
14457
14458         * src/mcs51/main.c: remove standard assembler options
14459
14460         * src/port.h: removed "PENDING" comment
14461
14462 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14463
14464         * src/device/lib/_mulint.c  : new, with assember functions
14465
14466         * src/device/lib/_mullong.c : new, with assember functions
14467
14468         * src/device/lib/_divuint.c : with assember functions
14469
14470         * src/device/lib/_divsint.c : with assember functions
14471
14472         * src/device/lib/_divulong.c: with assember functions
14473
14474         * src/device/lib/_divslong.c: with assember functions
14475
14476         * src/device/lib/_moduint.c : with assember functions
14477
14478         * src/device/lib/_modsint.c : with assember functions
14479
14480         * src/device/lib/_modulong.c: with assember functions
14481
14482         * src/device/lib/_modslong.c: with assember functions
14483
14484         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14485
14486         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14487
14488         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14489                                       replaced _mululong.c and _mulslong.c by _mullong.c
14490
14491 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14492
14493         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14494
14495 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14496
14497         * src/SDCCglue.c: test, if win32api is available for MINGW
14498
14499 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14500
14501         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14502         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14503         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14504         * support/regression/ports/host/spec.mk: removed GENERIC
14505         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14506         * support/regression/ports/z80/spec.mk: removed GENERIC
14507
14508 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14509
14510         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14511
14512         * support/regression/tests/bug-467035.c: Created.
14513
14514 2001-10-01    <johan AT FRIJA>
14515
14516         * src/SDCC.y: fixed bug #466586 part 1
14517
14518 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14519
14520         * SDCCicode.c: z80 has no generic pointers
14521         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14522
14523 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14524
14525         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14526
14527 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14528
14529         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14530
14531         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14532
14533 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14534
14535         * configure.in: Fixed up so that ucsim is only configured once.
14536
14537         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14538
14539         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14540         (getPathDifference): As above.
14541
14542         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14543
14544         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14545
14546 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14547         * .version: Updated to 2.3.1
14548
14549         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14550         Added copyright header.
14551
14552         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14553         (assemble): Added support for macro based assembler commands.
14554         (linkEdit): Added support for macro based linker commands.
14555         (preProcess): Changed the pre-processor to use macros.
14556         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14557         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14558
14559         * device/lib/z80/crt0.s: Added module name for debugging.
14560
14561 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14562
14563         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14564
14565         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14566
14567         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14568
14569         * src/Makefile.in: Added SDCCmacro and SDCCutil
14570
14571 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14572
14573         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14574
14575 2001-09-16    <johan AT FRIJA>
14576
14577         * 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.
14578
14579 2001-09-15    <johan AT FRIJA>
14580
14581         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14582         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14583
14584 2001-09-11    <johan AT FRIJA>
14585
14586         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14587
14588 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14589
14590         * support/regression/tests/bug-460444.c: Added test case.
14591
14592         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14593         (genCast): Added justification for all of the asserts.
14594
14595 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14596
14597         * support/regression/support.c: _xdata replaced by xdata
14598
14599         * support/regression/spec.mk: removed _generic
14600
14601 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14602
14603         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14604
14605         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14606         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14607
14608         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14609
14610         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14611
14612         * support/regression/tests/bug-460010.c: Added test case.
14613
14614         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14615
14616 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
14617
14618         * support/regression/Makefile: inter-port-clean adjusted for mcs51
14619
14620         * support/regression/testfwk.c: removed workaround for bug #436344
14621
14622         * support/regression/tests/bp.c: use less memory with mcs51
14623
14624         * support/regression/tests/bug-441448.c: use less memory
14625
14626         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14627
14628         * support/regression/collate-results.py: typo
14629
14630 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
14631
14632         * support/regression/tests/fetchoverlap.c: Added new test case.
14633
14634         * support/regression/tests/bp.c: Added new test case.
14635
14636         * support/regression/tests/bug-448984.c: Added new test case.
14637
14638         * support/regression/tests/pow2shifts.c: Added new test case.
14639
14640         * src/z80/gen.c: Turned off the noise it normally generates for the release.
14641         (genlshTwo): Fixed right shift for count > 8.
14642
14643         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14644
14645 2001-09-08    <johan AT FRIJA>
14646
14647         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14648
14649 2001-09-07    <johan AT FRIJA>
14650
14651         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14652
14653         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14654
14655 2001-09-06    <johan AT FRIJA>
14656
14657         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14658         * bernhard noted me at this: "() equals to (void)" (1.38)
14659
14660 2001-09-05    <johan AT FRIJA>
14661
14662         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14663
14664 2001-09-04    <johan AT FRIJA>
14665
14666         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14667
14668
14669 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
14670
14671         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
14672
14673 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
14674
14675         * link/z80/aslink.h: Fixed path for PATH_MAX
14676
14677 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
14678
14679         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14680
14681         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14682
14683         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14684
14685         * 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.
14686
14687 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
14688
14689         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14690         (genCmp): Fixed up genCmp for the GB with longs.
14691
14692         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14693
14694         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14695
14696         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14697
14698         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14699
14700 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
14701
14702         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
14703
14704 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
14705
14706         * 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.
14707
14708         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14709
14710 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
14711
14712         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
14713
14714         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14715
14716 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
14717
14718   * sim/ucsim/configure:    little improvement of Cygwin-detection
14719   * sim/ucsim/configure.in: little improvement of Cygwin-detection
14720   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14721   * support/regression/tests/bug-221100.c: small changes for mcs51
14722   * support/regression/tests/bug-221168.c: small changes for mcs51
14723   * support/regression/tests/bug-227710.c: small changes for mcs51
14724   * support/regression/tests/staticinit.c: small changes for mcs51
14725   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14726   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14727   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14728
14729 $Revision$