9c9826d63906e287ee5dff7d56862510e3917e54
[fw/sdcc] / ChangeLog
1 2007-05-21 Raphael Neider <rneider AT web.de>
2
3         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
4           error message instead
5         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
6
7 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8
9         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
10
11 2007-05-21 Raphael Neider <rneider AT web.de>
12
13         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
14           closes #1722392
15         * src/regression/gpsim_assert.h,
16         * src/regression/Makefile,
17         * src/regression/pcodeopt.c: regression test for the above fix
18
19 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
20
21         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
22           jumps to self, fixed bug 1717281
23
24 2007-05-10 Borut Razem <borut.razem AT siol.net>
25
26         * support/scripts/gen_known_bugs.pl: cosmetic fix
27         * doc/knownbugs.html: generated by gen_known_bugs.pl
28
29 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
30
31         * src/SDCCast.c (createFunction): also generate non-inlined version of
32           function for functions declared as "static inline"
33         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
34           function can be inlined after non-inlined version generated.
35
36 2007-05-10 Borut Razem <borut.razem AT siol.net>
37
38         * support/scripts/gen_known_bugs.pl: added script
39           which generates knownbugs.html
40
41 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
42
43         * doc/knownbugs.html: updated for release 2.7.0
44
45 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
46
47         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
48
49 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
50
51         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
52           (throughout): updated generating comments
53         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
54           (throughout): updated generating comments
55         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
56           rule instead of at the second, or it might skip lines when removing the
57           complete match
58         * support/regression/tests/bug1714204.c: changed test to foo
59
60 2007-05-08 Borut Razem <borut.razem AT siol.net>
61
62         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
63           thanks to SDCC Distributed Compile Farm members,
64           added Z80 and GBZ80 command line options
65         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
66
67 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
68
69         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
70         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
71         * support/regression/tests/longlit.c: modified to be tested at all and
72           to pass the actual test
73
74 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
75
76         * device/include/mcs51/uPSD33xx.h: Added.
77
78 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
79
80         * device/lib/_gptrput.c,
81         * device/lib/_gptrget.c: removed old code,
82          (_gptrgetWord),
83         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
84         * support/regression/tests/bug1714204.c: new, added
85
86 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
87
88         * support/regression/tests/regtrack.c: test was never executed
89           because of the regression test being picky about white spaces.
90         * device/lib/mcs51/crtclear.asm: added comment
91
92 2007-05-06 Raphael Neider <rneider AT web.de>
93
94         * device/lib/pic/Makefile.rules,
95         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
96           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
97
98 2007-05-06 Raphael Neider <rneider AT web.de>
99
100         * src/pic16/device.h,
101         * src/pic16/main.h,
102         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
103           _pic16_setDefaultOptions): removed/reordered command-line args
104         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
105           devices, regrouped command line args, environment variables),
106           clarified sone points, added sections on how to add devices to the
107           PIC14/PIC16 ports
108
109 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
110
111         * src/z80/peeph.def: fixed bug in rule 2
112
113 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
114
115         * src/port.h: added TARGET_MCS51_LIKE
116         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
117           take advantage of it too
118         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
119           (shiftR2Left2Result): Optimized: don't check shifting by 0
120         * src/z80/peeph-z80.def,
121         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
122           modifications, see patch 1700823
123         * src/mcs51/peep.c (): fixed bug 1712928
124         * support/regression/tests/bug1712928.c: new, added
125
126 2007-05-05 Borut Razem <borut.razem AT siol.net>
127
128         * device/lib/pic16/Makefile.common.in,
129           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
130           removed bash dependencies
131
132 2007-05-01 Borut Razem <borut.razem AT siol.net>
133
134         * src/SDCCicode.c:
135           fixed bug #1710507: --i-code-in-asm makes compile fail
136           all iCode comments are now one liners
137         * src/mcs51/gen.c: fixed memory leak
138
139 2007-05-01 Raphael Neider <rneider AT web.de>
140
141         * device/lib/pic/libdev/*.c
142         * device/include/pic/*.h: regenerated all device libs from updated
143           .inc files
144         * support/scripts/inc2h.pl: documented usage, now uses strict to
145           catch more bugs
146
147 2007-04-30 Borut Razem <borut.razem AT siol.net>
148
149         * doc/sdccman.lyx:
150           fixed bug #1669175: Problem with space in output paths
151           documented how to use paths with spaces for Windows users
152
153 2007-04-29 Borut Razem <borut.razem AT siol.net>
154
155         * Fixed svn:eol-style and svn:keywords properties
156         * src/SDCCval.c: fixed bug
157           #1592871: Segfault with "large" const arrays of characters
158           replaced recursion with iteration
159         * Removed svn:executable property from non-executable files
160
161 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
162
163         * src/mcs51/gen.c (genRet): fixed bug 1707003
164
165 2007-04-27 Raphael Neider <rneider AT web.de>
166
167         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
168           createReachingDefinitions,assignValnums,pic16_destructDF,
169           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
170           prevent NULL pointer dereferences
171         * device/lib/pic/libdev/pic16f886.c,
172         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
173           prevent building them, gputils do not really support them yet
174
175 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
176
177         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
178           helps printf_small. 32 bytes more __idata mem.
179
180 2007-04-27 Raphael Neider <rneider AT web.de>
181
182         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
183           return early when pb or pb->pcHead is NULL (patch #1708427)
184         * src/regression/empty.c,
185         * src/regression/Makefile: added test with empty functions
186         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
187
188 2007-04-27 Borut Razem <borut.razem AT siol.net>
189
190         * src/SDCCast.c: fixed feature request
191           #1547512: Redundant strings linked when using sizeof("abc")
192
193 2007-04-23 Borut Razem <borut.razem AT siol.net>
194
195         * doc/sdccman.lyx, src/SDCCmain.c:
196           peep-hole comments are generated only if --fverbose-asm option is
197           specified and --no-peep-comments is not, as proposed by Frieder.
198         * support/regression/Makefile.in: compile regression tests with
199           --fverbose-asm option so one can "grep" whether a new (or an old)
200           peephole is (still) applied; requested by Frieder.
201
202 2007-04-23 Kevin Buettner <kevin AT buettner.to>
203
204         * device/include/pic/pic16f886.h,
205         * device/include/pic/pic16f887.h,
206         * device/lib/pic/libdev/pic16f886.c,
207         * device/lib/pic/libdev/pic16f887.c,
208         * device/include/pic/pic14devices.txt,
209         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
210
211 2007-04-23 Kevin Buettner <kevin AT buettner.to>
212
213         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
214           fixes #1704666
215
216 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
217
218         * device/lib/_memset.c: assembler version for mcs51
219
220 2007-04-22 Borut Razem <borut.razem AT siol.net>
221
222         * support/scripts/listerr.c: program to create the list of errors and
223           warnings list from - added
224         * doc/sdccman.lyx: removed the note
225           "For list of warnings and corresponding codes, see err_warn.txt"
226         * src/SDCCsymt.c: fixed bug #1699804:
227           Bug with some uses of sizeof(static local array) (MCS51)
228         * support/regression/tests/bug-1699804.c: added
229
230 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
231
232         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
233           (main): added option -i,
234           (asmbl, case S_INCL): use search_path_fopen,
235           mostly from patch 1579668 by Peter Miller, thanks
236         * src/z80/main.c: fixed typo --callee-saves-bc
237         * device/include/mcs51/compiler.h: added sfrword for Tasking
238
239 2007-04-20 Borut Razem <borut.razem AT siol.net>
240
241         * src/z80/main.c: replaced reserved keyword asm with asmblr
242
243 2007-04-19 Borut Razem <borut.razem AT siol.net>
244
245         * src/port.h: use const pointers to strings
246         * src/SDCCargs.h: declared getStringArg() and getIntArg()
247         * src/pic16/main.c: include SDCCargs.h
248         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
249           const char, since the strings are dynamically allocated
250         * src/SDCCmain.c: options.code_seg and options.const_seg are
251           dynamically allocated; check port specific command line options
252           before the general ones
253         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
254
255 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
256
257         * device/include/ds400rom.h,
258         * device/lib/ds390/lcd390.c,
259         * device/lib/ds390/memcpyx.c,
260         * device/lib/ds390/rtc390.c,
261         * device/lib/ds400/ds400rom.c,
262         * device/lib/ds400/memcpyx.c,
263         * device/lib/hc08/_ret.c: more replacements of keywords with their
264           double underscore equivalents
265         * device/lib/ds390/Makefile.in,
266         * device/lib/ds400/Makefile.in,
267         * device/lib/gbz80/Makefile.in,
268         * device/lib/hc08/Makefile.in,
269         * device/lib/mcs51/Makefile.in,
270         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
271
272 2007-04-17 Borut Razem <borut.razem AT siol.net>
273
274         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
275           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
276           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
277           to --fverbose-asm, to be gcc'ish
278
279 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
280
281         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
282
283 2007-04-17 Borut Razem <borut.razem AT siol.net>
284
285         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
286         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
287           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
288           with their double underscore equivalent
289
290 2007-04-14 Borut Razem <borut.razem AT siol.net>
291
292         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
293           source"
294
295 2007-04-13 Borut Razem <borut.razem AT siol.net>
296
297         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
298           C99 standard
299         * device/examples/serialcomm/windows/serial.[ch],
300           device/examples/serialcomm/windows/test_serialcomm.cpp:
301           updated by Bela Torok
302         * device/examples/serialcomm/windows/serialcomm.dsw,
303           device/examples/serialcomm/windows/serialcomm.dsp: added
304
305 2007-04-13 Jan Waclawek <wek AT efton.sk>
306
307         * doc/sdccman.lyx: additions and changes at various places
308           (submitted as #1697136).
309           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
310
311 2007-04-10 Borut Razem <borut.razem AT siol.net>
312
313         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
314           LyX file format changed to 245
315         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
316           "FreeWare" replaced with "free open source"
317
318 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
319
320         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
321
322 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
323
324         * device/include/pic16/pic18fregs.h,
325         * device/lib/_bp.c,
326         * device/lib/_decdptr.c,
327         * device/lib/_divsint.c,
328         * device/lib/_divslong.c,
329         * device/lib/_divuint.c,
330         * device/lib/_divulong.c,
331         * device/lib/_fs2schar.c,
332         * device/lib/_fs2sint.c,
333         * device/lib/_fs2slong.c,
334         * device/lib/_fs2uchar.c,
335         * device/lib/_fs2uint.c,
336         * device/lib/_fs2ulong.c,
337         * device/lib/_fsadd.c,
338         * device/lib/_fscmp.c,
339         * device/lib/_fsdiv.c,
340         * device/lib/_fseq.c,
341         * device/lib/_fsget1arg.c,
342         * device/lib/_fsget2args.c,
343         * device/lib/_fsgt.c,
344         * device/lib/_fslt.c,
345         * device/lib/_fsmul.c,
346         * device/lib/_fsneq.c,
347         * device/lib/_fsnormalize.c,
348         * device/lib/_fsreturnval.c,
349         * device/lib/_fsrshift.c,
350         * device/lib/_fssub.c,
351         * device/lib/_fsswapargs.c,
352         * device/lib/_gptrget.c,
353         * device/lib/_gptrgetc.c,
354         * device/lib/_gptrput.c,
355         * device/lib/_logexpf.c,
356         * device/lib/_modsint.c,
357         * device/lib/_modslong.c,
358         * device/lib/_moduint.c,
359         * device/lib/_modulong.c,
360         * device/lib/_mulint.c,
361         * device/lib/_mullong.c,
362         * device/lib/_schar2fs.c,
363         * device/lib/_ser.c,
364         * device/lib/_setjmp.c,
365         * device/lib/_sint2fs.c,
366         * device/lib/_slong2fs.c,
367         * device/lib/_spx.c,
368         * device/lib/_uchar2fs.c,
369         * device/lib/_uint2fs.c,
370         * device/lib/_ulong2fs.c,
371         * device/lib/asincosf.c,
372         * device/lib/atanf.c,
373         * device/lib/calloc.c,
374         * device/lib/ds390/tinibios.c,
375         * device/lib/ds400/tinibios.c,
376         * device/lib/expf.c,
377         * device/lib/free.c,
378         * device/lib/hc08/_mulint.c,
379         * device/lib/logf.c,
380         * device/lib/malloc.c,
381         * device/lib/printf_fast.c,
382         * device/lib/printf_tiny.c,
383         * device/lib/printfl.c,
384         * device/lib/realloc.c,
385         * device/lib/ser_ir.c,
386         * device/lib/serial.c,
387         * support/regression/tests/libmullong.c: replaced all special keywords
388           with their double underscore equivalent
389         * support/regression/ports/mcs51-xstack-auto/spec.mk,
390         * device/lib/Makefile.in: compile libs with --std-c99 instead of
391           --std-sdcc99
392         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
393           (genRet): if the bit-symbol is ruonly it already is in the carry
394         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
395         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
396         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
397           type UCHAR if dest is not bit
398
399 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
400
401         * device/include/math.h,
402         * device/lib/cotf.c,
403         * device/lib/expf.c,
404         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
405
406 2007-04-01 Borut Razem <borut.razem AT siol.net>
407
408         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
409           fixed bug #1692042: input buffer overflow...scanner uses REJECT
410         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
411           gcc_unreachable() called internal_error()...
412
413 2007-03-30 Raphael Neider <rneider AT web.de>
414
415         * src/pic/ralloc.c (isData): suppress garbage debug output
416
417 2007-03-28 Borut Razem <borut.razem AT siol.net>
418
419         * doc/sdccman.lyx:
420           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
421           is developed, built and used worldwide, and the word "night" doesn't
422           make any sense.
423
424 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
425
426         * device/include/mcs51/C8051F360.h: new, added
427         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
428
429 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
430
431         * src/SDCC.y (declaration_specifiers, function_specifier),
432         * support/Util/SDCCerr.c,
433         * support/Util/SDCCerr.h,
434         * src/SDCCsymt.h,
435         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
436           inline keyword
437         * src/SDCCmem.c (deallocParms),
438         * src/SDCCast.c: support for function inlining, not quite complete
439         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
440           'restrict' qualifier
441
442 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
443
444         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
445           (saveRBank, unsaveRBank): don't save bits,
446           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
447         * support/regression/tests/bug1535242.c: new, added
448         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
449           thanks Alexey Shamrin <shamrin AT gmail.com>,
450           made assert.h header ANSI compliant (added a check for NDEBUG macro,
451           removed header guard)
452         * .version,
453         * sdcc.spec: bumped version to 2.6.5
454         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
455
456 2007-03-22 Borut Razem <borut.razem AT siol.net>
457
458         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
459           fixed bug #1653671: sdcdb integration into ddd is broken
460
461 2007-03-22 Raphael Neider <rneider AT web.de>
462
463         * src/pic/gen.c (popGetExternal): augmented to also create references
464           to external variables (not only labels),
465           (genCall): comment on plan to reduce PAGESEL overhead,
466           (genFunction, genEndFunction): also save/restore FSR around interrupt
467           handling code, removed lots of unused code
468           (genDivOneByte): release acquired temp register
469         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
470           of popGetExternal
471         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
472           for registers that need to be saved during interrupts (FSR, STATUS,
473           PCLATH; W needs special handling), currently only FSR is used
474
475 2007-03-22 Raphael Neider <rneider AT web.de>
476
477         * device/include/pic/pic14devices.txt: 16f688 has only one config word
478
479 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
480
481         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
482
483 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
484
485         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
486
487 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
488
489         * as/link/aslink.h: added LKOBJEXT
490         * as/link/hc08/link_hc08.dsp,
491         * as/link/hc08/Makefile.bcc,
492         * as/link/hc08/Makefile.in,
493         * as/link/mcs51/aslink.dsp,
494         * as/link/mcs51/Makefile.bcc,
495         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
496         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
497         * as/link/lkaomf51.c: merged and moved
498         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
499         * as/link/z80/lkdata.c,
500         * as/link/lkdata.c: merged and moved
501         * as/link/hc08/lkmain.c,
502         * as/link/mcs51/lkmain.c: cosmetic changes
503         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
504         * as/link/lklex.c: use LKOBJEXT
505         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
506           ANSI-fied functions, removed bubble-sorts
507         * as/link/z80/lksym.c           as/link/lksym.c: merged,
508           ANSI-fied functions
509         * as/link/z80/linkgbz80.dsp,
510         * as/link/z80/linkz80.dsp,
511         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
512           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
513         * as/link/z80/lkhead.c,
514         * as/link/z80/lklex.c: deleted
515         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
516         * as/link/z80/lkmain.c: added copyfile()
517
518 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
519
520         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
521
522 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
523
524         * device/lib/_strlen.c: assembler version for mcs51
525
526 2007-03-13 Raphael Neider <rneider AT web.de>
527
528         * device/include/pic16/pic18f2221.h,
529         * device/include/pic16/pic18f2321.h,
530         * device/include/pic16/pic18f2331.h,
531         * device/include/pic16/pic18f4221.h,
532         * device/include/pic16/pic18f4321.h,
533         * device/include/pic16/pic18f4331.h: fixed config byte location names
534         * support/scripts/inc2h-pic16.pl: removed debug output, emit
535           consistently named config byte locations
536
537 2007-03-13 Borut Razem <borut.razem AT siol.net>
538
539         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
540           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
541           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
542           as/link/z80/Makefile.in, as/z80/Makefile.in:
543           introduced LDFLAGS
544
545 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
546
547         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
548         * device/lib/printf_large.c: pointer was converted to generic
549         pointer for mcs51 models other than model-small (Maarten noticed)
550
551 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
552
553         * device/include/mcs51/ADuC84x.h: Added.
554
555 2007-03-10 Borut Razem <borut.razem AT siol.net>
556
557         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
558           fixed RFE #1624219: double backslashes in filenames;
559           functions hexEscape(), octalEscape() and copyStr() moved from
560           SDCCval.c to SDCCutil.c and made them glovbally available
561
562 2007-03-09 Borut Razem <borut.razem AT siol.net>
563
564         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
565           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
566           1673361: Missaligned comments in output files
567
568 2007-03-09 Raphael Neider <rneider AT web.de>
569
570         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
571
572 2007-03-09 Raphael Neider <rneider AT web.de>
573
574         * src/pic/gen.c,
575         * src/pic/glue.c,
576         * src/pic/ralloc.c: suppress undesired debug output
577         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
578
579 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
580
581         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
582
583 2007-03-07 Borut Razem <borut.razem AT siol.net>
584
585         * device/lib/pic16/libdev/pic18f[24][34]31.c:
586           search include files in the current directory
587
588 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
589
590         * src/SDCCglue.c (emitMaps, glue),
591         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
592           absolute xdata
593         * support/regression/tests/absolute.c: added xdata test
594
595 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
596
597         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
598           added condition to macro, fixes bug 1666080
599
600 2007-03-02 Raphael Neider <rneider AT web.de>
601
602         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
603
604 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
605
606         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
607         be cleared. Unconditionally set __XPAGE
608         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
609
610 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
611
612         * src/SDCCglobl.h,
613         * src/SDCCmain.c,
614         * src/mcs51/gen.c,
615         * src/mcs51/rtrack.c,
616         * src/ds390/gen.c,
617         * doc/sdccman.lyx: added --no-gen-comments
618         * src/mcs51/peeph.def: added 192.b, disabled 185
619
620 2007-02-25 Raphael Neider <rneider AT web.de>
621
622         * src/pic16/gen.c (genCast): fixed typo
623         * device/lib/pic16/Makefile.subdir: only install existing files
624         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
625
626 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
627
628         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
629         * device/lib/mcs51/crtclear.asm,
630         * device/lib/mcs51/crtxclear.asm: renumbered labels
631         * device/lib/mcs51/Makefile.in: added crtcall.asm
632         * doc/sdccman.lyx: documented mcs51 crt* library startup code
633         * src/mcs51/gen.c (movc): removed,
634           (aopGet, genPlusBits): clear a after loading the carry (possibly from
635             acc.x or psw.x),
636           (toCarry, genSend, genRet): added function toCarry,
637           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
638           (assignBit, genAssign, genCast): added function assignBit
639         * src/mcs51/Makefile.bcc: added rtrack.c
640         * src/mcs51/ralloc.h: made valueKnown a bitfield
641         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
642           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
643           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
644         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
645         * src/z80/gen.c: added AOP_IS_PAIRPTR,
646           (_pop): only pop valid pairs, see gencjneshort,
647           (gencjneshort): return pair that still needs to be popped, restructured,
648           (gencjne, genCmpEq): call _pop
649
650 2007-02-23 Raphael Neider <rneider AT web.de>
651
652         * device/include/pic/pic14devices.txt: 16f684 has only one config word
653
654 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
655
656         * device/include/mcs51/P89LPC925.h: Added.
657
658 2007-02-18 Raphael Neider <rneider AT web.de>
659
660         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
661
662 2007-02-17 Borut Razem <borut.razem AT siol.net>
663
664         * support/cpp2/directives.c, support/cpp2/version.c:
665           synchronized with GCC CPP 4.1.2
666
667 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
668
669         * src/mcs51/rtrack.h,
670         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
671           by checking the strings passed by emitcode() to the assembler.
672           Feel free to change. This in part addresses RFE #482179.
673           Set environment variable SDCC_RTRACK to enable.
674         * src/mcs51/gen.c: inserted hooks
675         * src/mcs51/ralloc.h: added two members to struct regs
676         * support/regression/tests/regtrack.c: added
677
678 2007-02-14 Borut Razem <borut.razem AT siol.net>
679
680         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
681         * Makefile.in: applied patch from Makefile related part of
682           #1469393: Compiler does not initialize static data
683
684 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
685
686         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
687           for better fix of bug 1273984, compiles pic16 rand.c
688
689 2007-02-12 Borut Razem <borut.razem AT siol.net>
690
691         * src/pic16/main.c: fixed pic16 standard library directory bug
692
693 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
694
695         * src/hc08/gen.c (genSwap): fix swap regression test
696
697 2007-02-10 Borut Razem <borut.razem AT siol.net>
698
699         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
700           with same scope
701         * support/regression/tests/bug-1654060.c: added regression test for
702           #1654060
703
704 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
705
706         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
707         bit moves in return statement
708
709 2007-02-09 Borut Razem <borut.razem AT siol.net>
710
711         * src/SDCC.y: fixed bug #1654060 typedef within function causes
712           syntax error
713
714 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
715
716         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
717         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
718
719 2007-02-07 Raphael Neider <rneider AT web.de>
720
721         * src/pic16/devices.inc,
722         * device/include/pic16/pic18fregs.h,
723         * device/include/pic16/pic18f[24][34]31.h,
724         * device/lib/pic16/libdev/pic18f[24][34]31.c,
725         * device/lib/pic16/pics.all: added 18f[24][34]31 family
726         * device/lib/pic16/libio/i2c.ignore: do not build i2c
727
728 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
729
730         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
731           can this have lived here for so many years?
732         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
733           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
734         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
735
736 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
737
738         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
739         appended by loop induction must be at the very end of the eBBlock
740
741 2007-02-05 Kevin Vigor
742
743         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
744
745 2007-02-05 Borut Razem <borut.razem AT siol.net>
746
747         * support/regression/fwk/lib/timeout.c: native WIN32 port,
748           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
749
750 2007-02-03 Borut Razem <borut.razem AT siol.net>
751
752         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
753           applied patch #1646602 option to set default signedness of char to
754           unsigned, added -funsigned-char command line option,
755           thanks to Gunther Jehle
756         * device/lib/Makefile.in: added the -f option to rm so it doesn't
757           prompt for file deletion a few hundred times (especially the
758           subversion files, which have ro permissions so it asks for
759           confirmation), thanks to Simon McAuliffe;
760           added {} + option to find in order to remove multiple files from a
761           single rm commad
762
763 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
764
765         * device/include/mcs51/SST89x5xRDx.h: Added.
766
767 2007-02-02 Raphael Neider <rneider AT web.de>
768
769         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
770         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
771
772 2007-02-01 Raphael Neider <rneider AT web.de>
773
774         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
775           config words again
776
777 2007-01-31 Borut Razem <borut.razem AT siol.net>
778
779         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
780           if compiled with GCC. Thanks to Raphael Neider
781
782 2007-01-31 Raphael Neider <rneider AT web.de>
783
784         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
785             operand names, handles name and (name + n) for all n,
786           (sameBank): restructured, also check bank allocation policy,
787         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
788           (pic14_operandsAllocatedInSameBank): check whether to operands
789             will be allocated into the same bank (i.e., section) to reduce
790             BANKSEL overhead, queried from pcode.c:sameBank,
791           (pic14printLocals): reintroduced clustering registers into a single
792             section: all compiler generated symbols will now reside in one
793             bank (per file), reducing BANKSEL overhead and code size,
794           (showAllMemmaps): use local dbuf where possible
795
796 2007-01-29 Raphael Neider <rneider AT web.de>
797
798         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
799           (call_libraryfunc): retrieve/create symbol and mark as used,
800           (genFunction): mark defined functions as non-extern and add again
801            to code memmap for later output
802         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
803           (pic14printLocals): reworked for new symbol emission,
804           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
805           showAllMemmaps): reworked symbol output using dbufs, added handling
806             of string literals (still incomplete),
807           (picglue): removed symbol emission, moved into showAllMemmaps,
808           (emitSymbolSet): new workhorse for symbol output,
809           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
810
811 2007-01-29 Borut Razem <borut.razem AT siol.net>
812
813         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
814           component contains the extension separator.
815
816 2007-01-28 Borut Razem <borut.razem AT siol.net>
817
818         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
819           on WIN32
820         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
821           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
822           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
823           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
824           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
825           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
826           src/z80/gen.c, support/Util/MySystem.c:
827           accept slash and backslash as directory separator on WIN32 and
828           Cygwin ports
829
830 2007-01-28 Raphael Neider <rneider AT web.de>
831
832         * src/pic16/devices.inc,
833         * device/include/pic16/pic18f[24][23]21.h,
834         * device/include/pic16/pic18fregs.h,
835         * device/lib/pic16/libdev/pic18f[24][23]21.c,
836         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
837         * device/lib/pic16/libio/adc.ignore,
838         * device/lib/pic16/libio/i2c.ignore,
839         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
840           family, as gputils do not yet support the devices
841         * device/lib/pic16/Makefile.subdir: ignore errors on install
842         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
843           headers and libraries from gputils .inc files
844
845 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
846
847         * doc/sdccman.lyx: add printf_fast_f precision limitation note
848
849 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
850
851         * doc/sdccman.lyx: add printf benchmarks
852
853 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
854
855         * device/lib/printf_fast.c: fix %c, char promoted to int
856         * device/lib/printf_tiny.c: fix %c, char promoted to int
857
858 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
859
860         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
861
862 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
863
864         * support/regression/tests/swap.c: 64 bit hosts failed
865         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
866
867 2007-01-25 Raphael Neider <rneider AT web.de>
868
869         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
870           based on absolute register address, patch by Alex Blond
871
872 2007-01-22 Raphael Neider <rneider AT web.de>
873
874         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
875           emitted, do not emit them again...
876
877 2007-01-22 Raphael Neider <rneider AT web.de>
878
879         * src/regression/bank1.c, src/regression/compare6.c,
880           src/regression/add.c: cosmetic changes
881         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
882         * src/pic/gen.c: fixed global zero and one,
883           (aopForSym): removed unued code,
884           (aopGet): assert aop is defined, check and use `index' of
885             pCodeImmd operands (fixes #1630908),
886         * src/pic/pcode.c (get_op): added output of generic pointer tag,
887           (register_reassign): prevent accidental register unification,
888           (ReuseReg): cosmetic changes (also above)
889         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
890           pic14emitStaticSeg): do not emit initialized data,
891           (printIval*): replaced with working versions,
892           (pic14createInterruptVect,picglue): use idata for initialized data,
893             now init data should work in all modules (not only main()),
894         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
895
896 2007-01-21 Borut Razem <borut.razem AT siol.net>
897
898         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
899           use -fPIC or -fpic if they are supported and not ignored
900         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
901         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
902
903 2007-01-20 Borut Razem <borut.razem AT siol.net>
904
905         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
906           implemented RFE #1470316: allow "$" in variable names
907
908 2007-01-20 Raphael Neider <rneider AT web.de>
909
910         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
911
912 2007-01-20 Raphael Neider <rneider AT web.de>
913
914         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
915         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
916         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
917         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
918           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
919         * device/lib/pic/libdev/pic*.c,
920         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
921         * device/lib/pic/libdev/Makefile.in: show progress
922
923 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
924
925         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
926         * support/scripts/sdcc_cygwin_mingw32,
927         * support/scripts/sdcc_mingw32,
928         * support/scripts/build.mak: replaced --datadir by --datarootdir for
929         conformance with autoconf 2.6
930
931 2007-01-19 Raphael Neider <rneider AT web.de>
932
933         * src/pic/device.c (register_map): fixed list construction
934         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
935           (genMod): removed case for genModbits,
936           (genModbits): removed as now unused/unimplemented
937         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
938
939 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
940
941         * support/regression/tests/swap.c: added in response to #1638622
942         * doc/sdccman.lyx: synced version, minor changes
943
944 2007-01-18 Borut Razem <borut.razem AT siol.net>
945
946         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
947           thanks to Gunther Jehle
948         * src/asm.c: don't die if the file drfined in #line couldn't be opened
949         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
950           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
951           use filename in lineno instead.
952         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
953           print the file name in ast_print()
954
955 2007-01-18 Borut Razem <borut.razem AT siol.net>
956
957         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
958           defined in MSVC
959         * src/SDCC.lex: stringLiteral() returns const char pointer,
960           EOF detection in stringLiteral(), fixed asmbuf memory leak,
961           fixed column counting
962         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
963           accept const char pointer as parameter
964         * src/SDCCdwarf2.c: corrected buffer size
965
966 2007-01-17 Borut Razem <borut.razem AT siol.net>
967
968         * support/Util/dbuf_string.c: fixed for amd64
969
970 2007-01-15 Borut Razem <borut.razem AT siol.net>
971
972         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
973           removed terminal symbol ELIPSIS, since it was never generated by the
974           lexer and it was wrongly used in parameter_identifier_list rule
975
976 2007-01-15 Raphael Neider <rneider AT web.de>
977
978         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
979             code page and data banking description
980         * src/pic/genarith.c,
981         * src/pic/gen.h: removed bit arithmetic functions,
982             updated exit(1) to exit(EXIT_FAILURE)
983         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
984         * device/include/pic16/pic18f2455.h,
985         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
986             TRISD and TRISE, fixed/added some bit names
987         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
988         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
989             updated pic18f2455.{c,h} instead of duplicating them
990
991 2007-01-14 Borut Razem <borut.razem AT siol.net>
992
993         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
994           Cannot debug files that contain spaces in the path name
995           by converting spaces in asm file name to underscores
996
997 2007-01-13 Borut Razem <borut.razem AT siol.net>
998
999         * doc/sdccman.lyx: fixed format errors
1000
1001 2007-01-10 Borut Razem <borut.razem AT siol.net>
1002
1003         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
1004           codeseg/constseg #pragma fail
1005         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
1006         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
1007           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
1008           suppoprt/cpp2/sdcpp.[ch]: house cleaning
1009
1010 2007-01-09 Borut Razem <borut.razem AT siol.net>
1011
1012         * get rid of diagnistic.[ch], pretty-print.[ch],
1013           c-pretty-print.[ch], ... used just for error, warning, ...
1014           message formatting
1015         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
1016           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
1017           suppoprt/cpp2/pretty-print.[ch]:
1018           removed
1019         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
1020           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
1021           suppoprt/cpp2/sdcpp.dsp:
1022           changed
1023
1024 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
1025
1026         * device/lib/printf_large.c (output_float): removed recursion,
1027           use smaller buffer on stack for mcs51,
1028           fixed bug printing 1.96
1029         * support/regression/tests/snprintf.c: added test
1030
1031 2007-01-07 Borut Razem <borut.razem AT siol.net>
1032
1033         * use dynamic memory buffers instead temporary files
1034         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
1035           added
1036         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
1037           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
1038           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
1039           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
1040           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
1041           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
1042           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
1043           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
1044           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
1045           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
1046           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
1047           support/Util/dbuf.c, support/Util/dbuf.h:
1048           modified
1049         * .version, sdcc.spec: bumped version to 2.6.4
1050
1051 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1052
1053         * src/port.h: added TARGET_Z80_LIKE macro
1054         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
1055           output PSEG location if --xram-loc or --xstack-loc was used
1056         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
1057
1058 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1059
1060         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
1061         * as/as_z80.dsp,   as/z80/as_z80.dsp,
1062         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
1063         * sdcc.dsw: moved project files into subdir
1064         * as/hc08/as_hc08.dsp,
1065         * as/hc08/Makefile.bcc,
1066         * as/hc08/Makefile.in,
1067         * as/mcs51/Makefile.bcc,
1068         * as/mcs51/Makefile.in,
1069         * as/z80/Makefile.bcc,
1070         * as/z80/Makefile.in,
1071         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
1072         * as/hc08/asm.h,
1073         * as/mcs51/asm.h,
1074         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
1075         * as/hc08/asmain.c,
1076         * as/hc08/assym.c,
1077         * as/mcs51/asmain.c,
1078         * as/mcs51/assym.c,
1079         * as/z80/assym.c: removed include "strcmpi.h"
1080         * as/hc08/strcmpi.c,
1081         * as/hc08/strcmpi.h,
1082         * as/mcs51/strcmpi.c,
1083         * as/mcs51/strcmpi.h,
1084         * support/Util/strcmpi.c,
1085         * support/Util/strcmpi.h: removed files
1086         * as/strcmpi.c: added as_strncmpi()
1087
1088 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1089
1090         * sdcc.dsw: Added some dependencies on project config.dsp
1091
1092 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
1093
1094         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
1095           with [di]ram_start to fix a regresion
1096
1097 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
1098
1099         * configure.in: added missing mcs51 in status output
1100         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
1101         directory
1102         * debugger/mcs51/clean.mk (distclean): remove config.h
1103         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
1104         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
1105         options.h, s-options-h and options.c
1106         * support/cpp2/clean.mk: unused, removed
1107         * Makefile.common.in,
1108         * main_in.mk,
1109         * as/Makefile.in,
1110         * as/hc08/Makefile.in,
1111         * as/hc08/clean.mk,
1112         * as/mcs51/Makefile.in,
1113         * as/mcs51/clean.mk,
1114         * as/z80/clean.mk,
1115         * as/z80/conf.mk,
1116         * as/z80/Makefile.in,
1117         * as/z80/clean.mk,
1118         * as/link/Makefile.in,
1119         * as/link/hc08/Makefile.in,
1120         * as/link/hc08/clean.mk,
1121         * as/link/mcs51/Makefile.in,
1122         * as/link/mcs51/clean.mk,
1123         * as/link/z80/Makefile.in,
1124         * as/link/z80/clean.mk,
1125         * as/link/z80/conf.mk,
1126         * debugger/mcs51/Makefile.in,
1127         * debugger/mcs51/clean.mk,
1128         * device/include/Makefile.in,
1129         * device/lib/Makefile.in,
1130         * device/lib/mcs51/Makefile.in,
1131         * device/lib/pic/Makefile.in,
1132         * device/lib/pic/Makefile.common.in,
1133         * device/lib/pic/Makefile.subdir,
1134         * device/lib/pic/Makefile.rules,
1135         * device/lib/pic16/libio/Makefile.in,
1136         * device/lib/pic16/Makefile.subdir,
1137         * device/lib/pic16/libdev/Makefile.in,
1138         * device/lib/pic16/Makefile.rules,
1139         * device/lib/pic16/Makefile.common.in,
1140         * sim/ucsim/avr.src/Makefile.in,
1141         * sim/ucsim/main_in.mk,
1142         * sim/ucsim/cmd.src/Makefile.in,
1143         * sim/ucsim/doc/Makefile.in,
1144         * sim/ucsim/gui.src/Makefile.in,
1145         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1146         * sim/ucsim/gui.src/serio.src/Makefile.in,
1147         * sim/ucsim/hc08.src/Makefile.in,
1148         * sim/ucsim/libltdl/Makefile.in,
1149         * sim/ucsim/s51.src/Makefile.in,
1150         * sim/ucsim/sim.src/Makefile.in,
1151         * sim/ucsim/sim.src/conf.mk,
1152         * sim/ucsim/xa.src/Makefile.in,
1153         * sim/ucsim/z80.src/Makefile.in,
1154         * src/Makefile.in,
1155         * src/clean.mk,
1156         * src/port.mk,
1157         * support/cpp2/Makefile.in,
1158         * support/librarian/Makefile.in,
1159         * support/librarian/clean.mk,
1160         * support/makebin/Makefile.in,
1161         * support/makebin/clean.mk,
1162         * support/packihx/Makefile.in,
1163         * support/regression/Makefile.in,
1164         * support/regression/ports/ds390/spec.mk,
1165         * support/regression/ports/gbz80/spec.mk,
1166         * support/regression/ports/hc08/spec.mk,
1167         * support/regression/ports/mcs51/spec.mk,
1168         * support/regression/ports/mcs51-large/spec.mk,
1169         * support/regression/ports/mcs51-medium/spec.mk,
1170         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1171         * support/regression/ports/pic14/spec.mk,
1172         * support/regression/ports/pic16/spec.mk,
1173         * support/regression/ports/mcs51-stack-auto/spec.mk,
1174         * support/regression/ports/ucz80/spec.mk,
1175         * support/regression/ports/xa51/spec.mk,
1176         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1177         adding a slash after $(top_builddir) and/or adding @datarootdir@
1178         * configure.in,
1179         * debugger/mcs51/configure.in,
1180         * device/lib/pic/configure.in,
1181         * device/lib/pic16/configure.in,
1182         * sim/ucsim/configure.in,
1183         * support/cpp2/configure.in,
1184         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1185         * configure,
1186         * debugger/mcs51/configure,
1187         * device/lib/pic/configure,
1188         * device/lib/pic16/configure,
1189         * sim/ucsim/configure,
1190         * support/cpp2/configure,
1191         * support/packihx/configure: generated with autoconf 2.60
1192
1193 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1194
1195         * as/link/hc08/lkihx.c (newArea),
1196         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1197
1198 2007-01-02 Borut Razem <borut.razem AT siol.net>
1199
1200         * doc/sdccman.lyx: documented #pragma sdcc_hash
1201         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1202           initialized to 0
1203         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1204
1205 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1206
1207         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1208         empty 'while'-loop to work correctly, see regression test 'while.c'
1209         * support/regression/tests/while.c: added
1210
1211 2007-01-01 Borut Razem <borut.razem AT siol.net>
1212
1213         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1214           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1215           support/cpp2/libcpp/sdcpp.c:
1216           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1217         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1218         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1219
1220 2006-12-31 Borut Razem <borut.razem AT siol.net>
1221
1222         * SDCPP synchronized with GCC CPP release version 4.1.1,
1223           currently the latest release:
1224         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1225           support/cpp2/libcpp/include/cpp-id-data.h
1226           support/cpp2/libiberty/fopen_unlocked.c
1227           support/cpp2/libiberty/md5.c
1228           support/cpp2/md5.h
1229           support/cpp2/opt-functions.awk
1230           support/cpp2/opt-gather.awk
1231           support/cpp2/optc-gen.awk
1232           support/cpp2/opth-gen.awk:
1233           added
1234         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1235           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1236           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1237           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1238           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1239           support/cpp2/diagnostic.h, support/cpp2/except.h,
1240           support/cpp2/hwint.h, support/cpp2/input.h,
1241           support/cpp2/intl.h, support/cpp2/move-if-change,
1242           support/cpp2/opts.c, support/cpp2/opts.h,
1243           support/cpp2/output.h, support/cpp2/prefix.c,
1244           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1245           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1246           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1247           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1248           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1249           support/cpp2/version.c:
1250           modified
1251         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1252           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1253           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1254           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1255           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1256           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1257           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1258           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1259           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1260           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1261           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1262           moved
1263         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1264           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1265           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1266           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1267           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1268           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1269           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1270           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1271           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1272           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1273           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1274           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1275           support/cpp2/system.h:
1276           deleted / moved
1277
1278 2006-12-31 Borut Razem <borut.razem AT siol.net>
1279
1280         * configure.in, configure: fixed bug #1538756: configure dies if bison
1281           and flex are not installed, 2nd try
1282
1283 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1284
1285         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1286         400.x for better code in RFE 899102
1287
1288 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1289
1290         * src/SDCCpeeph.c (deadMove),
1291         * src/port.h,
1292         * src/mcs51/peep.h: renamed 'op' by 'reg'
1293         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1294         (scan4op): small change for removeDeadMove(), added support for
1295         'callee saves' and/or PACLL function calls,
1296         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1297         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1298         left in new dispatcher mcs51DeadMove()
1299         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1300         removeDeadMove()
1301         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1302
1303 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1304
1305         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1306           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1307
1308 2006-12-30 Borut Razem <borut.razem AT siol.net>
1309
1310         * support/cpp2/spacs.h: deleted from svn
1311         * configure.in, configure: fixed bug #1538756: configure dies if bison
1312           and flex are not installed
1313
1314 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1315
1316         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1317           with this z80 passes printf float test when enabled
1318         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1319
1320 2006-12-28 Borut Razem <borut.razem AT siol.net>
1321
1322         * support/cpp2/config.in, support/cpp2/configure.in,
1323           support/cpp2/configure, support/cpp2/Makefile.in:
1324           fix for the solaris build
1325
1326 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1327
1328         * src/SDCC.y (type_specifier2, pointer),
1329         * src/SDCCsymt.h,
1330         * src/SDCCsymt.c (mergeSpec, checkSClass),
1331         * support/Util/SDCCerr.c,
1332         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1333         * support/valdiag/valdiag.py: Allow test cases to specify
1334           required language standard
1335         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1336         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1337
1338 2006-12-27 Borut Razem <borut.razem AT siol.net>
1339
1340         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1341         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1342           mbchar removed
1343         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1344           fixed for borland C
1345         * support/cpp2/libiberty/Makefile.bcc: updated
1346         * src/pic16/main.c: fixed #pragma udata handling
1347         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1348
1349 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1350
1351         * src/SDCCpeeph.c: made labelHashEntry global,
1352         made pcDistance, FBYNAME static,
1353         (pcDistance): made static, use isComment and isLabel,
1354         (deadMove): added,
1355         (getLabelRef): added, extracted from labelRefCount(),
1356         (labelRefCount): use new getLabelRef(),
1357         (callFuncByName): made static, added deadMove,
1358         use isComment and isLabel,
1359         (newPeepRule): made static, set isLabel,
1360         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1361         labels from peephole rules,
1362         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1363         when isComment or isLabel is set
1364         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1365         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1366         to make them global
1367         * src/mcs51/peep.h: added
1368         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1369         * src/port.h: added peep->deadMove to port structure
1370         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1371         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1372         deadMove, finally removed no. 1 and 2
1373         * src/mcs51/gen.c,
1374         * src/pic/gen.c,
1375         * src/z80/gen.c,
1376         * src/z80/ralloc.c,
1377         * src/pic16/gen.c,
1378         * src/ds390/gen.c,
1379         * src/hc08/gen.c: mark lines with isComment or isLabel
1380         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1381         * .version,
1382         * sdcc.spec: bumped version to 2.6.3
1383
1384 2006-12-26 Borut Razem <borut.razem AT siol.net>
1385
1386         * support/cpp2/Makefile.in: added dependency on options.h
1387         * configure: regenerated
1388         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1389         * support/cpp2/Makefile.in: added vasprintf.c
1390
1391 2006-12-25 Borut Razem <borut.razem AT siol.net>
1392
1393         * SDCPP synchronized with GCC CPP release version 3.4.6,
1394           the latest release before 4.x:
1395         * support/cpp2/Makefile.in, support/cpp2/config.h,
1396           support/cpp2/configure, support/cpp2/configure.in,
1397           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1398           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1399           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1400           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1401           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1402           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1403           support/cpp2/cpptrad.c, support/cpp2/except.h,
1404           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1405           support/cpp2/hwint.h, support/cpp2/intl.h,
1406           support/cpp2/line-map.c, support/cpp2/line-map.h,
1407           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1408           support/cpp2/output.h, support/cpp2/prefix.c,
1409           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1410           support/cpp2/system.h, support/cpp2/version.c:
1411           modified
1412         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1413           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1414           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1415           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1416           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1417           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1418           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1419           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1420           support/cpp2/move-if-change, support/cpp2/opts.c,
1421           support/cpp2/opts.h, support/cpp2/opts.sh,
1422           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1423           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1424           support/cpp2/win32, support/cpp2/win32/dirent.c,
1425           support/cpp2/win32/dirent.h:
1426           added
1427         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1428         * support/cpp2/sdcpp.h: renamed from sdcc.h
1429         * sdcppinit.c: deleted
1430
1431 2006-12-23 Borut Razem <borut.razem AT siol.net>
1432
1433         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1434           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1435           preproc.c: an other try to fix bug #982435: introduced
1436           -pedantic-parse-number command line option and pedantic_parse_number
1437           pragma
1438
1439 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1440
1441         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1442            BSEG handling,
1443           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1444            corrected overlayed areax addresses, warn about memory overlaps
1445         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1446         * src/avr/main.c,
1447         * src/ds390/main.c,
1448         * src/hc08/main.c,
1449         * src/mcs51/main.c,
1450         * src/pic16/main.c,
1451         * src/pic/main.c,
1452         * src/xa51/main.c,
1453         * src/z80/main.c,
1454         * src/port.h: added xabs_name and iabs_name
1455         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1456           (glue, emitMaps): create and emit maps d_abs and i_abs
1457         * src/SDCCglue.h: cosmetic changes
1458         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1459         * src/SDCCmem.h,
1460         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1461           (allocDefault): put absolute, initialized globals in them
1462         * support/regression/tests/absolute.c: added absolute bdata test
1463         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1464
1465 2006-12-20 Borut Razem <borut.razem AT siol.net>
1466
1467         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1468         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1469           added regression test for bug #982435
1470
1471 2006-12-18 Borut Razem <borut.razem AT siol.net>
1472
1473         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1474         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1475           small cosmetic changes
1476         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1477         * support/regression/tests/bug-1351710.c: added regression test
1478
1479 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1480
1481         * doc/sdccman.lyx: added the long missed iCode table
1482           "<where is figure II?>", added links to wiki
1483
1484 2006-12-17 Borut Razem <borut.razem AT siol.net>
1485
1486         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1487           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1488           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1489           unified table driven pragma handling, pragma argument type checking
1490         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1491           current one - version 1.1.3
1492         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1493
1494 2006-12-13 Raphael Neider <rneider AT web.de>
1495
1496         * src/pic/device.h: removed AssignedMemory structure and macros
1497         * src/pic/device.c: removed global finalMapping (linker assigns
1498             memory locations),
1499           (register_map): add SFRs to remembered memRanges
1500           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1501           assignFixedRegisters,assignRelocatableRegisters): removed,
1502           (setMaxRAM,validAddress): adapted accordingly,
1503           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1504             reasonably sized sharebanks,
1505         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1506           (allDefsOutOfRange): removed unused code,
1507         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1508             handling
1509         * src/pic/pcode.c (register_reassign): removed recursion warning,
1510             fired far too often,
1511         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1512             to use existing pic14_stringInSet() to avoid duplicate symbols,
1513             tidied up the code a bit,
1514           (pic14printLocals): added in symmetry to printExterns, replaces
1515             writeUsedRegs more or less,
1516           (picglue): call new pic14_printLocals(),
1517         * device/include/pic/pic*.h: removed #pragma memmap directives,
1518             information gathered from include/pic/pic14devices.txt
1519         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1520
1521 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1522
1523         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1524
1525 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1526
1527         * device/include/mcs51/cc2430.h: fixed missing ';'
1528
1529 2006-12-10 Raphael Neider <rneider AT web.de>
1530
1531         * device/lib/pic16/libc/stdio/vfprintf.c,
1532         * device/lib/pic16/libc/stdio/printf_small.c,
1533         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1534           char arguments, as char varargs are cast to int by the caller,
1535           hopefully fixes #1604915 (other device libraries are still affected)
1536
1537 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1538
1539         * src/mcs51/ralloc.c (packRegsForAssign),
1540         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1541
1542 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1543
1544         * device/include/malloc.h: removed init_dynamic_memory
1545         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1546           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1547         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1548         * device/lib/libsdcc.lib,
1549         * device/lib/Makefile.in,
1550         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1551         * doc/sdccman.lyx: documented use of new _heap.c
1552         * support/regression/tests/malloc.c: removed init_dynamic_memory
1553         * src/cdbFile.c(spacesToUnderscores): new function,
1554           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1555           1068030
1556         * device/include/tinibios.h: removed defines for putchar and getchar
1557         * device/lib/ds390/Makefile.in: added putchar.c
1558         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1559
1560 2006-12-09 Borut Razem <borut.razem AT siol.net>
1561
1562         * support/cpp2/sdcc.h: prevent multiple inclusion
1563         * support/cpp2/options.h: deleted
1564
1565 2006-12-08 Borut Razem <borut.razem AT siol.net>
1566
1567         * support/cpp2/sdcc.h: removed x*alloc() macros
1568         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1569         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1570           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1571         * support/cpp2/system.h: moved #include "sdcc.h"
1572         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1573           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1574           added
1575         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1576           -funsigned-char options
1577         * support/cpp2/sdcppmain.c: fixed bug 1611411
1578
1579 2006-12-07 Borut Razem <borut.razem AT siol.net>
1580
1581         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1582           directive
1583
1584 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1585
1586         * src/SDCCsymt.c (addDecl): fixed bug 1609244
1587         * src/SDCCmain.c (linkEdit): fixed bug 1609279
1588         * doc/sdccman.lyx,
1589         * .version: bumped to 2.6.2 because a) it's been a while
1590           b) the linker sources have moved c) the preprocessor is upgraded
1591
1592 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1593
1594         * support/regression/tests/snprintf.c: some checks
1595         * lib/src/printf_large.c: %bc: read char instead of int from stack
1596
1597 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1598
1599         * device/include/mcs51/cc2430.h: inserted _XPAGE
1600
1601 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1602
1603         * device/include/mcs51/cc2430.h: added
1604
1605 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1606
1607         * device/include/asm/default/features.h,
1608         * device/include/asm/ds390/features.h,
1609         * device/include/mcs51/at89s53.h,
1610         * device/include/ser.h,
1611         * device/include/ser_ir.h,
1612         * device/include/serial.h: changed keywords to double underscore variants,
1613           fixes bug 1590261 some more, thanks Steven Borley
1614
1615 2006-12-01 Raphael Neider <rneider AT web.de>
1616
1617         * src/pic/pcode.c (register_reassign): do not crash on recursive code
1618           but emit warning (recursion is not supported for pic14)
1619
1620 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1621
1622         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1623         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1624
1625 2006-11-30 Raphael Neider <rneider AT web.de>
1626
1627         * src/pic/device.c (dump_sfr): always emit symbols
1628         * src/pic/glue.c (pic14printPublics): fixed typo
1629
1630 2006-11-30 Raphael Neider <rneider AT web.de>
1631
1632         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1633           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1634           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1635            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1636            a sharebank, use a non-shared bank for the stack if none available
1637         * src/pic/device.h (struct memRange): added linked list next field,
1638           added prototypes for above functions
1639         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1640           (typeRegWithIdx): accept fixed and unfixed stack registers
1641         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1642           the stack, handle shared and banked stack (except for WSAVE),
1643           (insertBankSel): removed useless optimization (will never fire),
1644           (FixRegisterBanking): added optimization for devices with only one
1645           possibly aliased bank of memory, like 16f84
1646         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1647           devices have no SHAREBANK in the linker script
1648         * device/include/pic/pic14devices.txt: documented memmap
1649         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1650
1651 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1652
1653         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1654           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1655           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1656           genhc08Code): switched most of the D (debug) macros to DD (detailed
1657           debug) macros to better control clutter in the generated .asm file.
1658         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1659           genRightShift): fixed bug with non-constant bit shift stored to
1660           a volatile result (SF Open Discussion forum thread #1616749).
1661           Single byte case is not yet optimized.
1662
1663 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1664
1665         * device/include/asm/mcs51/features.h,
1666         * device/include/malloc.h,
1667         * device/include/stdio.h: changed keywords to double underscore variants,
1668           fixes bug 1590261
1669
1670 2006-11-27 Borut Razem <borut.razem AT siol.net>
1671
1672         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1673           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1674           support/cpp2/output.h, support/cpp2/cppinit.c,
1675           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1676           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1677           support/cpp2/cppdefault.c, support/cpp2/system.h,
1678           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1679           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1680           support/cpp2/prefix.c, support/cpp2/except.h,
1681           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1682           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1683           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1684           support/cpp2/version.c, support/cpp2/cppmain.c,
1685           support/cpp2/version.h, support/cpp2/hashtable.c,
1686           support/cpp2/cpperror.c:
1687           synchronized with GCC CPP release version 3.3.6,
1688           the latest where cppmain.c still exists.
1689         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1690           support/cpp2/sdcppinit.c: added
1691
1692 2006-11-27 Borut Razem <borut.razem AT siol.net>
1693
1694         * support/cpp2/cpplex.c:
1695           fixed _asm ... _endasm handling bug, introduce with GCC CPP
1696           synchronization
1697         * support/cpp2/cpplib.c: removed definitions of unused variables
1698
1699 2006-11-26 Borut Razem <borut.razem AT siol.net>
1700
1701         * support/cpp2/libiberty.h: commented out x*alloc() declarations
1702           since they are redefined by macros in support/cpp2/sdcc.h
1703         * support/cpp2/sdcc.h: x*alloc macro redefinition
1704
1705 2006-11-25 Borut Razem <borut.razem AT siol.net>
1706
1707         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1708           support/cpp2/configure, support/cpp2/Makefile.in,
1709           support/cpp2/cppfiles.c, support/cpp2/output.h,
1710           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1711           support/cpp2/config.h, support/cpp2/cpplib.h,
1712           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1713           support/cpp2/cppdefault.c, support/cpp2/config.in,
1714           support/cpp2/system.h, support/cpp2/cpplex.c,
1715           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1716           support/cpp2/cppdefault.h, support/cpp2/prefix.c
1717           support/cpp2/hwint.h, support/cpp2/mbchar.h,
1718           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1719           support/cpp2/configure.in, support/cpp2/intl.h,
1720           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1721           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1722           support/cpp2/version.c, support/cpp2/cppmain.c,
1723           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1724           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1725           support/cpp2/cpperror.c,
1726           support/cpp2/libiberty/safe-ctype.c,
1727           support/cpp2/libiberty/safe-ctype.h,
1728           support/cpp2/libiberty/splay-tree.c,
1729           support/cpp2/libiberty/obstack.c,
1730           support/cpp2/libiberty/lbasename.c,
1731           support/cpp2/libiberty/splay-tree.h,
1732           support/cpp2/libiberty/obstack.h:
1733           synchronized with GCC CPP release version 3.2.3,
1734           the latest before integration of cpp into gcc
1735         * support/cpp2/except.h, support/cpp2/line-map.c,
1736           support/cpp2/line-map.h,
1737           support/cpp2/libiberty/hex.c,
1738           support/cpp2/libiberty/concat.c,
1739           support/cpp2/libiberty/filenames.h: added
1740         * support/cpp2/intl.c: deleted
1741
1742 2006-11-24 Borut Razem <borut.razem AT siol.net>
1743
1744         * src/SDCC.y: enabled compilation of empty source file
1745         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1746           "ISO C forbids an empty source file"
1747         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1748           if all the code is ifdefed out.
1749
1750 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1751
1752         * src/hc08/gen.c (genPcall): fix for bug #1601032
1753
1754 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1755
1756         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1757         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1758         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1759         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1760         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1761         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1762         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1763         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1764         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1765         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1766         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1767         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1768         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1769         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1770         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1771           Renamed to all upper case as per the standard set by SiLabs
1772
1773 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1774
1775         * device/include/mcs51/C8051F520.h: new, added
1776         * device/include/mcs51/compiler.h: added link about predefined macros
1777
1778 2006-11-23 Raphael Neider <rneider AT web.de>
1779
1780         * src/regression/Makefile: add -L path to fresh library
1781         * src/regression/simulate: emphasize FAILED output
1782         * src/regression/create_stc: output _failures from gpsim
1783         * src/regression/compare4.c,
1784         * src/regression/rotate6.c: fixed char literals,
1785           all compile, all run =8-D
1786
1787         * src/pic/pcode.h: added isPCASMDIR macro
1788         * src/pic/gen.c (genAnd): fixed bit offset
1789         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1790           packBits): unified register numbering schemes,
1791           (newReg): do not insert stack registers into hash table,
1792           (initStack): unpinned pseudo stack, simplified,
1793           (typeRegWithIdx): fixed retrieval of stack registers,
1794         * src/pic/pcode.c (addpCodeComment,sameBank): added,
1795           (pCodeReplace): removed invalid assertion,
1796           (insertPCodeInstruction): fixed newly added labels,
1797           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1798           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1799           DumpFlow): removed unsed (broken?) code,
1800           (insertBankSel): prevent STATUS from being BANKSELed,
1801           (FixRegisterBanking): rewritten from scratch, implemented generic
1802             optimizations (suppress BANKSELs to same register and to registers
1803             present in all banks),
1804           (AnalyzeBanking): update flow after BANKSELection
1805
1806         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
1807             sharebank, let linker place it, mark STKxx symbols as emitted
1808
1809 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1810
1811         * src/regression/arrays.c,
1812         * src/regression/bank1.c,
1813         * src/regression/bool2.c,
1814         * src/regression/compare7.c,
1815         * src/regression/compare8.c,
1816         * src/regression/compare9.c,
1817         * src/regression/compare10.c,
1818         * src/regression/configword.c,
1819         * src/regression/for.c,
1820         * src/regression/mult1.c,
1821         * src/regression/pointer1.c,
1822         * src/regression/rotate6.c,
1823         * src/regression/string1.c,
1824         * src/regression/struct1.c,
1825         * src/regression/Makefile: make PIC14 regression tests run again
1826           (3 fail, 6 won't compile)
1827
1828 2006-11-21 Raphael Neider <rneider AT web.de>
1829
1830         * device/include/pic16/pic18f4550.h,
1831         * device/include/pic16/pic18f4455.h,
1832         * device/lib/pic16/libdev/pic18f4550.c,
1833         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
1834         * configure.in: removed superfluous closing bracket
1835
1836 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1837
1838         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
1839           always positive.
1840
1841 2006-11-21 Raphael Neider <rneider AT web.de>
1842
1843         * src/pic/device.{c,h}: added pic14_getPIC()
1844         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
1845           (genAnd): added PIC code for one case, fixes #1597044
1846         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
1847           SFRs that are present in all banks (e.g., STATUS)
1848
1849 2006-11-20 Raphael Neider <rneider AT web.de>
1850
1851         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
1852           INCFSZ/INCFSZW and declared them as changing Z bit,
1853           (insertPCodeInstruction): correctly invert the above instructions,
1854           fixes #1599333,
1855           (DoBankSelect): don't panic on po_immediates
1856
1857 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1858
1859         * as/link/aslink.h,
1860         * as/link/mcs51/lkihx.c (newArea),
1861         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
1862         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
1863
1864 2006-11-11 Raphael Neider <rneider AT web.de>
1865
1866         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
1867           bitfield symbols, fixes #1579535 (once more...).
1868
1869 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1870
1871         * support/regression/generate-cases.py,
1872         * support/regression/fwk/include/testfwk.h,
1873         * support/regression/fwk/lib/testfwk.c: used code pointers,
1874           (about 50kByte less code generated for mcs51)
1875
1876 2006-11-06 Borut Razem <borut.razem AT siol.net>
1877
1878         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1879           debugger/mcs51/configure: fixed failed check because the function
1880           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
1881           who submitted the patch for gpsim.
1882         * debugger/mcs51/configure.in: removed the result message
1883         * debugger/mcs51/Makefile.in: fixed the config.status warning
1884           "... seems to ignore the --datarootdir setting"
1885
1886 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1887
1888         * device/include/mcs51/c8051f020.h,
1889         * device/include/mcs51/c8051f040.h,
1890         * device/include/mcs51/c8051f060.h,
1891         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
1892         * src/z80/gen.c (gencjneshort),
1893         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
1894
1895 2006-10-31 Borut Razem <borut.razem AT siol.net>
1896
1897         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1898           debugger/mcs51/configure: get readline version
1899
1900 2006-10-30 Borut Razem <borut.razem AT siol.net>
1901
1902         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
1903         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1904           debugger/mcs51/configure: locate readline even when cross compiling
1905         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
1906
1907 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1908
1909         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
1910           serial port.
1911
1912 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1913
1914         * device/include/malloc.h,
1915         * device/lib/calloc.c,
1916         * device/lib/free.c,
1917         * device/lib/malloc.c,
1918         * device/lib/realloc.c: moved definition of struct into sources
1919         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
1920
1921 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1922
1923         * as/asx8051.dsp: corrected output directories
1924         * as/link/hc08: new directory for hc08 linker
1925         * as/hc08/aslink.h,             as/link/aslink.h,
1926         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
1927         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
1928         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
1929         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
1930         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
1931         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
1932         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
1933         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
1934         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
1935         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
1936         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
1937         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
1938         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
1939         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
1940         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
1941         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
1942         * as/link/hc08/conf.mk,
1943         * configure,
1944         * configure.in,
1945         * Makefile.in,
1946         * sdcc.dsw: moved hc08 linker to as/link/hc08
1947         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
1948         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
1949         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
1950         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
1951         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
1952         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
1953         * as/link/mcs51/aslink.dsp,
1954         * as/link/mcs51/Makefile.in: factored out the common files
1955         * as/hc08/lkstore.c: deleted, use the one already in as/link/
1956         * as/clean.mk: extra cleaning common files
1957         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
1958         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
1959         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
1960
1961 2006-10-29 Raphael Neider <rneider AT web.de>
1962
1963         * src/pic/ralloc.c (newReg): create aliases for registers with
1964           multiple names to fix #1579535 and #1584001,
1965           (regWithIdx,dirregWithName): resolve aliases on lookup
1966         * src/pic/pcode.c (DoBankSelect): die with error message on failing
1967           bankselect
1968         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
1969           to prevent build errors on small devices
1970
1971 2006-10-28 Raphael Neider <rneider AT web.de>
1972
1973         * src/pic/gen.c (genFunction,genCall): drop "same code page"
1974           assumption within interrupt handlers, fixes #1584940
1975         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
1976           "emitted" to avoid emitting them again in udata
1977
1978 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1979
1980         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1981         Removed.
1982
1983 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1984
1985         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1986         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
1987         on/off CR to CRLF conversion.
1988
1989 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1990
1991         * doc/sdccman.lyx: updated IRQ section
1992
1993 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1994
1995         * device/lib/serial_io.c: removed
1996         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
1997         replacements for serial_io.c
1998
1999 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
2000
2001         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
2002
2003 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2004
2005         * device/lib/serial_io.c: Default putchar() and getchar() for
2006           mcs51 uses serial port.
2007
2008 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
2009
2010         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
2011
2012 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2013
2014         * support/regression/ports/mcs51/support.c: smaller
2015         _sdcc_external_startup()
2016         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
2017
2018 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
2019
2020         * device/lib/gbz80/crt0.s,
2021         * device/lib/gbz80/crt0_rle.s,
2022         * device/lib/gbz80/div.s,
2023         * device/lib/gbz80/fstubs.s,
2024         * device/lib/gbz80/heap.s,
2025         * device/lib/gbz80/mul.s,
2026         * device/lib/gbz80/putchar.s,
2027         * device/lib/gbz80/stubs.s,
2028         * device/lib/z80/crt0.s,
2029         * device/lib/z80/crt0_rle.s,
2030         * device/lib/z80/div.s,
2031         * device/lib/z80/fstubs.s,
2032         * device/lib/z80/heap.s,
2033         * device/lib/z80/mul.s,
2034         * device/lib/z80/putchar.s,
2035         * device/lib/z80/stubs.s: reverted, I was mistaken
2036
2037 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2038
2039         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
2040         * support/regression/ports/mcs51/support.c: removed race
2041         condition on TI in _putchar allowing to use serial port mode 0
2042
2043 2006-10-20 Borut Razem <borut.razem AT siol.net>
2044
2045         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
2046
2047 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2048
2049         * device/lib/gbz80/crt0.s,
2050         * device/lib/gbz80/crt0_rle.s,
2051         * device/lib/gbz80/div.s,
2052         * device/lib/gbz80/fstubs.s,
2053         * device/lib/gbz80/heap.s,
2054         * device/lib/gbz80/mul.s,
2055         * device/lib/gbz80/putchar.s,
2056         * device/lib/gbz80/stubs.s,
2057         * device/lib/z80/crt0.s,
2058         * device/lib/z80/crt0_rle.s,
2059         * device/lib/z80/div.s,
2060         * device/lib/z80/fstubs.s,
2061         * device/lib/z80/heap.s,
2062         * device/lib/z80/mul.s,
2063         * device/lib/z80/putchar.s,
2064         * device/lib/z80/stubs.s: removed all leading underscores from area names
2065
2066 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
2067
2068         * support/regression/ports/mcs51/support.c: use highest baudrate so the
2069           regression tests are not waiting in the simulator for simulated
2070           transmission of debug output
2071
2072 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2073
2074         * device/lib/printf_large.c: slightly smaller
2075         * doc/sdccman.lyx: do not use spaces within html links
2076
2077 2006-10-16 Borut Razem <borut.razem AT siol.net>
2078
2079         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
2080           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
2081           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
2082           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
2083           debugger/mcs51/configure:
2084           [ 1185668 ] add gnu readline support to sdcdb - enabled
2085
2086 2006-10-16 Raphael Neider <rneider AT web.de>
2087
2088         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
2089           fixes #1577882, removes close to all banking optimizations
2090
2091 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
2092
2093         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
2094           variables in code memory
2095         * support/regression/tests/absolute.c: added test for this
2096
2097 2006-10-15 Raphael Neider <rneider AT web.de>
2098
2099         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
2100           devices,
2101           (BankSelect): emit BANKSEL before touching linker-placed regs,
2102           fixes #1570934
2103
2104 2006-10-10 Raphael Neider <rneider AT web.de>
2105
2106         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
2107         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
2108         * src/pic/main.c (_pic14_parseOptions),
2109         * src/pic/main.h: mostly reverted to previous state, now use results
2110             from SDCCmain.c's argument parsing
2111
2112 2006-10-10 Borut Razem <borut.razem AT siol.net>
2113
2114         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2115           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2116           [ 1185668 ] add gnu readline support to sdcdb -
2117           prepared for READLINE, not enabled yet,
2118           thanks to <tal.bav AT gmail.com>
2119
2120 2006-10-10 Raphael Neider <rneider AT web.de>
2121
2122         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2123         * src/pic16/devices.inc,
2124         * device/include/pic16 (pic18f[24]620.h),
2125         * device/include/pic18fregs.h,
2126         * device/lib/pic16/pics.all,
2127         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2128             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2129             Gary Plumbridge and Anton Strobl
2130
2131 2006-10-10 Raphael Neider <rneider AT web.de>
2132
2133         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2134           --stack-siz=NUM options to configure the argument passing stack
2135         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2136         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2137           (pic14_getSharebankSize): obey --stack-siz=NUM,
2138           (pic14_getSharebankAddress): obey --stack-loc=NUM
2139
2140 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2141
2142         * doc/sdccman.lyx: added to the manual
2143         * doc/figures/ddd_example.png: added (neither pdflatex nor
2144         most browsers seem to like the .eps file)
2145
2146 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2147
2148         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2149         to /tmp and /var/tmp acc. LSB
2150         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2151         RESULT_TYPE_IFX
2152         * support/regression/tests/onebyte.c: added test
2153
2154 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2155
2156         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2157
2158 2006-10-05 Borut Razem <borut.razem AT siol.net>
2159
2160         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2161           thanks to dfulab:
2162           - sdcc.dsw: changed property eol-style to CRLF
2163           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2164
2165 2006-10-04 Raphael Neider <rneider AT web.de>
2166
2167         * device/include/pic/{pic16f84.h,pic16f84a.h},
2168         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2169           from patch #1522504, thanks to Robas Teodor
2170
2171 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2172
2173         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2174           fixes bug 1566015
2175
2176 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2177
2178         * src/pic16/glue.c (pic16emitMaps),
2179         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2180         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2181         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2182         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2183           Philipp Krause
2184         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2185         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2186
2187 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2188
2189         * support/librarian/sdcclib.c: Added option -l.
2190         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2191           usage totals.
2192         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2193           using Windows command prompt.
2194
2195 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2196
2197         * device/lib/libsdcc.lib: added module rand
2198         * src/ds390/ralloc.c (rematStr),
2199         * src/hc08/ralloc.c (rematStr),
2200         * src/mcs51/ralloc.c (rematStr),
2201         * src/z80/ralloc.c (rematStr): made output more consistent
2202         * src/mcs51/gen.c: cosmetic changes
2203
2204 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2205
2206         * src/port.h: added mem.cabs_name to PORT
2207         * src/ds390/main.c,
2208         * src/hc08/main.c,
2209         * src/mcs51/main.c,
2210         * src/pic16/main.c,
2211         * src/pic/main.c,
2212         * src/xa51/main.c,
2213         * src/z80/main.c: added cabs_name initializers
2214         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2215           constants
2216           (emitMaps): emit absolutes in code memory into cabs_name
2217         * src/SDCCmem.c,
2218         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2219         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2220         * support/regression/fwk/include/testfwk.h: added define for at
2221         * support/regression/tests/absolute.c: added, new
2222
2223 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2224
2225         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2226           optimizations, see also patch 887161 by Stas Sergeev
2227         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2228           to be necessary anymore,
2229           (102, 103, 104, 127): renamed all occurances of bp to _bp
2230
2231 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2232
2233         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2234           thanks Weston T. Schmidt for patch 1555221
2235         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2236         * src/SDCCicode.c(geniCodeMultiply): small optimization
2237
2238 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2239
2240         * device/include/stdlib.h: added rand prototypes
2241         * device/lib/rand.c: new, added
2242         * device/lib/Makefile.in: added rand.c
2243         * src/z80/peeph.def,
2244         * src/z80/peeph-gbz80.def,
2245         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2246
2247 2006-09-20 Raphael Neider <rneider AT web.de>
2248
2249         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2250
2251 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2252
2253         * as/link/aslink.h: cosmetic changes
2254         * as/link/mcs51/Makefile.in,
2255         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2256
2257 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2258
2259         * as/link/aslink.h,
2260         * as/link/mcs51/aslink.h,
2261         * as/link/z80/aslink.h: merged and moved to as/link/
2262         * as/link/lkstore.c,
2263         * as/link/mcs51/lkstore.c: moved to as/link/
2264         * as/link/clean.mk: remove *.o
2265         * as/link/mcs51/alloc.h: deleted
2266         * as/link/mcs51/lkarea.c: added lnksect prototype
2267         * as/link/mcs51/lkdata.c,
2268         * as/link/mcs51/lklex.c,
2269         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2270         * as/link/mcs51/lkmem.c,
2271         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2272         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2273         * as/link/mcs51/aslink.dsp,
2274         * as/link/mcs51/Makefile.aslink,
2275         * as/link/mcs51/Makefile.bcc,
2276         * as/link/mcs51/Makefile.in: updated for moved files
2277         * as/link/z80/lkarea.c,
2278         * as/link/z80/lkhead.c,
2279         * as/link/z80/lklex.c,
2280         * as/link/z80/lklibr.c,
2281         * as/link/z80/lklist.c,
2282         * as/link/z80/lkmain.c,
2283         * as/link/z80/lkrloc.c,
2284         * as/link/z80/lksym.c: synced with mcs51
2285         * as/link/z80/lkdata.c,
2286         * as/link/z80/lkeval.c,
2287         * as/link/z80/lkihx.c,
2288         * as/link/z80/lks19.c: cosmetic changes
2289         * as/link/z80/Makefile.in,
2290         * as/link/z80/linkgbz80.dsp,
2291         * as/link/z80/linkz80.dsp: updated for moved files
2292
2293 2006-09-16 Borut Razem <borut.razem AT siol.net>
2294
2295         * debugger/mcs51/sdcdb.c: partially fixed
2296           [ 1203664 ] sdcdb fails to open files w. two "." periods
2297         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2298           debugger/mcs51/symtab.h: fixed indenting
2299         * configure.in, configure: up to date with latest Maarten's changes
2300
2301 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2302
2303         as/link/mcs51
2304         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2305         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2306         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2307         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2308         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2309         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2310         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2311         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2312         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2313         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2314         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2315         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2316         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2317         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2318         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2319         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2320         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2321         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2322         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2323         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2324         as/link/mcs51/alloc.h,
2325         as/link/mcs51/clean.mk,
2326         as/link/mcs51/conf.mk,
2327         as/link/mcs51/Makefile.bcc,
2328         as/link/mcs51/Makefile.in,
2329         as/link/mcs51/readme.390,
2330         as/link/mcs51/strcmpi.c,
2331         as/link/mcs51/strcmpi.h,
2332         as/mcs51/clean.mk,
2333         as/mcs51/Makefile.bcc,
2334         as/mcs51/Makefile.in,
2335         configure,
2336         Makefile.in,
2337         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2338
2339 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2340
2341         * as/link,
2342         * as/link/Makefile.in,
2343         * as/link/z80/linkgbz80.dsp,
2344         * as/link/z80/linkz80.dsp,
2345         * configure,
2346         * link,
2347         * link/clean.mk,
2348         * link/Makefile.in,
2349         * link/README,
2350         * link/z80,
2351         * link/z80/aslink.h,
2352         * link/z80/clean.mk,
2353         * link/z80/conf.mk,
2354         * link/z80/linkgbz80.dsp,
2355         * link/z80/linkz80.dsp,
2356         * link/z80/lkarea.c,
2357         * link/z80/lkdata.c,
2358         * link/z80/lkeval.c,
2359         * link/z80/lkgb.c,
2360         * link/z80/lkgg.c,
2361         * link/z80/lkhead.c,
2362         * link/z80/lkihx.c,
2363         * link/z80/lklex.c,
2364         * link/z80/lklibr.c,
2365         * link/z80/lklist.c,
2366         * link/z80/lkmain.c,
2367         * link/z80/lkrloc.c,
2368         * link/z80/lks19.c,
2369         * link/z80/lksym.c,
2370         * link/z80/Makefile.in,
2371         * Makefile.in,
2372         * sdcc.dsw: moved link/ to as/link/
2373
2374 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2375
2376         * as/mcs51/i51mch.c (machine): fixed warning
2377
2378 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2379
2380         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2381
2382 2006-09-09 Borut Razem <borut.razem AT siol.net>
2383
2384         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2385           sdcdb WIN32 native port
2386         * src/clean.mk: fixed
2387
2388 2006-09-08 Borut Razem <borut.razem AT siol.net>
2389
2390         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2391
2392 2006-09-08 Raphael Neider <rneider AT web.de>
2393
2394         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2395         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2396             to gplink to disable processor mismatch warning and to allow
2397             the use of devices with only aliased (shared) memory banks,
2398           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2399
2400 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2401
2402         * doc/sdccman.lyx: Some re-formating plus example on using
2403           #pragma preproc_asm +/-
2404
2405 2006-09-07 Borut Razem <borut.razem AT siol.net>
2406
2407         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2408           section
2409
2410 2006-09-06 Borut Razem <borut.razem AT siol.net>
2411
2412         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2413           line at sdcc.nsi:153
2414         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2415
2416 2006-09-05 Borut Razem <borut.razem AT siol.net>
2417
2418         * configure.in, configure: support for winsock2
2419         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2420           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2421           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2422           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2423           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2424
2425 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2426
2427         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2428           and OP_DEFS
2429         * support/regression/tests/bug1551947.c: new, added
2430         * src/SDCCsymt.h: strings are char* not byte*
2431
2432 2006-09-05 Raphael Neider <rneider AT web.de>
2433
2434         * device/lib/pic16/libdev/pic18f4550.c,
2435           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2436             declarations/definitions from patch #1520949
2437
2438 2006-09-05 Raphael Neider <rneider AT web.de>
2439
2440         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2441           byte-aligned bitfields, fixes #1539278
2442
2443 2006-09-05 Raphael Neider <rneider AT web.de>
2444
2445         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2446           fixes #1544120
2447
2448 2006-09-04 Borut Razem <borut.razem AT siol.net>
2449
2450         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2451         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2452           -mno-cygwin is a part of the compiler name
2453         * support/scripts/sdcc_mingw32: don't disable ucsim
2454
2455 2006-09-03 Borut Razem <borut.razem AT siol.net>
2456
2457         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2458         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2459
2460 2006-09-03 Raphael Neider <rneider AT web.de>
2461
2462         * src/pic/ralloc.c,
2463         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2464           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2465           fixes #1550049
2466
2467 2006-09-01 Borut Razem <borut.razem AT siol.net>
2468
2469         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2470           to make ppc-osx happy
2471
2472 2006-08-31 Borut Razem <borut.razem AT siol.net>
2473
2474         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2475         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2476         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2477         * support/regression/ports/ds390/spec.mk,
2478           support/regression/ports/mcs51/spec.mk,
2479           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2480           To run regression tests in mingw environment:
2481           make DEV_NULL=NUL CC=gcc
2482
2483 2006-08-30 Borut Razem <borut.razem AT siol.net>
2484
2485         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2486           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2487           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2488           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2489           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2490           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2491           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2492           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2493           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2494           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2495           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2496           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2497           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2498           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2499           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2500           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2501           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2502           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2503           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2504           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2505           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2506           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2507           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2508           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2509           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2510           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2511           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2512           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2513           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2514           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2515           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2516           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2517           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2518           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2519           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2520           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2521           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2522           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2523           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2524           ucsim WIN32 native port
2525
2526 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2527
2528         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2529
2530 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2531
2532         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2533         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2534
2535 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2536
2537         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2538         * support/regression/tests/bug1546986.c: new, added
2539         * as/mcs51/.cvsignore,
2540         * debugger/mcs51/.cvsignore,
2541         * src/.cvsignore: deleted
2542
2543 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2544
2545         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2546           definitions)
2547
2548 2006-08-20 Borut Razem <borut.razem AT siol.net>
2549
2550         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2551           removed cl_listen_console::match(), cl_console::match(),
2552           restructured cl_commander::proc_input()
2553
2554 2006-08-16 Borut Razem <borut.razem AT siol.net>
2555
2556         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2557           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2558           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2559
2560 2006-08-14 Borut Razem <borut.razem AT siol.net>
2561
2562         * support/regression/Makefile.in,
2563           support/regression/ports/pic14/gpsim.cmd,
2564           support/regression/ports/pic14/spec.mk,
2565           support/regression/ports/pic14/support.c:
2566           added pic14 regression test
2567
2568 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2569
2570         * as/doc/asxhtm.html: documented changed ABS behaviour
2571         * as/doc/README: fixed some typos
2572
2573 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2574
2575         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2576           not defined on host
2577
2578 2006-08-12 Borut Razem <borut.razem AT siol.net>
2579
2580         * support/regression/fwk/include/testfwk.h,
2581           support/regression/fwk/lib/testfwk.c,
2582           support/regression/generate-cases.py,
2583           support/regression/Makefile.in:
2584           regression test framework does not depend on function pointers and
2585           variable arguments
2586
2587 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2588
2589         * device/include/stddef.h: c temporary hack to fix bug 1518273
2590
2591 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2592
2593         * device/include/mcs51/cc2510fx.h: added
2594         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2595           to projects.
2596
2597 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2598
2599         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2600         * as/z80/Makefile.in: added strcmpi.c
2601         * as/z80/z80adr.c: added upper case registers and lower case conditionals
2602         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2603
2604 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2605
2606         * device/lib/gbz80/asm_strings.s,
2607         * device/lib/gbz80/crt0_rle.s,
2608         * device/lib/gbz80/div.s,
2609         * device/lib/gbz80/mul.s,
2610         * device/lib/gbz80/shift.s,
2611         * device/lib/z80/asm_strings.s,
2612         * device/lib/z80/crt0_rle.s,
2613         * device/lib/z80/div.s,
2614         * device/lib/z80/mul.s,
2615         * device/lib/z80/shift.s: changed to all lower case menmonics except the
2616           flags which are all upper case
2617
2618 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2619
2620         * as/z80/asm.h: made CASE_SENSITIVE 1
2621         * link/z80/aslink.h: made CASE_SENSITIVE 1
2622         * src/z80/gen.c (throughout): made all conditionals upper case
2623         * support/regression/tests/bug1503067.c: new
2624
2625 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2626
2627         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2628           (shiftIntoPair): added case 2 for PAIR_IY,
2629           (setupToPreserveCarry): replaced parameters with iCode and check if
2630            PAIR_DE is in use to fix bug 1399290,
2631           (genPlus, genMinus): updated call to setupToPreserveCarry
2632         * support/regression/tests/bug1399290.c: new
2633
2634 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2635
2636         * device/lib/Makefile.in (Z80SOURCES): enabled float support
2637         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2638         * src/ds390/gen.c (shiftRLong),
2639         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2640         * src/mcs51/gen.c (sameReg): changed to sameByte,
2641           (xch_a_aopGet): new,
2642           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2643            shiftRLong): fixed bug 1533966
2644         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2645           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2646         * support/regression/Makefile.in: disabled z80, enabled ucz80
2647         * support/regression/tests/float_trans.c: enabled test for z80 and host
2648         * support/regression/tests/shifts2.c: new, for testing bug 1533966
2649
2650 2006-08-01 Borut Razem <borut.razem AT siol.net>
2651
2652         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2653           comparison is always false due to limited range of data type
2654           on PPC64 machine (openpower-linux1) where "char = unsigned char"
2655
2656 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2657
2658         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2659         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2660         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2661         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2662
2663 2006-07-31 Borut Razem <borut.razem AT siol.net>
2664
2665         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2666           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2667           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2668           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2669           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2670           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2671           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2672           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2673           enable ucsim mingw compilation. Serial port is disabled,
2674           since it uses termios.h API, which is not available on native
2675           WIN32
2676
2677 2006-07-31 Borut Razem <borut.razem AT siol.net>
2678
2679         * Small Device C Compiler 2.6.0 released
2680         * support/scripts/sdcc.nsi: added FULL_DOC option
2681         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2682
2683 2006-07-28 Borut Razem <borut.razem AT siol.net>
2684
2685         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2686         * doc/INSTALL.txt: updated
2687
2688 2006-07-27 Borut Razem <borut.razem AT siol.net>
2689
2690         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2691           device/lib/pic/libdev/Makefile.in: fixed bug
2692           [ 1438354 ] pic libsdcc: distclean doesn't work
2693         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2694           device/lib/pic16/libio/Makefile.in: fixed bug
2695           [ 1438344 ] pic16 lib: clean doesn't work properly
2696         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2697
2698 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2699
2700         * device/lib/pic/libsdcc/fsdiv.c,
2701         * device/lib/pic/libsdcc/fsmul.c,
2702         * device/lib/pic16/libsdcc/float/fsdiv.c,
2703         * device/lib/pic16/libsdcc/float/fsmul.c,
2704         * device/lib/_fsdiv.c,
2705         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2706         * support/regression/tests/bug1520966.c: added
2707         * doc/knownbugs.html: removed [ 1520966 ] from the list
2708
2709 2006-07-25 Borut Razem <borut.razem AT siol.net>
2710
2711         * configure.in, configure, sdccconf_in.h: fixed bug
2712           [ 1519095 ] regression test onebyte.c fails on ppc64 host
2713         * doc/knownbugs.html: removed [ 1519095 ] from the list
2714
2715 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2716
2717         * doc/knownbugs.html: added, contains list of known bugs at release
2718         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2719
2720 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2721
2722         * device/include/mcs51/compiler.h: added SFRX for xdata based special
2723           function registers and corrected defaults with additional warning
2724         * device/lib/malloc.c: cosmetic changes
2725         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2726         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2727           (fillGaps): and used it
2728
2729 2006-07-20 Raphael Neider <rneider AT web.de>
2730
2731         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2732           output unless SDCCPICDEBUG is set
2733         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2734           output if SILENT is set
2735
2736 2006-07-11 Borut Razem <borut.razem AT siol.net>
2737
2738         * doc/README.txt: updated
2739
2740 2006-07-10 Borut Razem <borut.razem AT siol.net>
2741
2742         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2743           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2744           in WIN32 installation
2745         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2746           release candidate 1
2747
2748 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2749
2750         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2751         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2752
2753 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2754
2755         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2756
2757 2006-07-06 Borut Razem <borut.razem AT siol.net>
2758
2759         * support/regression/tests/bitfields.c:
2760           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2761         * support/regression/tests/constantRange.c:
2762           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2763
2764 2006-07-04 Borut Razem <borut.razem AT siol.net>
2765
2766         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2767           src/port.mk,
2768           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2769           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2770           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2771           reverted changes from 2006-07-03
2772         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2773         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2774           added CPPFLAGS, used by the host port
2775
2776 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2777
2778         * support/regression/valdiag/tests/switch.c,
2779         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2780         * support/regression/tests/libmullong.c: fixed for host
2781         * support/regression/ports/host/spec.mk: disable all warnings for host,
2782         SDCC runs with --less-pedantic too
2783
2784 2006-07-03 Borut Razem <borut.razem AT siol.net>
2785
2786         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2787           defined CPPFLAGS
2788         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2789         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2790           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2791           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2792           include ../port.mk
2793         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2794           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2795           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2796           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2797
2798 2006-07-02 Raphael Neider <rneider AT web.de>
2799
2800         * src/pic16/devices.inc,
2801         * device/include/pic16/pic18fregs.h,
2802         * device/include/pic16/pic18f4550.h,
2803         * device/lib/pic16/pics.all,
2804         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
2805
2806 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2807
2808         * as/hc08/lkaomf51.c (OutputName),
2809         * as/mcs51/lkaomf51.c (OutputName),
2810         * as/z80/asmain.c (asmbl),
2811         * src/ds390/main.c (asmLineNodeFromLineNode),
2812         * src/hc08/ralloc.c (hc08_assignRegisters),
2813         * src/mcs51/main.c (asmLineNodeFromLineNode),
2814         * src/xa51/ralloc.c (checkRegMask),
2815         * src/xa51/gen.c (emitcode),
2816         * src/z80/gen.c (_emit2),
2817         * src/SDCCast.c (searchLitOp),
2818         * src/SDCCglobl.h,
2819         * support/packihx/packihx.c,
2820         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
2821         * src/ds390/gen.c (aopPutUsesAcc),
2822         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
2823         * support/regression/tests/libmullong.c (mullong_wrapper),
2824         * src/SDCCsymt.c (powof2),
2825         * src/SDCCast.c,
2826         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
2827         * src/SDCCsymt.h: added TYPE_TARGET_*
2828         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
2829         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
2830         SDCCast because 1) header problems 2) this is the right place
2831         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
2832         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
2833         prototype
2834
2835 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2836
2837         * src/SDCCicode.h: removed buggy semicolon in unused macro
2838         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
2839         search for previous definiton of auto symbols too,
2840         (findPrevUse): fixed logic of emitWarnings
2841
2842 2006-06-26 Raphael Neider <rneider AT web.de>
2843
2844         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
2845           PCLATH and PCLATU on interrupts, potentially fixes #1505141
2846
2847 2006-06-25 Raphael Neider <rneider AT web.de>
2848
2849         * device/lib/pic/libm: NEW, added math library functions
2850         * device/lib/pic/libsdcc: NEW; added float support functions
2851         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
2852         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
2853           NEW, added math related headers
2854         * device/include/asm/pic/features.h: NEW
2855         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
2856           (popGet): allow larger offsets for AOP_PCODE,
2857           (genDataPointerSet): handle literals explicitly, more debug output,
2858           (genAssign): fixed for float using aopLiteral ;-)
2859         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
2860           GOTO initialisation routine
2861         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
2862           flag on registers, fixes #1469043 (local variables do not work)
2863         * src/pic/main.c (_pic14_do_link),
2864         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
2865           available
2866
2867 2006-06-25 Borut Razem <borut.razem AT siol.net>
2868
2869         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
2870           characters printed (not including the trailing '\0' used to end
2871           output to strings). Problem detected in regression test bug-927659.c.
2872           NOTE: printf() family functions should return int instead
2873           unsigned int!
2874         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
2875           specifier are printed as themselves
2876         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
2877           support flags, width and precision specifiers
2878
2879 2006-06-24 Borut Razem <borut.razem AT siol.net>
2880
2881         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
2882           to the list of sdcc tagrets not supporting bit type
2883         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
2884           testfor pic16 due to bug:
2885           [ 1511794 ] pic16: regression test bug-895992.c fails
2886
2887 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
2888
2889         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
2890         * src/SDCCglue.c (initPointer), fixed bug 1496419
2891         * support/regression/tests/bug1496419.c: new, added
2892
2893 2006-06-22 Borut Razem <borut.razem AT siol.net>
2894
2895         * support/regression/ports/pic16/support.c: use gpsim usart module from
2896           libgpsim_modules library
2897
2898 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2899
2900         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
2901         IP0H to IPH0.
2902
2903 2006-06-19 Raphael Neider <rneider AT web.de>
2904
2905         * src/pic/glue.h,src/pic16/glue.h: added prototypes
2906         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
2907           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
2908           (pic14printExterns,pic14printPublics,pic16printPublics,
2909           pic16_printExterns): use new functions to emit symbols
2910           (picglue,pic16glue): emit publics before emitting externs
2911         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
2912           locally defined functions to avoid bug #1443651
2913         * support/regression/tests/bug-716242.c: removed pic16 workaround
2914         * support/regression/ports/pic16/spec.mk: ignore errors during build
2915
2916 2006-06-19 Raphael Neider <rneider AT web.de>
2917
2918         * src/pic/glue.h: added pic14aopLiteral prototype
2919         * src/pic/glue.c (pic14aopLiteral): return unsigned int
2920         * src/pic/gen.c: removed stdint.h dependency
2921           (aopGet): use Safe_strdup()
2922           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
2923           (genDataPointerSet): use pic14aopLiteral()
2924         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
2925           for pic16; thanks to Bernhard and Maarten
2926
2927 2006-06-18 Borut Razem <borut.razem AT siol.net>
2928
2929         * support/regression/tests/structflexarray.c: flexible array members
2930           not supported by gcc < 3
2931         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
2932           GUI tool by default
2933         * src/pic/gen.c: don't include [p]strdin.h on solaris
2934         * support/Util/pstdint.h: addad svn attributes
2935         * support/regression/tests/constantRange.c,
2936           support/regression/tests/rotate.c: include inttypes.h instead
2937           stdint.h on solaris, addad svn attributes
2938
2939 2006-06-18 Raphael Neider <rneider AT web.de>
2940
2941         * src/SDCCsymt.c (initCSupport): change return type of divschar to
2942           int for PIC16
2943         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
2944           (pic16_genMinusBits): simplified sign-extension
2945           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
2946             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
2947             adjusted to correctly handle mixed-signed operands, disabled
2948             now unused multiplciation routines
2949         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
2950           (assignResultValue): added argument denoting the size of the result
2951             as returned by the function (fixes upcasts in assigning from
2952             function calls: char foo(); int i = foo();)
2953           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
2954             function result to assignResultValue
2955           (genMult): disabled inlined multiplication code
2956           (genDiv): augmented to also handle the modulus operator, fixed to
2957             handle mixed-signed operands correctly
2958           (genMod): simply call genDiv, disabled unused code
2959           (genAssign): fixed missing (sign-)extension on result
2960         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
2961             valid char operands, allow signed operands for native code, added
2962             division and modulo operator handling
2963         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
2964
2965         As a consequence, onebyte.c (if split into two files) and muldiv.c
2966         pass regression tests.
2967
2968 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2969
2970         * doc/Makefile.in: two runs of makeindex seem needed to get
2971         correct page references in the index of sdccman.pdf
2972         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
2973
2974 2006-06-17 Borut Razem <borut.razem AT siol.net>
2975
2976         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
2977
2978 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2979
2980         * doc/sdccman.lyx: updated, added (porting source code, debugging),
2981         mentioned ec2drv and paulmon
2982
2983 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2984
2985         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
2986           consecutive abs areas
2987           (find_empty_space, allocate_space): added map to handle codemap or
2988            xdatamap,
2989           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
2990            absolute idata and xdata
2991         * as/mcs51/lkmem.c (summary2): updated legend
2992
2993 2006-06-16 Raphael Neider <rneider AT web.de>
2994
2995         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
2996
2997 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
2998
2999         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
3000           1208515
3001         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
3002
3003 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
3004
3005         * src/port.h (struct PORT): added field gp_tags, to hold the tag
3006         value of generic pointers,
3007         * src/avr/main.c,
3008           src/ds390/main.c,
3009           src/hc08/main.c,
3010           src/izt/i186.c,
3011           src/izt/tlcs900h.c,
3012           src/mcs51/main.c,
3013           src/pic/main.c,
3014           src/pic16/main.c,
3015           src/xa51/main.c,
3016           src/z80/main.c: PORT structure, added elements for gp_tags field,
3017         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
3018         fields in the PORT structure of each port,
3019         * src/SDCCast.c (decorateType): allow processing of generic pointers
3020         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
3021         S_FIXED symbols
3022
3023 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
3024
3025         * link/z80/lkgb.c,
3026         * link/z80/lkgg.c,
3027         * src/pic16/gen.c,
3028         * src/pic16/main.c,
3029         * src/pic16/pcode.c,
3030         * src/pic/main.c,
3031         * src/pic/pcoderegs.c,
3032         * src/SDCCicode.c,
3033         * src/SDCCmain.c,
3034         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
3035           bug 1504689 on minGW
3036
3037 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3038
3039         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
3040
3041 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
3042
3043         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
3044
3045 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
3046
3047         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
3048           for optimization
3049
3050 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
3051
3052         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
3053         to a char variable. Fixed bug #1504211
3054         * device/include/pic16/adc.h,
3055         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
3056         and fixed bug #1364390
3057
3058 2006-06-10 Borut Razem <borut.razem AT siol.net>
3059
3060         * CVSROOT: removed the CVS left-over
3061
3062 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3063
3064         * as/hc08/asmain.c (asexit),
3065         * as/hc08/lkmain.c (lkexit),
3066         * as/mcs51/asmain.c (asexit),
3067         * as/mcs51/lkmain.c (lkexit),
3068         * src/SDCCglue.c (DEFSETFUNC),
3069         * src/SDCCmain.c (linkEdit, assemble),
3070         * support/librarian/sdcclib.c (AddRel),
3071           replaced unlink() by standard C remove()
3072         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
3073         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
3074           gatherImplicitVariables): new, added to fix bug 608752,
3075           (createFunction): added gatherImplicitVariables()
3076         * src/SDCCast.h: added createRMW prototype
3077         * src/SDCCsymt.h (struct symbol): added infertype
3078         * support/regression/tests/bug608752.c: new, added
3079
3080 2006-06-10 Raphael Neider <rneider AT web.de>
3081
3082         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
3083           multibyte dummy reads (fixes #1503234)
3084
3085 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3086
3087         * device/include/mcs51/compiler.h: new, added header file to enable
3088           creating common sfr definition header files for different compilers
3089
3090 2006-06-05 Raphael Neider <rneider AT web.de>
3091
3092         * src/pic16/{pcode.h,genarith.c}:
3093           introduced pCodeOp combining any two pCodeOps (previously only
3094           two register operands could be combined), removed pcop2 from
3095           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
3096         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
3097         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
3098           rewritten to use new PO_TWO_OPS
3099         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
3100         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
3101           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
3102           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
3103           (pic16_get_op): embraced return arg to allow #define return(x),
3104             added new case for combined opcodes
3105           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
3106           (pic16_pCode2str,pic16_getRegFrompCodeOp,
3107            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
3108
3109 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3110
3111         * src/SDCCval.c (checkConstantRange): added
3112         * src/SDCCval.h: added checkConstantRange
3113         * support/Util/SDCCerr.c,
3114         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3115         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3116         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3117         * src/SDCCast.c (decorateType): added checkConstantRange,
3118         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3119         can be emitted with the correct always true/false warning,
3120         added optimization for double '!';
3121         result of decorateType() must be assigned back to the tree, because
3122         decorateType() can change the tree
3123         * src/SDCCicode.c (geniCodeLogic),
3124         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3125         (checkConstantRange): removed, it was only a fragment which never
3126         emitted a warning
3127         * src/SDCCsymt.c (computeType): fixed promotion for
3128         "-1 < (unsigned bit) b"
3129         * src/pic/ralloc.c (packRegsForAssign),
3130         * src/pic16/ralloc.c (packRegsForAssign),
3131         * src/hc08/ralloc.c (packRegsForAssign),
3132         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3133         from mcs51
3134         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3135         * support/regression/tests/constantRange.c: added
3136         * support/valdiag/tests/constantRange.c: added
3137         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3138
3139 2006-06-02 Borut Razem <borut.razem AT siol.net>
3140
3141         * support/regression/ports/pic16/support.c: increase stack size
3142           to 255 bytes
3143         * support/regression/Makefile.in: sort tests by name so that the
3144           resutlts can be compared on different machines / platforms
3145
3146 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3147
3148         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3149         * src/ds390/gen.c (emitLabel): new, added,
3150           (genDjnz): fixed stack overflow bug,
3151           (throughout): cosmetic changes to sync with mcs51/gen.c,
3152           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3153         * src/mcs51/gen.c (genEndFunction): small optimization,
3154           (throughout): cosmetic changes to sync with ds390/gen.c
3155
3156 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3157
3158         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3159           (_print_format): fixed printing pointers
3160         * src/mcs51/gen.c (emitLabel, movb): new, added,
3161           (genAssign): small optimization,
3162           (genDjnz): fixed stack overflow bug,
3163           (throughout): replaced sprintf with SNPRINTF,
3164           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3165           replaced emitcode("mov", "b,...") with MOVB(...),
3166           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3167           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3168         * src/mcs51/peeph.def: added rules 140 and 264
3169         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3170           so they may get optimized into registers
3171
3172 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3173
3174         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3175           immediately when encountered,
3176           (printUsage): always use stderr even on windows
3177
3178 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3179
3180         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3181         (processParms): fixed bug #1247551
3182         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3183         parseCmdLine, main): print '--version' to stdout,
3184         print 'help' to stdout if --help is given,
3185         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3186         arguments are given; fixed --help
3187
3188 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3189
3190         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3191         * support/regression/tests/bug-1493710.c: added
3192
3193 2006-05-27 Borut Razem <borut.razem AT siol.net>
3194
3195         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3196           static instead auto
3197         * support/regression/ports/pic16/support.c: increase stack size
3198           from default 64 bytes to 128 bytes
3199         * support/regression/tests/staticinit.c,
3200           support/regression/tests/float.c: regression tests fully enabled
3201           for pic16 port by putting the initialized data arrays into the code
3202           section
3203         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3204           This was changed by mistake in the previous version.
3205
3206 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3207
3208         * src/pic16/gen.c (genFunction, genEndFunction): some
3209         beautifications, fixed bug with falsely restoring FSR2 in large
3210         stack model, thanks to Beau E. Cox for reporting the bug
3211
3212 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3213
3214         * debugger/mcs51/break.c,
3215         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3216           use %p to print pointers, made address variables unsigned
3217         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3218         * debugger/mcs51/symtab.c (parseSymbol): must return something
3219         * src/mcs51/gen.c (aopForSym): small optimization,
3220            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3221           (freeAsmop): added missing break,
3222           (aopPut): removed parameter bvolatile, determine it inside the function,
3223           (saveRegisters, unsaveRegisters): small optimization,
3224           (genIpush): removed pointless check,
3225           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3226           replaced sprintf with SNPRINTF,
3227           replaced strcpy with strncpyz,
3228           updated aopPut calls,
3229           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3230         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3231
3232 2006-05-24 Borut Razem <borut.razem AT siol.net>
3233
3234         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3235           modification of test for the pic16 port, put the array to the code
3236           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3237
3238 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3239
3240         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3241         * support/Util/pstdint.h: added
3242
3243 2006-05-22 Borut Razem <borut.razem AT siol.net>
3244
3245         * src/regression/Makefile: removed bool2.c test, added -q linker option
3246         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3247           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3248           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3249           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3250           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3251           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3252           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3253           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3254           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3255
3256 2006-05-22 Raphael Neider <rneider AT web.de>
3257
3258         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3259           bug #1492360 (problematic due to generic pointers, see code)
3260
3261 2006-05-22 Borut Razem <borut.razem AT siol.net>
3262
3263         * support/regression/ports/pic16/specs.mk: removed stack size linker
3264           directive
3265         * support/regression/tests/array.c,
3266           support/regression/tests/bitopcse.c,
3267           support/regression/tests/bug-908454.c,
3268           support/regression/tests/malloc.c: modified for pic16 regression test
3269         * support/regression/tests/bitfields.c:
3270           pic16 - excluded bitfileds of size > 8
3271         * support/regression/tests/bp.c: pic16 - reduced data size
3272         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3273         * support/regression/tests/bug-460010.c:
3274           pic16 - used the absolute address the fits in memory
3275         * support/regression/tests/bug-716242.c:
3276           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3277         * support/regression/tests/float.c:
3278           pic16 - excluded - data size too big
3279         * support/regression/tests/onebyte.c:
3280           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3281         * support/regression/tests/shifts.c:
3282           pic16 - function names probably have to differ in first X characters
3283           (gpasm limitation?)
3284         * support/regression/tests/staticinit.c:
3285           pic16 - excluded some tests due error: no target memory available for
3286           section ".idata"
3287
3288 2006-05-22 Borut Razem <borut.razem AT siol.net>
3289
3290         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3291           second try. Thanks Stas Sergeev once more.
3292
3293 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3294
3295         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3296           (genLeftShift, genRightShift): fixed bug 1491627
3297         * src/hc08/peeph.def (rules 7, 8.x): added
3298         * support/regression/tests/shifts.c (ShiftLeftByParam,
3299           ShiftRightByParam, testShiftByParam): added to test variable shifting
3300
3301 2006-05-20 Raphael Neider <rneider AT web.de>
3302
3303         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3304         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3305           (allocReg): add only new registers to dynAllocRegs,
3306           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3307             #1489055, #1445850, and probably #1483693
3308
3309 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3310
3311         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3312         bug in for-loop that didn't emit the last of CONFIG and ID registers
3313
3314 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3315
3316         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3317           with offset
3318         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3319           1489016, 1434401 and 1490124
3320         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3321           1489016, 1434401 and 1490124
3322
3323 2006-05-17 Borut Razem <borut.razem AT siol.net>
3324
3325         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3326           thanks Stas Sergeev
3327
3328 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3329
3330         * device/include/mcs51/P89c51RD2.h,
3331         * device/include/mcs51/P89LPC901.h,
3332         * device/include/mcs51/P89LPC922.h,
3333         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3334
3335 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3336
3337         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3338         to fix missing stack pragma in compiled binary object file,
3339
3340 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3341
3342         * support/packihx/configure.in,
3343         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3344         determine sizeof basic types even while cross compiling
3345
3346 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3347
3348         * src/avr/gen.c (aopop),
3349         * src/ds390/gen.c (aopOp),
3350         * src/hc08/gen.c (aopOp),
3351         * src/mcs51/gen.c (aopop),
3352         * src/pic16/gen.c (pic16_aopOp),
3353         * src/pic/gen.c (aopOp),
3354         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3355         if size of operand is smaller than spill location
3356
3357 2006-05-12 Borut Razem <borut.razem AT siol.net>
3358
3359         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3360           have to have CR/LF line endings even if they are checked out on *nix
3361           or on WIN32 in cygwin binmode
3362
3363 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3364
3365         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3366         * device/include/ds80c390.h: added sfr16 definitions
3367         * src/ds390/gen.c,
3368         * src/ds390/gen.h,
3369         * src/ds390/main.c,
3370         * src/ds390/ralloc.c,
3371         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3372           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3373           bit returning functions
3374         * support/regression/tests/sfr16.c: enabled test on ds390
3375
3376 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3377
3378         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3379         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3380
3381 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3382
3383         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3384         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3385           (cl_address_space constructor): removed expensive initialization,
3386           (cl_address_space::get_cell): extended for late initialization,
3387           (cl_address_space::*): use late initialization,
3388           (cl_address_decoder::activate): removed expensive initialization,
3389           This reduced regression test running time by 25%
3390
3391 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3392
3393         * packihx/,
3394         * configure.in,
3395         * configure,
3396         * sdcc.dsw,
3397         * Makefile.bcc,
3398         * Makefile.in,
3399         * support/packihx/Makefile.in,
3400         * support/packihx/clean.mk,
3401         * support/packihx/Makefile.bcc,
3402         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3403
3404 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3405
3406         * src/SDCCval.c (valNot): fix for regression test failure
3407           of not.c on big endian hosts
3408
3409 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3410
3411         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3412
3413 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3414
3415         * device/lib/mcs51/Makefile.in: changed string comparison operator
3416           to = for POSIX compliance; == is bash extension
3417
3418 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3419
3420         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3421           kosmonaut_pirx
3422
3423 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3424
3425         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3426         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3427         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3428         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3429         bug report #1478657,
3430
3431 2006-05-05 Borut Razem <borut.razem AT siol.net>
3432
3433         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3434           making the html
3435
3436 2006-05-02 Borut Razem <borut.razem AT siol.net>
3437
3438         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3439           create *.ind, which made make to fail if invoked with -j 2
3440
3441 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3442
3443         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3444           Hubert Sack for patch 1479782
3445
3446 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3447
3448         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3449
3450 2006-05-01 Raphael Neider <rneider AT web.de>
3451
3452         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3453           (create_pic): store only prefix-free device name,
3454           (init_pic): check for device names with "16" prefix,
3455           (list_valid_pics),
3456         * src/pic/device.h (struct PIC_device),
3457         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3458             stored device name,
3459         * device/include/pic/pic12f{635,675,629,683}.h,
3460         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3461         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3462         * device/include/pic/pic16f505.h,
3463         * device/lib/pic/libdev/pic16f505.c: removed
3464         * device/include/pic/pic14devices.txt: added support for pic12f
3465             devices, removed unsupported non 16-bit devices
3466             [above changes provided by patch from Zik Saleeba]
3467         * src/pic/*, src/pic16/*, device/include/pic16/*,
3468           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3469
3470 2006-05-01 Borut Razem <borut.razem AT siol.net>
3471
3472         * configure.in, configure, doc/Makefile.in:
3473           sync with nightly build makefile - latex, dvipdf and dvips
3474           not needed any more
3475
3476 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3477
3478         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3479         in the library source
3480
3481 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3482
3483         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3484
3485 2006-04-28 Raphael Neider <rneider AT web.de>
3486
3487         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3488         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3489           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3490         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3491
3492 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3493
3494         * device/lib/pic/libdev/Makefile.in,
3495         * device/lib/hc08/Makefile.in,
3496         * device/lib/gbz80/Makefile.in,
3497         * device/lib/z80/Makefile.in,
3498         * device/lib/ds390/Makefile.in,
3499         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3500         thanks to Borut for the bug report
3501         * configure.in,
3502         * configure: always create doc/Makefile independent from --enable-doc
3503         * Makefile.in: always install from directory doc independent from
3504         --enable-doc
3505         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3506         removed
3507         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3508         * doc/Makefile.in: install *.txt if present
3509         * device/include/Makefile.in (install): added installation of pic/*.inc
3510         and pic/*.txt files again, they were erroneously removed
3511
3512 2006-04-28 Raphael Neider <rneider AT web.de>
3513
3514         * src/pic/{gen.c,main.h,pcode.c},
3515         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3516             concerning signedness with casts
3517
3518 2006-04-28 Raphael Neider <rneider AT web.de>
3519
3520         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3521             definition of an interrupt handler,
3522         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3523             interrupt handler stuff from picglue() to separate routine,
3524           (picglue): enabled definition of intr handlers in files w/o main()
3525
3526 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3527
3528         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3529           compilation with MSVC 2005 Express Edition (VC8)
3530
3531 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3532
3533         * device/lib/Makefile: fixed build of gbz80 lib
3534
3535 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3536
3537         * support/regression/tests/bug-460010.c,
3538         * support/regression/tests/bug-524691.c,
3539         * support/regression/tests/bug-716242.c: removed conditional defines
3540           that are already in testfwk.h
3541
3542 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3543
3544         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3545           (AccAXRsh1): added, shift right by 1,
3546           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3547            AccAXLrl1
3548         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3549
3550 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3551
3552         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3553         remove cast to same type
3554         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3555         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3556         * as/z80/Makefile,
3557         * link/z80/Makefile: removed, they have moved to
3558         Makefile.in files
3559         * configure,
3560         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3561         * install-sh: fix bug #1204398 by setting umask 0022
3562         * device/lib/Makefile: separate build of z80 and gbz80 lib
3563
3564 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3565
3566         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3567         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3568
3569         One basic decision: e.g. src/clean.mk includes further files. In order
3570         to make this work there are two solutions:
3571         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3572           run configure on them. This way they can use
3573           'include $(srcdir)/port-clean.mk'
3574         - always include clean.mk by the Makefile at the same level. To avoid
3575           that `make clean` tries to include and build Makefile.dep the
3576           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3577           implemented, because now even `make uninstall` doesn't create
3578           Makefile.in. clean.mk could be eliminated by pasting it in
3579           Makefile.in.
3580
3581         * debugger/mcs51/Makefile.in: build own objects from library sources
3582         (SLIB, SDCC) in current directory
3583
3584         * configure, configure.in: renamed --disable-device-lib-build in
3585         --disable-device-lib; added --enable-doc, the required tools are
3586         searched by configure; added result message; the toolchain for the
3587         belonging ports are now only built, if the port is enabled.
3588
3589         * support/regression/*: all output is written in directory gen, because
3590         the fwk and ports directories don't livet in the build tree using vpath
3591
3592         * doc/sdccman.lyx: renamed --disable-device-lib-build to
3593         --disable-device-lib, added --enable-doc, added section VPATH
3594
3595         * sim/ucsim/configure.in,
3596         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3597         z80 are enabled by default
3598
3599 2006-04-24 Raphael Neider <rneider AT web.de>
3600
3601         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3602             to config word, "pic14_"-prefixed some extern functions
3603           (pic14_emitConfigWord): emit __config directive(s) if assignment to
3604             config word has been found
3605         * src/pic/device.h: added prototypes
3606         * src/pic/pcode.c: added "pic14_"-prefix where needed
3607         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3608             fixup
3609         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3610             words,
3611           (pic14emitRegularMap): ignore config words,
3612           (pic14createInterruptVect): moved generating __config directives away
3613           (picglue): have __config directives emitted
3614
3615 2006-04-24 Borut Razem <borut.razem AT siol.net>
3616
3617         * doc/Makefile: sync with nightly build makefile
3618
3619 2006-04-24 Raphael Neider <rneider AT web.de>
3620
3621         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3622             registers that have not been assigned proper liveranges,
3623             fixes #1469504 and #1474602,
3624           (pCodeRegOptimizeRegUsage): fixed typo in comment
3625
3626 2006-04-24 Borut Razem <borut.razem AT siol.net>
3627
3628         * device/examples/main8051.c: deleted - it was removed from CVS
3629           24.mar.2000 and after that modified 18.feb.2001, so it reappered
3630           after the transition to Subversion
3631         * src/SDCCalloc.h: deleted - it was removed  from CVS
3632           3.feb.2001 and after that modified 18.feb.2001, so it reappered
3633           after the transition to Subversion
3634         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3635           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3636           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3637           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3638
3639 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3640
3641         * as/asx8051.dsp: added mcs51/strcmpi.h
3642         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3643         * as/hc08/aslink.h: updated lnksect prototype
3644         * as/hc08/asm.h,
3645         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3646         * as/hc08/asmain.c,
3647         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3648           (newdot): handle A_ABS
3649         * as/hc08/asout.c,
3650         * as/mcs51/asout.c (outarea): output address
3651         * as/hc08/lkaomf51.c,
3652         * as/mcs51/lkaomf51.c: disabled unused array UsageType
3653         * as/hc08/m08pst.c,
3654         * as/mcs51/i51pst.c,
3655         * as/z80/z80pst.c: "ABS" is not A_OVR
3656         * as/hc08/lkarea.c (newarea): read a_addr,
3657           (lnkarea): added codemap array, sort absolute areas to the front,
3658            combine all GSINITx/GSFINAL,
3659           (find_empty_space, allocate_space): new functions,
3660           (lnksect): return next address, handle absolute sections
3661         * as/mcs51/lkarea.c (newarea): read a_addr,
3662           lnksect2 prototype changed,
3663           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3664           (find_empty_space, allocate_space): new, factored out of lnksect2,
3665           (lnksect2): return next address, handle absolute sections
3666         * as/hc08/lkhead.c,
3667         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3668         * as/hc08/lklibr.c (addfile, fndsym),
3669         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3670           index out of range and detect both '\' and '/'
3671         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3672         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3673           regression tests (ds390 cannot return bool yet)
3674         * doc/sdccman.lyx: changed version number, document changed --no-peep,
3675           document critical interrupts on z80, document changed SDCC define
3676         * src/asm.c (_asxxxx_mapping): fixed .org directive,
3677           (_a390_mapping): added .org directive
3678         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3679           (genMultOneByte): fixed warnings
3680         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3681           ones
3682         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3683         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3684           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3685         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3686         * src/pic16/main.c: removed newReg prototype
3687         * src/pic16/pcode.c,
3688         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3689           warnings
3690         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3691           ones
3692         * src/pic16/ralloc.c
3693         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3694           to fix warnings
3695         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3696           from short to PIC_OPTYPE
3697         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3698         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3699           optype from short to PIC_OPTYPE
3700         * src/port.h: made int_size unsigned to fix warnings
3701         * src/SDCC.y: fixed warning on MSVC
3702         * src/SDCCicode.c (getArraySizePtr): return unsigned int
3703         * src/SDCCopt.c (convertToFcall): fixed warnings
3704         * src/SDCCsymt.h: removed double prototype for genSymName
3705         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3706           offset int to fix warnings
3707
3708 2006-04-22 Borut Razem <borut.razem AT siol.net>
3709
3710         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3711           references to CVS replaced with Subversion
3712
3713 2006-04-21 Borut Razem <borut.razem AT siol.net>
3714
3715         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3716           references to CVS replaced with Subversion
3717
3718 2006-04-19 Borut Razem <borut.razem AT siol.net>
3719
3720         * src/version.awk: adapted for svn
3721         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3722           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3723           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3724           /binutils-avr/etc/*.vi, *.jin: removed all properties
3725           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3726
3727 2006-04-19 Borut Razem <borut.razem AT siol.net>
3728
3729         * CVS to Subversion migration completed
3730
3731 2006-04-18 Borut Razem <borut.razem AT siol.net>
3732
3733         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3734           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3735
3736 2006-04-17 Borut Razem <borut.razem AT siol.net>
3737
3738         * device/include/Makefile.in: added pic/*.inc to the installation
3739
3740 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3741
3742         * support/regression/collate-results.py: fixed output in case of
3743         a valdiag error
3744         * support/regression/generate-cases.py: fixed splitting of pathnames
3745         with dots
3746         * as/hc08/lklibr.c (addfile),
3747         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3748
3749 2006-04-11 Raphael Neider <rneider AT web.de>
3750
3751         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3752         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3753         * src/pic16/pcode.c (assignValnums): fixed #1460578
3754
3755 2006-04-11 Raphael Neider <rneider AT web.de>
3756
3757         * device/lib/pic/libdev/*.c,
3758         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3759           fixes #1468739, enables compilation in --std-c99 mode
3760         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3761
3762 2006-04-11 Raphael Neider <rneider AT web.de>
3763
3764         * src/pic/device.c (find_device): removed debug output
3765           (list_valid_pics): enabled verbose listing of supported devices
3766         * device/include/stdbool.h: define bool as char for pic14/16 as well
3767
3768 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3769
3770         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3771
3772 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3773
3774         * .version: bumped version to 2.5.6
3775         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3776
3777 2006-04-06 Raphael Neider <rneider AT web.de>
3778
3779         * .version: bumped version to 2.5.6 (pic14 ABI changed)
3780         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3781         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3782           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3783             pic14_constructAbsMap
3784           (pic14printPublics): declare absolute global symbols as global
3785           (pic14createInterruptVect),
3786         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3787           (newReg): assume new registers unused, use correct name in
3788             hashtable (reg->name instead of name), more debugLog output
3789         * src/pic/device.h (PIC_device): added fields for verbose output
3790         * src/pic/device.c: moved device definition to pic14devices.txt,
3791             added routines for runtime parsing of pic14devices.txt,
3792             added support for second config word
3793         * src/pic/main.c (_process_pragma): removed #pragma maxram,
3794           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3795           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3796           (_pic14_parseOptions): moved pCodeInitRegisters here
3797           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3798         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3799           (pCodeInitRegisters): rewrapped comments, perpared new approach to
3800             handling the pseudo stack
3801         * device/lib/Makefile.in: ignore failures in objects-pic16,
3802         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3803         * device/lib/pic/NEWS: document new dependency on picXXX.lib
3804         * device/lib/pic/Makefile.subdir,
3805         * device/lib/pic16/Makefile.subdir: improved clean rules
3806         * device/lib/pic/libdev/: NEW, pic14 device libraries
3807         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
3808         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
3809         * device/include/Makefile.in: create subdir and install pic14 headers
3810         * device/include/pic/p16f_common.inc: removed unused declarations
3811         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
3812             PICs from inc2h.pl v1.6,
3813             replaced BIT_AT macros with struct declarations
3814         * device/include/pic/pic14devices.txt: definition of supported devices,
3815             all above improvements contributed by Zik Saleeba, thanks
3816         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
3817         * support/scripts/sdcc.nsi: also install pic14 device libraries and
3818             headers
3819
3820 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3821
3822         * device/include/mcs51/c8051f410.h: added interrupt numbers,
3823         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
3824           thanks to Charles Olds
3825
3826 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3827
3828         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
3829
3830 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3831
3832         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
3833         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
3834         * support/regression/bug1464657.c: added, new test
3835
3836 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3837
3838         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
3839           version number
3840
3841 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3842
3843         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
3844           --no-peep and --peep-file <file> are used don't use default rules but
3845           do use the <file>
3846
3847 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3848
3849         * src/mcs51/gen.c (genCall): fixed bug 1457608
3850
3851 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3852
3853         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
3854         changes seem to cause (trigger?) problems with the build system.
3855
3856 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
3857
3858         * src/SDCCpeeph.c (operandsLiteral): new, added,
3859           (callFuncByName): inserted operandsLiteral
3860         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
3861
3862 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3863
3864         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
3865         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
3866
3867 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3868
3869         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
3870           implemented patch 1120823 Thanks to Willy De la Court (normal
3871           interrupts need an interrupt number now if they are made critical),
3872           and enabled nesting of critical functions though not for gbz80
3873           (genCritical, genEndCritical): added functions
3874           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
3875         * src/z80/mappings.i: added "ei" to all mappings
3876
3877 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3878
3879         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
3880         submitted by the Debian SDCC maintainer Aurelien Jarno:
3881         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
3882         archive with gcc 4.1 on mips and wrote the patch"
3883
3884 2006-03-16 Raphael Neider <rneider AT web.de>
3885
3886         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
3887           the left operand is shorter than the result (c* = lit-c* + int),
3888           fixes bug #1450796
3889         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
3890           OP_SYMBOL
3891
3892 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3893
3894         * src/.version: increased version number to 2.5.5
3895         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
3896         linking is done manually in pic16 port's _linkEdit,
3897         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
3898         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
3899         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
3900         allocate asmop as AOP_ACC,
3901         (aopForRemat): added parameter 'bool result' in function declaration,
3902         (pic16_aopGet): return AOP_ACC when accessing WREG,
3903         (pic16_popGetTempReg): minor modification,
3904         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
3905         'pic16_allocWithIdx',
3906         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
3907         calling function in absolute addresses,
3908         (genAssign): take into account AOP_ACC asmop,
3909         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
3910         * src/pic16/pcoderegs.c: some debug functions and lines added,
3911         * src/pic16/ralloc.c (decodeRegType): added but commented out,
3912         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
3913         register too,
3914         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
3915         call to allocReg, not by manually allocating a new one,
3916         (pic16_assignRegisters): now before going through the register
3917         allocating functions mark all registers as free. This eliminates some
3918         side effects resulting from peephole parser done earlier in the backbone
3919
3920 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
3921
3922         * src/SDCCicode.c (geniCodeLogic),
3923         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
3924
3925 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
3926
3927         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
3928           (genSend): bugfix, do not allocate and free twice,
3929           (shiftRLong): handle partially overlapping aops
3930         * support/regression/tests/bitopcse.c: fixed warning redefined idata
3931
3932 2006-03-08 Borut Razem <borut.razem AT siol.net>
3933
3934         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
3935           for pic16
3936
3937 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
3938
3939         * support/regression/tests/bug1409955.c: new, added
3940         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
3941         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
3942           (aopForSym, aopOp): increment asmop.allocated if reused,
3943           (freeAsmop): decrement asmop.allocated and check for zero instead of
3944           using asmop.freed,
3945           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
3946           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
3947            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
3948            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
3949            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
3950            genSignedRightShift, genRightShift, genDataPointerGet,
3951            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
3952            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
3953             in reverse order from allocation,
3954           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
3955             added swappedLR to keep track
3956         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
3957           pdata & code for GCC, z80, gbz80 & hc08
3958         * support/regression/tests/zeropad.c: moved defines to testfwk.h
3959
3960 2006-03-08 Raphael Neider <rneider AT web.de>
3961
3962         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
3963
3964 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
3965
3966         * device/include/mcs51/c8051f410.h: new SiLabs mcu
3967         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
3968         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
3969
3970 2006-03-06 Borut Razem <borut.razem AT siol.net>
3971
3972         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
3973           made the linker quiet
3974
3975 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3976
3977         * src/pic16/gen.c (genPcall): fixed bug #1443644
3978         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
3979         which dumps before the function entry point a data byte which represents
3980         the number of the local variables used by the specified function, added
3981         'xinst' for initial support for Extended Instruction Support,
3982         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
3983         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
3984         port->fun_prefix anymore (may change later),
3985         (genFunction, genEndFunction): do not store/restore local registers for
3986         _main (this should take care the --main-return command line option in
3987         the future),
3988         (genOr): removed some legacy pic-port instructions,
3989         * src/pic16/genarith.c (genAddLit): re-enabled old code because
3990         performing operations with SFR's causes data to be written more than
3991         once to each SFR. Perhaps SFRs should be handled in special cases...
3992         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
3993         pcode.h
3994         * src/pic16/main.c (_process_pragma): stack bound checking did not take
3995         into account for stack starting position,
3996         (struct OPTIONS pic16_optionsTable): added command line argument
3997         --extended or -y for Extended Instruction Support,
3998         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
3999         (deassignLRs): *** perhaps the most important change, old 'for' code
4000         (commented out for reference), didn't account for some registers which
4001         were left marked 'not free' after a pointer operation. The change
4002         reduces register usage a lot in some cases
4003
4004 2006-03-04 Borut Razem <borut.razem AT siol.net>
4005
4006         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
4007           _clean
4008         * support/regression/tests/bug-524697.c: decreased array size for
4009           mcs51 to fit into the internal RAM
4010         * support/regression/Makefile.in: a little bit more verbose
4011
4012 2006-03-03 Borut Razem <borut.razem AT siol.net>
4013
4014         * support/regression/fwk/lib/testfwk.c,
4015           support/regression/fwk/include/testfwk.h: introduced function
4016           _prints(), nonrecursive _printn(), call _initEmu() from main()
4017         * support/regression/ports/gbz80/support.asm,
4018           support/regression/ports/ucz80/support.asm,
4019           support/regression/ports/z80/support.asm,
4020           support/regression/ports/ds390/support.c,
4021           support/regression/ports/hc08/support.c,
4022           support/regression/ports/host/support.c,
4023           support/regression/ports/mcs51/support.c,
4024           support/regression/ports/xa51/support.c: added empty _initEmu()
4025           function
4026         * support/regression/ports/pic16/gpsim.cmd,
4027           support/regression/ports/pic16/spec.mk,
4028           support/regression/ports/pic16/support.c,
4029           support/regression/Makefile.in: added pic16 regression test
4030
4031 2006-03-01 Raphael Neider <rneider AT web.de>
4032
4033         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
4034           genConstPointerGet): use safe way of generating MOVFF to cover
4035             literals as well as registers, fixes bug #1440527
4036         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
4037             dereference
4038           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
4039             more correctly, fixes bug #1232186
4040           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
4041         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
4042             gplink guess the correct processor in more cases, applied patch
4043             from Till Riedel attached to and fixing bug #1436552
4044
4045 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4046
4047         * support/regression/tests/array.c: added, contains check for #1434401
4048         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
4049
4050 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
4051
4052         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4053         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
4054         * device/include/mcs51/c8051f326.h,
4055         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
4056         * device/include/mcs51/c8051f000.h,
4057         * device/include/mcs51/c8051f018.h,
4058         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
4059           PCON_IDLE,PCON_STOP and added sfr16 definitions
4060
4061 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4062
4063         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
4064           genGetWord): fixed bug 1409955
4065
4066 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4067
4068         * device/include/hc08/mc68hc908gp32.h,
4069         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
4070
4071 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
4072
4073         * src/SDCCast.c (constExprValue): return NULL if not a value
4074         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
4075         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
4076         * support/regression/tests/bitfields.c: enabled signed bitfield for all
4077
4078 2006-02-13 Borut Razem <borut.razem AT siol.net>
4079
4080         * src/regression/ptrarg.c: added, fails due to bug #1430967
4081         * src/regression/Makefile: ptrarg.c added, ...
4082
4083 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
4084
4085         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
4086         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
4087
4088 2006-02-11 Borut Razem <borut.razem AT siol.net>
4089
4090         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
4091           print "Processor: xxx" message to stdout only if --verbose
4092
4093 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4094
4095         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
4096         * support/regression/tests/bug1426356.c: added
4097         * support/regression/tests/bitfields.c: removed 2 tests
4098
4099 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4100
4101         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
4102         * device/include/mcs51/c8051f330.h,
4103         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
4104           PCON_IDLE,PCON_STOP and added sfr16 definitions
4105         * device/lib/_divsint.c,
4106         * device/lib/_divuint.c,
4107         * device/lib/_divulong.c,
4108         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
4109           register bank bug for small stackauto
4110
4111 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4112
4113         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4114
4115 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4116
4117         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4118         * all.dsp: corrected several bin paths
4119         * device/include/mcs51/c8051f120.h,
4120         * device/include/mcs51/c8051f300.h,
4121         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4122           to PCON_IDLE,PCON_STOP
4123         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4124         * device/lib/printf_large.c (output_float): fixed bug 1388703
4125         * support/regression/tests/bug1057979.c: added test for bug 1388703
4126
4127 2006-02-08 Raphael Neider <rneider AT web.de>
4128
4129         * src/pic/pcode.c (pciTRIS): fixed typo,
4130           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4131           (LinkFlow): fixed handling of flows that end in a call,
4132           (ReuseReg): perform safety check earlier
4133         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4134             to work with flows at the beginning of a pBlock,
4135             fixes #1426557 (Symbol not previously defined),
4136           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4137             usage information
4138           (RemoveUnusedRegisters): update register usage info
4139         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4140             created, reuse existing ones instead
4141         * src/pic/gen.c (genPcall): fixed #1424719
4142
4143 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4144
4145         * link/z80/lkmain.c,
4146         * link/z80/lklex.c,
4147         * link/z80/lkdata.c,
4148         * link/z80/aslink.h: fixed build on current cygwin:
4149         replaced getline() by lk_getline()
4150
4151 2006-02-01 Borut Razem <borut.razem AT siol.net>
4152
4153         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4154           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4155           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4156           src/regression/bool1.c, src/regression/bool2.c,
4157           src/regression/bool3.c, src/regression/call1.c,
4158           src/regression/compare.c, src/regression/compare10.c,
4159           src/regression/compare2.c, src/regression/compare3.c,
4160           src/regression/compare4.c, src/regression/compare5.c,
4161           src/regression/compare6.c, src/regression/compare7.c,
4162           src/regression/compare8.c, src/regression/compare9.c,
4163           src/regression/configword.c, src/regression/for.c,
4164           src/regression/inline.c, src/regression/mult1.c,
4165           src/regression/nestfor.c, src/regression/or1.c,
4166           src/regression/pointer1.c, src/regression/ptrfunc.c,
4167           src/regression/rotate1.c, src/regression/rotate2.c,
4168           src/regression/rotate3.c, src/regression/rotate4.c,
4169           src/regression/rotate5.c, src/regression/rotate6.c,
4170           src/regression/rotate7.c, src/regression/string1.c,
4171           src/regression/struct1.c, src/regression/sub.c,
4172           src/regression/sub2.c, src/regression/switch1.c,
4173           src/regression/while.c, src/regression/xor.c,
4174           src/regression/create_stc, src/regression/simulate,
4175           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4176           regression tests
4177         * src/regression/gpsim_assert.h: added
4178
4179 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4180
4181         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4182         ((void (code *) (void)) 0) ();
4183         * as/hc08/aslex.c,
4184         * as/hc08/aslink.h,
4185         * as/hc08/asm.h,
4186         * as/hc08/asmain.c,
4187         * as/hc08/lkdata.c,
4188         * as/hc08/lklex.c,
4189         * as/hc08/lkmain.c,
4190         * as/mcs51/aslex.c,
4191         * as/mcs51/aslink.h,
4192         * as/mcs51/asm.h,
4193         * as/mcs51/asmain.c,
4194         * as/mcs51/lkdata.c,
4195         * as/mcs51/lklex.c,
4196         * as/mcs51/lkmain.c,
4197         * as/z80/aslex.c,
4198         * as/z80/asm.h,
4199         * as/z80/asmain.c: fixed build on current cygwin:
4200         replaced getline() by as_getline()
4201
4202 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4203
4204         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4205         declarator in the symbol chain
4206         * src/SDCCsymt.h,
4207         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4208         parameter list for function pointers
4209         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4210         * support/regression/tests/bug-716242.c: added
4211
4212 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4213
4214         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4215         offset if possible
4216         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4217
4218 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4219
4220         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4221         inifinitely recurseable, added static
4222         * support/regression/tests/bug-1408066.c: added
4223
4224 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4225
4226         * src/SDCCicode.h,
4227         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4228         renamed, added possibility to create "postLoopLbl"-labels
4229         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4230         newiTempLoopHeaderLabel
4231         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4232         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4233         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4234         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4235         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4236         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4237         (basicInduction): fixed bug #136564, made static,
4238         (loopInduction): changed parameter of basicInduction, made static,
4239         (addPostLoopBlock): added
4240         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4241         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4242         findLoopEndSeq
4243         * support/regression/tests/bug-136564.c: added
4244         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4245         --std-sdcc99 to LIBSDCCFLAGS
4246
4247 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4248
4249         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4250         while loop
4251         * support/regression/tests/bug-1406131.c: added
4252
4253 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4254
4255         * src/SDCCast.c (decorateType): fix promotion of unary minus
4256         * src/SDCCsymt.c (computeType): beautified
4257         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4258         (valUnaryPM, valComplement): fix sign and promotion,
4259         (valNot): ANSI: result type is int (SDCC: unsigned char)
4260         * support/regression/tests/uminus.c: speedup by removing superflous
4261         test case 'int'
4262         * support/regression/tests/onebyte.c: added promotion and signedness
4263         tests for unary minus
4264         * support/regressions/tests/bug-477927.c: disable warning about
4265         uninitialized variables
4266         * support/regression/tests/not.c: added
4267
4268 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4269
4270         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4271         * src/mcs51/gen.c (gen51Code): show final register usage after
4272         fillGaps in asm with --i-code-in-asm
4273         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4274         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4275         incUsed, rliveClear, adjustIChain): made static,
4276         (setFromRange): excluded because it's unused,
4277         (findPrevUseSym, markWholeLoop): added,
4278         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4279         through all branches of predecessors enables sdcc to emit the warning
4280         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4281         (rlivePoint): made static, added parameter emitWarnings which is only
4282         true during the first run out of two,
4283         (findRecursiveSucc, findRecursivePred): removed,
4284         (computeLiveRanges): made static, added parameter emitWarnings,
4285         (dumpIcRlive): added for debugging only
4286         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4287         removed prototype of setFromRange()
4288         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4289         in call of computeLiveRanges()
4290         * support/regression/tests/bug-895992.c: added
4291         * support/regression/tests/bug-971834.c: added
4292         * support/valdiag/tests/bug-895992.c: added
4293         * support/valdiag/tests/bug-971834.c: added
4294
4295 2005-12-18 Raphael Neider <rneider AT web.de>
4296
4297         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4298           (genUnpackBits): improved code for direct operands,
4299           (genPackBits): improved code for literal assignment to bitfields
4300             and for direct destination operands (no FSR indirection),
4301             prevented redundant AND, fixes #1362800,
4302           (AccLsh): added parameter to disable masking of the result
4303         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4304           skip instructions with side-effects (like incfsz),
4305           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4306         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4307         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4308           fixes #1375263
4309
4310 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4311
4312         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4313         volatile variables as spill location
4314
4315 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4316
4317         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4318         replacing literals
4319         * support/regression/tests/bug-1376320.c: added
4320
4321 2005-12-08 Raphael Neider <rneider AT web.de>
4322
4323         * src/pic/device.c: renamed is_shared to pic14_is_shared
4324         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4325         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4326           (is_valid_identifier): added for above workaround
4327
4328 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4329
4330         * device/lib/Makefile.in: fixed to enable port-specific-objects
4331         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4332           char, thanks Hubert Sack
4333         * doc/sdccman.lyx: documented --xstack-loc,
4334           elaborated a bit more on interrupts and pitfalls,
4335           removed "setjmp/longjmp unsupported",
4336           documented some unsupported C99 features
4337         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4338         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4339           if, thanks Hubert Sack
4340         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4341         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4342           make make_library
4343         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4344           regression tests can report resource usage (rfe 700441)
4345         * support/regression/collate-results.py: report resource usage
4346         * support/regression/ports/ds390/spec.mk,
4347         * support/regression/ports/hc08/spec.mk,
4348         * support/regression/ports/mcs51/spec.mk,
4349         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4350         * support/regression/ports/ds390/uCsim.cmd,
4351         * support/regression/ports/hc08/uCsim.cmd,
4352         * support/regression/ports/mcs51/uCsim.cmd,
4353         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4354         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4355           library, use the default one
4356         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4357           building the library
4358
4359 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4360
4361         * config.dsp: added dependency on .version and configure_vc.awk
4362         * device/include/setjmp.h: updated for --stack-auto and --xstack
4363         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4364         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4365         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4366         * device/lib/libsdcc.lib: added _setjmp
4367         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4368           (decorateType): fixed bug 1372851,
4369           (optimizeGetHbit): fixed warning
4370         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4371           array initialisation
4372         * support/regression/tests/bug1057979.c: added test for bug 1358192
4373         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4374
4375 2005-12-03 Borut Razem <borut.razem AT siol.net>
4376
4377         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4378           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4379
4380 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4381
4382         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4383         createIval): implement symbol independant "flexible array member",
4384         (createIvalCharPtr): implemented flexible array initialisation with a
4385         string
4386         * src/SDCCsymt.c (copyStruct): removed,
4387         (getSize): fixed misleading comment,
4388         (getAllocSize): removed, the additional allocation size is now in
4389         sym->flexArrayLength,
4390         (checkStructFlexArray): new, syntax checks for flexible array members,
4391         (compStructSize): added syntax checks for "flexible array members"
4392         (copyStruct): removed,
4393         (copyLinkChain): removed inefficient fix for bug 770487
4394         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4395         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4396         symbol->flexArrayLength
4397         * src/SDCCerr.c,
4398         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4399         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4400         * support/regression/tests/structflexarray.c: added
4401         * support/valdiag/tests/structflexiblearray.c: added
4402
4403 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4404
4405         * src/SDCCast.c (decorateType): fixed bug 1368489
4406         * support/Util/SDCCerr.c,
4407         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4408
4409 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4410
4411         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4412           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4413
4414 2005-11-27 Borut Razem <borut.razem AT siol.net>
4415
4416         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4417           support/cpp2/mkdeps.h: added command line option
4418           -obj-ext=<extension> to SDCPP to define object file externion, used
4419           for generation of make dependencies (-M)
4420         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4421
4422 2005-11-26 Borut Razem <borut.razem AT siol.net>
4423
4424         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4425           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4426           added pic and pic16 libraries
4427
4428 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4429
4430         * device/include/float.h: Corrected typo in prototype of __fsgt
4431
4432 2005-11-25 Borut Razem <borut.razem AT siol.net>
4433
4434         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4435           added creation of model-mcs51-stack-auto libraries
4436
4437 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4438
4439         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4440         and fields-list too
4441         * src/SDCCast.c (createIvalArray): removed obsolete comment
4442
4443 2005-11-24 Borut Razem <borut.razem AT siol.net>
4444
4445         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4446           added missing device/lib/mcs51/crt*.asm sources
4447
4448 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4449
4450         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4451
4452 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4453
4454         * device/lib/_fs2schar.c,
4455         * device/lib/_fs2sint.c,
4456         * device/lib/_fs2slong.c: optimized inline asm
4457
4458 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4459
4460         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4461           Better handling of floats between -1.0 and 0.0.
4462
4463 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4464
4465         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4466           (the missing "if"s prohibited removal of redundant labels)
4467
4468 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4469
4470         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4471           Properly convert floats between -1.0 and 0.0 to long, int, and char
4472           types (max integer value of negative floats tends to zero).
4473         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4474           Removed changes made so to work properly with floats between
4475           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4476           and _fs2char.c
4477
4478 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4479
4480         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4481         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4482         (genCast) cosmetic change
4483         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4484         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4485         from mcs51
4486         * support/regression/tests/bitfields (testSignedBitfields): added
4487
4488 2005-11-18 Borut Razem <borut.razem AT siol.net>
4489
4490         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4491         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4492           introduced SILENT option to make building of pic16 libraries less
4493
4494 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4495
4496         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4497           Now they work properly with floats between -1.0 and 0.0
4498         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4499
4500 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4501
4502         * src/SDCCicode.c (printOperand): added missing else
4503
4504 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4505
4506         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4507         reformatted for better readability
4508         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4509         signed bitfields
4510
4511 2005-11-17 Borut Razem <borut.razem AT siol.net>
4512
4513         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4514           introduced SILENT option to make building of pic16 libraries less
4515           verbose - used for nightly snapshot build
4516         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4517           available on Win32 platforms.
4518         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4519           medium, large, pic and pic16
4520
4521 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4522
4523         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4524           printf("%f"...) sets fraction to zero.
4525
4526 2005-11-16 Raphael Neider <rneider AT web.de>
4527
4528         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4529           fixes #1357221
4530         * src/pic/gen.c (genIfx): implemented for CARRY bit
4531         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4532           to generic pointers, fixes #1357332,
4533           (pic16_movLit2f): NEW,
4534           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4535
4536 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4537
4538         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4539
4540 2005-11-11 Raphael Neider <rneider AT web.de>
4541
4542         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4543         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4544           compute pointer's type from operand,
4545           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4546           improved single bit reads, fixes bug #1353379
4547
4548 2005-11-09 Borut Razem <borut.razem AT siol.net>
4549
4550         * support/scripts/sdcc.nsi: added lib/pic to the package
4551
4552 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4553
4554         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4555
4556 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4557
4558         * support/regression/tests/bug1348008.c: added
4559         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4560         * support/regression/tests/bug1337835.c: updated comment
4561
4562 2005-11-06 Borut Razem <borut.razem AT siol.net>
4563
4564         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4565           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4566           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4567           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4568           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4569           dynamic construction of cl_error_class and derivates - 2.nd try
4570
4571 2005-11-05 Borut Razem <borut.razem AT siol.net>
4572
4573         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4574           bug, which caused Bus Errors on sparc solaris
4575
4576 2005-11-04 Borut Razem <borut.razem AT siol.net>
4577
4578         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4579           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4580           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4581           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4582           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4583           and derivates to resolve the initialization problem on OSX
4584
4585 2005-11-02 Borut Razem <borut.razem AT siol.net>
4586
4587         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4588           corrected typo - #include <winsock2.h>
4589
4590 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4591
4592         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4593           (_asxxxx_mapping): added org directive for future enhancements
4594
4595 2005-11-01 Borut Razem <borut.razem AT siol.net>
4596
4597         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4598           enabled sockets on WIN32
4599         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4600
4601 2005-10-31 Borut Razem <borut.razem AT siol.net>
4602
4603         * support/regression/generate-cases.py: escape backslashes in {testcase}:
4604           WIN32 backslash path delimiters should be escaped when used in C strings
4605         * support/regression/tests/bitfields.c: exclude failing assertions for
4606           __CYGWIN32__ and __MINGW32__ hosts
4607
4608 2005-10-30 Borut Razem <borut.razem AT siol.net>
4609
4610         * src/SDCCutil.c: corrected double comparison typo
4611
4612 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4613
4614         * device/lib/medium/Makefile: added for new memory model medium
4615         * device/include/asm/mcs51/features.h: updated for medium/pdata
4616         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4617           added Multiply & Accumulate sbit's and MAC0_PAGE define
4618         * device/include/mcs51/c8051f300.h: added sfr16 definitions
4619         * device/include/mcs51/c8051f310.h: added sfr16 definitions
4620         * device/lib/_mullong.c: update for medium model
4621         * device/lib/incl.mk: added medium model
4622         * doc/sdccman.lyx: documented medium model
4623         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4624         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4625         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4626         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4627           (allocParms): set SCLS and OCLS to pdata for medium model
4628         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4629           for pdata,
4630           (powof2): return <0 if not power of 2
4631         * src/avr/gen.c (genBitWise): use updated powof2
4632         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4633           (shiftR2Left2Result): small optimization in setup, save acc when storing,
4634           (shiftLLeftOrResult): use B if necessary
4635         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4636         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4637         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4638         * support/regression/Makefile.in: added test-mcs51-medium
4639         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4640
4641 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4642
4643         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4644         specifier unsigned
4645         * device/lib/time.c (mktime): fixed bug 1334315
4646
4647 2005-10-28 Raphael Neider <rneider AT web.de>
4648
4649         * device/include/pic/p16f_common.inc: added common declarations
4650         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4651
4652 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4653
4654         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4655           (aopPutUsesAcc): added to predict accumulator use,
4656           (assignResultValue): save acc if necessary,
4657           (genMinusDec): store result if indirectly addressed,
4658           (genDivOneByte):  save acc if necessary,
4659           (movLeft2Result): bugfix if left already in acc,
4660           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4661             attention to accumulator use (esp. pdata),
4662           (genReceive): receive pdata correctly
4663         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4664         * src/SDCCicode.h: added isOperandInPagedSpace prototype
4665
4666 2005-10-27 Raphael Neider <rneider AT web.de>
4667
4668         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4669
4670 2005-10-27 Raphael Neider <rneider AT web.de>
4671
4672         * .version: changed version to 2.5.4
4673         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4674         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4675           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4676             arithmetics support routines
4677         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4678         * device/lib/Makefile.in: also create installdir for pic
4679
4680         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4681           pic14 port as well
4682         * src/pic/device.c (dump_sfr): rewritten to delegate register
4683           placement to the linker (use `extern sym' rather than sym EQU addr),
4684           (validAddress): fixed to check last specified address
4685         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4686           (popGetLit): truncate literal value to 8 bit,
4687           (popGet): moved assert to more appropriate place
4688           (popGetExternal): create pCode operand from and mark the according
4689             symbol as being `extern'
4690           (popGetAddr): added sanity check on immediate's offset, provide
4691             GPOINTER tag on demand
4692           (aopPut): fixed for immediates,
4693           (mov2w_op): move operand's address or contents to WREG (depending on
4694             operand type), safer variant of mov2w,
4695           (movwf,call_libraryfunc): NEW, handy abbreviations,
4696           (get_argument_pcop,get_return_val_pcop,pass_argument,
4697           get_returnvalue): interface for accessing function parameters and
4698             return values,
4699           (assignResultValuei,genRet): use new parameter/return value interface
4700           (pic14_getDataSize): back to old version handling generic pointers,
4701           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4702             provided implementation and/or fixed old one,
4703           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4704             calls, removed legacy 8051 reference code
4705           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4706           (loadSignToC): NEW, move the operands sign bit to CARRY,
4707           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4708             genRightShiftSigned, accepts negative shift counts,
4709           (setup_fsr): load FSR and adjust IRP (indirect memory access),
4710           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4711             generic pointers, __data pointers and __code pointers,
4712           (genUnpackBits,genPackBits): rewritten to work with generic pointers
4713             and signed bitfields, limit bitfields to 8 bit,
4714           (genDataPointerGet): fixed number of bytes read,
4715           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4716           (genPointerGet,genPointerSet): fixed handling of __code pointers,
4717             pointers to constant data are no longer assumed to point to __code
4718             space, removed invalid pointer types,
4719           (bitpatternFromVal): retrieve the PICs representation of an integer
4720             or float literal,
4721           (genDataPointerSet): fixed assigning to po_immediate operands,
4722           (genGenPointerSet): implemented as library call,
4723           (genIfx): fixed incorrect condition,
4724           (genAddrOf): limit generic pointers' addresses to 2 bytes,
4725             provide GPOINTER tag according to destination's storage class,
4726           (genCast): added code to handle casting to generic pointers, added
4727             sign-/zero extension of the result
4728           (aop_isLitLike,op_isLitLike): fixed handling of immediates
4729         * src/pic/gen.h: added macros to access IRP bit in STATUS register
4730         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4731           extend the result
4732         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4733           address/register resides in the shared banks
4734           (emitSymbolToFile): improved to handle global and `pinned' symbols,
4735             put all variables into separate sections (have the linker arrange
4736             them)
4737           (picglue): put init code and interrupt handlers in separate sections
4738         * src/pic/main.c: added port specific options table, modified to PORT
4739           structure to make GPOINTERs 3 byte, added pic14_options
4740           (_pic14_do_link): private linking routine (update paths to libraries,
4741             add libsdcc.lib by default)
4742         * src/pic/main.h: declare pic14_options
4743         * src/pic/pcode.c: fixed instructions i/o relations,
4744           (RegCond): reverted to correct version,
4745           (newpCodeOpLit): truncate literals to 8 bit,
4746           (genericPrint): added debug output,
4747           (getRegFromInstruction): fixed for various operand types, simplified
4748           (BuildFlow): fixed broken handling of isntructions with labels
4749           (LinkFlow): start at last instruction in flow (skip trailing comments),
4750             pass the flow on to the next instruction after CALL
4751           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4752           (insertPCodeInstruction): fixed inserting after a skip instruction,
4753           (DoBankSelect): fixed for labeled instructions
4754           (OptimizepBlock): honor --nopeep switch
4755           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4756         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4757         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4758           (pCodeOptime2pCodes): allow disabling this optimization via
4759             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4760             but is still buggy), started implementation of a dataflow based
4761             pCode optimization (CSE + dead code elimination)
4762           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4763         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4764           names are independant of the stack location and therefore portable across
4765           devices
4766
4767 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4768
4769         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4770           (selectSpil): fixed bug 1337835 by not spilling bit variables
4771         * support/regression/tests/bug1337835.c: added test for this bug
4772         * src/mcs51/peeph.def: restart after rule 3.c,
4773           addded rules 263.x to optimize loading constants
4774
4775 2005-10-26 Raphael Neider <rneider AT web.de>
4776
4777         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4778         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4779           (genAssign): emit warning when casting literals to generic pointer
4780             type, also applies when taking the address of a fixed variable,
4781           (genCast): improved casting to generic pointers
4782         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4783           extern variables, added verbose error message
4784         * device/include/pic16/{string.h,errno.h}: added #pragma library c
4785
4786 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4787
4788         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4789         carry must be complemented too
4790         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4791         could be emitted by genMinus
4792         * src/SDCCval.c (constVal): fixed bug 1305065
4793
4794 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4795
4796         * src/SDCCast.c (addCast): added promotion for bit variables
4797         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4798         promotion casts + optimisation
4799         (optimizeGetWord): fix warning 'i' might be used uninitialized
4800         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4801         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4802
4803 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
4804
4805         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
4806         all chars are promoted to int; promotion should be handled in SDCCast.c
4807
4808 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4809
4810         * device/lib/_strcmp.c: Fixed bug 1326457
4811
4812 2005-10-11 Raphael Neider <rneider AT web.de>
4813
4814         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
4815         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
4816
4817 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4818
4819         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
4820         * support/regression/tests/sfr16.c: added test for the sfr32 bug
4821
4822 2005-10-04 Raphael Neider <rneider AT web.de>
4823
4824         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
4825           device/lib/pic16/pics.all: added pic18f1320
4826         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
4827
4828 2005-09-30 Raphael Neider <rneider AT web.de>
4829
4830         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
4831         * src/pic16/devices.inc: NEW, provides device descriptions
4832         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
4833
4834 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4835
4836         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
4837           GETHBIT
4838
4839 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
4840
4841         * doc/sdccman.lyx: updated Highest Order Bit documentation,
4842           documented Any Order Bit, Higher Order Byte and Higher Order Word
4843         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
4844         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
4845           (optimizeGetAbit): new, to get any bit, not only the high bit,
4846           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
4847           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
4848           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
4849           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
4850             RIGHT_OP: also try GETBYTE, GETWORD optimization,
4851             GETABIT, GETBYTE, GETWORD: decorate them,
4852           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
4853           (ast_print): added GETABIT, GETBYTE, GETWORD
4854         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
4855         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
4856           (geniCodeBinary): new generic binary icode,
4857           (ast2iCode): added GETABIT, GETBYTE, GETWORD
4858         * src/port.h: updated comment for PORT.hasExtBitOp
4859         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
4860           (genGetByte): new, to get a single byte,
4861           (genGetWord): new, to get a word from a long,
4862           (gen51Code): added GETABIT, GETBYTE, GETWORD
4863         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
4864
4865 2005-09-23 Raphael Neider <rneider AT web.de>
4866
4867         * configure.in, configure: have device/lib/pic configured
4868         * device/lib/Makefile.in: added model-pic14
4869         * device/lib/clean.mk: added pic/ to clean rule
4870         * device/lib/pic: added rudimentary pic14 library providing support
4871           functions for multiplication/division/generic pointer access
4872         * src/SDCCopt.c (convilong): mark support functions as extern
4873           for pic14 port as well
4874         * src/pic/gen.c (genMult): added assertions,
4875           (genpic14Code): emit warning on unhandled iCodes
4876         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
4877         * src/pic/pcode.c (pCodeOpCopy),
4878         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
4879           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
4880           SFR_REGISTER}), made safe for future extensions
4881         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
4882           instructions even if preceeded by SKIP instructions (also remove
4883           them); removed unused code
4884         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
4885           prevents leaving parts of the structure uninitialized after copying
4886
4887 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
4888
4889         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
4890           ago by me
4891         * support/regression/tests/addsub.c: added test for the bug
4892
4893 2005-09-21 Raphael Neider <rneider AT web.de>
4894
4895         * device/include/pic16/pic18f1220.h,
4896           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
4897         * device/lib/pic16/Makefile.rules: added missing opening paren
4898         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
4899           are provided in genutils.c,
4900           (genUminusFloat,genUminus,genCmpEq): added asserts on different
4901           operand/result sizes,
4902           (genCmp): assert on NULL pointers first, then check deref'ed values
4903         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
4904           result size
4905
4906 2005-09-18 Raphael Neider <rneider AT web.de>
4907
4908         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
4909           as these are now unused,
4910           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
4911         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
4912           local, avoids uninitialized pointer dereference on r->name
4913         * src/pic16/ralloc.c (newReg): fixed indentation
4914
4915 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
4916
4917         * src/SDCCval.c (constVal): fixed bug 730366
4918         * support/Util/SDCCerr.c,
4919         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
4920
4921 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4922
4923         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
4924
4925 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
4926
4927         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
4928
4929 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4930
4931         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
4932           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4933         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
4934           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4935         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
4936         * packihx/packihx.c (hexDigit): made c unsigned char
4937         * as/mcs51/lklibr.c (fndsym),
4938         * link/z80/lkgb.c (gb),
4939         * link/z80/lklibr.c (fndsym),
4940         * link/z80/lkrloc.c (relr),
4941         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
4942         * src/SDCC.lex (checkCurrFile, process_pragma),
4943         * src/SDCCglue.c (spacesToUnderscores),
4944         * src/SDCCmain.c (setParseWithComma, processFile),
4945         * src/asm.c (tvsprintf, printCLine),
4946         * src/avr/gen.c (emitcode, aopPut),
4947         * src/ds390/gen.c (emitcode),
4948         * src/hc08/gen.c (emitcode, emitinline),
4949         * src/mcs51/gen.c (emitcode, genInline),
4950         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4951           tokenizeLineNode),
4952         * src/pic/ralloc.c (debugLog),
4953         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4954           tokenizeLineNode),
4955         * src/pic16/ralloc.c (debugLog),
4956         * src/z80/main.c (_process_pragma):
4957            made all ctype.h function calls safe
4958         * src/SDCCopt.c: include math.h for fabs
4959         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
4960           and used them throughout the code to make ctype.h function calls safe
4961         * src/ds390/main.c (asmLineNodeFromLineNode),
4962         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
4963         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
4964            unsigned char*
4965         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
4966           (newpCodeAsmDir): made ctype.h function calls safe
4967         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
4968           pic16_emitcode):  made lbp unsigned char*
4969         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
4970           (pic16_newpCodeAsmDir): made ctype.h function calls safe
4971         * src/xa51/gen.c (emitcode),
4972         * src/z80/gen.c (_emit2): made lbp unsigned char*
4973         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
4974            char*
4975
4976 2005-09-05 Raphael Neider <rneider AT web.de>
4977
4978         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
4979           access bank splitpoint
4980
4981 2005-09-05 Raphael Neider <rneider AT web.de>
4982
4983         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
4984
4985 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
4986
4987         * .version: changed to version 2.5.3
4988         * doc/sdccman.lyx: changed version to 2.5.3,
4989           documented --codeseg and --constseg and pragma codeseg and constseg,
4990           documented bit parameters (reentrant) and bit returning
4991         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
4992            currFunc->recvSize, but is this ok for all ports?
4993           (ast2iCode): result of ~ on unsigned char must be cast to int for
4994            bool to work
4995         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
4996           function pointers in bit space
4997         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
4998           (processFuncArgs): call port.reg_parm() with reentrancy info
4999         * src/port.h,
5000         * src/avr/main.c,
5001         * src/ds390/main.c,
5002         * src/hc08/main.c,
5003         * src/pic/main.c,
5004         * src/pic16/main.c,
5005         * src/xa51/main.c,
5006         * src/z80/main.c: port.reg_parm prototype extended with
5007           "bool reentrant" parameter
5008         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
5009           options.stackAuto for allocating bit register parameters
5010         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
5011           (genSend): set BitBankUsed if it is,
5012           (selectRegBank): factored out of genCall for use in genPcall,
5013           (genCall): removed redundant dtype assignmen, use selectRegBank,
5014           (genPcall): handle returning in Carry properly, save in F0 if needed,
5015           (genReceive): handle bit register parameters
5016         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
5017           (mcs51_assignRegisters): enable bit registers for all reentrant
5018            functions and don't set BitBankUsed unconditionally
5019         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
5020         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
5021         * support/regression/tests/funptrs.c: added tests for BOOL and for return
5022
5023 2005-08-27 Borut Razem <borut.razem AT siol.net>
5024
5025         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
5026         ppc-osx (Darwin) does not support -u option. It seems that it is
5027         supported only on Linux - GNU cp
5028
5029 2005-08-25 Borut Razem <borut.razem AT siol.net>
5030
5031         * sim/ucsim/gui.src/serio.src/Makefile.in,
5032           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
5033           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5034           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
5035           install and strip, since the strip at /usr/ccs/bin should be used
5036           on solaris
5037
5038 2005-08-24 Borut Razem <borut.razem AT siol.net>
5039
5040         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
5041
5042 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
5043
5044         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
5045         ffffffffu
5046
5047 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
5048
5049         * as/mcs51/aslink.h: completed lkrloc.c prototypes
5050         * as/mcs51/lkmain.c (link_main): fixed warning
5051         * device/include/stdbool.h: ds390 has no advanced bit support yet
5052         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
5053         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
5054         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
5055           and updated their macros
5056         * src/SDCCval.c (constVal): updated comment for renamed b_long
5057
5058 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
5059
5060         * as/mcs51/asdata.c: changed ctype['['] to BINOP
5061         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
5062           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
5063           (oprio): set priority for '['
5064         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
5065            and adb_24_bit
5066         * as/mcs51/asm.h: added defines R_BIT and S_BIT
5067         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
5068         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
5069         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
5070           added overlayable BIT_BANK area
5071         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
5072           (summary2): explain 'T' in legenda
5073         * as/mcs51/lkrloc.c: replaced old K&R style,
5074           (relr): added R_BIT processing,
5075           (errmsg): added "Bit-addressable relocation error",
5076           (adb_bit): added for converting from byte- to bit-addressable space,
5077           (adb_24_bit): added for converting from byte- to bit-addressable space
5078         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
5079            used in reentrant functions now even as return value
5080         * device/lib/_gptrput.c (_gptrput): removed obsolete code
5081         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
5082           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
5083         * src/SDCCglobl.h: added indicator BitBankUsed
5084         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
5085            the bit registers b0-b7
5086         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
5087           (geniCodeCast): fixed bug 1263853,
5088           (geniCodeLogicAndOr): put result in bool or char,
5089           (geniCodeReceive): added parameter func for accessing the return type,
5090           (geniCodeFunctionBody): pass func to geniCodeReceive
5091         * src/SDCCmain.c: added indicator BitBankUsed
5092         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
5093         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
5094           (checkSClass): don't put automatic bool/bit on stack,
5095           (checkFunction): removed check on function cannot return bit
5096         * src/SDCCsymt.h: added newBoolLink prototype
5097         * src/mcs51/gen.c (rb1regs): added bit registers,
5098           (movc): created for assigning to carry,
5099           (pushReg, popReg): created for pushing registers,
5100           (sameRegs): check both AOP_REG and AOP_CRY types,
5101           (aopOp): handle bit registers,
5102           (aopPut): optimization no self-assign,
5103           (saveRegisters): push reg->base (bits) only once for bit registers,
5104            and use pushReg,
5105           (unsaveRegisters): pop reg->base only once and use popReg,
5106           (assignResultValue): added parameter func and return in carry for bits,
5107           (genIpush): optimization no reload in A if not changed,
5108           (genSend): bit parameters in reentrant functions are passed in bit
5109            registers by first assigning to bits in B, then save registers and
5110            copy B to bits,
5111           (genCall): handle returning in Carry properly, save it in F0 if needed,
5112           (genPcall): updated assignResultValue call, this is not safe yet for bit
5113            returning function !!!
5114           (genFunction): don't generate equ's for bit registers and use pushReg,
5115           (genEndFunction): take care of bit returning functions and use popReg,
5116           (genRet): return bit in Carry,
5117           (genIfx): optimize bit registers and other directly addressable bits,
5118           (genReceive): updated assignResultValue call
5119         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5120           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5121            registers when using stack-auto
5122         * src/mcs51/ralloc.c (_G): added allBitregs,
5123           (regs8051): added the bit registers,
5124           (createStackSpil): use macro IS_BIT,
5125           (getRegBit): added to allocate a bit register, else spill,
5126           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5127           (updateRegUsage): factored out to ease stepping while debugging,
5128           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5129            also allocate bit registers,
5130           (fillGaps): handle bit registers,
5131           (findAllBitregs): added to create bit vector with all bit registers,
5132           (mcs51_allBitregs): returns this bit vector,
5133           (mcs51_assignRegisters): when using stack-auto use bit registers for
5134            passing parameters and creating local variables
5135         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5136
5137 2005-08-22 Borut Razem <borut.razem AT siol.net>
5138
5139         * device/lib/Makefile.in: replaced find option -or with -o
5140           to make it run on solaris
5141
5142 2005-08-22 Raphael Neider <rneider AT web.de>
5143
5144         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5145           fixes #1265442 (crash on Solaris)
5146
5147 2005-08-20 Borut Razem <borut.razem AT siol.net>
5148
5149         * configure, configure.in: added tests for libsocket and libnsl libraries,
5150           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5151           from support/regression/Makefile.in
5152         * support/regression/Makefile.in: added
5153         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5154         * sim/ucsim/libtool: regenerated on sparc-solaris
5155         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5156           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5157           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5158           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5159           sparc-solaris, which doesn't use GNU ld linker
5160         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5161         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5162
5163 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5164
5165         * src/mcs51/peeph.def: updated comments
5166
5167 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5168
5169         * device/lib/_gptrget.c,
5170         * device/lib/_gptrput.c: slightly shorter
5171         * doc/sdccman.lyx: incremented version
5172         * src/mcs51/peeph.def: moved peephole comments to the line of first
5173           change to better keep line correlation, reanimated 186.e
5174         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5175
5176 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5177
5178         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5179           David Saxton with quotes around file name.
5180
5181 2005-08-15 Borut Razem <borut.razem AT siol.net>
5182
5183         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5184           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5185           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5186           make tests run on x86_64 platform
5187
5188 2005-08-13 Raphael Neider <rneider AT web.de>
5189
5190         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5191           as it might be executed DURING a build (parallel make is wonderful)
5192
5193 2005-08-13 Raphael Neider <rneider AT web.de>
5194
5195         * device/lib/Makefile.in (port-specific-objects-pic16):
5196           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5197         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5198           dependency
5199         * device/lib/pic16/Makefile.rules: build subdirs before creating
5200           the library, removed builddir rule, create $(builddir) early in
5201           recurse rule, use empty recurse rule for leaf directories
5202         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5203           mkdir errors (race condition), removed duplicate suffix "hex"
5204           from clean rules
5205         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5206         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5207           prevents mkdir -p from aborting on Alpha
5208
5209 2005-08-12 Raphael Neider <rneider AT web.de>
5210
5211         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5212           db-statements in order to allow for arrays of pointers in code
5213           sections to be placed without interspersed 0-padding, fixes
5214           bug #1256215
5215         * (emitStatistics): fixed division by zero for pic18f1220
5216         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5217           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5218         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5219         * (pic16_pCodeConstString): keep track of already emitted string
5220           literals to prevent "duplicate definitions of symbol _str_NR"
5221         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5222           debug message
5223         * device/lib/Makefile.in: ignore failing PIC16 library builds
5224         * device/lib/pic16/Makefile: do not build if gputils are missing
5225         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5226
5227 2005-08-10 Raphael Neider <rneider AT web.de>
5228
5229         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5230           my last commit)
5231
5232 2005-08-10 Raphael Neider <rneider AT web.de>
5233
5234         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5235           Rokas' patch to add the new fixed point type "__fixed16x16"
5236         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5237           functions for __fixed16x16 arithmetics
5238         * device/lib/pic16: reimplemented the build system to support
5239           a separate build directory, better handling of libio (create
5240           the library in a separate subdir for each architecture) and
5241           easier configuration (centralized in Makefile.common)
5242
5243 2005-08-07 Raphael Neider <rneider AT web.de>
5244
5245         * src/pic16/gen.c (genrshTwo): fixed sign extension
5246         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5247         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5248           added T0CONbits
5249         * device/include/pic16/pic18f4220.h: NEW, header for
5250           pic18f4220 and pic18f4320
5251         * device/include/pic16/pic18fregs.h: added new devices,
5252           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5253         * device/include/pic16/signal.h: resolved name clashes
5254           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5255           to also allow testing for interrupt enable bits, added
5256           comments on how to use the macros
5257         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5258         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5259           register definitions for the devices
5260         * device/lib/pic16/pics.all: added new devices
5261         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5262           allocated memory
5263         * device/lib/pic16/libc/stdlib/memfree: do not count
5264           the block header as free memory
5265         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5266           simplified and added missing end-of-blocklist-marker
5267           (reported by Peter Onion, fixes #1252814)
5268         * (_mergeHeapBlock): fixed loop condition
5269         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5270           len==0, restructured code
5271         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5272           up a bit, reduced bitfield accesses, prevent endless loops
5273           in case of heap corruption
5274         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5275           "unreferenced arguments/must return a value" warnings
5276         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5277           replaced BAUDREG with SPBRG
5278         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5279           device/lib/pic16/debug/gstack/gstack.c: replaced
5280           _naked, _asm, _endasm with __naked, __asm, __endasm
5281
5282 2005-08-05 Raphael Neider <rneider AT web.de>
5283
5284         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5285           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5286
5287 2005-08-05 Borut Razem <borut.razem AT siol.net>
5288
5289         * device/lib/Makefile.in: added missing ';'
5290         * configure: removed ^M characters
5291
5292 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5293
5294         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5295           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5296           License
5297
5298 2005-08-04 Borut Razem <borut.razem AT siol.net>
5299
5300         * configure.in: pic16 libraries build 2nd try - enable running
5301           configure in device/lib/pic16
5302         * configure: regenerated from configure.in
5303         * device/lib/Makefile.in: create $(PORT)/bin directory
5304
5305 2005-08-03 Raphael Neider <rneider AT web.de>
5306
5307         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5308           to get/set values via pointers
5309         * (genUnpackBits,genPackBits): changed detection of
5310           ptr->bitfield vs. sym.bitfield, fixed access via generic
5311           pointers, removed dead (wrong) code for multibyte bitfields
5312         * (genNearPointerGet, genGenPointerGet): removed useless code,
5313           fixed bitfield detection, fixes #1250594
5314         * (genNearPointerSet): removed useless code
5315         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5316           and introduced macro pic16_emitpcode that conditionally emits
5317           the origin of the following pCode (useful for debugging SDCC)
5318         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5319         * (createDefmap): fixed handling of LFSR for --optimize-df
5320
5321 2005-08-02 Borut Razem <borut.razem AT siol.net>
5322
5323         * device/lib/Makefile.in: pic16 libraries build enabled since
5324           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5325
5326 2005-08-02 Raphael Neider <rneider AT web.de>
5327
5328         * src/pic16/gen.c (genPackBits): removed deprecated warning
5329         * (genGenPointerSet): fixed bitfield detection
5330
5331 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5332
5333         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5334
5335 2005-07-31 Raphael Neider <rneider AT web.de>
5336
5337         * device/lib/pic16/libdev/pic18f458.c,
5338           device/include/pic16/pic18f458.h: added missing T0CONbits
5339
5340 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5341
5342         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5343
5344 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5345
5346         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5347
5348 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5349
5350         * device/include/mcs51/at89c51ed2.h: added.
5351
5352 2005-07-23 Raphael Neider <rneider AT web.de>
5353
5354         * src/pic/gen.h: added emitpcode macro for debugging
5355         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5356           and replace by macro adding debug information on demand
5357         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5358         * (gencjne): tried to fix; replaced with correct (slower) code
5359         * (gen{Unp,P}ackBits): fixed single bit access
5360         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5361         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5362           previous instruction
5363         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5364           register has to be handled with care (forbidding movement
5365           of assignments/uses, removing assignments completely, ...)
5366         * (pCodeOptime2pCodes): make use of regIsSpecial
5367         * added lots of debugging output (commented out)
5368         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5369           from being reused as result UNLESS it is known to work
5370
5371 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5372
5373         * support/Util/dbuf.h: include <stddef.h> for size_t
5374         * .version: changed to version 2.5.2
5375
5376 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5377
5378         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5379
5380 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5381
5382         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5383           (genModOneByte): removed needless psha/pula
5384
5385 2005-07-22 Raphael Neider <rneider AT web.de>
5386
5387         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5388           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5389         * src/pic/gen.c (resolveIfx): do not "invent" labels
5390         * (genSkipc): changed to positive logic
5391         * (genSkipCond): removed as no longer needed
5392         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5393           backport from PIC16
5394         * (genLeftShift): check operands are in different registers
5395         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5396           INCF does not update CARRY...
5397         * src/pic/main.c: fixed _linkCmd
5398         * src/pic/pcode.c (unlinkpCode): added inactive code
5399         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5400           alive (do not assign result and operand overlapping registers)
5401
5402 2005-07-22 Raphael Neider <rneider AT web.de>
5403
5404         * src/pic/device.c (dump_sfr): replaced register declaration with
5405           call to emitSymbolToFile() to avoid duplicate symbols
5406         * (assignRelocatableRegisters): do not declare external symbols
5407         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5408           right (take size of type, not etype)
5409         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5410         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5411         * (packRegsForAccUse): disabled assignment of WREG as
5412           the result reg to prevent occurence of just fixed #1235003,
5413           fixes #1242954
5414         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5415           symbols (avoids duplicate symbols in .asm file)
5416         * (pic14emitRegularMap): use emitSymbolToFile()
5417         * src/pic/gen.c (aopOp): fixed spillLocation handling
5418         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5419         * (genDataPointerSet): removed unneccessary variables/output
5420
5421 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5422
5423         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5424         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5425
5426 2005-07-21 Raphael Neider <rneider AT web.de>
5427
5428         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5429           architecture cannot handle them efficiently, fixes bug #1235003
5430         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5431           check for empty sets before using them (fixes bug #1232190)
5432
5433 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5434
5435         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5436           (lnksect2): generate warnings for memory overlap
5437         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5438           constseg to set the name of these segments so you can instruct the linker
5439           to place them in banks
5440         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5441         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5442           added code_seg and const_seg to options
5443         * src/SDCCglue.c (emitMaps): use options.const_seg,
5444           (createInterruptVect): put interrupt vectors in segment HOME,
5445           (glue): put HOME before static segment and put the main glue in HOME,
5446           (glue): use options.code_seg
5447         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5448         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5449           these segments so you can instruct the linker to place them in banks
5450           (linkEdit): use code_loc for HOME segment which should be the first
5451           segment in code memory now
5452         * src/SDCCmem.c: fixed more stuff like bug 1238386
5453         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5454           (changePointer): don't change function pointers to code pointers for
5455           banked functions,
5456           (compareType): added exceptional check for banked function pointers
5457         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5458         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5459           after static in code memory
5460         * src/mcs51/gen.c: added aopLiteralLong prototype,
5461           (aopForSym): use getSize for functions,
5462           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5463           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5464           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5465           the segment,
5466           (genPcall): use call for literal function pointers and generate banked
5467           calls over the one trampoline so there's only one place for the user to
5468           modify according to his/hers hardware,
5469           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5470           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5471         * src/mcs51/main.c: added keyword banked,
5472           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5473         * support/Util/SDCCerr.c,
5474         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5475           needed for passing the bank and address to the trampoline
5476         * device/lib/mcs51/crtbank.asm: added for bankswitching
5477         * device/lib/mcs51/Makefile: added crtbank
5478
5479 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5480
5481         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5482           for fields at offset 0 of a struct or union as reported
5483           on 2005-07-07 in the developer mailing list.
5484
5485 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5486
5487         * src/SDCCmem.c: fixed bug 1238386
5488
5489 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5490
5491         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5492           (patch #1144962), added peephole 300, enabled 259.x
5493         * doc/sdccman.lyx: removed screenshot and provided link instead
5494
5495 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5496
5497         * doc/sdccman.lyx: added section about debugging with ddd
5498         * doc/figures/ddd_example.eps: screenshot of debugging session
5499
5500 2005-07-04 Raphael Neider <rneider AT web.de>
5501
5502         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5503           like CODE pointers, fixes #1115683
5504         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5505           call, fixes bugs #1232211, #1228110,
5506           fixed wrong casts to pCodeFlow from pCodeInstructions
5507
5508 2005-07-04 Raphael Neider <rneider AT web.de>
5509
5510         * src/pic/gen.c (popGet): changed assert to allow for
5511           bit operands
5512         * (popGetAddr): changed signature to provide
5513           an additional index, patched all call sites
5514         * (genCmpEq): handle literal-like operands correctly
5515         * (genAddrOf): added sanity checks on __code/__data pointers
5516         * (genAssign): added handling of symbols from __code section
5517         * (gencjne): do not generate code for comparisons whose result
5518           is neither stored nor used, fixes bug #1171114
5519         * (AccLsh, AccRsh): operate on operand instead of WREG
5520         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5521           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5522           by known count
5523         * rewrote complete shift-by-literal logic, commented unused
5524           functions out
5525         * (genConstPointerGet): get multiple bytes (if result size > 1),
5526           fixed handling of non-immediate addresses
5527         * (genPointerGet): handle CODE pointers like CONST pointers
5528         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5529         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5530           operand is to be treated as a literal or not
5531         * (mov2w,genPcall,genCmpEq),
5532           src/pic/genarith.c: use aop_isLitLike() to decide between
5533           literal/register contents
5534         * (addSign): added missing offset
5535         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5536           only emit comment in debug-mode,
5537           use {aop,op}_isLitLike throughout the file
5538         * src/pic/glue.c: fix initializers for pointers (work in progress)
5539         * src/pic/pcode.c (get_op): honor index on _const symbols
5540         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5541         * (dumppBlock): added pCode size estimation
5542         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5543           check for IS_SYMOP before OP_SYMBOL'ing
5544         * fixed indentation, compacted switch-statements
5545         * (allocReg): find free register and allocate it instead of
5546           allocating new registers all the time
5547         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5548           registers as its operands (necessary only for multibyte GETs)
5549
5550 2005-07-01 Raphael Neider <rneider AT web.de>
5551
5552         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5553           debugging .asm-output macros FENTRY + FEXIT
5554         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5555           way... I wonder...
5556         * (emitpComment): NEW, printf to pCode
5557         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5558           offset handling
5559         * (popGetAddr): NEW, variant of popGet to access an immediates
5560           high(er) bytes instead of the n'th byte of memory they reference,
5561           replaced popGet with popGetAddr where neccessary
5562         * (genDataPointerGet): reactivated and fixed implementation
5563         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5564           accesses
5565         * (genDataPointerSet): fixed multibyte assignments
5566         * (genpic14Code): fixed --i-code-in-asm handling
5567         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5568         * (genPlus): fixed index-out-of-bounds error
5569         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5570         * src/pic/ralloc.c: added debugging output macro FENTRY2
5571         * (spillThis): fixed indentation, enbraced for-body for clarity
5572         * (rematStr): commented out as now unused
5573         * (regTypeNum): commented out special spill case (overwrites
5574           arbitrary values)
5575         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5576
5577 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5578
5579         * doc/sdccman.lyx: documented sfr16/sfr32,
5580           added example for using storage class with function pointers
5581         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5582
5583 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5584
5585         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5586         * device/lib/_itoa.c,
5587         * device/lib/_ltoa.c: optimized codesize
5588         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5589           but don't know how to suppress the double warning.
5590         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5591         * support/Util/SDCCerr.c,
5592         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5593
5594 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5595
5596         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5597           fixed old K&R prototypes
5598         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5599         * device/lib/_gptrget.c,
5600         * device/lib/_gptrgetc.c,
5601         * device/lib/_gptrput.c: changed versions for new memory indicator values,
5602           also new versions for small generic pointers and banked generic pointers
5603         * src/port.h: added const_name
5604         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5605         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5606         * src/SDCCcse.c (findPrevIc): check all associative operators
5607         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5608         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5609         * src/SDCCmem.c: updated comments,
5610           set far-space to 0 for pdata, results in optimized code
5611         * src/SDCCmem.h: added macro CONST_NAME
5612         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5613           moving the info into the highest bits, see also gptrget/gptrput
5614         * src/src.dsp: added sdcc.ico to project files
5615         * src/avr/gen.c (genCast): fixed bug 0x%d
5616         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5617         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5618           relation between ptr_type and DCL_TYPE,
5619           (genCast): fixed bug 0x%d
5620         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5621           (CODE)" for const_name
5622         * src/hc08/gen.c (genCast): fixed bug 0x%d
5623         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5624           (hc08_port): added "CONST (CODE)" for const_name
5625         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5626           (aopForRemat, adjustArithmeticResult): disconnected direct relation
5627           between ptr_type and DCL_TYPE,
5628           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5629           operand* and took AOP() inside function so sfr-ness can be checked,
5630           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5631           new prototype,
5632           (genFunction, genEndFunction): optimized stack setup,
5633           (genMinus): optimized for literals with ending zeroes (in bytes),
5634           (genCast): fixed bug 0x%d
5635         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5636           (mcs51_port): added "CONST (CODE)" for const_name
5637         * src/mcs51/peeph.def: made rule 226 more generic
5638         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5639         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5640         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5641         * src/z80/main.c (z80_port): added NULL for const_name,
5642           (gbz80_port): added NULL for const_name
5643         * support/regression/tests/bug663539.c,
5644         * support/regression/tests/sfr16.c: new tests
5645
5646 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5647
5648         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5649
5650 2005-06-24 Raphael Neider <rneider AT web.de>
5651
5652         * device/lib/pic16/libdev/pic18f[68][567]20.c:
5653           corrected typos...
5654         * device/include/pic16/signal.h: added USBIF
5655           and SIG_USB
5656
5657 2005-06-24 Raphael Neider <rneider AT web.de>
5658
5659         * device/lib/pic16/libdev/pic18f2455.c,
5660           device/include/pic16/pic18f2455.h: NEW
5661         * device/include/pic16/pic18fregs.h,
5662           device/lib/pic16/pics.all,
5663           src/pic16/device.c: added 18f2455
5664         * device/lib/pic16/libdev/pic18f[68][567]20.c,
5665           device/include/pic16/{pic18f[68][567].h,usart.h}:
5666           replaced MULTIPLE_USARTS define with more relaible
5667           compatibility sfrs (for USART access)
5668
5669 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5670
5671         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5672           and the output asm file line is printed on two lines.
5673
5674 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5675
5676         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5677           BGT, BLE, BHI, and BLS instructions
5678         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5679           genCmpEq): removed
5680         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5681           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5682           fixes bug #1216342
5683         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5684
5685 2005-06-15 Raphael Neider <rneider AT web.de>
5686
5687         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5688         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5689         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5690           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5691           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5692
5693 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5694
5695         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5696           Marcel Telka in bug #1215704
5697
5698 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5699
5700         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5701           located in shared memory bank.
5702
5703 2005-05-31 Raphael Neider <rneider AT web.de>
5704
5705         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5706           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5707           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5708
5709 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5710
5711         * device/lib/_strncpy.c: fixed the fix
5712
5713 2005-05-26 Raphael Neider <rneider AT web.de>
5714
5715         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5716           initializers with \0, bug #1208187
5717         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5718           intializers with \0, bug #1208187
5719
5720 2005-05-26 Raphael Neider <rneider AT web.de>
5721
5722         * src/pic16/glue.c (pic16_printIvalChar): fixed string
5723           initializers with \0, bug #1208187
5724         * src/pic16/main.c (_process_pragma): added sanity checks
5725           for stack position and size, emit warnings when appropriate
5726
5727 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5728
5729         * device/lib/_strncpy.c: fixed not filling with \0
5730
5731 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5732
5733         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5734           createFunction),
5735         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5736           compound_statement),
5737         * src/SDCCsymt.h,
5738         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5739
5740 2005-05-24 Raphael Neider <rneider AT web.de>
5741
5742         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5743
5744 2005-05-24 Raphael Neider <rneider AT web.de>
5745
5746         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5747           TRISE definitions, closes bug #1162453
5748
5749 2005-05-22 Raphael Neider <rneider AT web.de>
5750
5751         * src/pic16/main.c (_process_pragma): check for missing
5752           arguments to pragmas code and udata
5753         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5754           consistency fixes to match other headers (thanks to Jim Paris)
5755         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5756
5757 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5758
5759         * src/SDCCicode.c (isOperandEqual): fixed missing ;
5760
5761 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5762
5763         * support/regression/tests/bug1198642.c: new test
5764         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5765         * src/SDCCcse.c (findPrevIc): added comment, please have a look
5766         * support/scripts/resource.h,
5767         * support/scripts/resource.rc,
5768         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5769         * support/scripts/sdcc.ico: added 32x32 icon
5770
5771 2005-05-18 Raphael Neider <rneider AT web.de>
5772
5773         * device/lib/pic16/libdev/pic18f*.c,
5774         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5775           keywords to "__sfr" and "__at (X)"
5776         * device/include/pic16/pic18fregs.h: added pic18f4520
5777         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5778           #1203088 (MPLAB compatibility)
5779
5780 2005-05-17 Raphael Neider <rneider AT web.de>
5781
5782         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5783         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5784         * device/lib/pic16/pics.all: added new devices
5785         * src/pic16/device.c: added support for pic18f4520
5786
5787 2005-05-16 Raphael Neider <rneider AT web.de>
5788         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5789         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5790         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5791           convenience function for bit access
5792
5793 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5794
5795         * device/lib/printf_large.c: fixed bug 1193299
5796         * support/regression/tests/bug1057979.c: added test %3.3s
5797
5798 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5799
5800         * device/include/mcs51/8051.h,
5801         * device/include/mcs51/8052.h: made parseable with lint
5802         * device/include/mcs51/lint.h: added include file for (sp)lint
5803         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
5804         * doc/cdbfileformat.lyx,
5805         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
5806
5807 2005-05-14 Raphael Neider <rneider AT web.de>
5808
5809         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
5810         * device/lib/pic16/libc/stdlib/itoa.c (new)
5811         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
5812         * device/lib/pic16/libio/Makefile: exclude subdir according to
5813           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
5814         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
5815         * src/pic16/gen.c (genFunction): prevent annoying warning
5816         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
5817           nameclashes on BeOS
5818         * support/cpp2/cppmain.c (cpp_output_string): new
5819         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
5820           fixes bug 1116802
5821
5822 2005-05-13 Borut Razem <borut.razem AT siol.net>
5823
5824         * src/SDCCmain.c (linkEdit): fixed bug 1195202
5825
5826 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5827
5828         * .version: changed to version 2.5.1; back to bleeding edge development
5829
5830 2005-05-11 Borut Razem <borut.razem AT siol.net>
5831
5832         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
5833           generate PDF version 1.3 documents
5834
5835 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5836
5837         * .version: changed to version 2.5.0
5838
5839 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5840
5841         * doc/sdccman.lyx: updated weblinks, index and smaller updates
5842
5843 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5844
5845         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
5846         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
5847         well as many smaller updates.
5848         * .version: changed to version 2.5.0-pre1
5849
5850 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5851
5852         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
5853
5854 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5855
5856         * support/regression/tests/bug1185672.c: added
5857         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
5858           bug 1185672
5859         * src/mcs51/gen.c (genCall): added comments, made it look safer
5860         * src/mcs51/gen.c (genEndFunction): simplified
5861
5862 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5863
5864         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
5865
5866 2005-04-14 Borut Razem <borut.razem AT siol.net>
5867
5868         * fixed bug 1045046 - SIGSEGV with really simple code?:
5869           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
5870           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
5871
5872 2005-04-14 Borut Razem <borut.razem AT siol.net>
5873
5874         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
5875           src/pic16/device.h: temporarily disabled experimental #inline pragma
5876           for 2.5.0 release
5877
5878 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
5879
5880         * device/include/z80/stdio.h,
5881         * device/include/z80/string.h: removed these highly incomplete files so
5882           SDCC can use the default ones in device/include/
5883
5884 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5885
5886         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
5887         gcc warning.
5888         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
5889         fix sdcpp warnings.
5890
5891 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5892
5893         * device/include/malloc.h: removed redundant __reentrant prototypes
5894         * device/lib/_mullong.c: added working xstack variant in asm (C version
5895           doesn't pass regression tests)
5896         * device/lib/bpx.c: used __data and made bpx char for mcs51
5897         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
5898           (createFunction): fixed bug with xstackPtr
5899         * src/SDCCcse.c: corrected comments
5900         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
5901           (killDeadCode, eBBlockFromiCode): removed unused code
5902         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
5903           corrected comments
5904         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
5905           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
5906           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
5907           (genModOneByte): fixed warning in MSVC
5908         * src/mcs51/main.c (): added comments
5909         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
5910
5911 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5912
5913         * src/SDCCmain.c (linkEdit): oops, changed one line too many
5914
5915 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
5916
5917         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
5918
5919 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
5920
5921         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
5922         characters arrays of larger size than the declared one.
5923
5924 2005-04-10 Borut Razem <borut.razem AT siol.net>
5925
5926         * src/pic/gen.c (genInline),
5927           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
5928           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
5929           (findNextInstruction), (findPrevInstruction),
5930           (findInstructionUsingLabel),
5931           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
5932         * src/pic/pcode.c (findLabel): added missing '\n'
5933         * src/src.dsp: added SDCCdwarf2.c to the project
5934
5935 2005-04-09 Borut Razem <borut.razem AT siol.net>
5936
5937         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
5938
5939 2005-04-08 Raphael Neider <rneider AT web.de>
5940
5941         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
5942           into the chain after a given one) and mergeDefmapSymbols (combine
5943           defmap entries for each symbol per pcode)
5944         * (createDefmap): have defmap entries merged in the end
5945         * (defmapReplaceSymRef): split defmap entries covering two accesses to
5946           a symbol before replacing one access type's symbol, merge symbols in
5947           the end (replacement symbol might already have an entry)
5948         * (assignValnums): keep reference to written WREG intact
5949
5950 2005-04-08 Raphael Neider <rneider AT web.de>
5951
5952         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
5953           Alpha)
5954
5955 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
5956
5957         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
5958         bytes
5959
5960 2005-04-07 Raphael Neider <rneider AT web.de>
5961
5962         * device/include/pic16/usart.h: added compatibility defines for
5963           devices with more than one USART
5964         * device/include/pic16/pic18f[68][567]20.h: activated above defines
5965
5966 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5967
5968         * device/lib/Makefile.in: updated for port specific include
5969
5970 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5971
5972         * support/regression/ports/mcs51/spec.mk: added mcs51 include
5973
5974 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5975
5976         * device/include/8051.h,
5977         * device/include/8052.h,
5978         * device/include/at89S8252.h,
5979         * device/include/at89c55.h,
5980         * device/include/at89x051.h,
5981         * device/include/at89x51.h,
5982         * device/include/at89x52.h,
5983         * device/include/mcs51reg.h,
5984         * device/include/reg51.h,
5985         * device/include/reg764.h,
5986         * device/include/regc515c.h,
5987         * device/include/sab80515.h: (re)moved these 12 files
5988         * device/include/mcs51/8051.h,
5989         * device/include/mcs51/8052.h,
5990         * device/include/mcs51/at89S8252.h,
5991         * device/include/mcs51/at89c55.h,
5992         * device/include/mcs51/at89x051.h,
5993         * device/include/mcs51/at89x51.h,
5994         * device/include/mcs51/at89x52.h,
5995         * device/include/mcs51/mcs51reg.h,
5996         * device/include/mcs51/reg51.h,
5997         * device/include/mcs51/reg764.h,
5998         * device/include/mcs51/regc515c.h,
5999         * device/include/mcs51/sab80515.h: and added them here
6000
6001 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6002
6003         * device/include/stdarg.h: changed SDCC specific keywords to double
6004           underlined form.
6005         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
6006           mcs51 and ds390.
6007         * device/include/hc08/mc68hc908gp32.h,
6008         * device/include/hc08/mc68hc908jb8.h,
6009         * device/include/hc08/mc68hc908jkjl.h,
6010         * device/include/hc08/mc68hc908qy.h: fixed comments
6011         * device/include/mcs51/README: updated
6012         * device/include/mcs51/c8051f120.h: added PINRSF
6013         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
6014         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
6015           amidst code. Also inline is not supported.
6016
6017 2005-04-06 Raphael Neider <rneider AT web.de>
6018
6019         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
6020         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
6021           callers stack/frame pointers
6022
6023 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6024
6025         * device/include/pic16/usart.h: added, missing in previous commit,
6026         * device/include/pic16/adc.h: fixed typo,
6027         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
6028         commit,
6029         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
6030         <p18fxxx.inc>
6031         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
6032         uninitialized because a bug appears with gplink
6033         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
6034         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
6035         complains for unrecognised option
6036
6037 2005-04-05 Raphael Neider <rneider AT web.de>
6038
6039         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
6040           structs as well (using memcpy)
6041         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
6042           on ISRs (GOTO has no label)
6043         * src/pic16/device.h: added OF_OPTIMIZE_DF
6044         * src/pic16/main.c: added compiler switch --optimize-df to enable the
6045           new data flow analysis/optimization
6046         * src/pic16/pcode.c: added (prototypes for and implementation of)
6047           dataflow analysis functions, fixed pCodeInstructions' inCond and
6048           outCond values, made RCALL a branch instruction
6049         * (pic16_unlinkpCode): keep C line if possible
6050         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
6051           C line moved if possible
6052         * (pic16_getRegFrompCodeOp): NEW, improved version of...
6053         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
6054           to use new pic16_getRegFrompCodeOp (works for more SFRs)
6055         * (pic16_BuildFlow): fixed skip instructions with label (did not start
6056           new flow)
6057         * (pic16_getJumptabpCode): NEW, needed in...
6058         * (LinkFlow): fixed handling of jumptables, calls and conditional
6059           branches
6060         * (pic16_InsertCommentAfter): NEW
6061         * (pic16_pCodeReplace): made verbose and flow preserving
6062         * (AnalyzeFlow): added call to data flow analysis
6063         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
6064         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
6065         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
6066
6067 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6068
6069         * src/SDCCast.c (decorateType): fixed bug #1105626
6070
6071 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
6072
6073         * device/include/asm/pic16/features.h,
6074         * pic18f*.h headers,
6075         * device/include/pic16/adc.h,
6076         * device/include/pic16/delay.h,
6077         * device/include/pic16/i2c.h,
6078         * device/include/pic16/malloc.h,
6079         * device/include/pic16/stdio.h,
6080         * device/include/pic16/stdlib.h,
6081         * device/include/pic16/string.h,
6082         * device/lib/pic16/libc/stdio/printf_tiny.c,
6083         * device/lib/pic16/libc/stdio/printf_small.c,
6084         * device/lib/pic16/libc/stdio/strmgpsim.c,
6085         * device/lib/pic16/libc/stdio/strmmssp.c,
6086         * device/lib/pic16/libc/stdio/strmusart.c,
6087         * device/lib/pic16/libc/stdio/vfprintf.c,
6088         * device/lib/pic16/libc/stdlib/ltoa.c,
6089         * device/lib/pic16/libc/stdlib/putchar.c,
6090         * device/lib/pic16/libc/stdlib/x_ftoa.c,
6091         * device/lib/pic16/libc/stdlib/memchrpgm.c,
6092         * device/lib/pic16/libc/stdlib/memchrram.c,
6093         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
6094         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
6095         * device/lib/pic16/libio/adc/adcbusy.c,
6096         * device/lib/pic16/libio/adc/adcread.c,
6097         * device/lib/pic16/libio/adc/adcsetch.c,
6098         * device/lib/pic16/libio/usart/ubaud.c,
6099         * device/lib/pic16/libio/usart/ubusy.c,
6100         * device/lib/pic16/libio/usart/udrdy.c,
6101         * device/lib/pic16/libio/usart/uopen.c,
6102         * device/lib/pic16/libio/usart/uputc.c,
6103         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
6104         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
6105         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
6106         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
6107         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
6108         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
6109         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
6110         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
6111         specific keywords to double underlined form,
6112         * device/lib/pic16/libc/Makefile.rules,
6113         * device/lib/pic16/libsdcc/Makefile.rules,
6114         * device/lib/pic16/libm/Makefile,
6115         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6116         to compile with C standard set in Makefile.common
6117         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6118         rand.c and crc.c in compilation process,
6119         * device/lib/pic16/libsdcc/int/divuint.c,
6120         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6121         `c' from signed to unsigned,
6122         * device/lib/pic16/startup/crt0.c,
6123         * device/lib/pic16/startup/crt0i.c,
6124         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6125         keywords to double underlined form, bug fixes in _do_cinit function
6126         which prevented the correct initialization of the .idata segment,
6127         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6128         core to enter a infinite loop
6129         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6130
6131 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6132
6133         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6134
6135 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6136
6137         * device/include/Makefile.in: add support for hc08 subdirectory
6138         * device/include/hc08/: new subdirectory
6139         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6140         Lucas Loizaga, thanks!
6141         * device/include/hc08/mc68hc908qy.h,
6142         * device/include/hc08/mc68hc908gp32.h,
6143         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6144         their own directory. Changed internal macro names to use the compiler
6145         reserved namespace. Changed SDCC specific keywords to double
6146         underlined form.
6147         * device/include/math.h,
6148         * device/include/malloc.h,
6149         * device/include/stdarg.h,
6150         * device/include/stdbool.h
6151         * device/include/string.h,
6152         * device/include/tinibios.h,
6153         * device/include/ds400rom.h,
6154         * device/include/8051.h,
6155         * device/include/8052.h,
6156         * device/include/80c51xa.h,
6157         * device/include/at89c55.h,
6158         * device/include/at89S8252.h,
6159         * device/include/at89x51.h,
6160         * device/include/at89x52.h,
6161         * device/include/ds80c390.h,
6162         * device/include/reg764.h,
6163         * device/include/regc515c.h,
6164         * device/include/sab80515.h,
6165         * device/include/mcs51/c8051f000.h,
6166         * device/include/mcs51/c8051f018.h,
6167         * device/include/mcs51/c8051f020.h,
6168         * device/include/mcs51/c8051f040.h,
6169         * device/include/mcs51/c8051f060.h,
6170         * device/include/mcs51/c8051f120.h,
6171         * device/include/mcs51/c8051f300.h,
6172         * device/include/mcs51/c8051f310.h,
6173         * device/include/mcs51/c8051f320.h,
6174         * device/include/mcs51/c8051f330.h,
6175         * device/include/mcs51/c8051f350.h,
6176         * device/include/z180.h: Changed SDCC specific keywords to double
6177         underlined form.
6178
6179 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6180
6181         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6182         18F4455,
6183         * (pic16_assignConfigWordValue): disable testing of configuration
6184         register value with config mask,
6185         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6186         function with port->fun_prefix,
6187         * (genFunction): when generating a naked interrupt function never
6188         create an absolute segment placed in interrupt vector address, place
6189         the actual interrupt function at IVA instead, when an interrupt
6190         function is generated with unspecified interrupt then do not create
6191         the absolute section,
6192         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6193         code for generating a call to generic pointer get/put function with
6194         a call to function pic16_callGenericPointer(),
6195         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6196         the call to the generic pointer get/put functions with prefixing the
6197         function name with port->fun_prefix,
6198         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6199         * src/pic16/main.c (_process_pragma): prefix function with
6200         port->fun_prefix,
6201         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6202         calling assembler, old 18Fxxxx macro is deprecated,
6203         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6204         PC_ASMDIR in while condition,
6205         * (findInstruction): add PC_ASMDIR in while condition,
6206         * (buildCallTree): prefix main with port->fun_prefix,
6207         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6208         identifier for variable with banked access in instructions BTFSS,
6209         BTFSC, BCF, BSF, BTG
6210         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6211         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6212         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6213         perform optimization when enviroment variable NO_REG_OPT is set,
6214         * (insideLRBlock): NEW, return 1 if register is inside an
6215         INF_LOCALREGS block,
6216         * (RemoveRegFromLRBlock): remove a register that is completely
6217         eliminated by register optimization, but it is still left in local
6218         register store/restore in/from stack block,
6219         * (Remove2pcodes): after removing register, check to see if it
6220         should be removed from local register store/restore in/from stack
6221         block,
6222         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6223         DUMMY_READ_VOLATILE,
6224
6225         * device/include/pic16/adc.h: minor prototype modifications and
6226         update,
6227         * device/include/pic16/malloc.h: added GPL notice various
6228         modifications,
6229         * device/include/pic16/stdint.h: NEW, standard header for ints
6230         * device/include/pic16/delay.h: NEW, header for delay functions,
6231         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6232         delay1mtcy,
6233         * device/include/pic16/signal.h: NEW, header providing helper macros
6234         for implementing signal handlers,
6235         * device/include/pic16/stdio.h: added prototypes for functions,
6236         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6237         prototypes for stdin and stdout, added macro PUTCHAR to
6238         automatically implement putchar function prototype,
6239         * device/include/pic16/usart.h: modified and updated USART library,
6240         * device/lib/pic16/libio/adc/,
6241         * device/lib/pic16/libio/i2c: some modifications to improve library
6242         performance,
6243         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6244         family of functions,
6245         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6246         family of functions and other sources,
6247         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6248         of the PIC18Fxx[28] devices,
6249         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6250         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6251         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6252         _do_cinit function, because the previous failed when local variables
6253         where not placed in the same memory bank,
6254         * device/lib/pic16/libsdcc/char/: various modifications to improve
6255         library performance,
6256         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6257         information on the new functions of the c library and more...
6258
6259 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6260
6261         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6262
6263 2005-03-26 Raphael Neider <rneider AT web.de>
6264
6265         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6266           if condition == CARRY)
6267         * (genCmp): adapted to new genSkipc semantics
6268         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6269           on rIfx (genCmp was broken)
6270
6271 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6272
6273         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6274         * src/z80/main.c (_keywords[]),
6275         * src/SDCCglobal.h (struct options),
6276         * src/SDCC.y,
6277         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6278         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6279         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6280         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6281         always available in leading double underscore form. The C99 support is
6282         mostly missing, but it's a start.
6283         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6284         reserved identifier "__data".
6285
6286 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6287
6288         * src/mcs51/peeph.def: fixed bug 1170013
6289
6290 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6291
6292         * device/include/mcs51reg.h: fixed bug 842007
6293
6294 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6295
6296         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6297         last time.
6298
6299 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6300
6301         * src/port.h (struct PORT),
6302         * src/avr/ralloc.c (avr_assignRegisters),
6303         * src/avr/main.c,
6304         * src/ds390/ralloc.c (ds390_assignRegisters),
6305         * src/ds390/main.c,
6306         * src/hc08/ralloc.c (hc08_assignRegisters),
6307         * src/hc08/main.c,
6308         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6309         * src/mcs51/main.c,
6310         * src/pic/ralloc.c (pic14_assignRegisters),
6311         * src/pic/main.c,
6312         * src/pic16/ralloc.c (pic16_assignRegisters),
6313         * src/pic16/main.c,
6314         * src/xa51/ralloc.c (xa51_assignRegisters),
6315         * src/xa51/main.c,
6316         * src/z80/ralloc.c (z80_assignRegisters),
6317         * src/z80/ralloc.h,
6318         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6319         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6320         * src/SDCCcse.h,
6321         * src/SDCCdflow.c (computeDataFlow),
6322         * src/SDCCdflow.h,
6323         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6324         * src/SDCCloop.h,
6325         * src/SDCCcflow.c (*),
6326         * src/SDCCcflow.h,
6327         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6328         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6329         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6330         immedDom() returning wrong block; probably fixes bug #1160833)
6331
6332 2005-03-20 Borut Razem <borut.razem AT siol.net>
6333
6334         * support/scripts/inc2h.pl: WIN32 port
6335
6336 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6337
6338         * device/lib/makefile.in: added abs.c and labs.c
6339
6340 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6341
6342         * device/include/stdint.h: added
6343         * device/lib/abs.c: added
6344         * device/lib/labs.c: added
6345         * device/include/stdlib.h: added abs() and labs() prototypes
6346         * device/lib/libsdcc.lib: added abs and labs
6347         * device/include/float.h,
6348         * device/lib/_fsmul.c,
6349         * device/lib/printf_fast.c,
6350         * device/lib/printf_tiny.c: updated comments
6351
6352 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6353
6354         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6355         bug #1164313
6356
6357 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6358
6359         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6360         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6361
6362 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6363
6364         * device/lib/printf_large.c: removed inline assembly for portability and
6365           readability. Use printf_fast if speed or size are more important.
6366         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6367         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6368
6369 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6370
6371         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6372         prevent compiler warning
6373
6374 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6375
6376         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6377         moved to level 0 and declared as static. Also they are explicit
6378         placed in access bank. This was necessery because some times they
6379         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6380         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6381         optimizations. Currently only compare to unsigned char is implemented,
6382         * src/pic16/gen.c: added fReturnIdx array,
6383         * (struct resolvedIfx) is moved to gen.h and made public,
6384         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6385         * (aopForSym): added an optimization to directly store in stack of
6386         the operand of a SEND iCode,
6387         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6388         but as registers instead (AOP_REG) using the fReturnIdx array,
6389         * (pic16_freeAsmop): remove the freed register from the
6390         _G.sregsAlloc field,
6391         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6392         a compare of 'WREG',
6393         * (pic16_popGetTempRegCond): changed function prototype, now
6394         function takes also a bitVector argument v which holds the current
6395         set of registers that are allocated for stack access by aopForSym,
6396         registers allocated in aopForSym for accessing stack symbols are not
6397         any more part of the functions usedRegs field,
6398         * (genCall): some times aopOp is called for a stack variable to be
6399         send, aopForSym might perform the push, if this is true make sure
6400         that genCall doesn't push the variable twice by testing _G.resDirect,
6401         * (genFunction): changed testing for unspecified interrupt number
6402         from 256 to INTNO_UNSPEC,
6403         * modified selection scheme of frame pointer generation. Previously
6404         if function did use local registers a frame pointer was generated,
6405         now a frame pointer is generated only if function has arguments
6406         (that need PLUSW2 register access), or has stack arguments, or the
6407         compiler is not instructed to omit the frame pointer,
6408         * (genEndFunction): before restoring local registers that were saved
6409         in the function preamble, also restore the registers that *might*
6410         have been allocated for stack access,
6411         * (genRet): removed some old comments,
6412         * (genCmp, the active (RN's) version): added a call to the
6413         pic16_genCmp_special function to perform the compare with a more
6414         robust and optimized way,
6415         * (genInline): a feature has been added in inline code generation,
6416         which allows a wildcard variable substitution when writing inline
6417         assembly. Code is incomplete and experimental therefore undocumented,
6418         * (genCast): changed order of aopOp for result and right to allow
6419         aopForSym to directly load the result if possible,
6420         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6421         perform an optimized compare on some selected special occasions,
6422         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6423         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6424         generate an IVT any more,
6425         * src/pic16/main.c (pic16_optionsTable): added command line option
6426         --optimize-cmp,
6427         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6428         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6429         macros,
6430         * src/pic16/NOTES: Raphael Neider added in list of active developers
6431         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6432         jumptable_end to prevent bug #,
6433         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6434         inCond and outCond fields,
6435         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6436         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6437         turn off register spilling,
6438         * (packRegsForOneUse): synced with other ports' versions although it
6439         is not used currently,
6440         * (pic16_packRegisters): added an optimization while reading
6441         structure bitfields, some registers may be saved (malloc code is
6442         decreased by 80 bytes)
6443
6444 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6445
6446         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6447         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6448         this can be optimized more?
6449
6450 2005-03-10 Raphael Neider <rneider AT web.de>
6451
6452         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6453           genNearPointerGet): (hopefully) fixed access to bitfields via
6454           pointers (p->bitN = x; and x = p->bitN; failed)
6455
6456 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6457
6458         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6459
6460 2005-03-09 Raphael Neider <rneider AT web.de>
6461
6462         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6463
6464 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6465
6466         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6467         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6468           (regTypeNum): set REG_BIT type if necessary
6469         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6470         * support/regression/tests/critical.c: check bug 1144613
6471
6472 2005-03-02 Raphael Neider <rneider AT web.de>
6473
6474         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6475
6476 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6477
6478         * src/avr/ralloc.c (serialRegAssign),
6479         * src/ds390/ralloc.c (serialRegAssign),
6480         * src/hc08/ralloc.c (serialRegAssign),
6481         * src/mcs51/ralloc.c (serialRegAssign),
6482         * src/pic/ralloc.c (serialRegAssign),
6483         * src/pic16/ralloc.c (serialRegAssign),
6484         * src/xa51/ralloc.c (serialRegAssign),
6485         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6486
6487 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6488
6489         * src/SDCCast.c (decorateType): fixed bug 1124787
6490
6491 2005-02-20 Hubert Sack <sack AT digiplan.de>
6492         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6493
6494         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6495         patch #1121755
6496
6497 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6498
6499         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6500         to keep the correct label reference count when adding/removing references
6501         to labels. A peephole file using this is appended to patch #1144962.
6502
6503 2005-02-14 Raphael Neider <rneider AT web.de>
6504
6505         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6506         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6507         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6508           retrievals of result operand's value on assignment
6509
6510 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6511
6512         * device/include/pic16/string.h: modified prototype for memccpy()
6513         to memccpy(void *, void *, char, size_t)
6514         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6515         check whether to omit frame pointer or not,
6516         * (genInline): convert all occurences of "\n" to LF in inline
6517         assembler blocks, this helps formatting the inline text,
6518         * (pic16_loadFSR0): modified prototype,
6519         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6520         removed some 8051 legacy code,
6521         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6522         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6523         before allocating temporary registers in functions,
6524
6525 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6526
6527         * support/regression/tests/bitvars.c: corrected the "fix"
6528
6529 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6530
6531         * support/regression/tests/bitvars.c,
6532         * support/regression/tests/bitwise.c,
6533         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6534
6535 2005-02-10 Raphael Neider <rneider AT web.de>
6536
6537         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6538           different size for Alpha
6539         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6540
6541 2005-02-09 Raphael Neider <rneider AT web.de>
6542
6543         * src/SDCC.lex(doPragma) : save and restore warning options as well
6544           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6545         * have #pragma less_pedantic set the errorlevel to WARNING
6546           (fixes #1117001)
6547         * (cloneOptimize) : fixed wrong malloc's size
6548         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6549           facilitate correct handling of #pragma (save|restore)
6550
6551 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6552
6553         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6554
6555 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6556
6557         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6558
6559 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6560
6561         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6562
6563 2005-02-02 Raphael Neider <rneider AT web.de>
6564
6565         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6566         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6567         * (pic16_storeForReturn): fixed to allow returning function pointers
6568         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6569         * device/include/pic16/{stddef.h,stdbool.h}: added
6570
6571 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6572
6573         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6574
6575 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6576
6577         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6578         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6579          appeared to be required
6580
6581 2005-01-31 Borut Razem <borut.razem AT siol.net>
6582
6583         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6584           include/mcs51 and include/z80 directories to the package
6585
6586 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6587
6588         * src/hc08/gen.c (genFunction): fixed bug #1112752
6589
6590 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6591
6592         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6593
6594 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6595
6596         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6597
6598 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6599
6600         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6601
6602 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6603
6604         * device/include/c8051fxxx.h: removed these 6 files
6605         * device/include/mcs51/c8051fxxx.h: added these 11 new files
6606
6607 2005-01-26 Raphael Neider <rneider AT web.de>
6608
6609         * src/pic16/gen.c (genAssign): fixed assignment from longs
6610           in codespace (were cut to three bytes)
6611         * (genDummyRead): implemented (except for CODESPACE...),
6612           fixed bug #1108575
6613         * src/pic16/glue.c (emitStatistics): beautified
6614         * device/lib/pic16/libm/Makefile: added include path
6615
6616 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6617
6618         * src/z80/gen.c (aopPut): fixed bug #1103902
6619
6620 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6621
6622         * device/lib/expf.c: fixed bug #1095792
6623
6624 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6625
6626         * device/lib/pic16/libm: added Math library sources
6627
6628 2005-01-24 Raphael Neider <rneider AT web.de>
6629
6630         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6631           to enable upcast to pCodeOpReg2 (there is no type tag to
6632           differenciate the two and pic16_popGet2p cast into PCOR2)
6633         * src/pic16/main.c (_process_pragma): fixed another malloc bug
6634           (sizeof(sectNames) changed to sizeof(sectName))
6635           Both patches fix segfaults under MinGW.
6636
6637 2005-01-23 Raphael Neider <rneider AT web.de>
6638
6639         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6640           Safe_[mc]?alloc()'ed variables
6641         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6642           of (byte sized) temporaries (assign them to WREG for now)
6643         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6644           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6645           this might fix SIGSEGVs on MinGW...
6646         * src/SDCCopt.c (killDeadCode): restored original behaviour
6647           (volatile operands might get thrown away though)
6648
6649 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6650
6651         * src/pic16/gen.c: fixed bug #1106975,
6652         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6653         pointer update, INTCON is saved, global interrupts are disabled and
6654         restored after updateing TOS.
6655         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6656         * added function attribute 'shadowregs' to take advantage of shadow
6657         registers,
6658         * added function attribute 'wparam' as an alternative to the wparam
6659         pragma,
6660         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6661         user declares a non-ISR function as 'shadowregs',
6662         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6663
6664 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6665
6666         * .version: bumped version number to 2.4.8
6667         * device/lib/pic16/pics.all: list of PIC18F devices supported by
6668         pic16 port,
6669         * device/lib/pic16/libio/i2c/: I2C module support library,
6670         * device/include/pic16/i2c.h: I2C support library header,
6671         * device/lib/pic16/libc/stdio/: standard IO support sources,
6672         * (printf_small.c): printf_small() source, supports float print,
6673         * (printf_tiny.c): printf_tiny() source, does not support floats,
6674         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6675         enable global optimizations for entire library source, other
6676         Makefiles in the source tree are also modified to reflect this,
6677         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6678         function,
6679         * doc/sdccman.lyx: updated to reflect new changes,
6680         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6681         sym->onStack if-case,
6682         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6683         sbit, idata, _idata, xdata, _xdata,
6684         * added pragma library, to link an external library, (see doc),
6685         * removed command line options, --pomit-config-words, --pomit-ivt,
6686         --pleave-reset-vector,
6687         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6688         when calling assembler to reflect memory model used, also define
6689         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6690         reflect stack model used,
6691         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6692         on stack return NULL,
6693
6694 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6695
6696         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6697           of the operands is volatile. Fixes #1020220
6698
6699 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6700
6701         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6702         * (OptimizeRegUsage): make sure that there is really no other flow where
6703           the first pCode is used
6704
6705 2005-01-22 Raphael Neider <rneider AT web.de>
6706
6707         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6708           to fix #1106967 (pCode->seq are not set up correctly)
6709
6710 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6711
6712         * src/SDCCglue.c (glue): make sure code area is declared before the
6713         static initialization area.
6714
6715 2005-01-21 Raphael Neider <rneider AT web.de>
6716
6717         * device/lib/Makefile.in: fixed test for pic16 install dir
6718         * device/lib/pic16/*/Makefile*: modified compile flags to enable
6719           optimizations
6720         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6721           added --optimize-goto compiler switch and pragma wparam documentation
6722         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6723         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6724           and PRODH closing bug #1071770 (peephole optimizer)
6725
6726 2005-01-19 Raphael Neider <rneider AT web.de>
6727
6728         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6729           cmdLine buffers (used when calling sdcpp...) are large enough
6730           (MAX_PATH=256 truncates arguments leading to system halts when
6731           used in MinGW...)
6732         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6733         * (genUminus): rewritten to for efficiency
6734         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6735           used uninitialized in some cases)
6736         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6737           copy the third byte from the int -- now assumes 0x80 (data memory)
6738         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6739           operands (genAddLit expects the iCode's operands to swapped as
6740           well), fixed leftover bytes (crashed for short left operands)
6741         * (pic16_genMinusDec): performance improvements, removed false
6742           PIC14 emitSKPNCs
6743         * (pic16_genMinus): fixed to cope with differently sized operands
6744         * src/pic16/glue.c (pic16_glue): added new banksel optimization
6745           for --obanksel > 1
6746         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6747         * src/pic16/graph.[ch]: implementation of directed graphs, used by
6748           new banksel optimization
6749         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6750           analysis for temporary registers (segfaults...)
6751         * src/pic16/peeph.def: added rule
6752
6753 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6754
6755         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6756         which converts a float number to its ASCII representation
6757         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6758         functions to convert the fractional and integer part of a float to ASCII,
6759         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6760         realloc.c): added _MALLOC_SPEC to explicit place variables in data
6761         ram
6762         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6763         _STATMEM macros,
6764         * device/include/pic16/adc.h: added GPL info,
6765         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6766         a pCodeOp as tested operand,
6767         * (genNearPointerGet): optimized bit testing, does not use
6768         intermediate register for bit value, test directly instead with
6769         BTFSS, BTFSC, works only for single bits,
6770         * (genpic16Code): dump the name of the iCode in the asm,
6771         * src/pic16/ralloc.c (decodeOp): removed static declaration and
6772         renamed to pic16_decodeOp,
6773         * (serialRegAssign): do not allocate a temporary register for iCode
6774         sequences that test a single bit for 1/0
6775
6776 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6777
6778         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6779         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6780         access stack and frame pointers. They are initially assigned to
6781         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6782         accessing SFRs. Updated all occurences of modification of stack or
6783         frame pointer in gen.c and pcode.c,
6784         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6785         assigning of a literal value to pointers,
6786         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6787         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6788         selected
6789
6790 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6791
6792         * doc/sdccman.lyx: update documentation about stack pragma, added
6793         some info for stack memory models
6794
6795 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6796
6797         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6798
6799 2005-01-08 Raphael Neider <rneider AT web.de>
6800
6801         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6802           udata sections to fix bug #1097823
6803
6804 2005-01-05 Raphael Neider <rneider AT web.de>
6805
6806         * src/pic16/gen.c (genGenericShift): added handling of differently
6807           sized left operand and result
6808
6809 2005-01-04 Raphael Neider <rneider AT web.de>
6810
6811         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
6812         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
6813           to hold the condition bit)
6814         * added new version of genCmp (old code available via #define)
6815         * added new version of genShiftLeft/genShiftRight in a generic
6816           way, now supports shifting by negative values
6817         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
6818           shiftCount (expected by genGenericShift)
6819         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
6820         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
6821           dump
6822         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
6823           is an invalid literal too...)
6824
6825 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
6826
6827         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
6828         from Raphael Neider,
6829         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
6830         for 8-bit literals. This fixes some literal operands which are sign
6831         extended to 16-bits ints when instruction needs only 8-bits.
6832
6833 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
6834
6835         * device/lib/logf.c: added mcs51 assembly version
6836         * device/lib/expf.c: added mcs51 assembly version
6837         * device/lib/_logexpf.c: new shared asm code for expf and logf
6838         * device/include/math.h: add defines for assembly math library
6839         * device/lib/Makefile.in: build new _logexpf.c
6840         * device/lib/libfloat.lib: use new _logexpf.c
6841
6842 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6843
6844         * src/pic/device.c
6845         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
6846           device types which have less than 0x7f registers.
6847
6848 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6849
6850         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
6851
6852 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6853
6854         * device/lib/printf_fast.c: only build on supported arch.
6855         * device/lib/printf_tiny.c: only build on supported arch.
6856         * device/lib/printf_fast_f.c: only build if asm float lib
6857         * device/lib/_fsget1arg.c: only build if asm float lib
6858         * device/lib/_fsget2args.c: only build if asm float lib
6859         * device/lib/_fsnormalize.c: only build if asm float lib
6860         * device/lib/_fsreturnval.c: only build if asm float lib
6861         * device/lib/_fsrshift.c: only build if asm float lib
6862         * device/lib/_fsswapargs.c: only build if asm float lib
6863         * device/include/stdio.h: don't provide print_fast,
6864           print_fast_f, print_tiny prototypes if --xstack used
6865
6866 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
6867
6868         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
6869         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
6870           to the SOURCES
6871
6872 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6873
6874         * device/lib/printf_fast_f.c: same as printf_fast, but
6875           with floating point enabled
6876         * device/lib/printf_fast.c: minor tweaks
6877         * device/include/stdio.h: add printf_fast_f
6878
6879 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6880
6881         * src/SDCCmain.c: make --float-reent default for mcs51
6882         * device/lib/_fsadd.c: added mcs51 assembly version
6883         * device/lib/_fssub.c: added mcs51 assembly version
6884         * device/lib/_fsmul.c: added mcs51 assembly version
6885         * device/lib/_fsdiv.c: added mcs51 assembly version
6886         * device/lib/_fseq.c: added mcs51 assembly version
6887         * device/lib/_fsneq.c: added mcs51 assembly version
6888         * device/lib/_fsgt.c: added mcs51 assembly version
6889         * device/lib/_fslt.c: added mcs51 assembly version
6890         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
6891         * device/lib/Makefile.in: add _fscmp to build
6892         * device/lib/libfloat.lib: add _fscmp to build
6893
6894 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6895
6896         * device/lib/_fs2slong.c: added mcs51 assembly version
6897         * device/lib/_fs2sint.c: added mcs51 assembly version
6898         * device/lib/_fs2schar.c: added mcs51 assembly version
6899         * device/lib/_fs2ulong.c: added mcs51 assembly version
6900         * device/lib/_fs2uint.c: added mcs51 assembly version
6901         * device/lib/_fs2uchar.c: added mcs51 assembly version
6902         * device/lib/_slong2fs.c: added mcs51 assembly version
6903         * device/lib/_sint2fs.c: added mcs51 assembly version
6904         * device/lib/_schar2fs.c: added mcs51 assembly version
6905         * device/lib/_ulong2fs.c: added mcs51 assembly version
6906         * device/lib/_uint2fs.c: added mcs51 assembly version
6907         * device/lib/_uchar2fs.c: added mcs51 assembly version
6908         * device/include/float.h: added #define to select asm vs c
6909
6910 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
6911
6912         * device/lib/printf_fast.c: improvements to float output
6913         * device/include/float.h: add defines for assembly float library
6914         * device/lib/_fsget1arg.c: receive 1 float arg
6915         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
6916         * device/lib/_fsnormalize.c: normalize a float
6917         * device/lib/_fsreturnval.c: return float, various helper routines
6918         * device/lib/_fsrshift.c: right shift a float's mantissa
6919         * device/lib/_fsswapargs.c: swap 2 floats
6920         * device/lib/Makefile.in: build these 6 new files for mcs51
6921         * device/lib/libfloat.lib: add these 6 files to the library
6922
6923 2004-12-26 Borut Razem <borut.razem AT siol.net>
6924
6925         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
6926           built by gcc 3.4.2
6927
6928 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
6929
6930         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
6931           and fully reentrant and register bank neutral.
6932         * device/lib/printf_fast.c: added float (not enabled by default),
6933           added compact/slower integer (also not enabled by default),
6934           improved size/speed of fast integer code, other minor changes
6935         * device/include/stdio.h, device/lib/Makefile.in,
6936           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
6937
6938 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
6939
6940         * src/pic16/pcode.c: declaring variables other than at the start of a
6941           block is not supported in C by VC6.
6942
6943 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
6944
6945         * applied a previous patch from Raphael Neider that wasn't included
6946         in the previous commits, which fixes infinite loops within jumptable
6947         improvements,
6948         * made some fixes that previous patches introduced
6949
6950 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
6951
6952         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
6953         that fixes an issue with AOP_PCODE asmop's offset,
6954         * (pic16_popCopyReg): update instance field too,
6955         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
6956         function of pic port,
6957         * (genCmp, genAnd, genAssign),
6958         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
6959
6960 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
6961
6962         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
6963         variables initial values to idata section,
6964         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
6965         variables in some functions. This utilizes parmBytes field of iCode
6966         structure to hold the offset of the variable in stack. (might be
6967         able to use the stack field too?)
6968         * applied patch from Raphael Neider # ### , # ###
6969         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
6970         variable initial values in idata section,
6971         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
6972         for static variables with initial value
6973         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
6974         applied fix in while loop from Raphael Neider.
6975
6976 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
6977
6978         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
6979         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
6980         * src/ds390/ralloc.c (serialRegAssign): spill bits
6981         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
6982         * support/Util/SDCCerr.c,
6983         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
6984         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
6985         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
6986
6987 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
6988
6989         * device/include/sdcc-lib.h: inserted LGPL, added includes
6990           asm/ds390/features.h and asm/mcs51/features.h
6991         * device/include/asm/default/features.h,
6992         * device/include/asm/gbz80/features.h,
6993         * device/include/asm/z80/features.h: added empty _AUTOMEM
6994           and _STATMEM
6995         * device/include/asm/ds390/features.h,
6996         * device/include/asm/mcs51/features.h: added files with defines for
6997           _AUTOMEM and _STATMEM indicating automatic and static storage class
6998         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
6999         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
7000         * src/SDCCicode.c (geniCodeCast),
7001         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
7002         * src/SDCCloop.c (loopInduction): removed unused variable lr
7003         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
7004           to convertToFcall to include char modulo (RFE 1065037), added check
7005           if left operand is unsigned and use abs of literal value
7006         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
7007           as it doesn't work after conversion from peephole.def to peephole.rul
7008         * src/mcs51/gen.c (toBoolean): added check for size,
7009           (genModOneByte): optimized code for signed char modulo a literal
7010           power of 2 (thanks to Hubert Sack),
7011           (genRRC): removed unnecessary "clr c",
7012           (genRLC): replaced "add a,acc" with cheaper "rlc a"
7013         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
7014           jump optimization,
7015           swapped rules 256.c and 256.d,
7016           extended 256.d by using new multiple checks (thanks Erik),
7017           added rules 256.e and 256.f,
7018           updated rule 261.a and 261.b to new generated code
7019         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
7020
7021 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7022
7023         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
7024           induction related bugs, including first part of bug #1074377
7025
7026 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
7027
7028         * applied patch from bug-report #1076292,
7029         * applied patches for genAnd and Goto-optimizations for Raphael
7030         Neider,
7031         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
7032         dump a less iCode information,
7033         * src/pic16/device.h (pic16_options_t): added field debgen,
7034         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
7035         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
7036         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
7037         puclic,
7038         * (various functions): added macros FENTRY and FENTRY2 to functions,
7039         to emit function prologue,
7040         * (various functions): fixed indentation,
7041         * (genNearPointerGet): fixed loading of FSR0,
7042         * (genPackBits): applied patch from Raphael Neider to fix updating
7043         of FSR0 and touching only the modified bits,
7044         * src/pic16/genarith.c (various functions): added macros FENTRY to
7045         emit function prologue in comments,
7046         * src/pic16/pcode.h: added functions debugf2, debugf3,
7047         * src/pic16/ralloc.c: partial fix for packForPush caused
7048         segmentation fault,
7049
7050 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7051
7052         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
7053           <stsp AT users.sourceforge.net> with reversed byte order
7054         * support/regression/tests/rotate.c: added (ds390 skips some tests)
7055
7056 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7057
7058         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
7059           bug #1074377
7060         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
7061         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
7062
7063 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7064
7065         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
7066
7067 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7068
7069         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
7070           conditions,
7071           (setFromConditionArgs): friendly operand parser for peephole rules,
7072           (operandBaseName, operandsNotRelated): new peephole condition
7073           "operandsNotRelated" -- similar to "operandsNotSame", but takes
7074           architecture specific register naming into account, handles n-way
7075           comparisons, and supports quoted literals
7076         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
7077
7078 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7079
7080         * src/mcs51/peeph.def: fixed bug #1076940
7081
7082 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7083
7084         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
7085
7086 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7087
7088         Adding support for replacing ljmps with sjmps in jumptables
7089         generated for switch statements. For now you need to set the
7090         environment variable SDCC_SJMP_JUMPTABLE to enable this.
7091         Now 4 algorithms for mcs51 jumptable generation are used:
7092         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
7093         addresses loaded pc-relative for up to 112 cases and stack-pushing
7094         target addresses loaded with offset from dptr for up to 256 cases.
7095
7096         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
7097         * src/mcs51/main.c: adapted constants for switch table generation
7098         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
7099
7100 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
7101
7102         * device/lib/printf_large.c (_print_format): fixed bug 1073386
7103         * support/regression/tests/bug1057979.c: added test for bug 1073386
7104
7105 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7106
7107         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
7108         compilers
7109
7110 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7111
7112         * src/pic16/device.h,
7113         * src/pic16/genarith.c,
7114         * src/pic16/glue.c,
7115         * src/pic16/main.c,
7116         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7117
7118 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7119
7120         Large cummulative patch for pic16 port.
7121         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7122         to call when a stack overflow occurs,
7123         * (malloc.h): added CVS Id tag,
7124         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7125         variable,
7126         * added libc directory. The current version of LibC contains string
7127         functions, ctype functions and macros and some functions of the
7128         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7129         be extensively tested in the future. Standard disclaimer here.
7130         Library is not automatically build yet. But one can build it by
7131         invoking 'make' inside the libc directory.
7132         * added ADC library under libio. Preliminary version yet.
7133
7134         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7135         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7136         aopForRemat() now and not by pic16_aopOp(),
7137         * (pic16_popGetTempReg): removed warning messgae when allocating
7138         temporary registers, its a buggy feature and will be removed,
7139         * (pic16_popGet): set register instance field in AOP_CRY,
7140         * (pic16_outBitC): fixed for results in size greater than 1,
7141         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7142         * (pic16_storeForReturn): optimized return of 0,
7143         * (genCmp): experimental code for new genCmp which uses PIC18's
7144         special compare&skip instructions. Initial tests fail some times
7145         with variables grater than 1 byte in size, so new code is disabled,
7146         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7147         a single bit,
7148         * (genCast): began a fix to optimize the casting of a bit to another
7149         bit, now assigning a bitfield to another bitfield will fail, sorry,
7150         * src/pic16/main.c: disabled the use of lr-support feature,
7151         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7152         * added some function prototypes, added function _debugf prototype,
7153         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7154         bits with offset (case PO_GPR_BIT),
7155         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7156         command line,
7157         * (isBankInstruction): modified to return 0 for no banking instruction,
7158         and 1 for banking instruction,
7159         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7160         caused stop processing pCodes after a inline assembly block,
7161         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7162         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7163         registers when it shouldn't,
7164         * src/pic16/ralloc.c (allocReg): add preliminary support for
7165         supporting a limited set of temporary registers,
7166
7167 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7168
7169         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7170           genDataPointerSet): ensure assignments always copy in MSB to LSB
7171           order,
7172           (loadRegFromAop): recognize CLRH optimization,
7173           (genFunction): optimize RECEIVE iCodes in reentrant functions
7174
7175 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7176
7177         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7178           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7179           selected.
7180         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7181         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7182           contiguous with data
7183
7184 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7185
7186         * device/lib/_gptrget.c (_gptrget),
7187         * device/lib/_gptrgetc.c (_gptrgetc),
7188         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7189           instead of sjmp to ret
7190         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7191           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7192
7193 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7194
7195         * .version: bumped version to 2.4.7
7196         * device/lib/_gptrget.c (_gptrget): is now _naked
7197         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7198         * device/lib/_gptrput.c (_gptrput): is now _naked
7199         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7200           (createFunction): fixed xstack
7201         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7202         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7203           or bit either,
7204           (geniCodeCritical): store original interrupt state in an iTemp bit
7205           var unless stack-auto
7206         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7207         * src/SDCCmain.c (setIncludePath): added include/target to search path
7208         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7209         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7210           prototype,
7211           (processFuncArgs): put bit vars in bit area
7212         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7213           unsaveRBank): fixed xstack,
7214           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7215           (genFunction, genEndFunction): fixed xstack,
7216           (genAssign): optimization don't walk backwards through mem
7217         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7218         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7219         * support/regression/Makefile: also make library (for stack-auto) when
7220           making "all" and added "test-mcs51-xstack-auto"
7221         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7222         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7223         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7224         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7225         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7226           make-library by MAKE_LIBRARY
7227         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7228           regression tests for xstack
7229         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7230         * support/regression/tests/critical.c: test for critical on mcs51
7231
7232 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7233
7234         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7235           built version of sdcc instead of installed version
7236
7237 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7238
7239         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7240         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7241           vprintf.c now
7242         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7243         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7244           WARNING: remove device/lib/build/z80/printf.o by hand when
7245           updating from previous build!
7246         * device/lib/z80/printf.c: updated comment
7247         * support/regression/tests/bug1057979.c: test all ports now
7248         * support/regression/tests/bug1065458.c: file added
7249
7250 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7251
7252         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7253           *_start and *_end symbols for static functions
7254
7255 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7256
7257         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7258           and search crt0.o in all library paths,
7259           (setIncludePath): proper handling of --nostdinc,
7260           (setLibPath): proper handling of --nostdlib
7261         * support/regression/Makefile,
7262         * support/regression/ports/ds390/spec.mk,
7263         * support/regression/ports/gbz80/spec.mk,
7264         * support/regression/ports/hc08/spec.mk,
7265         * support/regression/ports/mcs51/spec.mk,
7266         * support/regression/ports/mcs51-large/spec.mk,
7267         * support/regression/ports/mcs51-stack-auto/spec.mk,
7268         * support/regression/ports/z80/spec.mk: use include and lib files from
7269           built version of sdcc instead of installed version
7270         * doc/sdccman.lyx: fixed typo in --nostdinc
7271
7272 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7273
7274         * src/pic/pcode.c,
7275         * src/pic/device.c,
7276         * src/pic/ralloc.c,
7277         * src/pic/gen.c : added support to generate code for struct bit fields.
7278
7279 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7280
7281         * as/xa51/xa_version.h,
7282         * device/include/errno.h,
7283         * device/include/regc515c.h,
7284         * device/lib/_itoa.c,
7285         * device/lib/_ltoa.c,
7286         * device/lib/ser_ir_cts_rts.c,
7287         * sim/ucsim/xa.src/glob.cc,
7288         * sim/ucsim/xa.src/inst_gen.cc,
7289         * sim/ucsim/xa.src/xa_bit.cc,
7290         * sim/ucsim/xa.src/xa_sfr.cc,
7291         * sim/ucsim/z80.src/inst_dd.cc,
7292         * sim/ucsim/z80.src/inst_fdcb.cc,
7293         * support/scripts/keil2sdcc.pl,
7294         * src/pic16/pic16.dsp,
7295         * src/pic16/pic16a.dsp: corrected cvs line endings
7296         * device/lib/printf_large.c: fixed bug 1057979
7297         * src/pic16/gen.c: fixed non-C standard code
7298         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7299         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7300         * support/regression/ports/mcs51/support.c: reload T1 asap
7301         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7302           pdata use and clear idata startup behaviour
7303         * support/regression/tests/bug1057979.c: added
7304
7305 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7306
7307         * device/examples/ds390/ow390/ad26.h,
7308         * device/examples/ds390/ow390/cnt1d.h,
7309         * device/examples/ds390/ow390/crcutil.c,
7310         * device/examples/ds390/ow390/ownet.h,
7311         * device/examples/ds390/ow390/owsesu.c,
7312         * device/examples/ds390/ow390/swt12.h,
7313         * device/examples/ds390/ow390/swtoper.c,
7314         * device/examples/ds390/ow390/temp10.h,
7315         * device/examples/ds390/ow390/thermodl.c,
7316         * device/examples/ds390/tinitalk/tinitalk.dsp,
7317         * device/examples/ds390/tinitalk/tinitalk.dsw,
7318         * device/examples/mcs51/clock/hw.h,
7319         * device/examples/mcs51/simple2/go.bat,
7320         * device/examples/serialcomm/windows/serial.h,
7321         * device/examples/xa51/dummy.c,
7322         * device/examples/xa51/hello.c,
7323         * device/include/80c51xa.h,
7324         * device/include/at89x051.h: corrected cvs line endings
7325
7326 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7327
7328         * src/pic16/main.c (options): added command line --gstack, to trace
7329         stack over/under flows,
7330         * added pragma 'wparam' to allow passing first byte of function
7331         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7332         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7333         call to __gstack_test function and sets up the symbol as extern,
7334         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7335         * popaop): added call to pic16_testStackOverflow,
7336         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7337         wparamList list,
7338         * (genCall, genPcall): now all parameters are passed via stack
7339         except in functions that are pass to wparam pragma in which WREG is
7340         used too,
7341         * (genPcall): REENTRANT flag is checked to see if variable prototype
7342         contains reentrant keyword, don't call a non-reentrant function, via
7343         a reentrant function pointer or vice versa, functions are never
7344         passed via WREG,
7345         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7346         D.Winkler,
7347         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7348         SIGSEGV when accessing a NULL register stucture,
7349         * (pic16_printGPointerType): modified to handle UPPER modifier for
7350         function initializers, changed prototype of function to simpler one,
7351         * (pic16_printIvalFuncPtr): check to see if function is already
7352         added in externs list,
7353         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7354         optimized a move from W to SFR with a move to the same register
7355         later after a CALL,
7356         * device/lib/pic16/debug: NEW directory, contains debug features
7357         which are enabled when linking with libdebug.lib, currently command
7358         line option --gstack enables stack pointer tracing for over/under
7359         flow, corresponding sources are in debug/gstack
7360
7361 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7362
7363         * doc/sdccman.lyx: updated SDCC version,
7364         * (PIC16 port): update list of command line options,
7365         * src/pic16/device.h (structure pic16_options_t): added field gstack
7366         to enable stack overflow tracing on push/pops,
7367         * src/pic16/device.c (statistics structure): added statistics
7368         structure,
7369         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7370         pic16_dump_int_registers): increase statistics counters for each
7371         * variable which is encountered
7372         * (pic16_dump_usection): emit each .udata variable to its own udata
7373         section,
7374         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7375         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7376         parameters via stack, otherwise use old scheme,
7377         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7378         assembler output file,
7379         * src/pic16/main.c: added command line options --gstack to enable
7380         push/pop tracing for stack overflow,
7381         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7382         instructions): added size of each instruction,
7383         * (pic16_countInstruction): estimate size of instructions in
7384         the_pFile list, inline assembly blocks are not counted,
7385         * (pic16_FixRegisterBanking): trace previous register usage, when
7386         banksel optimizations is greater than 0, don't emit a redudant
7387         banksel directive,
7388
7389 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7390
7391         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7392         * src/pic16/ralloc.c : applied same fix for pic16.
7393         * src/pic/gen.c : tidied it up a little.
7394
7395 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7396
7397         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7398         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7399
7400 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7401
7402         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7403
7404 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7405
7406         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7407         non-reentrant function __modsint in the interrupt function (thus
7408         corrupting math operations during serial I/O)
7409         * device/lib/ser_ir.c: as above, changed buffersize
7410         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7411         256.c,d for zeroing
7412         * doc/Makefile: added option -t for rsync
7413
7414 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7415
7416         * src/SDCCast.h (struct ast),
7417         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7418
7419 2004-10-20 Borut Razem <borut.razem AT siol.net>
7420
7421         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7422         package
7423
7424 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7425
7426         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7427         makefile targets,
7428         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7429         support functions to replace long sequences of MOVFF's from access
7430         bank registers to stack and vice versa,
7431         * src/pic16/device.h: added new field opt_flags, where optimization
7432         flags can be set to enable certain features,
7433         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7434         * pBlock, (genFunction, genEndFunction): surroung loop for
7435         saving/loading used registers in stack with PC_INFO pCodes,
7436         INF_LREGS. Code in between can then be optimized by pCode optimizer
7437         to support function calls,
7438         * (genDataPointerSet): fixed bug which loaded float fields in
7439         structures with corrupt data,
7440         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7441         in a standard way debug info on stderr. Feature used for developing
7442         and debugging only,
7443         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7444         obsolete chunks of code,
7445         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7446         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7447         * pic16/src/pcode.c (pic16_newpCodeInfo,
7448         * (pic16_newpCodeOpLocalRegs),
7449         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7450         feature,
7451         * (pic16_pCodeConstString): printing of the initial value of a
7452         symbol as a comment is inhibited since parsing was already done by
7453         copyStr and output is corrupt,
7454         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7455
7456 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7457
7458         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7459
7460 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7461
7462         * as/mcs51/lkarea.c: removed old K&R style,
7463           (lnksect): changed check on boundary error,
7464           (lnksect2): changed check on boundary error,
7465           (lnksect2): extend XSTK to end of page if size = 1
7466         * as/mcs51/lkmain.c: removed old K&R style,
7467           (Areas51): create l_IRAM symbol
7468         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7469         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7470           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7471         * device/lib/_mullong.c: added version to be compiled with xstack
7472         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7473         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7474         * device/lib/mcs51/crtxstack.asm: fixed comment
7475         * src/SDCCglue.c: maxInterrupts defaults to 0,
7476           (emitMaps): added pdata,
7477           (createInterruptVect): (re)moved default,
7478           (glue): added pdata,
7479           (glue): moved __start__xstack to XSTK with default size 1
7480         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7481           and options.float_rent when options.stackAuto is set,
7482           (linkEdit): only write XDATA_NAME if provided on command line
7483         * src/SDCCmem.h,
7484         * src/SDCCmem.c: added pdata
7485         * src/port.h: added pdata_name to PORT
7486         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7487           (saveRegisters, unsaveRegisters): removed usage of B,
7488           (genMinus): fixed accumulator clash,
7489           (genJumpTab): added comment, this needs another look
7490         * src/mcs51/gen.c: added check for "B in use" paranoia,
7491           added pushB() and popB()
7492         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7493           chance
7494         * src/avr/main.c,
7495         * src/ds390/main.c,
7496         * src/hc08/main.c,
7497         * src/mcs51/main.c,
7498         * src/pic/main.c,
7499         * src/pic16/main.c,
7500         * src/xa51/main.c,
7501         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7502           added PSEG (PAG,XDATA) or NULL to port specifier
7503         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7504         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7505           (_mcs51_genInitStartup): removed __start__xstack equ,
7506           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7507         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7508         * src/z80/gen.c (_rleAppend): fixed warnings
7509         * support/regression/tests/zeropad.c: added pdata test
7510         * .version: bumped to 2.4.6
7511
7512 2004-10-17 Borut Razem <borut.razem AT siol.net>
7513
7514         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7515         as a part of nightly build
7516
7517 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7518
7519         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7520         WREG holds the first byte function parameters,
7521         * (aopForSym): take special case for symbols which are in FARSPACE
7522         but in CODESPACE too,
7523         * (assignResultValue): modified to take into account _G.useWreg,
7524         * (genCall): don't use wreg for parameter passing when function is
7525         declared as reentrant, too, added optimization INCF to stack
7526         pointer when stack parameter count is 1,
7527         * (genFunction, genEndFunction): refurnished and fixed to not using
7528         wreg for passing parameters when function has varargs or is
7529         reentrant, fixed bug with symbol name compare for generating
7530         functions in absolute address,
7531         * (pic16_storeForReturn): refurnished,
7532         * (genCmp): began writing a new version of the function, not ready
7533         yet, therefore it is disabled,
7534         * (genAssign): do not read code memory when assigning a function to
7535         a pointer function,
7536         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7537         array of characters, not pointer,
7538         * (pic16initialComments): in debug mode emit an .ident directive for
7539         the assembler,
7540         * (_process_pragma): emit a new warning type (internal to pic16)
7541         when setting stack to default length, emit a similar warning when
7542         placing a function at absolute address and address is not word aligned
7543         * (_pic16_parseOptions): added 'return TRUE' statement,
7544         * (_pic16_linkEdit): if compiling a source, then add the source's
7545         file object, first in the list of objects to link,
7546
7547 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7548
7549         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7550         * src/pic/main.c : removed VC warning.
7551         * src/pic/gen.c : changed comment.
7552
7553 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7554
7555         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7556         reference to a deprecated symbol _GPTRREG was causing failure to
7557         link. Thanks G. M. Gallant for the info.
7558
7559 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7560
7561         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7562         comments for Bugs item #954788.
7563
7564 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7565
7566         * src/pic16/device.c (pic16_dump_gsection,
7567         * pic16_groupRegistersInSection): handle symbols declared to be in
7568         access bank differently,
7569         * src/pic16/gen.c (struct _G): added field resDirect,
7570         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7571         send values read from stack directly to result and don't allocate
7572         temporary values,
7573         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7574         same registers,
7575         * (pic16_sameRegsOfs): NEW,
7576         * (freeAsmop): if _G.resDirect is set then do not mark registers as
7577         free because they were not allocated from temporary pool,
7578         * pic16_popRegFromString): workaround to fix a problem with
7579         allocating variables twice or never,
7580         * (genGenPointerGet): using PRODL instead of FSR0H,
7581         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7582         instead of FSR0H,
7583         * (genAssign): take advantage of the _G.resDirect flag,
7584         * (genCast): around line 11844, use mov2f instead of directly
7585         MOVFF'ing between operands to account for literal values,
7586         * src/pic16/genutils.c: some new debug functions for gpsim have been
7587         added,
7588         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7589         float with integer part only,
7590         * src/pic16/main.c (_process_pragma): handle pragma udata access to
7591         place variables in access bank
7592         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7593         updated sources to reflect recent changes in gen.c
7594
7595 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7596
7597         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7598         sources that searched for headers in installation path, now the
7599         device/include/pic16 is used,
7600         * src/pic16/glue.c (pic16glue),
7601         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7602         .line directives if not in debug mode, this suppresses assembler's
7603         warnings for ignored directives
7604
7605 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7606
7607         * src/port.h: made reset_regparms prototype void parameter explicit.
7608         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7609         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7610         * doc/sdccman.lyx: documented warning disabling and how to use
7611           printf_large to make it print floats.
7612         * device/include/stdbool.h: NEW
7613         * device/lib/_atof.c,
7614         * device/lib/_divuint.c,
7615         * device/lib/_divulong.c,
7616         * device/lib/expf.c,
7617         * device/lib/printf_large.c,
7618         * device/lib/sincosf.c,
7619         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7620         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7621           a completely reentrant lib.
7622
7623 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7624
7625         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7626         * device/include/pic16/stdio.h: fixed bug with colon
7627
7628 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7629
7630         * device/include/pic16/stdio.h,
7631         * device/include/pic16/stdlib.h,
7632         * device/include/pic16/math.h: NEW
7633         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7634         declared as _naked to reduce overhead
7635         * device/lib/Makefile.in (target port-specific-objects-pic16):
7636         changed * to *.* so to ignore the CVS directory,
7637         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7638         stacked variables back in stack,
7639         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7640         corruption
7641
7642 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7643
7644         * .version: bumped version number to 2.4.5
7645         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7646         * support/Util/SDCCerr.c (messages structure): added entry for
7647         W_POSSBUG2
7648
7649         Large cumulative patch for pic16 port and libraries.
7650         * device/include/pic16/sdcc-lib.h,
7651         * device/include/pic16/stdarg.h,
7652         * device/include/asm/pic16/features.h,
7653         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7654         * device/include/pic16/float.h: changes reentrant keyword with
7655         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7656         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7657         updated target build-libraries to include objects from gptr,
7658         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7659         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7660         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7661         all function headings,
7662         * src/SDCCmain.c: added global parameter userIncDirsSet,
7663         * (parseCmdLine): when option -I is encountered add directory to
7664         userIncDirsSet too,
7665         * src/version.awk: added space between control and long,
7666         * src/pic16/NOTES: added some notes for the port,
7667         * src/pic16/gen.c: added prototype for mov2fp function,
7668         * (fReturnpic16[]): properly named return value registers,
7669         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7670         * (aopForSym): added code to handle symbols with onStack flag set,
7671         symbols onStack are allocated PTRSIZE bytes,
7672         * (aopFreeAsmop): handles special case where asmops are stack objects,
7673         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7674         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7675         added argument lock to trace flaws in allocating temporary registers
7676         when developing port,
7677         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7678         * (pic16_popRegFromString): reenabled allocating a direct register
7679         from string,
7680         * (assignResultValue): various beautifications,
7681         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7682         referenced function argument,
7683         * (genIpush): reenabled to allow stacked arguments, handles only
7684         ic->parmPush iCodes,
7685         * (genCall, genPcall): major changes to allow for variable argument
7686         functions, fixed a bug with falsely restoring stack pointer after
7687         returning from call,
7688         * (genFunction): pending code for critical function,
7689         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7690         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7691         * (genNearPointerGet): fixed bug with indirect reading, was always
7692         reading from INDF0
7693         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7694         pointers,
7695         * (genAddrOf): rewrote code to take address of a stacked function parameter
7696         * (genCast): fixed casting to generic pointer type,
7697         * src/pic16/gen.h: added AOP_STA,
7698         * (struct asmop): added field stk,
7699         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7700         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7701         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7702         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7703         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7704         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7705         generic pointers,
7706         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7707         and library paths,
7708         * (pic16_port structure): generic pointer size is set to 3,
7709         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7710         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7711         compiler warning,
7712         * src/pic16/ralloc.c (allocReg): prevent allocating register when
7713         operand is an iTemp,
7714
7715 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7716
7717         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7718         * debugger/mcs51/simi.c: addapt new syntax of s51
7719
7720 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7721
7722         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7723         * src/pic16/pcode.c: commented out some calls to free() in order to
7724         fix bug #989576,
7725
7726 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7727
7728         * src/SDCCicode.h,
7729         * src/SDCCicode.c (isiCodeInFunctionCall),
7730         * src/avr/ralloc.c (selectSpil),
7731         * src/pic/ralloc.c (selectSpil),
7732         * src/pic16/ralloc.c (selectSpil),
7733         * src/ds390/ralloc.c (selectSpil),
7734         * src/hc08/ralloc.c (selectSpil),
7735         * src/xa51/ralloc.c (selectSpil),
7736         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7737         stack in the middle of a function call sequence (fixes bug #1020268)
7738         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7739         costs associated with the minimum switch case.
7740
7741 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7742
7743         * src/SDCC.lex: fixed bug #1030549
7744
7745 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7746
7747         * src/SDCCcse.h (struct cseDef),
7748         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7749         over a function call if the CSE is derived from a symbol whose
7750         address has been taken (fixes bug #1029883)
7751         * support/regression/tests/bug-1029883: a new regression test for
7752         this bug
7753
7754 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7755
7756         * src/hc08/gen.c (emitinline): fixed bug #1029778
7757         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7758         to a cast object is no longer a syntax error ("fixes" bug #1030006,
7759         and starts toward RFE #905167)
7760
7761 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7762
7763         * src/pic16/gen.c (mov2f): New function to move an operand to
7764         another without considering if it is a literal or a register,
7765         * (pic16_sameRegs): don't check if they are both AOP_REG,
7766         * (AccRsh): removed andmask=0 lines,
7767         * (genLeftShift): duplicated to be improved in future versions,
7768         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7769         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7770         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7771         * (pic16initMnemonics): added initialization for POC_INFSNZW,
7772         * (insertBankSwitch): fixed inserting banksel directives algorithm
7773         for instructions that follow a skip instruction, this fixes a report
7774         for broken subtraction code generation,
7775         * src/pic16/ralloc.c (deassignLRs): do not free register if current
7776         iCode is a left op, just in case result and right share the same
7777         registers
7778
7779 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7780
7781         * src/hc08/main.c,
7782         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7783         preservation of HX
7784         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7785         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7786         on 2004-09-12; it was buggy
7787
7788 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7789
7790         * src/SDCCsymt.h: removed RESULT_CHECK
7791         * src/SDCCast.c,
7792         * src/SDCCglue.c,
7793         * src/SDCCval.c,
7794         * src/pic/glue.c,
7795         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7796
7797 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7798
7799         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7800         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7801         configuration values no more rejected by compiler, they are assigned
7802         to configuration registers with a warning message instead,
7803         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
7804         the for-loop so last conf register is emitted too,
7805         * (_pic16_initPaths): link library libsdcc.lib by default,
7806         * (_hasNativeMulFor): modified test for multiplication according to
7807         Raphael Neider's remarks. Integer multiplication is also done with
7808         support functions,
7809         * device/include/pic16/pic18fregs.h: corrected type error in while
7810         testing and including 18f6720 header file
7811
7812 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
7813
7814         * src/pic16/device.h (pic16_options): removed field use_crt,
7815         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
7816         until an optimization to handle single bits is added,
7817         * (pic16_loadFSR0): moved before genUnpackBits,
7818         * (genAnd): some white lines removed,
7819         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
7820         leave_reset flags in pic16_options when using crt modules,
7821
7822 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
7823
7824         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
7825           for bugs 898889 & 979599. Also used some safer print instructions.
7826
7827 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
7828
7829         * src/pic16/device.h (pic16_options_t): added field use_crt,
7830         crt_name, no_crt,
7831         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
7832         catch a probable future bug,
7833         * src/pic16/gen.c: aopIdx function commented out,
7834         * (genAssign): commented out old code which used aopIdx,
7835         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
7836         code, added if conditionals to take into account the --use-crt
7837         command line options,
7838         * src/pic16/main.c (pic16_optionsTable): added new command line
7839         options, --use-crt= and --no-crt,
7840         * (_pic16_linkEdit): now the proper crt object is added in the
7841         linker command line except than when --no-crt is specified,
7842         * src/pic16/pcode.c,
7843         * src/pic16/pcode.h: added some structures and functions for a new
7844         optimization scheme to compansate for instruction overhead between
7845         same iCodes, this scheme is currently under development and is not
7846         working in any way,
7847         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
7848         to && operator,
7849         * device/lib/pic16/startup/crt0i.c,
7850         * device/lib/pic16/startup/crt0iz.c: added global char variable
7851         __uflags to force the generation of an idata section
7852
7853 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
7854
7855         * doc/Makefile,
7856         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
7857         * doc/sdccman.lyx: updated sdcc version to 2.4.4
7858
7859 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7860
7861         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
7862         Frieder) and clarified the default code optimization mode
7863
7864 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7865
7866         * src/SDCC.lex (doPragma, process_pragma),
7867         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
7868         "opt_code_size", and "opt_code_balanced"
7869         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
7870         regrouped options by category, added support for category headers
7871         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
7872         and "--opt-code-size"
7873         * doc/sdccman.lyx: documented these new options and pragmas
7874         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
7875         preference into account
7876
7877 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7878
7879         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
7880           geniCodePreDec): Fixed bug 904237 by generating a warning
7881         * src/SDCCerr.h,
7882         * src/SDCCerr.c: added warning W_SIZEOF_VOID
7883
7884 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
7885
7886         * src/pic/device.c : When no max ram set validate full memory range.
7887         * src/pic/pcode.c,
7888         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
7889
7890 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7891
7892         * device/lib/_gptrget.c,
7893         * device/lib/_gptrput.c: updated comment
7894         * device/lib/calloc.c,
7895         * device/lib/free.c,
7896         * device/lib/malloc.c,
7897         * device/lib/realloc.c: added LGPL, made them reentrant-safe
7898         * src/SDCCcse.c (cseBBlock),
7899         * src/SDCCicode.c (printOperand, geniCodeArray),
7900         * src/SDCCicode.h (struct operand): fixed bug 868103
7901         * support/regression/tests/bug-868103.c: added
7902         * src/SDCCast.c (searchLitOp),
7903         * src/SDCCcse.h (struct cseDef),
7904         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
7905         * src/SDCCicode.h (struct operand),
7906         * src/SDCCsymt.h (struct sym_link),
7907         * src/avr/gen.c (hasInc),
7908         * src/ds390/gen.c (hasInc),
7909         * src/hc08/gen.c (genPlusIncr, hasInc),
7910         * src/mcs51/gen.c (hasInc),
7911         * src/pic16/glue.c (pic16_printIvalChar),
7912         * src/pic16/ralloc.c (regWithIdx),
7913         * src/xa51/gen.c (hasInc) : removed warnings
7914         * src/SDCCast.c (createBlock): added comment ???
7915         * src/hc08/ralloc.c: updated comments
7916
7917 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7918
7919         * doc/sdccman.lyx: updated section on switch statements, added
7920         section about semaphore locking
7921         * doc/Makefile: added option -info for latex2html
7922         * device/lib/_gptrget.c,
7923         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
7924
7925 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7926
7927         * src/pic/device.h,
7928         * src/pic/device.c,
7929         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
7930          maxram is less than 0x100.
7931
7932 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7933
7934         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
7935
7936 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7937
7938         * src/port.h,
7939         * src/mcs51/main.c,
7940         * src/ds390/main.c,
7941         * src/z80/main.c,
7942         * src/hc08/main.c,
7943         * src/pic/main.c,
7944         * src/pic16/main.c,
7945         * src/avr/main.c,
7946         * src/xa51/main.c
7947         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
7948         a jump table is the best form for a switch statement, including
7949         automatic insertion of missing cases to make the case range
7950         continuous. Developed in collaboration with Frieder Ferlemann.
7951
7952 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7953
7954         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
7955         accumulator result if it needs sign extension
7956
7957 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7958
7959         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
7960
7961 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7962
7963         * device/lib/gbz80/printf.c,
7964         * device/lib/z80/printf.c: removed define for NULL
7965
7966 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7967
7968         * as/xa51/xa_link.c,
7969         * device/examples/ds390/ow390/ad26.c,
7970         * device/examples/ds390/ow390/cnt1d.c,
7971         * device/examples/ds390/ow390/counter.c,
7972         * device/examples/ds390/ow390/ds2480.h,
7973         * device/examples/ds390/ow390/ds2480ut.c,
7974         * device/examples/ds390/ow390/findtype.c,
7975         * device/examples/ds390/ow390/gethumd.c,
7976         * device/examples/ds390/ow390/owllu.c,
7977         * device/examples/ds390/ow390/ownetu.c,
7978         * device/examples/ds390/ow390/swt12.c,
7979         * device/examples/ds390/ow390/swtloop.c,
7980         * device/examples/ds390/ow390/temp.c,
7981         * device/examples/ds390/ow390/temp10.c,
7982         * device/examples/ds390/ow390/thermo21.c,
7983         * device/examples/ds390/ow390/tinilnk.c,
7984         * device/examples/ds390/ow390/tstfind.c,
7985         * device/examples/serialcomm/windows/serial.cpp,
7986         * device/examples/serialcomm/windows/test_serialcomm.cpp,
7987         * device/include/reg51.h: fixed line endings for cvs
7988
7989 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7990
7991         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
7992         packRegsForAccUse, packRegisters): new accumulator register
7993         packing algorithm
7994         * support/regression/ports/hc08/support.c (_putchar): suppress
7995         warning of unused variable
7996         * src/SDCCicode.c: added SWAP entry to codeTable
7997
7998 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
7999
8000         * device/lib/sprintf.c: forgot to add this file before previous commit
8001
8002 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
8003
8004         * src/pic16/gen.c (genPackBits): added operand right in function
8005         parameters, load result directly if p_type is POINTER (that is
8006         called by genNearPointerSet)
8007         * (genUnPackBits): added operand left in function parameters,
8008         * (genNearPointerGet, genNearPointerSet): prevent the loading of
8009         FSR0 if accessing bitfields,
8010
8011 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
8012
8013         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
8014           _print_format; updated printf, sprintf, vsprintf
8015         * device/include/asm/default/features.h: corrected comment/define
8016         * device/lib/Makefile.in: added sprintf.c
8017         * device/lib/libsdcc.lib: added sprintf module
8018         * device/lib/printf_large.c,
8019         * device/lib/vprintf.c,
8020         * device/lib/sprintf.c: totally refactored printf_large and vprintf
8021           into these 3 files
8022         * support/regression/Makefile: changed ALL_PORTS into a usefull default
8023         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
8024         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
8025           hc08 test
8026         * support/regression/tests/zeropad.c: define idata as data for hc08
8027
8028 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8029
8030         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
8031         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
8032         labels are referenced at least once (even if a reference is not found)
8033         * src/hc08/gen.c (emitcode): set isComment flag for comments
8034         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
8035         loads), rules 6a..6b (optimize jumps to return)
8036
8037 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8038
8039         * device/lib/acosf.c (acosf),
8040         * device/lib/asinf.c (asinf),
8041         * device/lib/atanf.c (atanf),
8042         * device/lib/ceilf.c (ceilf),
8043         * device/lib/cosf.c (cosf),
8044         * device/lib/coshf.c (coshf),
8045         * device/lib/cotf.c (cotf),
8046         * device/lib/fabsf.c (fabsf),
8047         * device/lib/floorf.c (floorf),
8048         * device/lib/log10f.c (log10f),
8049         * device/lib/logf.c (logf),
8050         * device/lib/sinf.c (sinf),
8051         * device/lib/sinhf.c (sinhf),
8052         * device/lib/sqrtf.c (sqrtf),
8053         * device/lib/tanf.c (tanf),
8054         * device/lib/tanhf.c (tanhf),
8055         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
8056         replaced all instances of "reentrant" in the library functions
8057         defined in math.h with this macro.
8058         * support/regression/tests/float_trans.c: reenabled test for hc08
8059
8060 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
8061
8062         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
8063         erroneously deleted
8064
8065 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8066
8067         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
8068         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
8069         multi-byte volatile operands are used
8070         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
8071         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
8072         initialization to area GSINIT0 so that it would always precede
8073         any static initializers in GSINIT
8074         * support/regression/tests/zeropad.c: fixed idata define for hc08
8075         * support/regression/tests/bug-927659.c,
8076         * support/regression/tests/float_trans.c: disabled tests for hc08
8077         pending missing library routines
8078         * .version: increased version number to 2.4.4 - hc08 port now passes
8079         regression tests
8080
8081
8082 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
8083
8084         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
8085         * Makefile.common.in,
8086         * as/Makefile,
8087         * as/hc08/Makefile.in,
8088         * as/mcs51/Makefile.in,
8089         * as/z80/Makefile.in,
8090         * debugger/mcs51/Makefile.in,
8091         * device/include/Makefile.in,
8092         * device/lib/Makefile.in,
8093         * doc/Makefile,
8094         * link/Makefile,
8095         * link/z80/Makefile.in,
8096         * packihx/Makefile.in,
8097         * sim/ucsim/main_in.mk,
8098         * sim/ucsim/avr.src/Makefile.in,
8099         * sim/ucsim/doc/Makefile.in,
8100         * sim/ucsim/gui.src/serio.src/Makefile.in,
8101         * sim/ucsim/hc08.src/Makefile.in,
8102         * sim/ucsim/s51.src/Makefile.in,
8103         * sim/ucsim/xa.src/Makefile.in,
8104         * sim/ucsim/z80.src/Makefile.in,
8105         * src/Makefile.in,
8106         * support/cpp2/Makefile.in,
8107         * support/librarian/Makefile,
8108         * support/makebin/Makefile: added DESTDIR to the install path proposed
8109         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
8110         * doc/sdccman.lyx: added DESTDIR documentation
8111
8112 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8113
8114         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8115         instruction for interrupt handlers, use fast returns when returning
8116         from high priority interrupts
8117
8118 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8119
8120         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8121         code generation
8122         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8123         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8124         bugs, ported much of Bernhard's code from mcs51
8125         * src/mcs51/gen.c (genSend),
8126         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8127         than one when calling a reentrant function
8128         * device/lib/_mullong.c: defined an alternate struct layout for big
8129         endian ports (hc08)
8130
8131 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8132
8133         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8134         test
8135
8136 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8137
8138         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8139         are sane and complete before asking the port its prefered parameter
8140         passing method (fixes bug #1017633)
8141         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8142         and _ret3
8143
8144 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8145
8146         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8147         problem in bitfields >= 8 bits.
8148
8149 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8150
8151         * src/SDCCsymt.c: undid changes that were not meant to be committed
8152
8153 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8154
8155         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8156
8157 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8158
8159         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8160           copied and wrong bit got inverted
8161
8162 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8163
8164         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8165         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8166         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8167         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8168         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8169         assignments to bitfields at known addresses
8170         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8171         reads from bitfields at known addresses
8172         * src/hc08/ralloc.c (packRegisters),
8173         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8174         genhc08Code): optimize pointer get values used as conditionals
8175         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8176         and branch
8177
8178 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8179
8180         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8181         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8182         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8183         as conditionals
8184
8185 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8186
8187         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8188
8189 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8190
8191         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8192         related problems
8193
8194 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8195
8196         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8197
8198 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8199
8200         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8201         mcs51 port
8202
8203 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8204
8205         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8206
8207 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8208
8209         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8210         cases use more compact code.
8211
8212 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8213
8214         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8215
8216 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8217
8218         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8219
8220 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8221
8222         * src/SDCCsymt.h,
8223         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8224         parameter of changePointer() from symbol* to sym_link*
8225         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8226         * src/SDCCsymt.c (compareType): void* type is castable to other
8227         pointers, but not necesarily an exact match.
8228         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8229         is no longer blindly treated as an exact match.
8230         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8231
8232 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8233
8234         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8235
8236 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8237
8238         * src/pic/gen.c,
8239         * src/pic/pcode.c,
8240         * src/pic/ralloc.h,
8241         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8242
8243 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8244
8245         * src/pic/device.c,
8246         * src/pic/device.h,
8247         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8248
8249 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8250
8251         * src/mcs51/gen.c (emitcode): fixed bug #992819
8252
8253 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8254
8255         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8256           there's no need to make it worse
8257
8258 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8259
8260         * src/mcs51/ralloc.c (deassignLR),
8261         * src/ds390/ralloc.c (deassignLR),
8262         * src/hc08/ralloc.c (deassignLR),
8263         * src/z80/ralloc.c (deassignLR),
8264         * src/pic/ralloc.c (deassignLR),
8265         * src/pic16/ralloc.c (deassignLR),
8266         * src/avr/ralloc.c (deassignLR),
8267         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8268         rlivePoint): fixed another part of bug #971834
8269
8270 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8271
8272         * src/z80/main.c: enabled "critical" keyword
8273         * src/z80/mappings.i,
8274         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8275         functions (fixes bug #979646)
8276         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8277
8278 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8279
8280         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8281           such as c:\mydir.
8282
8283 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8284
8285         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8286           doesn't disable too much optimizations
8287
8288 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8289
8290         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8291
8292 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8293
8294         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8295
8296 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8297
8298         * src/pic/gen.c tidied up tabs
8299         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8300         * src/pic/main.c tidied up tabs
8301         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8302         * src/pic/pcoderegs.c tidied up tabs
8303         * src/pic/ralloc.c tidied up tabs
8304
8305 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8306
8307         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8308         to S_FIXED for pic16 port and when symbol is not in level 0,
8309         allocate for S_REGISTER storage class and pic16 port, too,
8310         * src/pic16/device.h: prototype for checkSym,
8311         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8312         * (pic16_assignConfigWordValue): test the value and the mask to
8313         validate that the value is suitable for the configuration word,
8314         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8315         collect extern declared symbols, don't emit symbol twice, check
8316         first if symbol is in publics set first,
8317         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8318         * added command line '--fstack' which enables an experimental
8319         feature for stack access, too buggy to be used yet...
8320         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8321         * (pic16_allocDirReg): when register has storage class S_REGISTER
8322         allocate in pic16_dynAccessRegs,
8323         * device/include/pic16/pic18f????.h: modified configuration word
8324         naming convention, words started as CONFIG0H but should be CONFIG1H
8325
8326 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8327
8328         * device/include/mcs51reg.h: fixed bug 970993
8329
8330 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8331
8332         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8333         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8334         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8335         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8336         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8337         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8338           error/warning numbers,
8339           added function setWarningDisabled()
8340         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8341         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8342           _memcmp.c _memmove.c calloc.c realloc.c free.c
8343         * support/regression/tests/malloc.c: added tests for new functionality
8344         * support/regression/tests/zeropad.c: added tests for truncated initializers
8345           and initialized char arrays starting with '\x0'
8346         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8347
8348 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8349
8350         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8351
8352 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8353
8354         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8355         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8356         peephole 177.e. Thanks to anonymous
8357
8358 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8359
8360         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8361         function isn't used in the source but referenced as a
8362         variable initializer then declare it as extern in .asm file
8363
8364 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8365
8366         * .version: increased version number to 2.4.3
8367
8368         Adding version extension according to ChangeLog CVS revision
8369         * src/Makefile.in (target all): added dependency 'version.h'
8370         * (rule version.h): added rule to create version.h from ChangeLog,
8371         * (rule dep): added dependency version.h,
8372         * src/version.awk: AWK script to create version.h
8373         * src/SDCCdwarf2.c (dwWriteModule),
8374         * src/SDCCglue.c (initialComments),
8375         * src/SDCCmain.c (printVersionInfo): modified to write after
8376         version string the version extension number,
8377         * src/SDCCutil.c: included "version.h"
8378         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8379         number,
8380         * src/SDCCutil.h: added prototype for getBuildNumber
8381
8382         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8383         includeDirsSet, too,
8384         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8385         const char [] is found in function prototype...
8386
8387         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8388         moving to WREG with source is already in WREG,
8389         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8390         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8391         * (aopForSym): stack'ed symbols are partially supported, added
8392         if-clause to support symbols in FARSPACE,
8393         * (sameRegs): added test for AOP_ACC to see if registers are same,
8394         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8395         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8396         * (pic16_popRegFromString): will not allocate a new register if it
8397         doesn't find one by name, bug may have introduced...
8398         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8399         * (genIpush): revived to use pic16 port's stack,
8400         * (genAddrOf): added incomplete case for stack'ed operand,
8401         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8402         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8403         can handle multibyte operands,
8404         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8405         * (pic16initialComments): added message for MPLAB compatibility
8406         mode enabled,
8407         * src/pic16/main.h: prototype for pic16_mplab_comp,
8408         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8409         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8410         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8411         because of increased complexity of procedure,
8412         * (_process_pragma): stack pragma changed to format 'stack pos len',
8413         emit symbol '_stack_end' to conform with gplink,
8414         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8415         to search for register,
8416         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8417         PO_GPR_REGISTER,
8418         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8419         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8420         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8421         case for PO_GPR_REGISTER,
8422         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8423         dies, the new era is ahead !...
8424         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8425         pic16_dynInternalRegs,
8426         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8427         * (pic16_allocDirReg): minor optimizations and bug fixes,
8428         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8429
8430         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8431         load stack and frame pointer with address of 'stack_end' symbol
8432
8433 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8434
8435         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8436         without source code but only variable initializers
8437
8438 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8439
8440         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8441         external are not declared as extern to reduce overhead while linking
8442
8443 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8444
8445         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8446
8447 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8448
8449         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8450           Yee Keat for the patch
8451         * src/SDCCast.c (decorateType): fixed bug #979599
8452         * src/ds390/gen.h: removed local fReturnSizeDS390
8453         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8454         * src/ds390/gen.c (genAnd, genOr, genXor),
8455         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8456
8457 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8458
8459         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8460         add relFilesSet to $3, manipulate $2 to handle linking of object
8461         files without source files in command line,
8462         * device/include/pic16 (all headers): added ID location macros,
8463         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8464         entries for ID location bytes,
8465         * (pic16_assignIdByteValue): NEW,
8466         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8467         added field dumpcalltree to pic16_options_t,
8468         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8469         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8470         emitting rFalseIfx label after check_carry label,
8471         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8472         pic16_emitDIRegs), NEW
8473         * (pic16glue): dump .calltree file when option --calltree found,
8474         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8475         * (_pic16_genAssemblerPreamble): emit ID locations after
8476         configuration registers,
8477         * (pic16_linkCmd): modifications of the link command,
8478         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8479         * (pic16_pCodeInitRegisters): don't init stack registers,
8480         * (pic16_findPrevInstruction): fixed bug,
8481         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8482         bug with immediate registers,
8483         * (buildCallTree): traces stack push and pop,
8484         * (pct2): dump also stack usage for each function,
8485         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8486         * (pic16_allocDirReg): various modifications,
8487         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8488         fixed to 1,
8489
8490 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8491
8492         * src/pic16/pcode.c: removed buggy double colon
8493
8494 2004-07-01 Borut Razem <borut.razem AT siol.net>
8495
8496         * support/scripts/sdcc.nsi: added include/pic16 to setup
8497
8498 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8499
8500         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8501         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8502         target 'clean',
8503         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8504         specific command line arguments. Also added sample lkr script
8505         for placing a variable at a specific memory bank.
8506         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8507         at a specific memory bank,
8508         * (pic16_dump_isection): fixed bug which caused string literals to
8509         be omitted when dumping idata section,
8510         * (pic16_groupRegistersInSection): added code to handle registers
8511         in specific memory banks,
8512         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8513         public, all references are renamed too,
8514         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8515         AOP_DPTR2,
8516         * (pic16_storeForReturn): added case to handle when dest is WREG,
8517         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8518         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8519         pic16_rel_udata, check to see if that register is marked as being
8520         a member of a specific memory bank,
8521         * (pic16_printIvalCharPtr): added code to add string literals either
8522         to code or the idata sections,
8523         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8524         also accept the 'udata' pragma,
8525         * src/pic16/main.h: new structure types sectName and sectSym
8526         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8527         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8528         * (pic16_findPrevInstruction): fixed, it returned nothing,
8529         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8530         instruction combinations,
8531         * (pic16_FixRegisterBanking): heavily reorganised,
8532         * (pic16_AnalyzeBanking): if generating banksel directives is
8533         disabled, then don't call FixRegisterBanking at all,
8534         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8535         completely removed,
8536         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8537
8538 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8539
8540         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8541         Phuah Yee Keat <yk.phuah AT nestac.com>
8542
8543 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8544
8545         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8546         correctly the IVT even if it is relocated to some other location
8547
8548 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8549
8550         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8551         * device/include/pic16/pic18f2220.h: NEW,
8552         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8553         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8554         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8555         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8556         nodefaultlibs, ivt_loc is the location of the interrupt vector
8557         table, and nodefaultlibs signs that default libraries should not be
8558         linked in link stage,
8559         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8560         according to --ivt-loc argument,
8561         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8562         when pragma stack is found,
8563
8564 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8565
8566         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8567         256 (range check), 257 (do while), 258.a-f (bit banging
8568         f.e. on 3-wire SPI bus)
8569
8570 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8571
8572         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8573         variables used exclusively within a loop
8574
8575 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8576
8577         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8578
8579 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8580
8581         * src/SDCClrange.c (computeClash): fixed bug #971834
8582
8583 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8584
8585         * src/mcs51/gen.c (genCmp): fixed bug #975903
8586         * src/hc08/gen.c (operandsEqu),
8587         * src/ds390/gen.c (operandsEqu),
8588         * src/z80/gen.c (operandsEqu),
8589         * src/pic/gen.c (operandsEqu),
8590         * src/pic16/gen.c (operandsEqu),
8591         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8592         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8593
8594 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8595
8596         * src/SDCCcse.c (cseBBlock): fixed bug #966963
8597
8598 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8599
8600         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8601         default case in switch statement,
8602         * glue.c (pic16_initPointer): expr is initialised via decoarteType
8603         to eliminate problem with initialisation of pointers, but problem
8604         still exists,
8605         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8606         * (emitStaticSegment): removed various lines emitting debug info,
8607         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8608         added processor registers for utilizing EEPROM,
8609         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8610         configurable and set 8
8611
8612 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8613
8614         * .version: increased version number to 2.4.2,
8615
8616         Cumulative patch for pic16 port
8617         * src/pic16/device.c: changed scheme to dump initial values for
8618         variables in idata segment, all print_idata* functions were removed,
8619         now the pic16_printIval* will be called,
8620         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8621         * _pic16_printPointerType, pic16_printPointerType,
8622         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8623         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8624         NEW, similar to the respective functions in SDCCglue.c,
8625         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8626         way, emitting hex bytes,
8627         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8628
8629 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8630
8631         * src/avr/ralloc.c (serialRegAssign),
8632         * src/xa51/ralloc.c (serialRegAssign),
8633         * src/pic/ralloc.c (serialRegAssign),
8634         * src/pic16/ralloc.c (serialRegAssign),
8635         * src/hc08/ralloc.c (serialRegAssign),
8636         * src/z80/ralloc.c (serialRegAssign),
8637         * src/ds390/ralloc.c (serialRegAssign),
8638         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8639
8640 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8641
8642         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8643         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8644
8645 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8646
8647         Cumulative patch for pic16 port:
8648         * src/pic16/device.h (typedef PIC16_device) modified fields for
8649         defining microcontrollers,
8650         * src/pic16/device.c: added new info for all devices in Pics16 array,
8651         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8652         to be optimised out by the pCode optimiser,
8653         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8654         specially, bug reported by G.M. Gallant,
8655         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8656         as force'd so that cannot be optimised out by pCode optimiser,
8657         * src/pic16/pcode.c,
8658         * src/pic16/pcodepeeph.c,
8659         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8660         they are disabled by default, but can be enabled explicit with
8661         command argument --denable-peeps, for testing,
8662         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8663         --pomit-ivt in COMPILE_FLAGS
8664
8665 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8666
8667         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8668           compilation on MSVC
8669
8670 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8671
8672         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8673
8674 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8675
8676         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8677         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8678
8679 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8680
8681         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8682         would only assign 0x300001 register.
8683
8684 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8685
8686         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8687         in COMPILE_FLAGS. Thanks to G. Gallant for report.
8688
8689 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8690
8691         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8692         for ds80c400
8693         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8694         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8695         added peephole 254 (left shift), 255 (jump table)
8696
8697 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8698
8699         * device/lib/Makefile.in: removed comment line with model-pic16,
8700         * (target port-specific-objects-pic16): the libraries and objects
8701         are copied to the build directory form the device/lib/pic16/bin
8702         directory
8703
8704         Cumulative patch concerning pic16 port:
8705         * library directory has been re-organized,
8706         * added support for PIC18F1220,
8707         * added headers and library sources for chips 18f1220,18f6520,
8708         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8709
8710         * configuration registers setting has changed, now each supported
8711         device has a complete description of the registers it uses,
8712         * all initialisations are moved to idata sections, these section
8713         can be absolute or relocatable,
8714         * fixed initialisation of codespace variables,
8715         * fixed warning about PCLATU and gpsim,
8716         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8717         * (genAssign): use table reads when assigning from variables in codespace,
8718         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8719         char/int variables placed in codespace,
8720         * (pic16_emitConfigRegs): NEW, emits a list with configuration
8721         registers set in .asm file, no need for --pomit-config-words anymore,
8722         * (pic16glue): some 8051 legacy segments are commented out
8723         (to be removed completely),
8724         * added support for alternative assembler and linker with --asm=
8725         and --link= command line arguments,
8726         * peepholes are disabled automatically in the port, no need to
8727         specify on command line,
8728         * port supports natively char/int/long multiplication, but converts
8729         all divisions to support functions,
8730         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8731         to the file set in variable $2,
8732         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8733         strings in ASCII format and not in hex,
8734         * ralloc.c (serialRegAssign): added a triplet of conditional calls
8735         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8736         allocate proper register if iCodes aren't temporary,
8737
8738 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8739
8740         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8741
8742 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8743
8744         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8745         is commented out
8746
8747 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8748
8749         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8750         computed address is reused
8751         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8752         multi-byte bitfields
8753
8754 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8755
8756         * src/z80/gen.c: (genArrayInit): must check for pointers too
8757
8758 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8759
8760         * support/regression/tests/zeropad.c: never meant to commit the
8761           nestedstruct test: removed, added check for GCC version
8762
8763 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8764
8765         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8766         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8767         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8768           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8769           bugs 928906 and 954082 half-empty initializers
8770         * src/SDCCsymt.h,
8771         * src/SDCCsymt.c (getAllocSize): added for above fix
8772         * src/z80/gen.c (genArrayInit): fixed bug 741044
8773         * support/regression/tests/zeropad.c: added tests
8774
8775 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8776
8777         * src/pic16/device.c (pic16_dump_section): corrected bug which
8778         caused some symbols of the libraries to be misplaced
8779
8780 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8781
8782         * src/pic16/glue.c,
8783         * src/pic16/ralloc.h,
8784         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8785         to fix conflict with pic port
8786
8787 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8788
8789         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8790         externs configuration variables,
8791         * src/pic16/ralloc.h,
8792         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8793         prototype in header, commented out some debug messages
8794
8795 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8796
8797         * src/pic16/glue.c,
8798         * src/pic16/main.c,
8799         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8800         for gpasm COFF object generation. Thanks to D. Hawkins for
8801         his patch info
8802
8803 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8804
8805         * src/ds390/main.c,
8806         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
8807         Brock for spotting this)
8808         * src/ds390/gen.c (genEndFunction),
8809         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
8810         interrupt handler and critical. Disable push/pop optimizations when
8811         peephole optimizations disabled.
8812
8813 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8814
8815         Updated pic16 library sources and headers.
8816         * device/lib/pic16/pic18f*/ ,
8817         * device/include/pic16/*.h: modified to handle structured SFR
8818         definitions
8819
8820 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8821
8822         * src/port.h (PORT structure): added hook initPaths, now each
8823         port can declare its own default search paths,
8824         which can been seen with the --print-search-dirs option,
8825         see pic16 port for example,
8826         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
8827         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
8828         * (doPrintSearchDirs): NEW, replaces in a central manner the
8829         printing of search dirs which was split in set*Paths functions,
8830         * (main): added call to port->initPaths and doPrintSearchDirs,
8831         * src/avr/main.c,
8832         * src/ds390/main.c,
8833         * src/hc08/main.c,
8834         * src/izt/i186.c,
8835         * src/izt/tlcs900h.c,
8836         * src/mcs51/main.c,
8837         * src/pic/main.c,
8838         * src/pic16/main.c: modified port structures to reflect addition of
8839         initPaths hook,
8840
8841         * src/pic16/device.c (regCompare): registers are finally sorted by name,
8842         * (pic16_dump_section): for registers in same address reserve memory once,
8843         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
8844         to no_banksel,
8845         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
8846         result is greater in size than right or left,
8847         * (pic16_genUMult8X8_8): there are some cases where the result can
8848         be 16 bits size, so handle these,
8849         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
8850         * (pic16_outBitC): modified to emit pcodes,
8851         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
8852         or not,
8853         * (genDivOneByte): implemented algorithm to divide 8-bits,
8854         * (genCmp): uncommented goto, but issues still exist,
8855         * (genAnd): fixed a bug with variables >8bits,
8856         * (genPackBits): optimization added that uses BCF/BSF to change a
8857         single bit,
8858         * (genAssign): fixed bug when assigning floating point literals,
8859         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
8860         __sdcc_gsinit_startup label,
8861         * src/pic16/main.c (_pic16_init): removed search directory
8862         initialisations,
8863         * (_pic16_initPaths): NEW, used to initialise search directories,
8864         * (_hasNativeMulFor): support functions for all except char/int
8865         multiplication, and char division,
8866         * (PIC16_port struct): modified entry for native mul support,
8867         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
8868         no_banksel option,
8869         * (buildCallTree): call to register_usage is ifdef'ed out,
8870
8871 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8872
8873         * device/include/string.h: applied Stas Sergeev's patch to make this
8874         header file compatible with the preprocessor -Wundef option
8875         * src/SDCCmain.c (main): abort compilation if preprocessor reports
8876         failure (fixes bug #941458)
8877
8878 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8879
8880         * src/SDCCopt.c (killDeadCode): fixed bug #907733
8881         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
8882         that the variable, not the function, should be static
8883         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
8884         to be consistent with non-literal case
8885
8886 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8887
8888         * src/SDCCast.c (isConformingBody): fixed bug #949967
8889         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
8890         convilong): fixed bug #952086
8891
8892 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8893
8894         * src/SDCCmem.c (allocVariables): fixed bug #955321
8895
8896 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8897
8898         * src/hc08/main.c (_hc08_genAssemblerEnd),
8899         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
8900         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
8901         completely eliminated the use of a temporary file
8902         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
8903         when more than one file linked
8904         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
8905
8906 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8907
8908         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
8909         which fixes bug #543481
8910         * support/regression/tests/bug-751703.c: fixed comments left from a
8911         cut and paste error
8912         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
8913         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
8914         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
8915         scopes
8916         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
8917         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
8918         are now changed to underscores in moduleName
8919
8920 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8921
8922         * as/mcs51/lkmem.c: better fix for bug #954173
8923
8924 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8925         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8926
8927         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
8928         * device/include/c8051f000.h,
8929         * device/include/c8051f120.h,
8930         * device/include/c8051f300.h,
8931         * device/include/c8051f310.h,
8932         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
8933         PWM16) and detab'ed
8934
8935 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8936
8937         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
8938         and mailing lists, doc'ed --no-peep-comments, removed reference
8939         to knoppix (newest version has no LyX/LaTeX), other minor changes
8940         * src/SDCCglue.c (glue): save 2 bytes stack space with
8941         option --main-return. The ljmp could probably be avoided too
8942
8943 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8944
8945         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
8946
8947 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8948
8949         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
8950         * src/SDCCopt.c (isLocalWithoutDef),
8951         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
8952         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
8953         (credit to Maarten Brock for patch #949363, on which this is based)
8954         * support/regression/tests/bug-751703.c: some test cases of extern used
8955         within inner scopes.
8956
8957 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8958
8959         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
8960         SPEC_STRUCT
8961         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
8962         struct definitions
8963         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
8964         dwWriteLabel): fix to create valid debugger symbols even when
8965         the module name has non-alphanumeric symbols in it
8966         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
8967         when a variable's allocation has been optimized away
8968
8969
8970 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8971
8972         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
8973         * src/hc08/main.c,
8974         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
8975         * src/mcs51/main.c,
8976         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
8977         * src/ds390/main.c,
8978         * src/z80/gen.c (z80_emitDebuggerSymbol),
8979         * src/z80/main.c,
8980         * src/pic/gen.c (pic14_emitDebuggerSymbol),
8981         * src/pic/main.c,
8982         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
8983         * src/pic16/main.c,
8984         * src/avr/gen.c (avr_emitDebuggerSymbol),
8985         * src/avr/main.c,
8986         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
8987         * src/xa51/main.c,
8988         * src/SDCCdebug.c (emitDebuggerSymbol),
8989         * src/SDCCdebug.h,
8990         * src/port.h: added a debugger struct to the port struct. Added a
8991         callback for defining debugger symbols
8992
8993         * src/SDCCast.c (createLabel),
8994         * src/SDCC.y (labeled_statement): mark all compiler generated labels
8995         with isitmp = 1
8996         * src/SDCCicode.h,
8997         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
8998         iCode back to the ast for the function
8999
9000         * src/hc08/ralloc.c (hc08_assignRegisters),
9001         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
9002         unneeded fields from the regs struct.
9003         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
9004         pushReg() & pullReg() functions instead of emitcode()
9005
9006         * src/hc08/gen.c (genLabel, genhc08Code),
9007         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
9008
9009         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
9010         debugger hooks
9011
9012         * src/hc08/gen.c (genEndFunction, genhc08Code),
9013         * src/hc08/gen.h,
9014         * src/mcs51/gen.c (genEndFunction, gen51Code),
9015         * src/mcs51/gen.h,
9016         * src/ds390/gen.c (genEndFunction, gen390Code),
9017         * src/ds390/gen.h,
9018         * src/z80/gen.c (genEndFunction, genZ80Code),
9019         * src/z80/gen.h,
9020         * src/z80/z80.h,
9021         * src/pic/gen.c (genEndFunction, genpic14Code),
9022         * src/pic/gen.h,
9023         * src/pic16/gen.c (genEndFunction, genpic16Code),
9024         * src/pic16/gen.h,
9025         * src/avr/gen.c (genEndFunction, genAVRCode),
9026         * src/avr/gen.h,
9027         * src/xa51/gen.c (genEndFunction, genXA51Code),
9028         * src/xa51/gen.h,
9029         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
9030         specific code to cdbFile.c and out of the backend code generators
9031
9032         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
9033         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
9034         starting address is now 0
9035
9036         * as/hc08/asm.h,
9037         * as/hc08/m08pst.c,
9038         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
9039         assembler directive for DWARF support
9040         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
9041
9042         * src/src.dsp,
9043         * src/Makefile.in,
9044         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
9045
9046 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9047
9048         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
9049         and inappropriate peephole optimization in jump tables
9050
9051 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9052
9053         * as/hc08/m08pst.c,
9054         * src/SDCCglue.c: sdccopt works for the hc08 port now
9055
9056 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
9057
9058         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
9059
9060 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9061
9062         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
9063
9064 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9065
9066         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
9067         rules
9068         * src/SDCCmain.c,
9069         * src/SDCCglobl.h,
9070         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
9071         comments from the peephole optimizer replacement rules
9072         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
9073         symbols
9074         * src/SDCCcse.c (updateSpillLocation),
9075         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
9076         equivalents
9077         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
9078         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
9079         objects far pointers
9080
9081 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9082
9083         * src/SDCCsymt.h: a missing part of my last change
9084         * src/pic/ralloc.c (regTypeNum),
9085         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
9086
9087 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9088
9089         * src/SDCCicode.h,
9090         * src/SDCCicode.c (aggrToPtrDclType),
9091         * src/SDCCptropt.h,
9092         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
9093         ptrPseudoSymConvert),
9094         * src/pic/ralloc.c (regTypeNum),
9095         * src/pic16/ralloc.c (regTypeNum),
9096         * src/hc08/ralloc.c (regTypeNum),
9097         * src/ds390/ralloc.c (regTypeNum),
9098         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
9099         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
9100
9101 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9102
9103         * link/z80/lkmain.c (afile),
9104         * as/hc08/lkmain.c (afile),
9105         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
9106         prevent a pointer problem when a filename has no directory and
9107         no extension specified.
9108
9109 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9110
9111         * link/z80/lkmain.c (afile): allow periods in directory names
9112         * link/z80/lkmain.c (afile),
9113         * as/mcs51/lkmain.c (afile),
9114         * as/hc08/lkmain.c (afile): allow linker script file to have an
9115         extension other than ".lnk"
9116         * link/z80/lklex.c (getfid),
9117         * link/z80/lkmain.c (parse),
9118         * as/mcs51/lklex.c (getfid),
9119         * as/mcs51/lkmain.c (parse),
9120         * as/hc08/lklex.c (getfid),
9121         * as/hc08/lkmain.c (parse): Support comments in the linker script
9122         file on lines by themselves and after filenames
9123
9124 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9125
9126         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9127
9128 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9129
9130         * src/z80/peeph-z80.def: removed some peephole rules that don't
9131         work with multibyte arithmetic (fixed bug #937126)
9132         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9133         to registers and not global variables
9134         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9135         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9136         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9137         checking for assignments not internally generated (fixed bug #931895)
9138         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9139         structure member (fixed bug #930072)
9140
9141 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9142
9143         * src/SDCCmain.c (linkEdit),
9144         * src/hc08/main.c (_hc08_parseOptions),
9145         * as/hc08/Makefile.in,
9146         * as/hc08/aslink.h,
9147         * as/hc08/asm.h,
9148         * as/hc08/m08pst.c,
9149         * as/hc08/lkrloc.c (relr, rele),
9150         * as/hc08/lkarea.c (lnkarea)
9151         * as/hc08/lkmain.c (afile, parse),
9152         * as/hc08/lkelf.c: support for ELF output
9153         * as/hc08/lks19.c (s19),
9154         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9155
9156 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9157
9158         * as/mcs51/lkihx.c: Fixed bug #899105.
9159
9160 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9161
9162         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9163         .dsp files from Unix to DOS.
9164
9165 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9166
9167         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9168         function pointers; we have been compliant for several months now.
9169         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9170         change that was accidently commented out
9171         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9172         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9173         bug #922319
9174
9175 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9176
9177         * src/hc08/gen.c: output of all of the internal debugging information
9178         is now controlled by the D() macro; it is disabled by default
9179
9180 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9181
9182         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9183         harder to keep the same registers during a CAST iCode
9184         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9185         long via int can be done in a single cast, if the signedness is
9186         correct.
9187         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9188         putchar() in tinibios.c in ds390's library
9189
9190 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9191
9192         * src/SDCCast.c (decorateType): fixed bug #898889,
9193         cast result of a literal complement too
9194         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9195         fixed check for bitfields
9196
9197 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9198
9199         * src/SDCCicode.c (geniCodeLogic): made it static,
9200         (geniCodeLogicAndOr): added in order to fix bug #905492,
9201         (ast2iCode): fixed bug #905492
9202         * support/regression/tests/bug-905492.c: added
9203         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9204         (processParms): fixed bug #927659: don't copy parms, this will clear
9205         decorated flag
9206         * support/regression/tests/bug-927659.c: added
9207
9208 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9209
9210         * src/SDCCast.c (addCast): don't cast float to char
9211         * device/lib/libsdcc.lib: added _memmove
9212
9213 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9214
9215         * device/lib/large/Makefile: fixed parallel execution by
9216         replacing `make` by `$(MAKE)`
9217
9218 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9219
9220         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9221         offsets (fixes bug #923936)
9222
9223 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9224
9225         * device/lib/small/Makefile: fixed parallel execution by
9226         replacing `make` by `$(MAKE)`
9227
9228 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9229
9230         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9231
9232 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9233
9234         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9235         * src/regression/Makefile: Regression test was not running.
9236
9237 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9238
9239         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9240         complement if possible
9241         * src/SDCCval.c (valComplement),
9242         * src/SDCCicode.c (operandOperation): fixed complement of literal
9243         * support/regression/tests/onebyte.c (testComplement): added
9244
9245 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9246
9247         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9248         return an optimized tree; actually replace actParm with the new tree
9249         * src/SDCCast.h: added some parantheses to remove side effects
9250         * support/regression/tests/bug-920866.c
9251
9252 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9253         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9254         Bit operands were not being handled properly in the pic14 port.
9255         (now src/regression/add.c passes again).
9256
9257 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9258
9259         * src/SDCC.y (labeled_statement): case and default no longer require
9260         a following statement (RFE #893037)
9261
9262 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9263
9264         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9265         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9266         disabled (fixes bug #916294)
9267         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9268         "mov a,acc"; patch provided by Lenny Story
9269         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9270
9271 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9272
9273         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9274         functions
9275         * src/ds390/gen.c (genFunction, genEndFunction),
9276         * src/ds390/ralloc.c (ds390_assignRegisters),
9277         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9278         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9279         pushed if there are parameters passed on the stack. Also, a cleaner
9280         way to decide if r0/r1 should be pushed/popped. (Together they fix
9281         bug #918693)
9282
9283 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9284
9285         * doc/sdccman.lyx,
9286         * device/lib/mcs51/crtpagesfr.asm,
9287         * device/lib/mcs51/crtxinit.asm,
9288         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9289         to avoid confusion with Si Lab's SFRPAGE register.
9290
9291 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9292
9293         * src/SDCCglue.c (emitMaps): allow public sfr variables
9294         * src/SDCCglue.c (initialComments): include compiler build date
9295         with compiler version and put the timestamp of the generated
9296         assembly file on a serperate line to be less confusing.
9297         * src/port.h: added genInitStartup hook
9298         * src/avr/main.c,
9299         * src/ds390/main.c,
9300         * src/hc08/main.c,
9301         * src/pic/main.c,
9302         * src/pic16/main.c,
9303         * src/xa51/main.c,
9304         * src/z80/main.c: genInitStartup initialize as NULL (default to
9305         historical behaviour)
9306         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9307         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9308         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9309         library instead of hard coding it into the compiler.
9310         * support/regression/ports/mcs51-stack-auto/spec.mk,
9311         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9312         * device/lib/mcs51/Makefile,
9313         * device/lib/small/Makefile,
9314         * device/lib/large/Makefile,
9315         * device/lib/mcs51/crtpagesfr.asm,
9316         * device/lib/mcs51/crtstart.asm,
9317         * device/lib/mcs51/crtxclear.asm,
9318         * device/lib/mcs51/crtxinit.asm,
9319         * device/lib/mcs51/crtclear.asm,
9320         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9321         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9322         and into user configurable files.
9323         * device/lib/clean.mk: clean mcs51 directory too
9324         * support/regression/tests/longlit.c: added static to T1 declaration
9325         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9326         accesses in the initialization code
9327
9328 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9329
9330         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9331         OSCTRIMVAL as noted in bug #916008
9332
9333 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9334
9335         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9336         in loops with multiple exits (reported as incorrect registers
9337         used by Martin Helmling in Sdcc-user list)
9338
9339 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9340
9341         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9342         made ds390 register extensions look less like error messages
9343
9344 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9345
9346         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9347         reported by Adam Wozniak in Sdcc-user list
9348
9349 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9350
9351         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9352         arithmetic optimizations, added debug output
9353
9354 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9355
9356         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9357         * sdcc.spec: updated and split sdcc into 3 rpms
9358         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9359         needed for literals of LEFT_OP and '+'
9360         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9361         introduced RESULT_TYPE_NOPROM
9362         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9363         left shift
9364         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9365         limited promotion to int only for '*'
9366         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9367
9368 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9369
9370         * src/pic16/gen.c (genSkip),
9371         (genc16bit2lit), (gencjneshort): commented out
9372         (is_LitOp): new helper function, checks operand type
9373         (genCmpEq): rewritten
9374
9375 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9376
9377         * support/regression/tests/bug-908454.c: added
9378
9379 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9380
9381         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9382         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9383         (geniCodeCast): cosmetic, don't preserve bit storage class
9384         (geniCodeLeftShift): added promotion
9385         (geniCodeLogic): fixed regression
9386         * src/SDCCsymt.c (computeTypeOr): accept bits too
9387         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9388
9389 2004-03-07  Borut Razem <borut.razem AT siol.net>
9390
9391         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9392
9393 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9394
9395         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9396         version of pic16_genPackRegisters which does not check if ic is a
9397         CAST operator,
9398         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9399         function cause string1.c regression test fails
9400
9401 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9402
9403         * sim/ucsim/configure.in,
9404         * sim/ucsim/configure,
9405         * sim/ucsim/doc/Makefile.in: use docdir
9406         * src/SDCC.y: fixed sbit atrributes
9407         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9408         * src/SDCCast.c (decorateType): |^& need special promotion handling
9409         * src/SDCCast.h,
9410         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9411         * src/SDCCsymt.h (computeType),
9412         * src/SDCCicode.c: computeType() needs op
9413         * src/SDCCsymt.c (checkTypeSanity),
9414         * doc/sddman.lyx: "plain" bitfields are unsigned
9415         * src/SDCCsymt.c (computeTypeOr): added
9416         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9417         |^& ops
9418         * src/SDCCval.c (val*): computeType() needs op
9419         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9420         * support/regression/tests/onebyte.c: added tests for |^&
9421
9422 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9423
9424         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9425         for writing icode into asm output.
9426
9427 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9428
9429         * src/pic16/device.c: added some debug lines enabled
9430         with macro DEBUG_CHECK,
9431         * src/pic16/genarith.c: more debug in genPlus,
9432         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9433         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9434         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9435         * (aopForSym): onStack symbols are re-placed in data memspace,
9436         and onStack flag is cleared,
9437         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9438         copy temporary pcodeop,
9439         * (genPcall): added warning for not updating PCLATU,
9440         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9441         always true for pic16 port,
9442         * (genMultOneWord): NEW, supports integer multiplication,
9443         * (genMult): modified to call genMultOneWord,
9444         * (ifxForOp): added warning when return NULL,
9445         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9446         flag is set before call to operandFromSymbol for implicit
9447         added structures,
9448         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9449         options.intlong_rent are set by default,
9450         * (_hasNativeMulFor): modified to allow port generation of integer
9451         multiplication,
9452         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9453         set regtype to REG_SFR for all registers, restricting seting the
9454         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9455
9456 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9457
9458         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9459         more than 500 times in the regression tests
9460
9461 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9462
9463         * support/Util/SDCCerr.h,
9464         * support/Util/SDCCerr.c,
9465         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9466         enumerator_list),
9467         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9468         for symbol conflicts.
9469         * support/valdiags/tests/enum.c,
9470         * support/valdiags/tests/tentdecl.c,
9471         * support/valdiags/tests/struct.c: expect possible error messages
9472         referring to original symbol definitions.
9473         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9474         * src/SDCCsymt.h,
9475         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9476
9477 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9478
9479         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9480
9481 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9482
9483         * src/pic16/ralloc.c (newReg): fixed bug #908929
9484
9485 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9486
9487         * src/ds390/gen.c: added missing #include "main.h"
9488
9489 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9490
9491         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9492         checking if symbol is already in set,
9493         * src/pic16/device.h: prototype for checkAddSym,
9494         * src/pic16/gen.c: (_G): added entry interruptvector,
9495         * (assignResultValue): removed some commented out lines,
9496         * (genFunction): check for ISR via sym->type, absolute section for
9497         interrupt code is created via a new pBlock, the goto instruction is
9498         placed now correctly at the interrupt vector position, changed all
9499         references from ivec to _G.interruptvector,
9500         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9501         is the interrupt is a high priority one, same for return from ISR,
9502         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9503         externs to calls of checkAddSym,
9504         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9505         pic16_pcode_verbose flag is set,
9506         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9507         * src/pic16/pcoderegs.c: message about how many registers are saved
9508         will only be emitted if pic16_pcode_verbose flag is set,
9509
9510 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9511
9512         * src/ds390/ralloc.h,
9513         * src/ds390/ralloc.c (ds390_regWithIdx),
9514         * src/ds390/gen.c (emitcode),
9515         * src/ds390/main.h,
9516         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9517         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9518         ds390operandCompare, getRegsRead, getRegsWritten,
9519         initializeAsmLineNode): customized instruction size calculation for
9520         ds390, started basis for some register optimizations
9521         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9522         corresponding assembly output
9523         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9524         missing push/pop of r0/r1. Optimized push/pops
9525
9526 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9527
9528         * src/mcs51/main.c (instructionSize): fixed ACALL size
9529         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9530
9531 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9532
9533         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9534         the sorting of rlist with NULL elements
9535         * (print_idataType, print_idata): NEW to create idata sections
9536         * src/pic16/device.h: idataSymSet new variable
9537         * src/pic16/gen.c (genFunction): fixed some bugs in string
9538         comparing, improved the absolute section creation for ISRs,
9539         added FSR0L/FSR0H in registers that are saved in an ISR,
9540         * (genInline): fixed the processing of inline snippets,
9541         now they undergo no process by the peephole optimizer
9542         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9543         are placed in idataSymSet,
9544         * (pic16emitStaticSeg): extern symbols are added in externs,
9545         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9546         switching when aboslute variables are placed in access bank memory
9547         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9548         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9549         commented out with #if,
9550         * (pic16_packRegisters): reintroduce the check for CAST because some
9551         symbols are not correctly handled,
9552         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9553         pCodeInstruction instead of pCode,
9554         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9555         pCodeAsmDir definition,
9556         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9557         directive, then the argument directive is emitted without the leading
9558         tab, hack for inline labels which must be in the first column,
9559         * (compareLabel,pic16_findNextInstruction),
9560         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9561         * (insertBankSwitch): modified for the new pCodeAsmDir,
9562
9563 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9564         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9565
9566         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9567         instance,
9568         * (pushSide): commented out with #if,
9569         * (assignResultValue): fixed some typos in saving
9570         registers,
9571         * (genPcall): FIXED and sync'ed with genCall,
9572         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9573         * (genNearPointerGet): fixed to handle some more cases,
9574         implementation scheme via table reads,
9575         * (genConstPointerGet): modified to access code memory correct,
9576         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9577         and improved to handle some cases
9578         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9579         instead of "RETLW" for init data
9580         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9581         not IN_DIRSPACE, work around to reduce bank switching when aboslute
9582         variables are placed in access bank memory (<0x80 and >=0xf80),
9583         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9584         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9585         TBLWT_POSTDEC,TBLWT_PREINC
9586         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9587         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9588         directives
9589         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9590         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9591         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9592         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9593
9594 2004-02-29  Borut Razem <borut.razem AT siol.net>
9595
9596         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9597         support/Util/findme.h, support/Util/system.h: enhance binary relative
9598         search for lib and include by using findProgramPath()
9599
9600 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9601
9602         * src/SDCCpeeph.h,
9603         * src/SDCCpeeph.c (pcDistance),
9604         * src/port.h,
9605         * src/mcs51/ralloc.h,
9606         * src/mcs51/ralloc.c (mcs51_regWithIdx),
9607         * src/mcs51/main.h,
9608         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9609         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9610         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9611         size calculation port specific, started basis for some register
9612         optimizations
9613         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9614         missing push/pop of r0/r1. Optimized push/pops
9615         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9616         * device/lib/_modsint.c (_modsint),
9617         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9618         and stack version so regression tests pass
9619
9620 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9621
9622         * src/Makefile.in (dep): include SLIBOBJS in dependency check
9623         * src/SDCCast.c (decorateType): catch another small optimization
9624         with '?' operator
9625         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9626         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9627         modified to finally use computeType() all over SDCC,
9628         see Feature Request #877103
9629         * src/SDCCval.h: cosmetic
9630         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9631         valCompare(); regression tested in muldiv.c
9632         * support/regression/tests/muldiv.c (testMod): mod sign follows
9633         dividend only
9634
9635 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9636
9637         * src/SDCCast.c (decorateType): fixed bug #902362
9638         * doc/INSTALL.txt: fixed install instructions for win32
9639
9640 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9641
9642         * device/include/Makefile.in (install): fixed by replacing spaces
9643         by tabs
9644         * doc/README.txt,
9645         * doc/INSTALL.txt: updated for release
9646         * doc/sdccman.lyx: added warning for --xstack being buggy
9647
9648 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9649
9650         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
9651         to eliminate build warnings.
9652         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9653
9654 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9655            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9656
9657         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9658         removed -penable-stack, added comment for stack pragma, added
9659         warning for not initializing the stack/frame registers, removed
9660         comment at interrupts section
9661
9662         Stack is made permanent, there is no ability to disable stack usage.
9663         * src/pic16/device.h,
9664         * src/pic16/device.c: removed all references to USE_STACK macro,
9665         * src/pic16/device.c (pic16_dump_section): when no elements in
9666         rlist, free rlist before return,
9667         * (pic16_dump_int_registers): NEW, internal registers are a new set
9668         of general purpose registers reused by each function,
9669         * (checkAddReg): returns 1 if registers is added to set,
9670         * (pic16_groupRegistersInSection): when a registers is of type
9671         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9672         * src/pic16/device.h: memRange and Assigned Memory are deleted,
9673         SRCASECMP macro is moved here from device.c
9674         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9675         PO_PCLATU, PO_PRODL, PO_PRODH,
9676         * (pic16_pCodeOpType, genMinus,
9677         changed compares to "a" register, with AOP_ACC,
9678         * (pic16_genPlus): fixed some bugs and indented properly,
9679         * (pic16_addSign): changed size to size+offset in the MOVWF
9680         instruction,
9681         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9682         multiply 8-bit operand by literal, result is 8-bit,
9683         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9684         multiply 2 8-bit operand, result is 8-bit,
9685         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9686         genUMult8X*_16,
9687         * src/pic16/gen.c: changed accUse to contain WREG only,
9688         * (pic16_emitcomment): renamed to pic16_emitpcomment,
9689         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9690         true, do not use immediate addressing any more unless sym is a
9691         pointer in codespace,
9692         * (aopForRemat): do not use immediate addressing when symbol not in
9693         codespace and when symbol's address is requested,
9694         * (aopOp): for-loop in if(sym->accUse) is modified for the new
9695         accUse size (= 1),
9696         * (aopGet): added case for AOP_ACC and don't return "accumulator
9697         bug" but WREG instead,
9698         * (popGetTempReg): pushes contents of temporary register in stack,
9699         * (popReleaseTempReg): pops contents of temporary register from
9700         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9701         * (pic16_popGet): separated case AOP_ACC to return register WREG
9702         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9703         or PO_IMMEDIATE and initializes their instance/offset appropriately,
9704         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9705         the use of immediate pointers to certain cases only.
9706
9707         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9708         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9709         * (assignResultValue, genCall, genRet): modified to use the new
9710         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9711         genPcall is still broken,
9712         * (genFunction): added code to create 'A' type pBlocks when
9713         interrupt functions are generated, code not extensively tested yet,
9714         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9715         * (genEndFunction): modified so ISRs pop stored registers from stack,
9716         * (genMultOneByte): cleanup,
9717         * (AccRsh): added flag andmask, to and result with appropriate mask,
9718         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9719         * (genDataPointerGet): fixed and reenabled its use,
9720         * (genNearDataPointerGet): bugs fixed,
9721         * (genDataPointerSet): bugs fixed,
9722         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9723         pic16_DumpSymbol, pic16_DumpOp,
9724         * src/pic16/genutils.h: function prototypes for the above functions,
9725         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9726         pointers,
9727         * (pic16emitRegularMap): many many many improvements, but needs a
9728         major cleanup,
9729         * src/pic16/main.c: enable_stack in pic16_options is removed,
9730         * (_pic16_parseOptions): removed command line options -penable-stack,
9731         * (_process_pragma): emit stack symbol only when stack pragma is
9732         processed,
9733         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9734         redirected to FSR0L/FSR0H pair,
9735         * (pic16_get_op, pic16_get_op2): modifications and improvements,
9736         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9737         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9738         for immediates,
9739         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9740         * (dumpPicOptype): NEW,
9741         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9742         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9743         with movff instruction,
9744         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9745         added pic16_int_regs, some packRegsFor* functions are commented out,
9746         because produce errors,
9747         * src/pic16/NOTES: minor modifications
9748
9749 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9750
9751         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9752         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9753         --pack-iram.
9754         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9755         * as/mcs51/lkaomf51.c: fixed bug #895763
9756
9757 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9758
9759         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9760
9761 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9762
9763         * doc/sdccman.lyx: added details about the HC08 storage classes and
9764         interrupts, fixed the register usage info for z80 & gbz80
9765
9766 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9767
9768         * doc/sdccman.lyx: added more pic16 port documentation
9769         * device/include/pic16/: added header pic18fregs.h
9770
9771 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9772
9773         * doc/sdccman.lyx: added Vangelis' contribution
9774
9775 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9776
9777         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9778         extend to the next CALL or PCALL, not just to the next CALL.
9779
9780 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9781
9782         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9783
9784 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9785
9786         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9787         bug #895752 and a better fix for bug #716790
9788
9789 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9790
9791         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9792
9793 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9794
9795         * doc/sdccman.lyx: minor changes, minor changed
9796
9797 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9798
9799         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9800         which can't handle SDCC_NEWONEBYTEOPS,
9801         (geniCodeMultiply): removed conversion from mult to shift for pic14
9802         and pic16
9803
9804 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9805
9806         * src/hc08/gen.h,
9807         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
9808         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
9809         thus fixing bug #895406
9810
9811 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
9812
9813         * device/lib/_modsint.c,
9814         * device/lib/_modslong.c: sign follows divisor only
9815         * src/hc08/gen.c (genMultOneByte): if result size is 1,
9816         signs or signedness can be ignored
9817         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
9818         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
9819         added optimization for IFX,
9820         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
9821         arguments;
9822         reenabled optimization for IFX, which was removed on 2004-01-11
9823         * src/SDCCast.h: added return type IFX
9824         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
9825         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
9826         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
9827         SDCC_OLDONEBYTEOPS selects the old behaviour
9828         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
9829         changed again and commented promotion rule
9830         * src/SDCCval.c (valDiv): promotion no longer necessary
9831         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
9832         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
9833         rewritten
9834         * support/regression/tests/onebyte.c: added
9835
9836 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
9837
9838         * gen.c (genInline): reverted to old code for assemnling inline
9839         code because of bug reported James Chadd
9840
9841 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
9842
9843         * ralloc.h: missing declarations from previous patch,
9844         seems that patch for ralloc.h was never applied, fixed
9845
9846 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9847            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9848
9849         * pcode.c,
9850         * pcode.h,
9851         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
9852         indirect addressing. Marked FSR0 as deprecated
9853         * gen.c (pointerCode): commented out, not needed now
9854         (pic16_popGet2p): new MOVFF helper function
9855         (genGenPointerGet),
9856         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
9857         (shiftRLong): removed duplicate debugging info
9858
9859 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9860
9861         * src/ds390/gen.c (genNearPointerGet),
9862         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
9863         optimization with bits, but not bitfields.
9864         * src/ds390/ralloc.c (packRegisters),
9865         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
9866
9867 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9868
9869         * src/SDCCcse.c (algebraicOpts): copy operands before modification
9870
9871 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9872
9873         * src/SDCCsymt.h,
9874         * src/SDCCicode.c (operandFromSymbol),
9875         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
9876         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
9877         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
9878         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
9879         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
9880         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
9881         bug #892038
9882         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
9883         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
9884         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
9885         * src/SDCCsymt.c (newSymbol),
9886         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9887         enumerator_list),
9888         * src/SDCCval.h,
9889         * src/SDCCval.c (newiList): fixed bug #885705
9890
9891 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9892
9893         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
9894         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
9895
9896 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9897
9898         * device/include/c8051f120.h,
9899         * device/include/c8051f300.h,
9900         * device/include/c8051f310.h: added/updated header files for Silicon
9901         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9902         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
9903         in new section Submitting patches
9904
9905 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9906
9907         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
9908         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9909         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9910         genGenPointerSet),
9911         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
9912         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9913         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9914         genGenPointerSet),
9915         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
9916         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9917         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9918         genGenPointerSet),
9919         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
9920         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9921         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9922         genGenPointerSet): fixed bug #892400
9923         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
9924         to eliminate build warnings.
9925         * src/SDCCast.c (processParms),
9926         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
9927         fixed bug 751859
9928         * support/valdiag/valdiag.py: added GCC to the list of defines active
9929         when compiling with gcc
9930
9931 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9932
9933         * support/Util/SDCCerr.h,
9934         * support/Util/SDCCerr.c,
9935         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
9936         with an incomplete type (fixed bug #883734)
9937         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
9938
9939 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9940
9941         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
9942
9943 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9944
9945         * src/SDCCast.c (decorateType),
9946         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
9947         function pointer implementation
9948         * support/regression/tests/funptrs.c: added tests to verify both forms
9949         of function pointers work correctly. Added tests to verify parameters
9950         are passed in the correct order.
9951
9952 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
9953
9954         * device.c (regCompare): registers are sorted by ascending
9955         address and increasing size,
9956         * main.c (_pic16_finaliseOptions): removed the declaration
9957         of compiler macro MCU. Now a macro of the format pic18fxxxx
9958         will be defined from the command line
9959
9960 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9961             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9962
9963         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
9964         PCOP_RLCF was overwritten!
9965         * gen.c (genSkip): commented out calls to pic16_emitcode,
9966         * (genCmpEQ): fixed "long" compares, only high word did get compared,
9967         * (genlshTwo),
9968         * (genRRC): added debugging info,
9969         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
9970         overwritten while shifting,
9971         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
9972         overwritten while shifting,
9973         * (AccLsh),
9974         * (AccRsh),
9975         * (shiftLLeftOrResult),
9976         * (shiftRLeftOrResult),
9977         * (shiftRLong),
9978         * (shiftLLong): Implemented with pic16_emitpcode
9979         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
9980         * (genLeftShift): Fixed bug, operand for shift by variable always
9981         was "and"ed with 0x0f,
9982         * (genLeftShiftLiteral),
9983         * (genrshTwo),
9984         * (genRightShiftLiteral): added debugging info,
9985         * (genrshFour): added comment,
9986         * (genRightShift): determined signedness from operand "left"
9987         instead of "result"
9988
9989 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9990
9991         * src/SDCCicode.c (geniCodeParms),
9992         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
9993         function pointers, fixed function pointer bugs #861242 and #861896
9994
9995 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9996
9997         * device/include/c8051f000.h,
9998         * device/include/c8051f120.h,
9999         * device/include/c8051f300.h: added header files for Silicon
10000         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
10001
10002 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
10003
10004         * src/SDCCast.c (processParams): added new type flow and restructured
10005         (gatherAutoInit): added new type flow
10006         (addCast): cosmetic changes
10007         (getLeftResultType): added new type flow for array indices, patch
10008         provided by Stas, see FR #877103
10009         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
10010         array index patch by Stas
10011         * src/SDCCast.h: added prototype getResultTypeFromType()
10012         * src/SDCCval.h,
10013         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
10014         * src/pic/glue.c (pic14emitStaticSeg),
10015         * src/pic16/glue.c (pic16emitStaticSeg),
10016         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
10017         for initialization of symbols
10018         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
10019         * support/Util/SDCCerr.h:
10020         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
10021         * .version: bumped version number to 2.3.8
10022         * device/include/Makefile.in (install),
10023         * doc/Makefile (install): changed to 'rm `find ...`' construct to
10024         avoid warnings
10025
10026 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
10027
10028         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
10029         Slade Rich fixed an optimization bug
10030         * src/pic/pcodepeep.c,
10031         * src/pic/pcoderegs.c
10032         * doc/Makefile (install): added test for directory
10033
10034 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10035
10036         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
10037         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
10038         * src/pic/ralloc.c (getRegPtr, getRegGpr),
10039         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
10040         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
10041         * as/mcs51/asexpr.c (term),
10042         * as/hc08/asexpr.c (term): fixed bug #887146
10043
10044 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10045
10046         * src/z80/gen.c (genMult): handle single byte result product
10047         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
10048         DUMMY_READ_VOLATILE (fixed bug #886367)
10049
10050 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10051
10052         * support/regression/tests/libmullong.c: fixed logic, on little endian
10053         hosts we ended without a mullong_wrapper()
10054
10055 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10056
10057         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
10058         virus/worm forged address usage.
10059
10060 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10061
10062         Fixed promotion, it should be done on AST level:
10063         * src/SDCCast.c (addCast): added promotion to int
10064         (decorateType): updated call to upCast()
10065         * src/SDCCicode.c (geniCodeLeftShift): removed call to
10066         usualUnaryConversions()
10067
10068 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
10069
10070         * support/regression/tests/literalop.c (mulWrapper): Added a
10071         wrapper to remove integer overflow warnings.
10072
10073         * support/regression/tests/float_trans.c: Made work on host.
10074
10075         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
10076         location of sz80.
10077
10078         * support/regression/generate-cases.py (main): Changed from inline
10079         to a main method.
10080
10081         * doc/Makefile (install): Changed to depth first to get rid of
10082         missing directory install warning.
10083
10084         * as/Makefile (install-doc): Made work on Mac.
10085
10086 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
10087
10088         * src/SDCCast.c: added an additional type flow in decorateType() of
10089         opposite direction, see feature request #860006; it's enabled at runtime
10090         by setting the environment variable SDCC_NEWTYPEFLOW
10091         * src/SDCCast.h: changed prototype of decorateType()
10092         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
10093         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
10094         'char' to 'int' can be omitted, if both operands are 'unsigned char';
10095         see feature request #877103
10096         * src/SDCCval.c: updated call of decorateType()
10097         (valBitwise): fixed bug #882876
10098         (valMinus): added promotion
10099         (valLogicAndOr): result is unsigned
10100         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
10101         * src/SDCCsymt.c (computeType),
10102         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
10103         must not cause an unsigned operation
10104         * src/pic/glue (pic14emitRegularMap),
10105         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
10106
10107 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
10108
10109         * src/pic/pcode.c (PCodeID): commented out left over debug code
10110
10111 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10112
10113         * support/valdiag/tests/overflow.c: added shift tests
10114         * src/pic/device.c,
10115         * src/pic/gen.c,
10116         * src/pic/gen.h,
10117         * src/pic/glue.c,
10118         * src/pic/main.c,
10119         * src/pic/pcode.c,
10120         * src/pic/pcode.h,
10121         * src/pic/pcodepeep.c,
10122         * src/pic/pcoderegs.c,
10123         * src/pic/ralloc.c,
10124         * src/pic/ralloc.h: applied patch from Slade Rich;
10125         added support for multiple code pages and multiple RAM banks on the
10126         PIC 14 port. The ASM files now no longer simply assume all the
10127         code / RAM are in the same page / bank. This means the linker can
10128         safely allocate code/RAM of separate ASM files to different pages/banks.
10129         * doc/sdccman.lyx: added Slade's tips
10130         * src/mcs51/peeph.def: fixed bug #880768
10131
10132 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10133
10134         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10135         * src/SDCCast.c (decorateType): fixed bug #880197
10136
10137 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10138
10139         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10140         getopt.h.
10141
10142         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10143         strtof is not part of C89 and isn't included with Mac OS X.
10144
10145 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10146
10147         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10148         shiftL2Left2Result): fixed bug #879326
10149         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10150         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10151         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10152         address fetch for clr instruction
10153         * device/lib/hc08/_mulint.c: created optimized assembly version
10154         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10155
10156 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10157
10158         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10159         proposed in FR #877103
10160
10161 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10162
10163         * src/SDCCval.c (cheapestVal): added missing checks
10164         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10165         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10166
10167 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10168
10169         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10170         equal operands
10171
10172 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10173
10174         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10175         loaded with the linker search paths (-L arguments) and the libraries
10176         to be linked with the current source (-l arguments). Changes
10177         currently will affect only the pic16 port.
10178         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10179         include path the port specific paths and port specific libraries,
10180         * gplink command now contains the $3 argument,
10181         * src/pic16/device.h,
10182         * src/pic16/device.c,: structure PIC_device is made public and
10183         renamed to PIC16_device, the same for variable Pics which is renamed
10184         to Pics16. Updated all references to them.
10185         * src/pic16/glue.c (pic16glue): corrected bug with code
10186         initialization which bypassed the variable initializations block.
10187
10188         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10189         COMPILE_FLAGS and added the --nostdinc option
10190
10191 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10192
10193         * device/include/mc68hc908jb8.h: Register defs for another member
10194         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10195
10196 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10197
10198         Documenting changes from previous commits.
10199         * configure.in (version 1.56),
10200         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10201         when generating output files to configure the pic16 library,
10202         but now I've commented it out, since gputils aren't installed in the
10203         SF compile farm, so library won't compile
10204
10205         * device/lib/Makefile.in (version 1.56): initially I've added in
10206         target 'all' the prerequestive 'model-pic16' so it compiled the
10207         pic16 library, but now I've commented it out for the same reasons
10208         above,
10209         * added targets 'model-pic16' and 'objects-pic16' to compile the
10210         library
10211         * added target 'port-specific-objects-pic16' to handle the
10212         generated libraries and copy them into the build/ directory
10213         * added target 'clean-intermediate-pic16' to clean intermediate
10214         files into pic16 directory
10215         * in target 'installdirs' added line to create directory pic16 in
10216         the installation path
10217
10218         * device/include/Makefile.in (version 1.11): in target 'install'
10219         added lines to copy all header files to installation path,
10220         * in target 'installdirs' added line create directory for pic16
10221         headers in the installation path
10222
10223 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10224
10225         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10226          a function call
10227
10228 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10229
10230         * configure,
10231         * device/lib/configure.in,
10232         * device/lib/configure: fixed for autoconf 2.57
10233
10234 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10235
10236         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10237         option so that it actually works. Made it specific to the z80, since
10238         the gbz80 doesn't have these kinds of I/O ports.
10239
10240 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10241
10242         * device/include/z180.h,
10243         * device/lib/_memcpy.c,
10244         * device/lib/_memmove.c,
10245         * device/lib/_mulint.c,
10246         * device/lib/ser_ir.c,
10247         * device/lib/ser_ir_cts_rts.c,
10248         * device/lib/_strcmp.c,
10249         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10250         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10251         portmode; added deprecation warning for bank= and protmode= forms.
10252         Also, guard against buffer overflow.
10253         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10254
10255 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10256
10257         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10258         changed interrupt vector table generation to only emit declared vectors.
10259         * device/include/Makefile.in: added missing backslash
10260         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10261
10262 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10263
10264         Mainly changes to support compilation of the device libraries
10265         * src/pic16/device.c: stack is allocated via symbol and not
10266         via literal number. The symbol is placed in the corresponding
10267         position of the data ram
10268         * (pic16_dump_section): relocatable and absolute uninitialized
10269         data are now emitted in sorted order to reduce section naming,
10270         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10271         weren't marked as being in the access bank,
10272
10273 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10274
10275         Added portion of GNU PIC Library under the directory
10276         device/include/pic16 and device/lib/pic16. These files
10277         contain the declarations of SFRs for the PIC18Fxx2 devices.
10278         The directory is initialized via configure from toplevel.
10279
10280 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10281
10282         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10283         the spilllocations to be compared correctly
10284
10285 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10286
10287         * src/SDCCast.c (decorateType): fixed bug introduced today
10288
10289 2004-01-12  Borut Razem <borut.razem AT siol.net>
10290
10291         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10292         doc/sdccman.lyx: upper case pragmas are deprecated
10293
10294 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10295
10296         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10297         in simpler and even better code
10298
10299 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10300
10301         * src/SDCCicode.c (operandOperation): fixed bug #874819
10302         * src/SDCCast.c (decorateType): fixed
10303         char foo (unsigned long ul) { return ul > 0; }
10304
10305 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10306
10307         * doc/sdccman.lyx: Moved and added some sections, small changes
10308         all over. Telling LaTeX to be less strict with word spacing
10309         to better keep the right margin. Changed some notes about
10310         maintainance of the ports in section 3.2.1 - is it OK like this?
10311
10312 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10313
10314         SDCC source changes:
10315         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10316         convilong): modified to inform the pic16 port that builtin functions
10317         are external
10318
10319         PIC16 PORT specific changes:
10320         * src/pic16/device.c pic16_dump_equates() added,
10321         processor registers declared internally by the port are emitted in
10322         the translation as equates,
10323         * src/pic16/gen.c: inline code is passed unprocessed to the
10324         translation,
10325         * (pic16_popGetLit2): fnuction modified to take second operand as
10326         pCodeOp pointer and not as literal,
10327         * (popRegFromIdx): prefixed with pic16_,
10328         * (pic16_popCombine2): modified to receive already allocated pCode
10329         operands,
10330         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10331         * (genFunction): initializes local stack frame and pushes on stack
10332         all the registers used by this function,
10333         * (genEndFunction): restores all registers from stack and restores
10334         stack frame,
10335         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10336         improvements,
10337         * (pic16glue): changed the program startup sequence,
10338         * added new dbName code 'A' for functions placed in absolute section
10339         * src/pic16/main.c: added function attribute _naked,
10340         * added pragma 'code' to place a fnuction at an absolute address,
10341         * added command line arguments --debug-ralloc and --pcode-verbose,
10342         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10343         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10344         * (pic16_newpCodeOpLit2): modified to take the second operand as
10345         pCodeOp pointer,
10346         * (pic16_printpBlock): modified to emit each function in a separate
10347         section,
10348         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10349         UPPER for immediate operands,
10350         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10351         instruction,
10352         * src/pic16/peeph.def: all peepholes with movff are commented out,
10353         because there is a problem in the pcode peep optimizer,
10354         * src/pic16/ralloc.c: the register allocator can now reuse local
10355         function symbols for another function. This saves register usage.
10356         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10357
10358         Added file src/pic16/NOTES with information about program writing on
10359         the current port version.
10360
10361 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10362
10363         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10364         and peephole 252 (array access)
10365
10366 2004-01-09  Borut Razem <borut.razem AT siol.net>
10367
10368         * src/SDCCmain.c : fixed #872250: -l command line defined library
10369           files are scanned before standard library files
10370
10371 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10372
10373         * src/SDCCast.c (decorateType): fixed bug #874046
10374
10375 2004-01-09  Borut Razem <borut.razem AT siol.net>
10376
10377         * support/scripts/sdcc.nsi: remove previous installation
10378
10379 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10380
10381         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10382         bytes for last interrupt vector (mcs51)
10383         * sdcc.spec: fixed typo
10384
10385 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10386
10387         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10388         gen51Code): more efficient parameter receive for --model-large
10389         ("bug" #845294)
10390
10391 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10392
10393         * src/ds390/main.c,
10394         * src/z80/main.c: added missed needLinkerScript flags (more than
10395         one port structure defined in these file)
10396         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10397         bug #795325
10398
10399 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10400
10401         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10402         * src/port.h: added flag needLinkerScript in port->linker
10403         structure to inform whether to create a .lnk file or not,
10404         * src/avr/main.c,
10405         * src/ds390/main.c,
10406         * src/hc08/main.c,
10407         * src/mcs51/main.c,
10408         * src/pic/main.c,
10409         * src/pic16/main.c,
10410         * src/xa51/main.c,
10411         * src/z80/main.c: changed appropriately to configure
10412         needLinkerScript flag
10413         * src/pic/gen.c,
10414         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10415         * src/pic/glue.c: added variable udata_section_name to
10416         override default uninitialized data segment definition for
10417         devices only with SHAREBANK memory (reported from Erik Epetrich)
10418         * (pic14emitOverlay): modified to emit a commented overlay segment
10419         directive when no overlay data exist
10420         * (picglue): modified to emit uninitialized data segment
10421         according to udata_section_name
10422         * src/pic/main.c (_pic14_parseOptions): added command line
10423         options --udata-section-name=[name] to override default
10424         udata definition name
10425         * modified _linkCmd and _asmCmd to include compiler passed
10426         arguments via -W option
10427         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10428         object file from '.rel' to '.o' in port->linker structure,
10429         changed size of fptr from 2 to 3 in port structure
10430
10431 2004-01-07  Borut Razem <borut.razem AT siol.net>
10432
10433         * support/scripts/sdcc.nsi: update PATH
10434         * support/scripts/sdcc.ico: craeted
10435
10436 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10437
10438         * device/include/Makefile.in: fix install
10439         * doc/Makefile: fix install
10440
10441 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10442
10443         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10444         in bug #860505
10445         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10446         how the function variable allocation summary is displayed; also
10447         include information about variables allocated to the overlay
10448         segment
10449
10450 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10451
10452         * as/mcs51/lkmain.c: Help about -Y option
10453         * as/mcs51/lkarea.c: Fixed gcc warnings
10454
10455 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10456
10457         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10458         fixed warning
10459         * support/valdiag/tests/overflow.c: added
10460         * src/SDCCast.c (decorateType),
10461         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10462         LEFT_OP (left shift)
10463
10464 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10465
10466         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10467         (default behaviour).
10468
10469 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10470
10471         A python script to validate compiler diagnostic messages. It can be
10472         used to verify that sdcc complains about bad c source code and
10473         gives a good location of the error.
10474         * support/valdiag/Makefile,
10475         * support/valdiag/valdiag.py,
10476         * support/valdiag/tests/*
10477
10478 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10479
10480         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10481         * src/SDCCsymt.c (newEnumType),
10482         * src/SDCCsymt.h
10483         * support/Util/SDCCerr.c,
10484         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10485         enum related bugs.
10486         * support/regression/tests/enum.c: added test for enum values that
10487         require at least 2 bytes of storage.
10488
10489 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10490
10491         * src/common.h: added ifndef/define/endif macros
10492         around the header file.
10493         Bug reported from Jesus Calvino-Fraga
10494
10495 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10496
10497         * sdcc.spec: updated
10498         * device/include/Makefile.in: don't install CVS directories
10499         * device/lib/Makefile.in: added removal of CVS directories after install
10500         * doc/Makefile: fixed install, added local_icons
10501         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10502         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10503         * src/ds390/gen.c (genRightShift): fixed bug #870788
10504         * src/SDCCast.c (decorateType): fixed bug #870781
10505
10506 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10507
10508         PIC16 port related changes:
10509         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10510         added variable stackPos,
10511
10512         * gen.c: genCall, assignResultValue: added support for
10513         pushing/retrieving function parameters to/from stack,
10514         genFunction,genEndFunction: setup stack frame for the
10515         generated function,
10516         genAddrOf: will be changed according to bug 863624
10517
10518         * added files genutils.c and genutils.h which contain gen*
10519         debugged and optimised functions extracted from gen.c
10520
10521         * glue.c: added variable 'externs' which holds extern symbols,
10522         pic16emitRegularMap: is modified to properly handle relocatable
10523          symbols under the new scheme,
10524         pic16createInterruptVect: is modified
10525         pic16printPublics: is modified to emit 'global' assembler directives,
10526         added pic16_printExterns to print extern symbols,
10527         pic16glue: initializes stack/frame pointer in the beginning of
10528         the assembly output. Temporary hack, will be corrected later,
10529         because gplink yet does not support stack and SDCC does not
10530         yet support a type of crt0.o object to create the final binary.
10531
10532         * Removed many lines that contain 8051 legacy code.
10533         * The code is finally placed under a 'code' directive.
10534         * Added port specific options.
10535
10536         * _process_pragma: simplified since now we do not need *special*
10537         include file to define SFR registers. But a separate header
10538         will be needed. This will be developed later.
10539         * _pic16_parseOptions: added, parses port specific options:
10540         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10541         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10542         --preplace-udata-with=
10543
10544         * _pic16_setDefaultOptions: modified to initialize section names,
10545         but hack is temporarly out of order since it needs improvement.
10546         * _pic16_genAssemblerPreamble: configuration words are emitted by
10547         their address instead of their name. This part is incomplete and
10548         supports only the 18Fxx2 devices. Other devices will emit an error
10549         during assembly since they do not contain the same set of config
10550         registers
10551         * _pic16_genIVT: is modified,
10552
10553         * pcode.c: added definitions for some hardware registers that are needed
10554         for stack support
10555         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10556         All PCI entries are updated. Now LFSR is supported.
10557         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10558         * added pic16_newpCodeOpLit2 to support instructions with
10559         two literal arguments
10560         * pic16_pCode2str: corrected code that emits assembler instructions
10561         with two literal operands and those that have an access bit modifier
10562         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10563         this fixes a bug which caused some labels to be lost, when an
10564         assembler directive was added, i.e. banksel,
10565         * pic16_FixRegisterBanking: improved logic that causes the insertion
10566         of bank switching,
10567         * InlineFunction: functions that are called once, are not any more
10568         inlined. This can be a port option in the future,
10569
10570         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10571
10572         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10573         hold the corresponding uninitialized symbols,
10574         * pic16_allocProcessorRegister: registers have explicit marked the
10575         accessBank field,
10576         * pic16_allocInternalRegister: registers are explicit marked as
10577         not used,
10578         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10579         processing list, so bit registers were lost,
10580         *
10581
10582         * ralloc.h: added field 'accessBank' and original symbol operand
10583         in register definition,
10584         * removed the field isMapped from register definition,
10585
10586         ** Several functions have been removed from various sources:
10587         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10588         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10589         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10590         pic16_assignRelocatableRegisters
10591
10592         ** others have been introduced:
10593         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10594         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10595
10596 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10597
10598         * support/scripts/inc2h.pl: changed definition of BIT_AT
10599         to emit 'sbit at' instead of 'bit at'. This was a request.
10600
10601         PIC16 port related preliminary changes:
10602         * gen.c: prefixed function popRegFromString with
10603         pic16_ and all references to it corrected
10604         * pcode.c: all pic16_pc_* hardware registers prefixed
10605         with underscore (_),
10606         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10607         * ralloc.c: newReg(): when register is REG_SFR then
10608         set address to rIdx,
10609         pic16_allocProcessorRegister(): marks register wasUsed=0
10610         pic16_writeUsedRegs(): added a call to assign processor
10611         registers via pic16_assignFixedRegisters
10612
10613 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10614
10615         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10616         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10617         variables in unused register banks.  Also the SSEG is placed
10618         wherever there is enough space for it, and IDATA can be anywhere
10619         in internal RAM.  For now compile using -Wl-Y[stack_size].
10620         The mem file is different for this option as well, since it
10621         makes no sense of talking about DSEG lenght.
10622
10623 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10624
10625         * src/SDCClrange.c: fixed bug 869095 that caused segfault
10626         in certain cases, e.g. when ROM assignment, patch provided
10627         from Albert den Haan.
10628
10629 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10630
10631         Many signedness and type propagation fixes:
10632         * src/SDCCicode.c: made geniCodeCast() static
10633         replaced SPEC_ by IS_ (cosmetic)
10634         (operandOperation): fixed div and mod operation
10635         (usualBinaryConversions): added support for promotion of char
10636         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10637         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10638         (geniCodeAdd): an array index will stay unsigned, even if promoted
10639         from char to int
10640         (geniCodeArray): ditto
10641         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10642         * src/SDCCsymt.c (computeType): added more support for char;
10643         promotion of char is selectable by promoteCharToInt, fixed signedness
10644         for all cases
10645         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10646         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10647         * src/SDCCval (val*): replaced signedness calculation by
10648         computeType()
10649         rearranged if-branches (cosmetic)
10650         (valShift): added warning W_SHIFT_CHANGED
10651         (valCompare): fixed problem with different types
10652         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10653         * support/regression/tests/literalop.c: added many cases
10654         * support/regression/tests/ast_constant_folding.c: changed finally to
10655         'unsigned int'
10656         * .version: new year, new version: 2.3.7
10657         * src/SDCCmain.c (main): applied patch #866468
10658         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10659         provided by Scott Bronson
10660         * doc/sdccman.lyx: updated documentation for sdcdb
10661         updated and added chapter tips
10662
10663 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10664
10665         * src/SDCCsymt.h: missing from yesterday's commits
10666
10667 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10668
10669         * src/SDCC.y (struct_or_union_specifier),
10670         * support/Util/SDCCerr.c,
10671         * support/Util/SDCCerr.h: verify that struct & union tags are used
10672         as declared.
10673
10674 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10675
10676         * src/SDCCglobl.h: missing from yesterday's commits
10677
10678 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10679
10680         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10681         sft_attributes, struct_declaration, parameter_declaration,
10682         type_name, start_block, declaration_list),
10683         * src/SDCC.lex (check_type): support redefinition of typedef names
10684
10685 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10686
10687         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10688         aligned xdata arrays. Erik helped me with the if clause.
10689
10690 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10691
10692         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10693         warning
10694
10695 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10696
10697         * src/SDCCast.h,
10698         * src/SDCCast.c (newAst_),
10699         * src/SDCCicode.h,
10700         * src/SDCCicode.c (ast2iCode, newiCode),
10701         * src/SDCCglobl.h,
10702         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10703         expr, statement, expression_statement, selection_statement,
10704         iteration_statement, expr_opt, jump_statement): foundation for tracking
10705         sequence points
10706         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10707         point code too)
10708
10709 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10710
10711         * support/Util/SDCCerr.c,
10712         * src/SDCCast.h,
10713         * src/SDCCast.c (createCase, createDefault, decorateType),
10714         * src/SDCClabel.c (labelUnreach),
10715         * src/SDCC.y (labeled_statement, jump_statement): More improvements
10716         to error messages.
10717         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10718         (with thanks to Stas Sergeev)
10719         * device/include/time.h,
10720         * device/lib/time.c (CheckTime): suppress unreachable code warning
10721
10722 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10723
10724         * src/SDCCast.c (createIvalCharPtr),
10725         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10726         bug #753752)
10727         * support/regression/tests/nullstring.c: tests for these two bugs
10728
10729 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10730
10731         * support/Util/SDCCerr.h,
10732         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10733         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10734         about storage class and 'at' used inside struct or union
10735         * src/SDCCBBlock.c (iCodeFromeBBlock),
10736         * src/SDCCcse.c (ifxOptimize),
10737         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10738         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10739         printIval, emitStaticSeg, emitOverlay),
10740         * src/SDCClabel.c (deleteIfx),
10741         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10742         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10743         gatherAutoInit, processParms),
10744         * support/Util/SDCCerr.h,
10745         * support/Util/SDCCerr.c (werrorfl): Support for better error location
10746         reporting for post-parse errors.
10747
10748 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10749
10750         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10751         implicit casts via union; they don't work on big endian systems
10752         (possible fix for bug #861138)
10753
10754 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10755
10756         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10757         * src/mcs51/main.c: fixed the fix for bug #737001
10758
10759 2003-12-15  Borut Razem <borut.razem AT siol.net>
10760
10761         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10762
10763 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10764
10765         * support/makebin/makebin.c: put output in binary mode
10766
10767 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10768
10769         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10770         xdata and data memory on startup. Set the environment variable
10771         SDCC_NOGENRAMCLEAR to disable this.
10772         * src/mcs51/peephole.def,
10773         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10774         (allows non-interrupt and interrupt code to safely compete for a resource
10775         without the non-interrupt code having to disable interrupts)
10776
10777 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10778
10779         * src/SDCCicode.c (geniCodeAdd),
10780         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10781         with valFromType if type might be a pointer and host is big endian).
10782         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10783         types, not just integer types.
10784         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10785         multiply defined with mismatching "at" address.
10786
10787 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10788
10789         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10790         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10791         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10792         with embedded nulls (fixed bug #753752)
10793
10794 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10795
10796         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10797         Apparently this did not see much testing (endless loop)
10798
10799 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10800
10801         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10802
10803 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10804
10805         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
10806         gracefully handle NULL memmap pointers
10807
10808 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10809
10810         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
10811         instead of deleting the iCode when an operand is volatile
10812         * src/z80/gen.c (genDummyRead),
10813         * src/mcs51/gen.c (genDummyRead),
10814         * src/ds390/gen.c (genDummyRead),
10815         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
10816         not just IC_RIGHT
10817         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
10818         * src/SDCC.y: fixed bug #850420
10819
10820 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10821
10822         Applied z80 i/o port patch from Peter Townson and fixed some operators
10823         to better handle operands in A register.
10824         * device/include/z180.h
10825         * src/SDCC.y
10826         * src/SDCCglue.c
10827         * src/z80/gen.c
10828         * src/z80/gen.h
10829         * src/z80/main.c
10830         * src/z80/peeph-z80.def
10831         * src/z80/peeph.def
10832         * src/z80/z80.h
10833
10834 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10835
10836         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
10837
10838 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10839
10840         * device/lib/hc08/_mullong.c: Removed extra #endif
10841
10842 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10843
10844         * sim/ucsim/hc08.src/inst.cc,
10845         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
10846         carries from x to h
10847         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
10848         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
10849         * device/include/stdarg.h: fixed varargs for hc08
10850         * device/lib/Makefile.in,
10851         * device/lib/hc08/Makefile,
10852         * device/lib/hc08/_mulint.c,
10853         * device/lib/hc08/_mullong.c: fixed some endian problems
10854
10855 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10856
10857         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
10858         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
10859         * device/lib/_gptrget.c,
10860         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
10861
10862 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10863
10864         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
10865         * src/SDCCast.c (astErrors): fixed bug #846007
10866         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
10867
10868 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10869
10870         * src/SDCCast.c (decorateType): disabled a transformation I added in
10871         revision 1.188 (access to fields of a structure at an absolute address);
10872         it breaks with bitfields, extern declarations, and gcse analysis.
10873         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
10874         could be assigned through a pointer, so don't complain.
10875         * src/SDCCast.c (astErrors),
10876         * src/SDCCast.h,
10877         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
10878
10879 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
10880
10881         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
10882         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
10883         output of __config directives, since gpasm now supports them
10884         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
10885         pre-processor macro, i.e. -DMCU=p18f452
10886         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
10887         and modified to handle 'cast' icode similarly to '=' icode
10888         * src/pic16/device.h (typedef struct PIC_device): added field
10889         'extMIface' to indicate that chip has external memory interface
10890         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
10891         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
10892         18F8720
10893
10894 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10895
10896         * src/SDCC.y (pointer): fixed bug #846006
10897         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
10898         * src/SDCCast.c (decorateType): fixed bug #846009
10899         * src/ds390/peeph.def,
10900         * src/ds390/gen.c (genAnd, genOr),
10901         * src/mcs51/peeph.def,
10902         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
10903
10904 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10905
10906         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
10907         * src/SDCCdflow.c
10908         * src/SDCCcse.c
10909         * src/SDCCcse.h
10910         * src/SDCCBBlock.h
10911         * src/SDCCBBlock.c
10912
10913 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
10914
10915         fixed bug #845089
10916         * src/SDCCbitv.h,
10917         * src/SDCCbitv.c: added function to free a bitvector
10918         * src/SDCClrange.h,
10919         * src/SDCClrange.c: added function to recompute the liveranges
10920         * src/avr/ralloc.c,
10921         * src/ds390/ralloc.c,
10922         * src/hc08/ralloc.c,
10923         * src/mcs51/ralloc.c,
10924         * src/pic/ralloc.c,
10925         * src/pic16/ralloc.c,
10926         * src/xa51/ralloc.c,
10927         * src/z80/ralloc.c: recompute the liveranges after register packing
10928
10929 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
10930
10931         * src/SDCCloop.c (newInduction): fixed bug #845630
10932
10933 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10934
10935         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
10936         inadvertantly left behind from my 2003-11-12 change
10937
10938 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10939
10940         Updated headers I neglected to commit yesterday.
10941         * src/SDCClrange.h,
10942         * src/SDCCicode.h
10943
10944 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10945
10946         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
10947         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
10948         * src/SDCCopt.c (eBBlockFromiCode),
10949         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
10950         the creation of the key hash table from the sequencing so it can be used
10951         earlier (for some GCSE bug fixes still pending)
10952
10953 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10954
10955         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
10956         * support/regression/tests/addsub.c: testing genPlus shortcut
10957
10958 2003-11-15  Borut Razem <borut.razem AT siol.net>
10959
10960         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
10961
10962 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10963
10964         * src/SDCCcse.c (cseBBlock): fixed bug #527779
10965         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
10966         ordering is immaterial.
10967         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
10968
10969 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10970
10971         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
10972         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
10973         (SIGSEV) of bug #840381
10974         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
10975         unlink new file before rename if new and old filenames are the same)
10976
10977 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10978
10979         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
10980         uninitialized variables) for the mcs51. Set environment variable
10981         SDCC_GENRAMCLEAR to test.
10982         xdata initialization slightly shorter
10983
10984 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10985
10986         * src/SDCCsymt.h,
10987         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
10988         #838241 & 780691 (basicly the same bug)
10989         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
10990         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
10991
10992 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
10993
10994         * src/SDCCmain.c (linkEdit): "fix" #834252
10995
10996 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10997
10998         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
10999         * src/SDCCast.h,
11000         * src/SDCC.y: fixed bug #819403
11001
11002 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11003
11004         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
11005         the reentrant attribute.
11006         * src/hc08/gen.c (genPackBits): added missing stack readjustment
11007         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
11008         simulation
11009         * src/SDCCast.c (decorateType): fixed bug with storage class not being
11010         updated during pointer dereference; f.e. ~(((char *)1)*) was being
11011         erroneously reduced to a literal.
11012         * src/hc08/ralloc.c (packRegisters, rematStr),
11013         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
11014         some cases
11015
11016 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11017
11018         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
11019         * doc/sdccman.lyx: changed from 'article' to 'book'
11020         * doc/Makefile: readded test_suite_spec and cdbfileformat
11021
11022 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
11023
11024         * device/include/stdlib.h: include malloc.h to comply with ANSI
11025         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
11026
11027 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11028
11029         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
11030         * doc/clean.mk: also remove *.out files
11031         * doc/sdccman.lyx: some additions, larger top/bottom margins
11032
11033 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11034
11035         * src/SDCC.y: fixed bug #837365
11036         * support/regression/tests/bitopcse.c
11037         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
11038         a symbol (might be valop instead)
11039         * device/lib/Makefile.in: added errno.c to HC08SOURCES
11040         * device/lib/clean.mk: added hc08 to the cleaning list
11041
11042 2003-11-04  Borut Razem <borut.razem AT siol.net>
11043
11044         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
11045           made 2003-11-04
11046         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11047           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
11048           malloc is declared in standard stdlib.h
11049
11050 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11051
11052         * device/lib/hc08/Makefile: need to clean .rel not .o files
11053         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
11054
11055 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11056
11057         * src/port.h,
11058         * src/hc08/main.c,
11059         * src/mcs51/main.c,
11060         * src/ds390/main.c,
11061         * src/z80/main.c,
11062         * src/avr/main.c,
11063         * src/pic/main.c,
11064         * src/pic16/main.c,
11065         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
11066         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
11067         tests (which uses the port's oclsExpense function)
11068         * src/SDCC.y,
11069         * src/SDCCast.c,
11070         * src/SDCCicode.c,
11071         * src/hc08/gen.c,
11072         * src/ds390/gen.c,
11073         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
11074
11075 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11076
11077         * src/SDCCcse.c (ifxOptimize),
11078         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
11079         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
11080         deleting the IFX iCode.
11081         * src/hc08/ralloc.c: reduced unneeded slocs
11082         * src/hc08/gen.c: fixed bug in asmopToBoolean
11083
11084 2003-11-04  Borut Razem <borut.razem AT siol.net>
11085
11086         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
11087           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11088           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
11089           transferred to configure
11090
11091 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
11092
11093         Use headers defined in the C[++] standards:
11094         * sim/ucsim/gui.src/serio.src/fileio.cc
11095         * sim/ucsim/gui.src/serio.src/frontend.cc
11096         * sim/ucsim/gui.src/serio.src/main.cc
11097         * sim/ucsim/gui.src/serio.src/posix_signal.cc
11098         * support/Util/NewAlloc.c
11099         * as/hc08/lklibr.c
11100         * as/mcs51/lklibr.c
11101         * as/z80/aslist.c
11102         * as/z80/assym.c
11103
11104 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11105
11106         * Added MSVC projects for hc08 assembler and linker:
11107         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
11108         /as/hc08/link_hc08.dsp
11109
11110 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
11111
11112         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11113
11114 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11115
11116         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11117
11118 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11119
11120         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11121
11122 2003-10-31  Borut Razem <borut.razem AT siol.net>
11123
11124         * support/cpp2/cpplib.h,
11125           support/cpp2/cpplib.c,
11126           support/cpp2/cpplex.c,
11127           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11128           to switch _asm block preprocessing on / off. Default is
11129           #pragma preproc_asm +
11130
11131 2003-10-31  Borut Razem <borut.razem AT siol.net>
11132
11133         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11134           when outputting comment blocks (when executed with -C option) and
11135           _asm (SDCPP specific) blocks
11136
11137 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11138
11139         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11140
11141 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11142
11143         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11144
11145 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11146
11147         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11148         * src/SDCCast.c (decorateType): fixed bug #832664
11149
11150 2003-10-31  Borut Razem <borut.razem AT siol.net>
11151
11152         * support/cpp2/cpplex.c: fixed for SDCPP:
11153           comments(when executed with -C option) and _asm blocks
11154           were included even if they where in skipped #if block.
11155           Applied solution from GCC cpp 3.3.2
11156
11157 2003-10-31  Borut Razem <borut.razem AT siol.net>
11158
11159         * src/SDCC.lex: sdcc now understands both formats:
11160           '# <line_number> <file_name>' and
11161           '#line <line_number> <file_name>'
11162         * support/cpp2/cppmain.c: sdcpp now generates the standard
11163           '# <line_number> <file_name>' instead of former
11164           '#line <line_number> <file_name>'
11165
11166 2003-10-30  Borut Razem <borut.razem AT siol.net>
11167
11168         * support/cpp2/cpphash.h,
11169         * support/cpp2/cpplib.h
11170         * support/cpp2/cpplex.c,
11171         * support/cpp2/cppmain.c,
11172         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11173
11174 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11175
11176         Fixed a number of problems revealed by bug #827883.
11177         * src/SDCCloop.c (loopInvariants): Spill location of the
11178         result operand should be recomputed if extracted from
11179         a loop. Also, don't extract assignments of an iTemp
11180         from a literal.
11181         * src/SDCCast.c (isConformingBody): loop reversal should
11182         not occur if the control variable is involved with a
11183         relational operator.
11184
11185 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11186
11187         * .version: bumped to 2.3.6 to reflect the big improvements
11188         made by Erik and Klaus. Thanks!
11189
11190 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11191
11192         Replaced the livrange code.
11193         * src/SDCClrange.c: added new LR code
11194         * src/SDCCloop.c,
11195         * src/SDCCBBlock.h: removed remainig parts from old LR code
11196         * src/ds390/ralloc.c,
11197         * src/ds390/gen.c: minor fixes to make it work with new code
11198
11199 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11200
11201         * as/hc08/asm.h,
11202         * as/hc08/lkrloc.c,
11203         * src/hc08/gen.c,
11204         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11205         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11206         (tweaked fix for bug #818696)
11207
11208 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11209
11210         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11211
11212 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11213
11214         * src/SDCCmain.c,
11215         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11216         * src/mcs51/gen.c (gencjneshort),
11217         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11218         more efficient (per Scott Bronson's suggestion)
11219
11220 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11221
11222         Extended the semantics of the critical keyword to include
11223         individual statements. See RFE #827755 and #799831
11224         * src/SDCC.y
11225         * src/SDCCicode.c
11226         * src/SDCCopt.c
11227         * src/SDCCast.c
11228         * support/Util/SDCCerr.c
11229         * support/Util/SDCCerr.h
11230         * src/mcs51/gen.c
11231         * src/ds390/gen.c
11232         * src/hc08/gen.c
11233
11234 2003-10-19  Borut Razem <borut.razem AT siol.net>
11235
11236         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11237
11238 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11239
11240         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11241         Fixed bug #818696
11242         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11243         and predecrement operand is displayed
11244
11245 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11246
11247         * src/SDCCval.c (valMinus): fixed bug #826041
11248
11249 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11250
11251         Some hc08 related updates that I missed earlier
11252         * sim/ucsim/stypes.h
11253         * support/regression/ports/hc08/spec.mk
11254
11255 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11256
11257         New target "hc08" for the Motorola 68hc08 family of micros
11258
11259         * configure
11260         * configure.in
11261         * Makefile
11262         * src/hc08/*
11263         * src/SDCCmain.c
11264         * src/port.h
11265         * sim/ucsim/hc08.src/*
11266         * sim/ucsim/configure.in
11267         * src/ucsim/configure
11268         * sim/ucsim/packages_in.mk
11269         * as/hc08/*
11270         * as/Makefile
11271         * device/include/mc68hc908qy.h
11272         * device/lib/hc08/*
11273         * device/lib/Makefile.in
11274         * support/regression/ports/hc08/*
11275         * support/regression/Makefile
11276
11277 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11278
11279         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11280         regression test
11281         * src/ds390/gen.c (genCast): fixed bug #821957
11282
11283 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11284
11285         * device/lib/logf.c: "fixed" overlay bug
11286         * support/regression/ports/host/spec.mk: added m library
11287         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11288         * support/regression/tests/float_trans: added (for Eric)
11289
11290 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11291
11292         * src/mcs51/gen.c (genCpl): fixed bug
11293         http://sf.net/mailarchive/message.php?msg_id=6263915
11294
11295 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11296
11297         * src/SDCCast.c (decorateType): added extended constant folding
11298         * src/SDCCsymt.c (computeType): cleanup
11299         * src/SDCCval.c (valShift): minor optimization
11300         * support/regression/tests/ast_constant_folding.c: added
11301
11302 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11303
11304         * src/SDCCmain.c: removed some unintended changes
11305
11306 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11307
11308         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11309         * src/z80/gen.c: fixed part of bug #817589
11310         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11311
11312 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11313
11314         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11315         * src/SDCCcflow.c
11316         * src/SDCCcse.c
11317         * src/SDCCdflow.c
11318         * src/SDCClabel.c
11319         * src/SDCClrange.c
11320         * src/SDCCmem.c
11321         * src/SDCCopt.c
11322         * src/SDCCpeeph.c
11323         * src/SDCCset.c
11324         * src/avr/ralloc.c
11325         * src/ds390/ralloc.c
11326         * src/izt/ralloc.c
11327         * src/mcs51/ralloc.c
11328         * src/pic/ralloc.c
11329         * src/pic16/ralloc.c
11330         * src/xa51/ralloc.c
11331         * src/z80/ralloc.c
11332         * src/z80/gen.c: removed unused label "release:"
11333
11334 2003-10-06  Borut Razem <borut.razem AT siol.net>
11335
11336         * src/SDCC.lex: removed definition of unused variables
11337           save_optimize and save_options
11338
11339 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11340
11341         * clean.mk: removed '=' in "-maxdepth=1"
11342         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11343         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11344
11345 2003-10-06  Borut Razem <borut.razem AT siol.net>
11346
11347         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11348           my_unput() replaced by unput()
11349
11350 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11351
11352         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11353         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11354         type-punned pointer will break strict-aliasing rules"
11355         Old LR behaviour is again default; Klaus' LR can be choosen by
11356         defining the environment variable LRKLAUS
11357         * src/SDCCBBlock.h
11358         * src/SDCCloop.c
11359         * src/SDCClrange.c
11360         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11361         * clean.mk: fixed removal of files in bin/CVS/
11362         * device/lib/clean.mk: fixed removal of directories small and large
11363         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11364         * src/SDCCicode.c,
11365         * src/SDCCval.c: removed superflous test for pedantic
11366
11367 2003-10-05  Borut Razem <borut.razem AT siol.net>
11368
11369         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11370           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11371           message "unmatched #pragma SAVE and #pragma RESTORE"
11372
11373 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11374
11375         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11376           assembly, critical functions, atomic, nojtbound)
11377
11378 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11379
11380         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11381         * src/SDCCBBlock.h
11382         * src/SDCCloop.c
11383         * src/SDCCloop.h
11384         * src/SDCClrange.c
11385
11386 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11387
11388         * src/z80/gen.h,
11389         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11390         * src/mcs51/gen.h
11391         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11392         * src/ds390/gen.h
11393         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11394         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11395         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11396
11397 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11398
11399         * src/z80/gen.c (genRet): fixed bug #524753
11400         * src/z80/gen.c (genCast): fixed internal error on cast from
11401         pointer to long
11402         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11403         fix for bug #477835 to the z80
11404         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11405         for tracking iCodes in the peephole optimizer for z80
11406
11407 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11408
11409         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11410         the other part of bug #814548
11411         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11412
11413 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11414
11415         * src/SDCCcse.c: fixed part of bug #814548
11416
11417 2003-09-28  Borut Razem <borut.razem AT siol.net>
11418
11419         * src/asm.c: rewrite of printILine() to use temporary file instead
11420           a pipe
11421         * src/xa51/main.c: commented out declaration of int rewinds
11422
11423 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11424
11425         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11426
11427 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11428
11429         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11430         * src/asm.c (printILine): Fixed bug #811015
11431
11432 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11433
11434         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11435         freeing.
11436
11437 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11438
11439         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11440         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11441         to correctly handle general case of AOP_PAIRPTR
11442         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11443
11444 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11445
11446         * src/mcs51/ralloc.c (fillGaps),
11447         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11448         register positioning bug)
11449
11450 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11451
11452         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11453
11454 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11455
11456         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11457         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11458         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11459         (ralloc doesn't intentionally do this now, but perhaps later)
11460         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11461         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11462         register positioning bugs (Fixed bug #762602 and #795325)
11463         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11464         (Fixed bug #808779)
11465         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11466         lines that --i-code-in-asm generates
11467
11468 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11469
11470         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11471         trying to fclose a FILE* that was already closed.
11472
11473 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11474
11475         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11476         of const struct should be treated as if const themselves)
11477
11478 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11479
11480         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11481
11482 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11483
11484         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11485         Unix (/n) and DOS (/r/n) line terminations.
11486
11487 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11488
11489         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11490         bug #613775
11491
11492 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11493
11494         * src/mcs51/gen.c (genFunction, genEndFunction),
11495         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11496         and restore of EA so that stack offsets to parameters are
11497         correct when using both critical and reentrant/stack-auto.
11498         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11499         size (can be triggered in error if sloc is shared between
11500         different sized objects)
11501         * device/include/float.h: fixed macros to explicitly use
11502         unsigned long where needed
11503
11504 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11505
11506         Feature req. 799831: added code to allow nesting of critical functions
11507         * src/mcs51/gen.c (genFunction, genEndFunction)
11508         * src/ds390/gen.c (genFunction, genEndFunction)
11509
11510 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11511
11512         * src/SDCCsymt.c (sclsFromPtr),
11513         * src/SDCCsymt.h,
11514         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11515         support for standard C idiom of memory mapped variables; for
11516         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11517         to xdata int at 0x1234 tempvar = 1.
11518         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11519         provided by Akiya ISHIDA
11520
11521 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11522
11523         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11524         * src/SDCCval.c (constVal): added reduction from int to char
11525         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11526         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11527         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11528         to ignore the sign
11529         * support/regression/tests/shifts.c: fixed
11530
11531 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11532
11533         * src/z80/gen.c (genXor): Fixed bug #805445
11534
11535 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11536
11537         Fixed bug #621531 (const & volatile confusion in the type chain).
11538         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11539         refer to the const or volatile state of the pointer itself.
11540
11541         * src/SDCCast.c
11542         * src/SDCCglue.c
11543         * src/SDCCicode.c
11544         * src/SDCCsymt.c
11545         * src/SDCCval.c
11546         * src/SDCC.y
11547         * src/SDCCsymt.h
11548         * src/pic/gen.c
11549         * src/pic/ralloc.c
11550         * src/pic16/gen.c
11551         * src/pic16/ralloc.c
11552         * support/regression/tests/const.c
11553
11554 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11555
11556         When checking for duplicated modules, use absolute paths
11557         instead of relative paths.  Files changed:
11558
11559         * as/mcs51/lklib.c
11560         * link/z80/lklib.c
11561
11562 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11563
11564         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11565
11566 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11567
11568         * device/include/string.h: added size_t typedef, changed
11569         prototypes to use size_t, eliminated separate reentrant and
11570         non-reentrant declarations, added _memmove declaration
11571         * device/lib/_memcpy.c: changed to use size_t instead of int,
11572         changed /4 to >>2 to avoid division library call
11573         * device/lib/_memcmp.c,
11574         * device/lib/_memset.c,
11575         * device/lib/_strncat.c,
11576         * device/lib/_strncpy.c,
11577         * device/lib/_strncmp.c: changed to use size_t instead of int
11578         * device/lib/_memmove.c: new file (fixed bug #772294)
11579         * device/lib/Makefile.in: added _memmove.c
11580         * device/lib/z80/asm_strings.s: fixed bug #772290
11581         * support/regression/tests/bitfields.c: attempt to fix host assertion
11582         failure on amd64-unknown-linux2.2
11583
11584 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11585
11586         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11587         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11588         * as/z80/asmain.c (main): fixed bug #801766
11589
11590 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
11591
11592         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11593         compilers
11594
11595 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11596
11597         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11598         reported in bug #800609
11599
11600 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
11601
11602         * Top header beautifications in src/pic16 directory:
11603           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11604           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11605           pcoderegs.h, ralloc.c, ralloc.h
11606         * main.c: added top header and GPL license notice
11607         * pcode.c: fixed the if-conditional warning
11608
11609 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
11610
11611         * device/lib/_mullong.c: replaced int by short for gcc
11612
11613 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11614
11615         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11616         and JUMPTABLE iCodes properly now (worked by accident before)
11617         * src/mcs51/gen.c (leftRightUseAcc),
11618         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11619         iCode properly now. Use getSize instead of nRegs since a & b
11620         aren't part of the nRegs tally.
11621
11622 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
11623
11624         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11625         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11626           before instructions that use the _STATUS register
11627
11628 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
11629
11630         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11631         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11632         fetching of the pointer
11633         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11634         copied from genNearPointerSet()
11635         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11636         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11637         If they pop r0/r1 they must be called in the opposite order than aopOp().
11638         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11639         (resp. --stack-auto), prepared for --xstack
11640
11641 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11642
11643         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11644
11645 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11646
11647         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11648         these ports have their own __sdcc_external_start()
11649
11650 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
11651
11652         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11653         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11654         type for bits was changed. It resulted in bit variables becoming
11655         global, which is not permitted in PIC 14 assembly output.
11656
11657 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11658
11659         * doc/sdccman.lyx: various additions and updates. Rearranged sections
11660
11661 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11662
11663         Z80 and MCS51 linkers complaint if a public symbol is defined
11664         in more than one library module:
11665
11666         * as/mcs51/lklib.c
11667         * link/z80/lklib.c
11668         * as/mcs51/Makefile.in
11669
11670 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11671
11672         A few small changes that speed up the peephole optimizer.
11673
11674         * src/SDCCpeeph.c
11675
11676 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11677
11678         Try to make the peephole optimizer smarter by maintaining
11679         an association between the assembly source code and the
11680         iCodes that originated them. Put this information to use
11681         with a new peephole rule condition "notVolatile" so that
11682         the rules can be aggressive yet still safe.
11683
11684         * src/SDCCpeeph.c
11685         * src/SDCCpeeph.h
11686         * src/mcs51/gen.c
11687         * src/mcs51/peeph.def
11688
11689 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11690
11691         Fixed bug #741761
11692
11693         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11694         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11695         if the left or right operand symbols have the accuse flag set.
11696
11697 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11698
11699         Changed the type of the result of the ! (NOT) operator to char;
11700         previously it returned the same type as the source. This allows
11701         us to eliminate all the genFloatNot functions (all of its target
11702         implementations were very buggy) since !float can use the same
11703         code as !long now.
11704
11705         * src/SDCCicode.c (ast2iCode): ! returns char
11706         * src/mcs51/gen.c (genNot, genNotFloat),
11707         * src/ds390/gen.c (genNot, genNotFloat),
11708         * src/z80/gen.c (genNot, genNotFloat),
11709         * src/pic/gen.c (genNot, genNotFloat),
11710         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11711
11712 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
11713
11714         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11715         1. Interrupt would not compile properly. Ensure PCLATH register is saved
11716            during interrupts. Ensure WSAVE is located at a shared bank address.
11717         2. Fixed page selection in some places
11718         3. Fixed BTFSS/C to where necessary use registers directly and not simply
11719            the registers name strings.
11720         4. Fixed "signed / unsigned compare" compiler warnings.
11721         5. The PIC port manages its own allocation of the general purpose
11722            registers, but makes no attempt to reuse them. As a result when
11723            compiling it soon runs out of general purpose registers. Some
11724            additional code was added to the files pcode.c and device.c to walk
11725            through the function call tree and rename the registers so that they
11726            get reused.
11727
11728         * src/pic/device.c
11729         * src/pic/gen.c
11730         * src/pic/glue.c
11731         * src/pic/pcode.c
11732         * src/pic/pcode.h
11733         * src/pic/ralloc.c
11734         * src/pic/ralloc.h
11735         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11736         genPlus() & genMinus() when the result is the same as left or right
11737
11738 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11739
11740         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11741
11742 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11743
11744         Made bitfield a distinct type from bit so that bitfields
11745         convert as per ANSI C and bits retain their traditional
11746         boolean style behaviour. Implemented bitfield support in
11747         the z80 port.
11748
11749         * src/SDCCsymt.h,
11750         * src/SDCCsymt.c,
11751         * src/SDCCast.c,
11752         * src/cdbFile.c,
11753         * src/mcs51/gen.c,
11754         * src/ds390/gen.c: bit v bitfield split
11755         * src/z80/gen.c: New support for bitfields
11756         * support/regression/tests/bitfields.c: reenabled z80,
11757         added more tests
11758
11759 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11760
11761         Rules 246.x, 247.x relate to bitfields, the others speed up
11762         access to xdata mapped I/O devices.
11763
11764         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11765
11766 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11767
11768         Cleaned up genPackBits and genUnpackBits and added two helper
11769         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11770         for literal assignments in genPackBits (thanks to Frieder for
11771         reminding me).
11772
11773         * src/mcs51/gen.c
11774         * src/ds390/gen.c
11775
11776 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11777
11778         Fixed bug #748310 (pointer to function type mishandled when the
11779         function name is omitted). Also fixed a SIGSEGV when a function
11780         attribute (reentrant, etc) is used on a non-function or on a
11781         function but misplaced before the parameter list.
11782
11783         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11784         bug #748310
11785         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11786         * support/Util/SDCCerr.h,
11787         * support/Util/SDCCerr.c: Added func attr misuse error msg
11788
11789 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11790
11791         Fixed bug #787649 by anonymous
11792         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11793         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11794
11795 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11796
11797         Fixed numerous bitfield problems.
11798
11799         * src/SDCC.y: More bitfield related error checking
11800         * src/SDCCsymt.h,
11801         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11802         * support/Util/SDCCerr.h,
11803         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
11804         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11805         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11806         * support/regression/tests/bitfields.c: tests added
11807
11808 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11809
11810         Made the constant following the "interrupt" keyword optional. If
11811         omitted, the function will not automatically be given an entry
11812         in the interrupt vector table (similar to #pragma NOIV, but
11813         less syntacticly kludgy). The interrupt number is also now
11814         range checked. Also fixed a bug in the high order bit example
11815         in the manual.
11816
11817         * src/SDCC.y
11818         * src/SDCCmem.c
11819         * src/SDCCglue.c
11820         * src/SDCCsymt.h
11821         * support/Util/SDCCerr.c
11822         * support/Util/SDCCerr.h
11823         * doc/sdccman.lyx
11824
11825 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11826
11827         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
11828         * src/SDCCicode.c (operandOperation): rewritten some ops
11829         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
11830         * src/SDCCsymt.c (computeType): literals are handled the same way as any
11831         other type
11832         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
11833         be re-activated by defining REDUCE_LITERALS)
11834         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
11835         unsigned, but are signed by default
11836         * src/SDCCval.c (constVal): rearranged
11837         * src/SDCCval.c (valMod): preliminary fix
11838         * src/SDCCval.c (valCastLiteral): use TYPE_* types
11839         * support/regression/literalop.c: added, work in progress
11840
11841 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11842
11843         Generate warnings for useless declarations like "char data;"
11844         that don't do what new users expect.
11845
11846         * src/SDCC.y
11847         * support/Util/SDCCerr.h
11848         * support/Util/SDCCerr.c
11849
11850 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
11851
11852         * src/SDCCval.c (valMult): fix overflow detection of negative int
11853
11854 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11855
11856         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
11857
11858         Changes to support big endian targets:
11859
11860         * src/ports.h
11861         * src/SDCCglue.c
11862         * src/avr/main.c
11863         * src/ds390/main.c
11864         * src/izt/i186.c
11865         * src/mcs51/main.c
11866         * src/pic/main.c
11867         * src/pic16/main.c
11868         * src/xa51/main.c
11869         * src/z80/main.c
11870
11871 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
11872
11873         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
11874         * device/lib/time.c: fixed warning "integer overflow in expression"
11875
11876 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
11877
11878         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
11879         * src/SDCCval.c (constVal): changed default to signed; hex and octal
11880         constants are unsigned; added recognition of "u" flag for unsigned
11881         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
11882         * src/SDCCval.c (valDiv, valMod): fixed signdness
11883         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
11884         signedness of modulo, left and right shift
11885         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
11886         * support/Util/SDCCerr.h: added warning W_INT_OVL
11887         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
11888         * src/SDCCast.c (ast_print): improved output of constants
11889
11890 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11891
11892         Fixed some warnings when building with MSVC:
11893
11894         * as/mcs51/asdata.c
11895         * as/z80/asdata.c
11896         * as/mcs51/asm.h
11897         * as/z80/asm.h
11898         * link/z80/aslink.h
11899         * link/z80/lkdata.c
11900         * link/z80/lkeval.c
11901         * link/z80/lkgb.c
11902         * link/z80/lkihx.c
11903         * link/z80/lks19.c
11904         * link/z80/lksym.c
11905         * support/cpp2/cpplib.c
11906         * src/ds390/gen.c
11907         * src/mcs51/gen.c
11908
11909 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
11910
11911         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
11912
11913 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11914
11915         * support/librarian/clean.mk: Do not remove Makefile.
11916         * support/librarian/Makefile: added.
11917
11918 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11919
11920         Added librarian to MSVC build:
11921         * all.dsp
11922         * sdcc.dsw
11923         * support/librarian/librarian.dsp
11924
11925         'configure' not needed for librarian, removed:
11926         * support/librarian/configure
11927         * support/librarian/configure.in
11928         * support/librarian/config_in.h
11929         * support/librarian/Makefile.in
11930
11931         Hopefully these ones built the librarian and the rest of sdcc properly:
11932         * Makefile
11933         * Makefile.common.in
11934
11935         Messed up 'configure', so revert to previous version:
11936         * configure
11937         * configure.in
11938
11939 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
11940
11941         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
11942         there, while the mantissa of a double is "only" 53 bits wide.
11943
11944 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11945
11946         Adding sdcclib to the build.  MSVC project coming soon.
11947         Files added/changed:
11948
11949         * support/librarian/clean.mk
11950         * support/librarian/configure
11951         * support/librarian/configure.in
11952         * support/librarian/config_in.h
11953         * support/librarian/Makefile.bcc
11954         * support/librarian/Makefile.in
11955         * support/librarian/sdcclib.c
11956         * Makefile.bcc
11957         * Makefile
11958         * Makefile.common.in
11959         * configure
11960         * configure.in
11961
11962 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11963
11964         Linker now complaints if linked modules have conflicting options, for
11965         example, one compiled using --model-large and another one compiled with
11966         --model-small.  The following files were modified:
11967
11968         * as/mcs51/asdata.c
11969         * as/mcs51/aslink.h
11970         * as/mcs51/asm.h
11971         * as/mcs51/asmain.c
11972         * as/mcs51/asout.c
11973         * as/mcs51/i51pst.c
11974         * as/mcs51/lkdata.c
11975         * as/mcs51/lklibr.c
11976         * as/mcs51/lkmain.c
11977         * as/z80/asdata.c
11978         * as/z80/asm.h
11979         * as/z80/asmain.c
11980         * as/z80/asout.c
11981         * as/z80/z80pst.c
11982         * link/z80/aslink.h
11983         * link/z80/lkdata.c
11984         * link/z80/lklibr.c
11985         * link/z80/lkmain.c
11986         * src/SDCCglue.c
11987
11988 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11989
11990         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
11991         as/mcs51/lklibr.c: Generate a warning when a library is not found.
11992
11993 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
11994
11995         * src/z80/mappings.i: fix _mul[us][int,long] entries
11996
11997 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11998
11999         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
12000
12001 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12002
12003         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
12004         * support/regression/tests/bitopcse.c: added
12005         fixed warning:
12006         * src/avr/gen.c:
12007         * src/pic/gen.c:
12008         * src/pic16/gen.c:
12009         * src/z80/gen.c:
12010         * src/xa51/gen.c:
12011
12012 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12013
12014         added support for new library format to z80, gbz80 linkers:
12015         *link/z80/aslink.h
12016         *link/z80/lklex.c
12017         *link/z80/lklib.c
12018         *link/z80/lklist.c
12019
12020 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12021
12022         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
12023         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
12024
12025 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
12026
12027         added DUMMY_READ_VOLATILE:
12028         * src/SDCC.y:
12029         * src/avr/gen.c:
12030         * src/xa51/gen.c:
12031         * src/z80/gen.c:
12032         * src/pic/gen.c:
12033         * src/pic16/gen.c:
12034         * src/mcs51/gen.c:
12035         * src/ds390/gen.c:
12036         * src/SDCCcse.c (algebraicOpts): many improvements
12037         * src/SDCCcse.h: removed algebraicOpts()
12038         * src/SDCCicode.c (picDummyRead): added
12039
12040 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12041
12042         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
12043         "Insufficient space in data memory".
12044
12045 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12046
12047         * src/mcs51/gen.c: fixed bug #771358
12048         * src/z80/gen.c: fixed bug #759087
12049
12050 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
12051
12052         * src/pic16/glue.c: minor cleanup by Vangelis
12053
12054 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12055
12056         * device/include/regc515c.h: fixed #758477
12057         * device/lib/_gptrget.c: saving some cycles in generic pointer get
12058         * device/lib/_gptrput.c: saved a few bytes
12059         * my tab spacing is 8, yours too?)
12060         * device/lib/_ser.c: process RX bytes earlier than TX bytes
12061         * device/lib/serial.c: process RX bytes earlier than TX bytes
12062         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
12063
12064 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12065
12066         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
12067
12068 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12069
12070     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
12071
12072 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
12073
12074         * device/lib/Makefile.in: bad fix, reverted to 1.43
12075
12076 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
12077
12078         * device/lib/Makefile.in: added missing z80 object files
12079
12080 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
12081
12082         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
12083         pic16 progress by Vangelis:
12084         * src/SDCCglobl.h:
12085         * src/SDCCmain.c:
12086         * src/pic/Makefile:
12087         * src/pic:
12088         * pic/Makefile:
12089         * pic16/device.c:
12090         * pic16/device.h:
12091         * pic16/gen.c:
12092         * pic16/gen.h:
12093         * pic16/genarith.c:
12094         * pic16/glue.c:
12095         * pic16/main.c:
12096         * pic16/pcode.c:
12097         * pic16/pcode.h:
12098         * pic16/pcodepeep.c:
12099         * pic16/peeph.def:
12100
12101 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12102
12103     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
12104
12105 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12106
12107     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
12108     added gbz80 build to MSVC project.
12109     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
12110     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
12111     from 8051 stuff and setup so it links using a .lnk file.
12112
12113 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12114
12115     * support/librarian/sdcclib.c: sdcc librarian.
12116     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12117     with sdcclib.
12118
12119 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12120
12121     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12122
12123 2003-07-02  Borut Razem <borut.razem AT siol.net>
12124
12125         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12126         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12127         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12128         src/xa51/main.c, src/z80/main.c:
12129         virtualization of glue() function: each port has it's own glue function,
12130         which is accessed by do_glue function pointer in PORT.general structure
12131
12132 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12133
12134         * DS800C400 fun, improved ROM interface and tinibios.
12135
12136 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12137
12138         * More support for DS80C400. Now includes beginning of interface to ROM.
12139
12140 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12141
12142         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12143
12144 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12145
12146         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12147
12148 2003-06-19  Borut Razem <borut.razem AT siol.net>
12149
12150         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12151
12152 2003-06-19  Borut Razem <borut.razem AT siol.net>
12153
12154         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12155         fixed Z80 port - crt0.o: cannot open.
12156
12157 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12158
12159         * support/Util/MySystem.c (merge_command): revert bad fix
12160
12161 2003-06-18  Borut Razem <borut.razem AT siol.net>
12162
12163         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12164
12165 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12166
12167         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12168         option --use-stdout sends errors to stdout instead of stderr.
12169
12170 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12171
12172         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12173
12174 2003-06-15  Borut Razem <borut.razem AT siol.net>
12175
12176         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12177         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12178         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12179         fixed width array of pointers replaced with sets;
12180         multiple include and lib paths ared transferred to preprocessor and linker
12181         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12182         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12183         fixed width array of pointers
12184         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12185         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12186         fixupPath(), getPathDifference()
12187         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12188         fixed width array of pointers
12189
12190 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12191
12192         * src/pic16/ralloc.c: fix warnings
12193         * src/pic16/pcode.c: fix warning
12194
12195 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12196
12197          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12198         know all the details, but essentially this set of changes enable
12199         the pic16 port to generate movff instructions and generate assembler
12200         directives,
12201         * src/SDCCmain.c:
12202         * src/pic16/gen.c:
12203         * src/pic16/glue.c:
12204         * src/pic16/pcode.c:
12205         * src/pic16/device.c:
12206         * src/pic16/main.c:
12207         * src/pic16/pcode.h:
12208         * src/pic16/pcoderegs.c:
12209         * src/pic16/ralloc.c:
12210         * src/pic16/ralloc.h:
12211
12212 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12213
12214         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12215         added option --vc, so sdcc errors and warnings are compatible with
12216         Microsoft Visual Studio.
12217
12218 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12219
12220         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12221           device/lib/libfloat.lib: added atof function.
12222
12223 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12224
12225         * doc/sdccman.lyx: updated to Lyx 1.3
12226         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12227         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12228         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12229
12230 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12231
12232         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12233
12234 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12235
12236         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12237           additions to the "related tools/documentation" section
12238
12239 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12240
12241         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12242
12243 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12244
12245         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12246         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12247
12248 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12249
12250         * doc/sdccman.lyx: fix double dash and other minor things
12251         * doc/Makefile: fix double dash
12252
12253 2003-05-28  Karl Bongers(patches from Martin Helmling)
12254         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12255           condition and ignore commands.
12256
12257 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12258
12259         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12260           is in parts still quite out of date, I did changes as far as I felt makes sense
12261           for a non-native english speaker.
12262           Please feel free to add to the manual or to correct my changes.
12263         * doc/Makefile: undid touching the date of intermediate tex files.
12264
12265 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12266
12267         * doc/sdccman.lyx: Manual has an index now
12268
12269 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12270
12271         Finalize muluint/mulsint and mululong/mulslong merging:
12272         * device/lib/_mulint.c
12273         * device/lib/_mullong.c
12274         * device/lib/gbz80/mul.s
12275         * device/lib/gbz80/stubs.s
12276         * device/lib/z80/mul.s
12277         * device/lib/z80/stubs.s
12278         * src/SDCCsymt.c (initCSupport)
12279
12280 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12281
12282         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12283         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12284           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12285           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12286           instead of /Zm500.
12287
12288 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12289
12290         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12291           the regression tests I'm not brave enough to enable 245.b, 245.c
12292         * doc/sdccman.lyx: added latex preamble for hyperref package.
12293           Using pdflatex this will give you a hyperlinked pdf file with
12294           bookmarks. (prepend '%' before /usepackage if this breaks something)
12295
12296 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12297
12298          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12299
12300 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12301
12302         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12303
12304 2003-05-21    <johan AT balder>
12305
12306         * src/SDCCglue.c (printIval): fixed bug #739934
12307
12308 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12309
12310         Applied patch from bug 737905 (renamed yylineo to mylineno):
12311         * src/altlex.c
12312         * src/SDCCast.c
12313         * src/SDCglobl.h
12314         * src/SDCC.lex
12315         * src/SDCCsymt.c
12316         * src/SDCCval.c
12317         * src/pic16/pcode.c: Cleaned warnings
12318         * src/pic16/pcodeflow.c: Cleaned warnings
12319         * src/pic16/pcoderegs.c: Cleaned warnings
12320
12321 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12322
12323         * src/pic16/pcode.c: Cleaned warnings
12324         * src/pic16/pcodepeep.c: Cleaned warnings
12325         * src/pic16/ralloc.c: Cleaned warnings
12326
12327 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12328
12329         * doc/sdccman.lyx: fixed bug 739745
12330         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12331
12332 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12333
12334         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12335         it can be defined with CFLAGS when running configure
12336         * src/SDCCmain.c: fixed compiling + linking with object files
12337
12338 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12339
12340         * configure.in: configure for pic16 port,
12341             added --disable-pic16-port
12342         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12343         * src/SDCCmain.c: linkOptions is changed to set *,
12344             added if/endif conditional macros to remove options help
12345             messages from optionsTable when a port is not configured, added
12346             support for the PIc16 port in the ports table, when executing
12347             the compiler with no port specified on command line, a default
12348             port is selected with the new macro DEFAULT_PORT which is
12349             defined in port.h, in setDefaultOptions() linkOptions is removed
12350             from initialization assignment, since now it is a set,
12351             parseCmdLine uses setParseWithComma for linkOptions, in
12352             linkEdit() linkOptions are accessed with new function indexSet()
12353             which returns the i'th item of a set variable. See SDCCset.c, in
12354             linkEdit() when calling buildCmdLine(), added linkOptions as
12355             last argument. Now users can pass arguments to gplink via the
12356             -Wl option, main() uses pic16glue() to glue up pic16 programs
12357         * src/SDCCpeeph.c: various changes to support pic16
12358         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12359             return the i'th item of the set
12360         * src/SDCCset.h: added function prototype for indexSet()
12361         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12362         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12363         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12364             added macro DEFAULT_PORT
12365         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12366         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12367             generated
12368         * src/pic16/glue.c: commented out some error producing lines
12369         * src/pic16/main.c: __config directives are commented out to stop
12370             gpasm complaining and test the linkage with gplink, _linkCmd and
12371             _asmCmd changed to be more gplink and gpasm friendly
12372         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12373             produced an error when parsed, peep rule 12 is added to utilize
12374             movff, but it is commented out since the pCode does not support
12375             yet a command with 2 address arguments
12376
12377 2003-05-18    <johan AT balder>
12378
12379         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12380         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12381 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12382
12383         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12384   Added feature to script commands from file.
12385
12386 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12387
12388         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12389         * src/SDCCutil.c: include ctype.h for win32
12390
12391 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12392
12393         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12394
12395 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12396
12397         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12398   Fixed so you can set breakpoints prior to run, run does not stop
12399   on entry now.  Add tbreak.  Other enhancements and fixes for use
12400   with ddd.
12401
12402 2003-05-12  Borut Razem <borut.razem AT siol.net>
12403
12404         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12405
12406 2003-05-11  Borut Razem <borut.razem AT siol.net>
12407
12408         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12409         the path of bin directory, so that PATH is the only env. variable, which has to be set
12410         in case of standard installation.
12411         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12412         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12413         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12414
12415 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12416
12417         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12418         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12419         temp files are in the port dir; clean the gen/test directory when
12420         generating new test.c
12421         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12422         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12423         * support/regression/tests/zeropad.c: added
12424
12425 2003-05-09    <johan AT balder>
12426
12427         * src/SDCCglue.c: fixed bug #597940
12428
12429 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12430
12431         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12432   cache sfr, optimize next,step, fix off by one sourceline,
12433   support ddd list function.
12434         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12435
12436 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12437
12438         * support/regression/HTMLgen.py: added compare_s2f()
12439         * support/regression/Makefile: redo 1.27
12440         * support/regression/generate-cases.py: redo 1.5
12441
12442 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12443
12444         * support/regression/tests/float.c: workaround 33 bit hex constant
12445         * support/regression/tests/simplefloat.c: fix division for host
12446
12447 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12448
12449         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12450         that tame's the PIC's over-aggressive optimizer.
12451
12452 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12453
12454          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12455          support for MSVC.
12456
12457 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12458
12459         Initial support for DS80C400. "Hello world" runs on TINIm400
12460         (with polled I/O).
12461
12462 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12463
12464          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12465          * Some notes on ddd usage added in debugger/README
12466          Martin Helmling adding more features and fixes for ddd GUI debugger.
12467          Code added for nexti, stepi, up, down, and other adjustments.
12468
12469 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12470
12471         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12472         * src/pic/peeph.def Added two rules to optimize carry manipulation
12473         * src/pic/* removed debug printfs
12474
12475 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12476
12477         * debugger/mcs51/cmd.c: added header newalloc.h
12478
12479 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12480
12481         * as/Makefile: new EXEEXT
12482         * as/z80/Makefile: remove trailing slash of BUILDIR
12483         * as/z80/clean.mk: new EXEEXT
12484         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12485         * support/cpp2/Makefile.in: new EXEEXT
12486         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12487
12488 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12489
12490         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12491         EXEEXT was introduced to fix all related problems with targets
12492         "clean", "install" and "uninstall"; a couple of further flaws
12493         especially with "clean" have been fixed too
12494         * as/mcs51/Makefile.in
12495         * as/mcs51/clean.mk
12496         * as/z80/Makefile
12497         * Makefile
12498         * clean.mk
12499         * debugger/mcs51/Makefile.in
12500         * debugger/mcs51/clean.mk
12501         * link/z80/Makefile
12502         * link/z80/Makefile.in
12503         * link/z80/clean.mk
12504         * link/Makefile
12505         * packihx/Makefile.in
12506         * packihx/clean.mk
12507         * sim/ucsim/Makefile
12508         * sim/ucsim/clean.mk
12509         * sim/ucsim/avr.src/Makefile.in
12510         * sim/ucsim/avr.src/clean.mk
12511         * sim/ucsim/s51.src/Makefile.in
12512         * sim/ucsim/s51.src/clean.mk
12513         * sim/ucsim/xa.src/Makefile.in
12514         * sim/ucsim/xa.src/clean.mk
12515         * sim/ucsim/z80.src/Makefile.in
12516         * sim/ucsim/z80.src/clean.mk
12517         * sim/ucsim/main_in.mk
12518         * sim/ucsim/packages_in.mk
12519         * sim/ucsim/gui.src/Makefile.in
12520         * sim/ucsim/gui.src/serio.src/Makefile.in
12521         * sim/ucsim/gui.src/serio.src/clean.mk
12522         * src/Makefile.in
12523         * src/clean.mk
12524         * support/cpp2/Makefile.in
12525         * support/cpp2/clean.mk
12526         * support/makebin/Makefile
12527         * support/makebin/clean.mk
12528         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12529         * doc/sdccman.lyx: --program-suffix no longer needed
12530
12531 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12532
12533          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12534          Martin Helmling added support for ddd GUI debugger.
12535          Code added to display assembly, set variables, and other commands
12536          to interface to ddd.
12537
12538 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12539
12540         * as/Makefile: fix target clean
12541         * as/clean.mk: fix target clean
12542         * as/z80/clean.mk: fix target clean
12543
12544 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12545
12546         * Makefile.common.in: added  AT EXEEXT AT
12547         * configure.in: removed all mingw32 stuff
12548         * configure: rebuilt from configure.in
12549         * doc/sdccman.lyx: updated section "installation"
12550         * support/scripts/sdcc_mingw32: adapted to configure
12551         * support/scripts/sdcc_cygwin_mingw32: added
12552
12553 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12554
12555         * src/pic Added object file support for the PIC port
12556         * src/pic Applied patch from Craig Franklin (this started the object file support)
12557         * src/regression Updated the PIC regression tests for object files
12558
12559 2003-04-20  Borut Razem <borut.razem AT siol.net>
12560
12561         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12562           lklex.c: In function `getfid':
12563           lklex.c:203: warning: array subscript has type `char'
12564         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12565           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12566         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12567           stack handling macros
12568
12569 2003-04-19  Borut Razem <borut.razem AT siol.net>
12570
12571         * "handling space characters in file path" task:
12572         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12573         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12574         * support/Util/MySystem.h: make it self-sufficient
12575         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12576           src/z80/main.c, sdcc/as/mcs51/lklex.c:
12577           handling space characters in file path
12578         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12579           (it will be used by assemblers, which have their own includes, e.g. gpasm)
12580         * support/Util/MySystem.c: handling space characters in executable's path
12581
12582 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
12583
12584         * as/z80/Makefile: fix permanent rebuild of z80
12585         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12586         * support/regression/tests/bitfields.c: added Johan's bitfields.c
12587
12588 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
12589
12590         * src/SDCCopt.c: add special case optimization to replace modulo by
12591           a power of two with a bitwise AND.
12592
12593 2003-04-18    <johan AT balder>
12594
12595         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12596
12597 2003-04-17    <johan AT balder>
12598
12599         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12600         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12601
12602 2003-04-13  Borut Razem <borut.razem AT siol.net>
12603
12604         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12605         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12606           fixed mingw problem in adl_NORMALIZE_PATH
12607
12608 2003-04-12  Borut Razem <borut.razem AT siol.net>
12609
12610         * fixed "#pragma SAVE/RESTORE can not be nested":
12611         * src/SDCC.lex: reworked pragma handling functions
12612         * sdcc/src/SDCCglobl.h: reworked stack handling macros
12613         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12614
12615 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12616
12617         * src/SDCCutil.c (pathEquivalent): defined but not used
12618         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12619         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12620         * configure: rebuilt from configure.in
12621         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12622         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12623         * device/include/Makefile.in: replace sdcc_datadir
12624         * device/lib/Makefile.in: replace sdcc_datadir
12625         * Makefile.common.in: add LDFLAGS from configure
12626         * packihx/Makefile.in: use LDFLAGS
12627         * src/Makefile.in: use LDFLAGS
12628         * support/cpp2/Makefile.in: add LDFLAGS from configure
12629         * support/makebin/Makefile: use LDFLAGS
12630         * .version: bumped version number to 2.3.5
12631
12632 2003-04-12  Borut Razem <borut.razem AT siol.net>
12633
12634         * completed "different paths" task:
12635         * src/SDCCmacro.c: fixed bug in handling quotes
12636         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12637         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12638
12639 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12640
12641         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12642
12643 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12644
12645         * ds390/gen.c ds390/peeph.def: fix bug 706781
12646
12647 2003-04-11  Borut Razem <borut.razem AT siol.net>
12648
12649         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12650
12651 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
12652
12653         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12654         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12655          set - this bit used to not be set...).
12656         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12657           bad code in PIC Port
12658         * src/regression/and2.c added to test bug 609268
12659         * src/regression/Makefile added and2.c to regression test
12660
12661
12662 2003-04-08    <johan AT CP255758-A>
12663
12664         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12665         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12666         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12667
12668 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
12669
12670         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12671         fix bug #487815
12672         * support/cpp2/Makefile.in: fix bug #487815
12673         * configure: rebuilt from configure.in
12674         * Makefile.common.in: docdir changed, new path suffixes
12675         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12676         * sdcc_vc_in.h: reflect changes from sdccconf.h
12677         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12678         * src/SDCCutil.h: remove BINDIR hack
12679         * doc/sdccman.lyx: update new path hierarchy
12680
12681 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12682
12683         * src/SDCCpeeph.c: added okToRemoveSLOC test
12684
12685 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12686
12687         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12688
12689 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12690
12691         * src/SDCCpeeph.c: added labelIsReturnOnly test
12692         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12693
12694 2003-04-05    <johan AT balder>
12695
12696         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12697         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12698         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12699         * src/SDCCast.c: fixed a warning
12700         * src/SDCCast.h: fixed a warning
12701         * src/SDCCicode.c (operandFromAst): fixed a warning
12702
12703 2003-04-04    <johan AT balder>
12704
12705         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12706         * src/SDCCast.c (decorateType): fixed bug #715076
12707         * src/SDCC.y: fixed bug #702907
12708
12709 2003-04-03    <johan AT balder>
12710
12711         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12712         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12713         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12714         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12715         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12716
12717 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
12718
12719         * _decdptr.c: fix return values
12720         * _gptrget.c: fix return values
12721         * _gptrgetc.c: fix return values
12722         * _gptrput.c: fix return values
12723         * _mulint.c: fix return values
12724         * as/z80/Makefile: fix 'make -j' problem
12725
12726 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
12727
12728         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12729         * configure.in: big cleanup, updated to autoconf 2.5x
12730         * configure: rebuilt from configure.in
12731         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12732         * sdcc_vc_in.h: reflect changes from sdccconf.h
12733         * doc/Makefile: fixed a flaw in "make install"
12734
12735 2003-04-02    <johan AT balder>
12736
12737         * src/ds390/gen.c (genCmp): no comments
12738         * src/mcs51/gen.c (genCmp): no comments
12739         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12740         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12741
12742 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
12743
12744         * support/regression/generate-cases.py: place generated file in given sub directory
12745         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12746         * support/regression/Makefile: improvements for 'make -j';
12747         side effect: it's simpler and faster now
12748
12749 2003-03-31  Borut Razem <borut.razem AT siol.net>
12750
12751         * src/z80/main.c: link-{port} and as-{port} defined without path
12752         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12753
12754 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
12755
12756         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12757
12758 2003-03-30  Borut Razem <borut.razem AT siol.net>
12759
12760         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12761           changed type of list parameter to set
12762         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12763         * src/port.h: changed type of do_assemble() parameter to set
12764         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12765           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12766           definition of "cppoutfilename" macro with NULL value in preProcess()
12767         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12768         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12769         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12770           replaced with set *binPathSet
12771         * shash_add() deallocates the item, if allready exsists, before adding the new one
12772         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12773
12774 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
12775
12776         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12777           a nested for loop bug in the PIC port
12778         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12779           for loops
12780
12781 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
12782
12783         * support/Util/dbuf.h: remove C++ stuff to make it portable
12784
12785 2003-03-28  Borut Razem <borut.razem AT siol.net>
12786
12787         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12788           literal strings in stringLiteral()
12789         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12790         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12791           to the project
12792
12793 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
12794
12795         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12796
12797 2003-03-26    <johan AT balder>
12798
12799         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12800         * src/ds390/gen.c (saveRegisters): catched symbol abuse
12801         * src/SDCCast.c (decorateType): fixed " -v < 3"
12802
12803 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
12804
12805         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
12806         Added Lenny Story's debug infrastructure changes:
12807         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
12808         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
12809         * src/cdbFile.c: added
12810         * src/SDCCdebug.c: added
12811         * src/SDCCdebug.h: added
12812         * src/SDCCast.c (createFunction)
12813         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
12814         * src/SDCCmain.c (parseCmdLine, main)
12815         * src/SDCCmem.c (redoStackOffsets)
12816         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
12817         * src/SDCCsymt.h
12818         * src/common.h
12819         * src/avr/gen.c (genAVRCode)
12820         * src/ds390/gen.c (gen390Code)
12821         * src/mcs51/gen.c (gen51Code)
12822         * src/pic/gen.c (genpic14Code)
12823         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
12824         * src/xa51/gen.c (genXA51Code)
12825         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
12826
12827 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12828
12829         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
12830         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
12831
12832 2003-03-22    <johan AT balder>
12833
12834         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
12835
12836 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
12837
12838         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
12839         * doc/cdbfileformat.lyx: added, written by Lenny Story
12840         * doc/Makefile: added cdbfileformat.lyx
12841         * doc/clean.mk: added cdbfileformat.lyx
12842
12843 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
12844
12845         * src/mcs51/peeph.def: fix bug #705773
12846
12847 2003-03-20    <johan AT balder>
12848
12849         An sfr/sbit can have an "at #" AND an initializer
12850         * src/SDCCsymt.c (checkSClass):
12851         * src/SDCCmem.c (allocGlobal):
12852         * src/SDCCmem.c (allocLocal):
12853         * src/SDCCast.c (createBlock):
12854
12855 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
12856
12857         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
12858
12859 2003-03-16    <johan AT balder>
12860
12861         Undid the hackup of const and volatile, the problem is much bigger
12862         * src/SDCC.y:1.65
12863         * src/SDCCast.c:1.171
12864         * src/SDCCglue.c:1.138
12865         * src/SDCCicode.c:1.146
12866         * src/SDCCsymt.c:1.150
12867         * src/SDCCval.c:1.65
12868
12869 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
12870
12871         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
12872         * src/ds390/gen.c (genAddrOf): fixed bug #704087
12873
12874 2003-03-13    <johan AT balder>
12875
12876         Hackup const and volatile modifiers in type chains a bit:
12877         * src/SDCC.y:1.63
12878         * src/SDCCast.c:1.169
12879         * src/SDCCglue.c:1.136
12880         * src/SDCCicode.c:1.143
12881         * src/SDCCsymt.c1.146
12882         * src/SDCCsymt.h1.59
12883         * src/SDCCval.c:1.63
12884
12885 2003-03-12    <johan AT balder>
12886
12887         * src/SDCCBBlock.h: more LRH debugging junk
12888         * src/SDCCcflow.h: more LRH debugging junk
12889         * src/SDCCloop.c: more LRH debugging junk
12890         * src/SDCC.y (struct_declaration): fixed bug #697590
12891         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
12892         * src/ds390/gen.c (aopForRemat): fixed bug #700031
12893         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
12894
12895 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12896         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
12897         test function names must now match exactly).
12898         * src/SDCCcse.c: added special case in findCheaperOp to allow
12899         extending a short integer. Makes less awful code for bug 700121 test case.
12900
12901 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12902
12903         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
12904         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
12905
12906 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12907
12908         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
12909         actually called (operandsNotEqual() was called for all
12910         operandsNotEqualX tests).
12911
12912 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12913
12914         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
12915         with shorter literals. Fixes bug 700121.
12916
12917 2003-03-11    <johan AT balder>
12918
12919         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
12920
12921 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
12922
12923         * src/SDCCloop.c (mergeRegions): an evil beast is dead
12924         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
12925
12926 2003-03-10  Borut Razem <borut.razem AT siol.net>
12927
12928         * src/SDCCmain.c: pipe preprocessor's output
12929         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12930         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12931         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12932         which closes all pipes in pipeSet set
12933         * src/SDCCset.c: free deleted item in function deleteSetItem()
12934         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12935         moved from z80 to src subproject
12936         * .version: increased version number to 2.3.4
12937
12938 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
12939
12940         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
12941         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
12942         * support/regression/ports/xa51/spec.mk: fix typo
12943
12944 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
12945
12946         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
12947
12948 2003-03-09  Borut Razem <borut.razem AT siol.net>
12949
12950         * src/SDCCmain.c: pipe preprocessor's output
12951         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12952         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12953         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12954         which closes all pipes in pipeSet set
12955         * src/SDCCset.c: free deleted item in function deleteSetItem()
12956         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12957         moved from z80 to src subproject
12958
12959 2003-03-09  Borut Razem <borut.razem AT siol.net>
12960
12961         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
12962         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
12963         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
12964         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
12965         * src/SDCCglobl.h: unification of WIN32 native definitions
12966
12967 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12968
12969         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
12970
12971 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12972
12973         * src/configure.in:   check for endianess (even while cross-compiling)
12974         * src/configure:      check for endianess (even while cross-compiling)
12975         * src/configure_in.h: check for endianess (even while cross-compiling)
12976         * src/avr/gen.c:        remove old endianess stuff
12977         * src/mcs51/gen.c:      remove old endianess stuff
12978         * src/ds390/gen.c:      remove old endianess stuff
12979         * src/pic/gen.c:        remove old endianess stuff
12980         * src/pic/genarith.c:   remove old endianess stuff
12981         * src/pic/glue.c:       fix endianess check
12982         * src/pic16/gen.c:      remove old endianess stuff
12983         * src/pic16/genarith.c: remove old endianess stuff
12984         * src/pic16/glue.c:     fix endianess check
12985         * src/xa51/gen.c:       remove old endianess stuff
12986         * src/z80/gen.c:        fix endianess check
12987         * src/SDCCglue.c:       fix endianess check
12988         * src/ds390/peeph.def: fix bug 700036
12989
12990 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12991
12992         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
12993         * src/configure: find appropriate data-types on host for SDCC's int and long
12994         * src/configure.in: find appropriate data-types on host for SDCC's int and long
12995         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
12996         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
12997
12998 2003-03-07    <johan AT balder>
12999
13000         Just a big NOOP:
13001                 some minor cleanups before the big shot
13002                 OP_DEFS and OP_USES now use Kevin's protection
13003                 new option --nolabelopt
13004
13005         * src/SDCCBBlock.c:
13006         * src/SDCCast.c,:
13007         * src/SDCCcflow.c:
13008         * src/SDCCcse.c:
13009         * src/SDCCicode.c:
13010         * src/SDCCicode.h:
13011         * src/SDCClabel.c:
13012         * src/SDCCloop.c:
13013         * src/SDCCmain.c:
13014         * src/ds390/ralloc.c:
13015         * src/mcs51/ralloc.c:
13016         * src/pic/ralloc.c:
13017         * src/xa51/ralloc.c:
13018         * src/z80/ralloc.c:
13019
13020 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
13021
13022         * src/pic/pcode.c (get_op): fix 64 bit warnings
13023         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
13024         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
13025         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
13026         * support/regression/tests/malloc.c: fix 64 bit warnings
13027
13028 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
13029
13030         * src/mcs51/gen.c (genMinus): fixed bug 696436
13031
13032 2003-03-02  Borut Razem <borut.razem AT siol.net>
13033
13034         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
13035
13036 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
13037
13038         * configure.in: test for mkstemp
13039         * sdccconf_in.h: add HAVE_MKSTEMP
13040
13041 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
13042
13043         * device/include/ctype.h: removed warning while using --stack-auto
13044         * device/include/malloc.h: removed warning while using --stack-auto
13045         * device/include/string.h: removed warning while using --stack-auto
13046
13047 2003-02-23  Borut Razem <borut.razem AT siol.net>
13048
13049         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
13050         because NDEBUG is defined (see man assert)
13051         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
13052
13053 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13054
13055         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
13056         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
13057
13058 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13059
13060         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
13061         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
13062
13063 2003-02-18    <johan AT balder>
13064
13065         * as/mcs51/asmain.c (asmbl): module can start with a digit
13066         * as/z80/asmain.c (asmbl): module can start with a digit
13067
13068 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
13069
13070         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
13071         * src/asm.c: fix pipe() for Mingw32
13072
13073 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
13074
13075         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
13076         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
13077         make -V work again; --c1mode reads now from stdin
13078         * doc/sdccman.lyx: added --c1mode
13079         * support/Util/SDCCerr.c: new messages for c1 mode
13080         * support/Util/SDCCerr.h: new messages for c1 mode
13081         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
13082
13083 2003-02-15    <johan AT balder>
13084
13085         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
13086
13087 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
13088
13089         * doc/sdccman.lyx: Environment variables, -o and other minor things
13090
13091 2003-02-14    <johan AT balder>
13092
13093         * src/xa51/main.c: before anyone really tries to use it :)
13094
13095         * Install doc's in share/sdcc/doc
13096         * removed some obsolete files
13097         * Do a proper make distclean and uninstall
13098         M Makefile.common.in
13099         R sdccbuild.sh
13100         M as/Makefile
13101         M device/include/Makefile.in
13102         M device/lib/Makefile.in
13103         M doc/sdccman.lyx
13104         M link/Makefile
13105         M sim/ucsim/doc/Makefile.in
13106         M src/clean.mk
13107         R src/avr/peeph.rul
13108         R src/xa51/peeph.rul
13109         M support/cpp2/Makefile.in
13110         M support/makebin/Makefile
13111
13112
13113 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13114
13115         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13116
13117 2003-02-10  Borut Razem <borut.razem AT siol.net>
13118
13119         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13120         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13121         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13122         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13123         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13124         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13125         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13126         src/z80/Makefile.bcc: Borland Makefile cleanup
13127         * as/z80/Makefile.bcc: Added Borland Makefile
13128         * support/cpp2/borland.h: Removed
13129
13130 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13131
13132         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13133         * src/SDCC.lex: new pragma NOIV
13134         * src/SDCCglobl.h: new pragma NOIV
13135         * src/SDCCmem.c: new pragma NOIV
13136
13137 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13138
13139         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13140
13141 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13142
13143         * src/SDCCmain.c: signal handling is switched off by --debug
13144         * doc/Makefile: small fix for install; use clean.mk again
13145         * doc/clean.mk: clean *.pdf and *.html too
13146
13147 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13148
13149         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13150         * device/lib/printfl.c: fix a ds390 bug by making it portable
13151         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13152         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13153         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13154         * debugger/mcs51/cmd.c: converted multi-line string literals
13155         * sim/ucsim/globals.cc: converted multi-line string literals
13156         * src/SDCCmain.c: introduced signal handler to remove temp files
13157         * doc/Makefile: small tweaks, implement clean
13158         * doc: removed generated files
13159
13160 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13161
13162         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13163         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13164         Address Record is not correctly generated for DS390."
13165
13166 2003-02-02  Borut Razem <borut.razem AT siol.net>
13167
13168         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13169         * as/mcs51/asm.h: fixed compilation with Borland C
13170         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13171         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13172         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13173         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13174         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13175         src/z80/Makefile.bcc: delete $(LIB) only if exist
13176         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13177
13178 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13179
13180         * device/include/malloc.h: introduced NULL
13181         * device/include/string.h: introduced NULL
13182         * device/include/stdlib.h: introduced NULL
13183         * device/lib/_memcpy.c: removed NULL
13184         * device/lib/_strcat.c: removed NULL
13185         * device/lib/_strchr.c: removed NULL
13186         * device/lib/_strcmp.c: removed NULL
13187         * device/lib/_strcpy.c: removed NULL
13188         * device/lib/_strcspn.c: removed NULL
13189         * device/lib/_strlen.c: removed NULL
13190         * device/lib/_strncat.c: removed NULL
13191         * device/lib/_strncmp.c: removed NULL
13192         * device/lib/_strncpy.c: removed NULL
13193         * device/lib/_strpbrk.c: removed NULL
13194         * device/lib/_strrchr.c: removed NULL
13195         * device/lib/_strspn.c: removed NULL
13196         * device/lib/_strstr.c: removed NULL
13197         * device/lib/_strtok.c: removed NULL
13198         * device/lib/malloc.c: removed NULL, include own header
13199
13200 2003-02-02    <johan AT balder>
13201
13202         * 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
13203         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13204         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13205         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13206         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13207         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13208
13209 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13210
13211         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13212         area 'DATA'"
13213
13214 2003-02-01    <johan AT balder>
13215
13216         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13217
13218 2003-01-31    <johan AT CP255758-A>
13219
13220         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13221
13222 2003-01-30    <johan AT balder>
13223
13224         * src/SDCCBBlock.c: automatic bug detection
13225         * src/SDCCicode.c: automatic bug detection
13226
13227 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13228
13229         * src/SDCCglobl.h:   now --xram-size 0 works
13230         * src/SDCCmain.c:    now --xram-size 0 works
13231
13232 2003-01-29    <johan AT balder>
13233
13234         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13235
13236 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13237
13238         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13239         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13240         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13241         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13242         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13243         * src/SDCCmain.c:    Added options --xram-size and --code-size
13244
13245 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13246
13247         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13248         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13249
13250 2003-01-27    <johan AT balder>
13251
13252         * src/SDCC.y: fixed bug #613764
13253
13254 2003-01-26    <johan AT balder>
13255
13256         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13257         * src/SDCCsymt.h: fixed bug #673374
13258         * src/SDCCglue.c: fixed bug #661910
13259         * src/SDCCast.c: fixed bug #458099 and 673374
13260
13261 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13262
13263         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13264         * as/mcs51/strcmpi.h: added
13265         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13266         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13267         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13268         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13269         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13270         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13271         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13272         * as/mcs51/Makefile.aslink: new module strcmpi
13273         * as/mcs51/Makefile.asx8051: new module strcmpi
13274         * as/mcs51/Makefil.bcc: new module strcmpi
13275         * as/mcs51/Makefile.in: new module strcmpi
13276         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13277
13278 2003-01-26    <johan AT balder>
13279
13280         * src/SDCCglue.c: reverted back to 1.124
13281         * src/SDCCast.c: reverted back to 1.156
13282         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13283
13284 2003-01-25    <johan AT balder>
13285
13286         * src/SDCCglue.c: A better fix for bug #661910
13287         * src/SDCCast.c: A better fix for bug #661910
13288         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13289
13290 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13291
13292         * src/Makefile.in: remove spawn.o
13293         * src/SDCCmain.c: remove spawn.h
13294         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13295         * src/spawn.c: removed
13296         * src/spawn.h: removed
13297         * support/regression/ports/ds390/spec.mk: link with -r
13298
13299 2003-01-24    <johan AT CP255758-A>
13300
13301         * src/ds390/gen.c (aopOp): fixed bug #667458
13302         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13303         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13304         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13305
13306 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13307
13308         * src/mcs51/peeph.def: better assembler identation by Frieder
13309         * src/mcs51/gen.c: better assembler identation by Frieder
13310
13311 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13312
13313         * as/z80/string.h: removed for gcc 3.2
13314         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13315         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13316
13317 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13318
13319         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13320         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13321         * support/regression/Makefile: separate temp files for ports
13322         * support/regression/generate-cases.py: separate temp files for ports
13323         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13324         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13325
13326 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13327
13328         * moved tinitalk to device/examples/ds390
13329
13330 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13331
13332         * as/mcs51/lkmem.c: rflag is for DS390
13333         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13334         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13335                          (linkEdit): move mem- and map-files the same way as ihx-files
13336         * src/z80/main.c (_setDefaultOptions): removed --generic
13337         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13338         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13339         * src/pic/glue.c (picglue): --c1mode works again
13340         * src/pic16/glue.c (pic16glue): --c1mode works again
13341         * src/asm.c (printCLine): fix #660034
13342
13343 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13344
13345         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13346         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13347         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13348         * as/mcs51/lkmem (summary): better fix for sp problem
13349         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13350         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13351         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13352                                               remove --stack-after-data
13353
13354 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13355
13356         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13357         * src/SDCCutil.c (join): ugly bug: missing '\0'
13358         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13359
13360 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13361
13362         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13363         * src/port.h: typo
13364         * src/pic/main.c (_asmCmd): gpasm supports -o
13365         * src/z80/main.c: more general macros
13366         * device/lib/Makefile.in: remove intermediate files
13367
13368 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13369
13370         * .version: Bumped version number to 2.3.3
13371         * src/SDCCBBlock.c: new option -o
13372         * src/SDCCglobl.h: new option -o
13373         * src/SDCCglue.c: new option -o
13374         * src/SDCCmain.c: new option -o
13375         * src/asm.c: new option -o
13376         * src/ds390/main.c: new option -o
13377         * src/pic/glue.c: new option -o
13378         * src/pic/pcode.c: new option -o
13379         * src/pic/ralloc.c: new option -o
13380         * src/pic16/glue.c: new option -o
13381         * src/pic16/pcode.c: new option -o
13382         * src/pic16/ralloc.c: new option -o
13383         * src/z80/main.c: new option -o
13384         * device/lib/Makefile.in: use -o
13385         * support/regression/ports/ds390/spec.mk: use -o
13386         * support/regression/ports/gbz80/spec.mk: use -o
13387         * support/regression/ports/mcs51/spec.mk: use -o
13388         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13389         * support/regression/ports/z80/spec.mk: use -o
13390         * support/regression/ports/ucz80/spec.mk: use -o
13391         * support/regression/ports/xa51/spec.mk: use -o
13392         * support/regression/fwk/lib/timeout.c: fix usage string
13393
13394 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13395         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13396
13397 2003-01-07    <johan AT balder>
13398
13399         * src/SDCCast.c (decorateType): fixed bug #600035
13400
13401 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13402         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13403         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13404         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13405         * src/pic/pcode.c: outcommented unused variable to remove warnings
13406         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13407
13408 2003-01-06    <karl AT turbobit.com>
13409         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13410    regression tests.
13411
13412 2003-01-06    <johan AT balder>
13413
13414         * src/SDCCicode.c: fixed array add
13415
13416 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13417         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13418         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13419
13420 2003-01-04    <johan AT balder>
13421
13422         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13423
13424 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13425         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13426
13427 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13428         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13429         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13430
13431 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13432         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13433
13434 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13435         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13436
13437 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13438         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13439
13440 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13441
13442     * in /sdcc/as/mcs51/ changed these files in order to create an
13443     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13444     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13445     following files to include the previous two files: aslink.dsp,
13446     Makefile.aslink, Makefile.bcc, and Makefile.in.
13447
13448     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13449     .adb instead of .cdb
13450
13451 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13452
13453         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13454         value from option --iram-size.
13455
13456 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13457
13458         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13459         dram[] array.
13460
13461 2002-09-18    <wiml AT hhhh.org>
13462
13463         * SDCClrange.h: exposed setFromRange() and setToRange()
13464         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13465           packRegsForAccUse() (bug 542397)
13466         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13467           multiple times and emitting the fetch operations more than once
13468           added aopGetUsesAcc() function to allow binary operators to
13469           fetch their operands in the correct order; made genMinus() emit
13470           compact code for X = LITERAL - Y
13471
13472 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13473         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13474         sprintf() in line 1267.
13475
13476 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13477         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13478         like ports.
13479
13480 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13481         Changes to aslink (All the changes are marked with 'JCF'):
13482
13483         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13484         summary().
13485
13486         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13487         area BSEG.  Also moves, if possible, the DATA area down into the internal
13488         ram so more space is available.
13489
13490         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13491         sflag.
13492
13493         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13494         not bytes.  Function summary() which creates a memory usage summary
13495         file with extension .mem.  Reports of overlaping stack and small stack
13496         size.  If the space for the stack is less than 16 bytes aslink trows a
13497         warning.
13498
13499         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13500         the 8051.  Option 'y' for memory summary output file.
13501
13502         Changes to sdcc (All the changes are marked with 'JCF'):
13503
13504         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13505
13506         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13507         overlaying area for it (uses RegBankUsed[4]).
13508
13509         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13510         bank zero as used by default.  By default aslink locates the stack
13511         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13512         the creation of the .mem file.  Delegates the allocation of data area
13513         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13514         the begining of the stack area to aslink.
13515
13516         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13517         glue() in SDCCglue.c creates an area for it.
13518
13519 2002-09-03  Borut Razem <borut.razem AT siol.net>
13520         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13521         sdcc/src/pic/glue.c:
13522         introduced atexit() handler for teporay files removal in case of
13523         errors, assertions, ...
13524
13525 2002-08-29  Borut Razem <borut.razem AT siol.net>
13526         * sdcc/support/cpp2/auto-host_vc_in.h:
13527         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13528         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13529         Maybe there is a similar problem with BORLANDC? It should be checked!
13530
13531         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13532         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13533         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13534         was not executed, and the compiler (cl) launched a warning:
13535         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13536
13537 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13538         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13539
13540 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13541         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13542
13543         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13544           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13545           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13546           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13547           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13548           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13549           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13550         - added Release configuration in VS projects
13551         - review of compiler an linker options
13552         - VC .exe files are generated in bin_vc directory, not to interfere
13553           with binaries generated from other projects (cygwin, mingw, bcc ...)
13554
13555         * sdcc/src/yacc.dsp: added
13556
13557         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13558         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13559         and insert the version number definitions from .version
13560
13561         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13562
13563         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13564         added - genarate auto-host.h using auto-host_vc_in.h as template
13565
13566         * sdcc/sdcc_vc.h,
13567         removed from CVS, generated automatically
13568
13569 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13570         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13571
13572 2002-08-11  Borut Razem <borut.razem AT siol.net>
13573         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13574
13575 2002-08-10  Borut Razem <borut.razem AT siol.net>
13576         * src/SDCCmain.c (main):
13577         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13578         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13579         The consequence was that some temporary files were not removed.
13580
13581         * src/SDCCglue.c:
13582         unification of code in functions tempfilename() and tempfile():
13583         function tempnam() is defined in Visual Studio 6.0 and .NET
13584
13585         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13586
13587         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13588           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13589         - removed compiler command line option /WX: Treats all warnings as errors
13590         - update a list of source files, included into the project
13591
13592         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13593           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13594         changed project type to Generic Project so that can be correcly converted to VS.NET project
13595
13596         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13597
13598         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13599
13600         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13601
13602         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13603         added return 0 statements after assert() to make compiler happy
13604
13605         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13606         added newline in the def file to keep MSC compiler satisfied
13607
13608         * sdcc/src/z80/gen.c:
13609         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13610           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13611         - solved MSC error in function aopDump()
13612
13613         * sdcc_vc.h: define PREFIX as "\\sdcc"
13614
13615 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
13616         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13617
13618 2002-06-22  Scott Dattalo <scott AT dattalo.com>
13619         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13620         - Rewrote the register banking algorithm.
13621         - Added pCode live-range analysis to registers (for now, only non-used and
13622         singly-used registers optimized away)
13623
13624         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13625
13626         * 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.
13627
13628 2002-05-10  Scott Dattalo <scott AT dattalo.com>
13629         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13630
13631 2002-04-22  Michael Hope  <michaelh AT vroom>
13632
13633         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13634
13635         * configure.in (DD_COPT): Added include support required for gbdk.
13636
13637         * .version: Bumped version number just to increase it.
13638
13639         * src/SDCCmain.c: Added -nostdinc to the default options.
13640
13641 2002-04-15  Michael Hope  <michaelh AT vroom>
13642
13643         * device/lib/z80/printf.c (sprintf): Added.
13644
13645         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13646
13647         * src/z80/peeph.def: Added transpose redundent load rule.
13648
13649         * src/z80/main.c: Added force callee saves for jaune.
13650
13651         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13652
13653         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13654
13655 2002-03-28  Johan Knol  <johan AT balder>
13656
13657         * src/SDCCval.c: fixed bug #532436
13658
13659 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13660         * /src/port.h:
13661         Added "char *Processor" field to the port structure.
13662
13663         * /src/SDCCmain.c:
13664         Added -p option. Allows port dependent processor to be specified.
13665
13666         * all ports:
13667         Initialized the new field char *Processor field to NULL in all ports
13668
13669         * /src/pic/*:
13670         Compiler generated registers for interrupt context saving
13671         were not getting allocated.
13672
13673 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
13674
13675         * /src/SDCCast.c:
13676         Fixed left shift. Will promote the left side of a left shift
13677         if a) left shifting more than size of operand or b) when assigned
13678         to something size > size of left side
13679
13680 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13681         * src/pic/*
13682         tons of changes. Register allocation has been
13683         rewritten. Added customization for the various PICs. Flow
13684         analysis is restructured. ...
13685
13686         * src/pic/device.h:
13687         Added
13688
13689         * src/pic/device.c:
13690         Added. device.c is a PIC port hack to accomodate variations
13691         in PIC devices.
13692
13693 2002-03-13  Michael Hope  <michaelh AT vroom>
13694
13695         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
13696
13697 2002-03-04  johanknol  <johanknol AT manik>
13698
13699         * /src/SDCCval.c: fixed
13700
13701         const unsigned char arr[][2] = { { 0, 1 } };
13702         t18.c:1: error: Initializer element is not constant
13703
13704 2002-03-04  bela  <bela AT manik>
13705
13706         * /device/include/mcs51reg.h:
13707         ds89c420 register definition update
13708
13709 2002-03-03    <johan AT FRIJA>
13710
13711         * support/Util/SDCCerr.c: did something, but don't no why anymore
13712
13713         * support/regression/tests/bug-524691.c: made it a little less shy
13714
13715         * src/SDCCast.c (decorateType): fixed bug #524697
13716
13717         * src/SDCCast.c: made some lineno improvements
13718
13719         * src/SDCCval.c (getNelements): changed warning to error
13720
13721         * src/SDCCglue.c (printIvalArray): changed warning to error
13722
13723         * src/SDCCicode.c: fixed a warning for mingw
13724
13725         * src/SDCCast.c (decorateType): fixed the << promotion for ops
13726
13727         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13728
13729 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
13730
13731         * src/ds390/peeph.def:
13732         Added some more peephole rules
13733
13734         * src/ds390/gen.c: Various fixes & enhancements
13735
13736         * src/SDCClrange.c, src/SDCClrange.h:
13737         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13738
13739         * src/ds390/ralloc.c:
13740         various fixes & enhancements (ds390) specific
13741
13742         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13743         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13744         from rallocs.
13745
13746         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13747
13748 2002-03-02    <johan AT FRIJA>
13749
13750         * src/SDCCast.c (decorateType): fixed bug #524708
13751
13752         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13753
13754         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13755
13756 2002-03-01  Michael Hope  <michaelh AT vroom>
13757
13758         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13759
13760         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13761
13762 2002-03-01    <johan AT FRIJA>
13763
13764         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13765
13766         * src/SDCCast.c (decorateType): fixed bug #524209
13767
13768         * src/SDCCval.c (valNot): fixed bug #524195
13769
13770 2002-02-26    <johan AT balder>
13771
13772         * src/xa51/gen.c: fixed a warning
13773
13774         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13775
13776         * src/SDCCast.c (decorateType): fixed bug #522534
13777
13778 2002-02-23    <johan AT balder>
13779
13780         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13781
13782 2002-02-22    <johan AT balder>
13783
13784         * src/SDCCast.c: fixed bug #514865
13785
13786         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13787
13788 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
13789
13790         * sdcc/src/SDCCloop.c:
13791         Previous fix was not good. basic blocks that have "break" or "return" are
13792         not really partof a loop , but live ranges used in these blocks should
13793         be live thru the entire loop, so set partOfLoop but don't add them to
13794         loop region
13795
13796 2002-02-21    <johan AT FRIJA>
13797
13798         * src/SDCCcse.c: fixed bug #514308
13799
13800 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
13801
13802         * src/SDCCloop.c:
13803         Fixed BUG #519583. If a conditional block ended in a return/break
13804         statement inside a loop, it was not being considered part of the loop.
13805
13806         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
13807
13808 2002-02-10  Karl Bongers <karl AT turbobit.com>
13809
13810         * debugger/*:
13811         Fixed up SDCDB debugger somewhat.  Updated debugger/README
13812         with lots of comments and notes.
13813
13814         * device/examples/test2.c:
13815         Fix bug, "red" variable not being initialized(compiler complained).
13816
13817         * device/examples/Makefile, examples/test3.c:
13818         Add Makefile in device/examples folder, compiles test3.c
13819         for use as a multiple module SDCDB test case.
13820
13821         * sim/ucsim/cmd.src/cmdset.cc:
13822         Took out debug printfs in ucsim "next" command.
13823
13824         * sim/ucsim/xa.src:
13825         Karl and Johan start ucsim XA support.  Most dissassembly working,
13826         about 75% emulation done(plenty of work remaining).
13827
13828         * sim/ucsim/z80.src:
13829         Add Z80 support to ucsim, add test-ucz80 regression test,
13830         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
13831         Notice z80 compiler fails on examples/test3.c/crc code.
13832
13833 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
13834
13835         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
13836         Added support for --parms-in-bank1
13837
13838         * src/ds390/peeph.def:
13839         added a few more peephole optimzations
13840
13841         * src/ds390/main.c:
13842         1) added __builtin_inp & __builtin_outp used to read in data of given length
13843            from a memory mapped port
13844         2) added __builtin_memcmp
13845         3) added __builtin_swapw swap bytes of a short
13846
13847         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
13848         1) handle multiple send & receives from register bank1
13849         2) ralloc can now allocate DPTR1 to some liveRanges
13850
13851         * src/SDCCsymt.c, src/SDCCsymt.h:
13852         changes to handle multiple sends & receives
13853
13854         * src/SDCCptropt.h:
13855         added some pointer arithmetic optimization
13856
13857         * src/SDCCptropt.c:
13858         added some pointer arithmetic optimizations but not stable yet so not
13859         called from anywhere (will get this working shortly)
13860
13861         * src/SDCCopt.c: fixed for multiple sends & receives
13862
13863         * src/SDCCmain.c:
13864         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
13865         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
13866            set preprocessor defines (depending on options)
13867
13868         * src/SDCCicode.c, src/SDCCicode.h:
13869         changes made to handle multiple sends & receives
13870
13871         * src/SDCCglobl.h:
13872         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
13873
13874         * src/SDCCcse.c, src/SDCCcse.h:
13875         added function findbackward def (to be used in upcoming optimization)
13876
13877         * src/SDCCcflow.c, src/SDCCcflow.h:
13878         added function returnAtEnd - to determine if a basic block terminates with
13879         a RETURN iCode
13880
13881         * src/SDCCast.c, src/SDCCast.h:
13882         added option parms-in-bank1
13883
13884         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
13885         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
13886         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
13887         adjusted for --parms-in-bank1 option
13888
13889         * device/include/string.h:
13890         donot redefine "reentrant" keyword
13891
13892         * device/include/ds80c390.h: Added some more SFRs
13893
13894 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
13895
13896         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
13897
13898 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
13899
13900         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
13901
13902 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
13903
13904         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
13905
13906 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
13907
13908         * Added --xram-movc option
13909
13910 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
13911
13912         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
13913
13914 2002-01-11  Johan Knol
13915
13916         * Added math lib of Jesus Calvino-Fraga
13917
13918 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
13919
13920         * src/SDCCmain.c (processFile): fix processing of ../../src.c
13921         * support/regression/Makefile: new target test-mcs51-stack-auto
13922         * support/regression/ports/mcs51-stack-auto/spec.mk: added
13923
13924 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13925
13926         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
13927
13928 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13929
13930         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
13931
13932 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
13933
13934         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
13935
13936         * src/SDCCglue.h: add definition for printIvalChar()
13937
13938 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13939
13940         * src/SDCCast.c: fix #498138 by Johan
13941
13942         * src/SDCCglue.c: fix #498138 by Johan
13943
13944 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13945
13946         * support/regression/Makefile: fix clean
13947
13948         * support/regression/ports/ds390/support.c: fix transmission of last character
13949
13950 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
13951
13952         * /sdcc/src/ds390/gen.c:
13953         a) improved computing address of stack variable
13954         b) took out some #if 0 code
13955         c) improved parmBytes adjustment
13956         d) improved genPlusIncr & genMinusIncr
13957         e) genCmp could generate bad code (when left assigned to DPTR)
13958         f) Fixed bug in hasInc
13959
13960         * /sdcc/src/ds390/ralloc.c:
13961         a) packRegsForSupport could mess up live information (Fixed)
13962         b) packRegsDPTRuse could be incorrect for left & right shift
13963
13964         * /sdcc/src/mcs51/ralloc.c:
13965         packRegsForSupport could mess up the live information (Fixed)
13966
13967         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
13968
13969         * /sdcc/src/SDCCast.c:
13970         can reverse a loop even if function call is present as long
13971         as the loop control variable is local & is not passed as parameter
13972
13973 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13974
13975         * /sdcc/ChangeLog: *** empty log message ***
13976
13977         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
13978         More builtin function additions for TININative
13979
13980         * /sdcc/src/ds390/ralloc.c:
13981         Had broken the regression testsuite
13982
13983         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
13984
13985         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
13986         Added funcattr hasStackParms will be set for reentrant functions when there
13987         are paramteres on the stack, this helps in minimizing frame pointer generation
13988         typeFromStr can handle function pointers now
13989
13990         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
13991         *** empty log message ***
13992
13993 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13994
13995         * /src/ds390/gen.c, /src/ds390/main.c:
13996         More builtin function additions for TININative
13997
13998         * /src/ds390/ralloc.c:
13999         Had broken the regression testsuite
14000
14001         * /src/SDCCast.c: Fixed a bug in dumptree
14002
14003         * /src/SDCCsymt.c, /src/SDCCsymt.h:
14004         Added funcattr hasStackParms will be set for reentrant functions when there
14005         are paramteres on the stack, this helps in minimizing frame pointer generation
14006         typeFromStr can handle function pointers now
14007
14008         * /doc/builtins.txt, /doc/TININative.txt:
14009         *** empty log message ***
14010
14011
14012 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14013
14014         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
14015         ALPHA version for -mTININative
14016
14017         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
14018         updated to reflect changes in the port structure
14019
14020         * /src/port.h:
14021         added function do_assemble (similar to do_link) if non-null this function
14022         will be called to do assembly (-mTININative) requires a multi command
14023         assembly
14024         added function genAssemblerEnd will be called to generate assembler Epilogue
14025
14026         * /src/SDCCsymt.c:
14027         added _JavaNative to debug info printing
14028
14029         * /src/SDCCmain.c: added option --tini-libid
14030         added port->do_assemble function (-mTININative) has a multi command assemble
14031
14032         * /src/SDCCglue.c: Disabled "constExpr" check
14033         added port->genAssemblerEnd function
14034
14035         * /src/SDCCglobl.h: Added option --tini-libid value
14036
14037         * /src/SDCCast.h:
14038         tookout optimizeCompare from the header (has no external references)
14039
14040         * /src/SDCCast.c: made one more function "static"
14041
14042 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
14043
14044         * src/z80/mappings.i: Added z80asm support.
14045
14046         * src/z80/main.c: Added z80asm support on --asm=z80asm
14047
14048         * src/z80/gen.c: Fixed asm portability issues.
14049
14050         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
14051
14052         * src/SDCCglue.c (printExterns): Added global/extern split.
14053
14054 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
14055
14056         * support/regression/Makefile: added test for mcs51 model large
14057
14058         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
14059
14060         * support/regression/ports/gbz80/spec.mk: added -mgbz80
14061
14062 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
14063
14064         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
14065
14066 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
14067
14068         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
14069
14070         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
14071
14072 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
14073
14074         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
14075
14076         * support/regression/tests/simplefloat.c: Port to mcs51.
14077
14078 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
14079         * support/regression/tests/bug-485362.c: Added.
14080
14081         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
14082
14083         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
14084
14085         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
14086
14087         * src/z80/gen.c (aopDump): Added a dump function.
14088
14089 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
14090         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
14091
14092         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
14093
14094         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
14095
14096         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
14097
14098         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
14099
14100         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
14101
14102         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
14103
14104         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
14105
14106         * support/regression/ports/ds390/support.c: Use tinibios.
14107
14108         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
14109
14110 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
14111
14112         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14113         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14114
14115         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14116
14117         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14118
14119 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14120
14121         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14122
14123         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14124         (packRegsForIYUse): Created and optimised.
14125
14126 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14127
14128         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14129 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14130
14131         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14132
14133         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14134
14135         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14136
14137 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14138
14139         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14140
14141         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14142
14143 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14144
14145         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14146
14147         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14148
14149         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14150
14151 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14152
14153         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14154         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14155         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14156
14157         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14158
14159         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14160         (genNotFloat): Added.
14161         (genUminusFloat): Added.
14162
14163         * device/lib/z80/Makefile: Added floating pt stubs.
14164
14165         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14166
14167         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14168
14169         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14170
14171 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14172
14173         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14174
14175         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14176
14177         * sdcc/support/regression/Makefile: Add port ds390.
14178
14179         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14180
14181         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14182
14183         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14184
14185         * sdcc/support/regression/ports/ds390/support.c: Added.
14186
14187         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14188
14189         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14190
14191         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14192
14193 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14194
14195         * device/include/malloc.h: Added z80 and gbz80 support.
14196
14197         * device/lib/gbz80/heap.s: Added.
14198
14199         * device/lib/z80/heap.s: Added.
14200
14201         * device/lib/malloc.c: Added z80 and gbz80 support.
14202
14203         * support/regression/tests/malloc.c (testMalloc): Added.
14204
14205         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14206
14207         * support/regression/tests/bug-478094.c: Added.
14208
14209         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14210
14211 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14212
14213         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14214
14215         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14216
14217         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14218
14219         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14220
14221         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14222
14223 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14224
14225         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14226
14227 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14228
14229         * support/regression/tests/bug-477927.c: Added.
14230
14231         * src/z80/peeph.def: Added minor rules.
14232
14233         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14234
14235         * src/z80/peeph.def: Added jump optimisation modification.
14236
14237 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14238
14239         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14240
14241 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14242
14243         * support/regression/tests/funptrs.c: Added.
14244
14245 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14246
14247         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14248
14249 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14250
14251         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14252
14253         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14254
14255         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14256         (movLeft2ResultLong): Created.
14257
14258         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14259         (joinPushes): Added.  Joins two char pushes into a word push.
14260
14261 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14262
14263         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14264
14265         * support/makebin/Makefile (install): Added creation of dest dir.
14266
14267 2001-10-24 Karl Bongers <karl AT turbobit.com>
14268
14269         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14270
14271 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14272
14273         * src/z80/ralloc.c: Turned off faulty pack for one use.
14274
14275         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14276
14277         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14278
14279 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14280
14281         * support/regression/Makefile: Improved clean
14282
14283         * support/regression/ports/gbz80/spec.mk: Added clean
14284
14285         * support/regression/ports/host/spec.mk: Added clean
14286
14287         * support/regression/ports/z80/spec.mk: Added clean
14288
14289         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14290
14291         * support/regression/ports/mcs51/timeout.c: little improvements
14292
14293 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14294
14295         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14296
14297         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14298
14299         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14300
14301 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14302
14303         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14304
14305         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14306
14307 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14308         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14309
14310         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14311
14312         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14313
14314         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14315
14316         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14317
14318         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14319
14320         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14321
14322         * support/regression/tests/longor.c: Added.
14323
14324 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14325
14326         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14327
14328         * as/mcs51/aslink.h: define PATH_MAX
14329
14330         * as/mcs51/asm.h: define PATH_MAX
14331
14332         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14333
14334         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14335
14336         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14337
14338         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14339
14340         * src/SDCCglobl.h: define PATH_MAX
14341
14342         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14343
14344         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14345
14346 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14347
14348         * src/z80/gen.c (gencjneshort): Fixed
14349
14350         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14351
14352 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14353
14354         * support/regression/tests/bug-469671.c: Added.
14355
14356         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14357
14358 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14359
14360         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14361
14362         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14363
14364 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14365
14366         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14367
14368         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14369
14370         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14371
14372         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14373
14374         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14375
14376         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14377
14378         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14379
14380 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14381
14382         * 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.
14383
14384         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14385
14386         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14387
14388 2001-10-07    <johan AT FRIJA>
14389
14390         * device/lib/gets.c (gets): fixed the return value.
14391
14392 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14393         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14394
14395         * 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.
14396
14397         * 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.
14398
14399         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14400
14401         * src/pic/gen.c: Removed Safe_strdup.
14402
14403         * configure.in: Added option to enable libgc support.
14404
14405         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14406         (bitVectUnion): Optimised.
14407         (bitVectIntersect): Optimised.
14408         (bitVectBitsInCommon): Optimised.
14409         (bitVectCplAnd): Optimised.
14410
14411         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14412
14413 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14414
14415         * src/SDCCmain.c: distinguish between assembler debug and plain options
14416
14417         * src/avr/main.c:   remove standard assembler options
14418
14419         * src/ds390/main.c: remove standard assembler options
14420
14421         * src/mcs51/main.c: remove standard assembler options
14422
14423         * src/port.h: removed "PENDING" comment
14424
14425 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14426
14427         * src/device/lib/_mulint.c  : new, with assember functions
14428
14429         * src/device/lib/_mullong.c : new, with assember functions
14430
14431         * src/device/lib/_divuint.c : with assember functions
14432
14433         * src/device/lib/_divsint.c : with assember functions
14434
14435         * src/device/lib/_divulong.c: with assember functions
14436
14437         * src/device/lib/_divslong.c: with assember functions
14438
14439         * src/device/lib/_moduint.c : with assember functions
14440
14441         * src/device/lib/_modsint.c : with assember functions
14442
14443         * src/device/lib/_modulong.c: with assember functions
14444
14445         * src/device/lib/_modslong.c: with assember functions
14446
14447         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14448
14449         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14450
14451         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14452                                       replaced _mululong.c and _mulslong.c by _mullong.c
14453
14454 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14455
14456         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14457
14458 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14459
14460         * src/SDCCglue.c: test, if win32api is available for MINGW
14461
14462 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14463
14464         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14465         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14466         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14467         * support/regression/ports/host/spec.mk: removed GENERIC
14468         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14469         * support/regression/ports/z80/spec.mk: removed GENERIC
14470
14471 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14472
14473         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14474
14475         * support/regression/tests/bug-467035.c: Created.
14476
14477 2001-10-01    <johan AT FRIJA>
14478
14479         * src/SDCC.y: fixed bug #466586 part 1
14480
14481 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14482
14483         * SDCCicode.c: z80 has no generic pointers
14484         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14485
14486 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14487
14488         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14489
14490 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14491
14492         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14493
14494         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14495
14496 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14497
14498         * configure.in: Fixed up so that ucsim is only configured once.
14499
14500         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14501
14502         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14503         (getPathDifference): As above.
14504
14505         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14506
14507         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14508
14509 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14510         * .version: Updated to 2.3.1
14511
14512         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14513         Added copyright header.
14514
14515         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14516         (assemble): Added support for macro based assembler commands.
14517         (linkEdit): Added support for macro based linker commands.
14518         (preProcess): Changed the pre-processor to use macros.
14519         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14520         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14521
14522         * device/lib/z80/crt0.s: Added module name for debugging.
14523
14524 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14525
14526         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14527
14528         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14529
14530         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14531
14532         * src/Makefile.in: Added SDCCmacro and SDCCutil
14533
14534 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14535
14536         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14537
14538 2001-09-16    <johan AT FRIJA>
14539
14540         * 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.
14541
14542 2001-09-15    <johan AT FRIJA>
14543
14544         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14545         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14546
14547 2001-09-11    <johan AT FRIJA>
14548
14549         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14550
14551 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14552
14553         * support/regression/tests/bug-460444.c: Added test case.
14554
14555         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14556         (genCast): Added justification for all of the asserts.
14557
14558 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14559
14560         * support/regression/support.c: _xdata replaced by xdata
14561
14562         * support/regression/spec.mk: removed _generic
14563
14564 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14565
14566         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14567
14568         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14569         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14570
14571         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14572
14573         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14574
14575         * support/regression/tests/bug-460010.c: Added test case.
14576
14577         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14578
14579 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
14580
14581         * support/regression/Makefile: inter-port-clean adjusted for mcs51
14582
14583         * support/regression/testfwk.c: removed workaround for bug #436344
14584
14585         * support/regression/tests/bp.c: use less memory with mcs51
14586
14587         * support/regression/tests/bug-441448.c: use less memory
14588
14589         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14590
14591         * support/regression/collate-results.py: typo
14592
14593 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
14594
14595         * support/regression/tests/fetchoverlap.c: Added new test case.
14596
14597         * support/regression/tests/bp.c: Added new test case.
14598
14599         * support/regression/tests/bug-448984.c: Added new test case.
14600
14601         * support/regression/tests/pow2shifts.c: Added new test case.
14602
14603         * src/z80/gen.c: Turned off the noise it normally generates for the release.
14604         (genlshTwo): Fixed right shift for count > 8.
14605
14606         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14607
14608 2001-09-08    <johan AT FRIJA>
14609
14610         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14611
14612 2001-09-07    <johan AT FRIJA>
14613
14614         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14615
14616         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14617
14618 2001-09-06    <johan AT FRIJA>
14619
14620         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14621         * bernhard noted me at this: "() equals to (void)" (1.38)
14622
14623 2001-09-05    <johan AT FRIJA>
14624
14625         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14626
14627 2001-09-04    <johan AT FRIJA>
14628
14629         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14630
14631
14632 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
14633
14634         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
14635
14636 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
14637
14638         * link/z80/aslink.h: Fixed path for PATH_MAX
14639
14640 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
14641
14642         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14643
14644         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14645
14646         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14647
14648         * 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.
14649
14650 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
14651
14652         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14653         (genCmp): Fixed up genCmp for the GB with longs.
14654
14655         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14656
14657         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14658
14659         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14660
14661         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14662
14663 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
14664
14665         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
14666
14667 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
14668
14669         * 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.
14670
14671         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14672
14673 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
14674
14675         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
14676
14677         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14678
14679 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
14680
14681   * sim/ucsim/configure:    little improvement of Cygwin-detection
14682   * sim/ucsim/configure.in: little improvement of Cygwin-detection
14683   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14684   * support/regression/tests/bug-221100.c: small changes for mcs51
14685   * support/regression/tests/bug-221168.c: small changes for mcs51
14686   * support/regression/tests/bug-227710.c: small changes for mcs51
14687   * support/regression/tests/staticinit.c: small changes for mcs51
14688   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14689   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14690   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14691
14692 $Revision$