* src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
[fw/sdcc] / ChangeLog
1 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
4
5 2007-05-21 Raphael Neider <rneider AT web.de>
6
7         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
8           closes #1722392
9         * src/regression/gpsim_assert.h,
10         * src/regression/Makefile,
11         * src/regression/pcodeopt.c: regression test for the above fix
12
13 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
14
15         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
16           jumps to self, fixed bug 1717281
17
18 2007-05-10 Borut Razem <borut.razem AT siol.net>
19
20         * support/scripts/gen_known_bugs.pl: cosmetic fix
21         * doc/knownbugs.html: generated by gen_known_bugs.pl
22
23 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
24
25         * src/SDCCast.c (createFunction): also generate non-inlined version of
26           function for functions declared as "static inline"
27         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
28           function can be inlined after non-inlined version generated.
29
30 2007-05-10 Borut Razem <borut.razem AT siol.net>
31
32         * support/scripts/gen_known_bugs.pl: added script
33           which generates knownbugs.html
34
35 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
36
37         * doc/knownbugs.html: updated for release 2.7.0
38
39 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
40
41         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
42
43 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
44
45         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
46           (throughout): updated generating comments
47         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
48           (throughout): updated generating comments
49         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
50           rule instead of at the second, or it might skip lines when removing the
51           complete match
52         * support/regression/tests/bug1714204.c: changed test to foo
53
54 2007-05-08 Borut Razem <borut.razem AT siol.net>
55
56         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
57           thanks to SDCC Distributed Compile Farm members,
58           added Z80 and GBZ80 command line options
59         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
60
61 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
62
63         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
64         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
65         * support/regression/tests/longlit.c: modified to be tested at all and
66           to pass the actual test
67
68 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
69
70         * device/include/mcs51/uPSD33xx.h: Added.
71
72 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
73
74         * device/lib/_gptrput.c,
75         * device/lib/_gptrget.c: removed old code,
76          (_gptrgetWord),
77         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
78         * support/regression/tests/bug1714204.c: new, added
79
80 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
81
82         * support/regression/tests/regtrack.c: test was never executed
83           because of the regression test being picky about white spaces.
84         * device/lib/mcs51/crtclear.asm: added comment
85
86 2007-05-06 Raphael Neider <rneider AT web.de>
87
88         * device/lib/pic/Makefile.rules,
89         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
90           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
91
92 2007-05-06 Raphael Neider <rneider AT web.de>
93
94         * src/pic16/device.h,
95         * src/pic16/main.h,
96         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
97           _pic16_setDefaultOptions): removed/reordered command-line args
98         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
99           devices, regrouped command line args, environment variables),
100           clarified sone points, added sections on how to add devices to the
101           PIC14/PIC16 ports
102
103 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
104
105         * src/z80/peeph.def: fixed bug in rule 2
106
107 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
108
109         * src/port.h: added TARGET_MCS51_LIKE
110         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
111           take advantage of it too
112         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
113           (shiftR2Left2Result): Optimized: don't check shifting by 0
114         * src/z80/peeph-z80.def,
115         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
116           modifications, see patch 1700823
117         * src/mcs51/peep.c (): fixed bug 1712928
118         * support/regression/tests/bug1712928.c: new, added
119
120 2007-05-05 Borut Razem <borut.razem AT siol.net>
121
122         * device/lib/pic16/Makefile.common.in,
123           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
124           removed bash dependencies
125
126 2007-05-01 Borut Razem <borut.razem AT siol.net>
127
128         * src/SDCCicode.c:
129           fixed bug #1710507: --i-code-in-asm makes compile fail
130           all iCode comments are now one liners
131         * src/mcs51/gen.c: fixed memory leak
132
133 2007-05-01 Raphael Neider <rneider AT web.de>
134
135         * device/lib/pic/libdev/*.c
136         * device/include/pic/*.h: regenerated all device libs from updated
137           .inc files
138         * support/scripts/inc2h.pl: documented usage, now uses strict to
139           catch more bugs
140
141 2007-04-30 Borut Razem <borut.razem AT siol.net>
142
143         * doc/sdccman.lyx:
144           fixed bug #1669175: Problem with space in output paths
145           documented how to use paths with spaces for Windows users
146
147 2007-04-29 Borut Razem <borut.razem AT siol.net>
148
149         * Fixed svn:eol-style and svn:keywords properties
150         * src/SDCCval.c: fixed bug
151           #1592871: Segfault with "large" const arrays of characters
152           replaced recursion with iteration
153         * Removed svn:executable property from non-executable files
154
155 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
156
157         * src/mcs51/gen.c (genRet): fixed bug 1707003
158
159 2007-04-27 Raphael Neider <rneider AT web.de>
160
161         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
162           createReachingDefinitions,assignValnums,pic16_destructDF,
163           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
164           prevent NULL pointer dereferences
165         * device/lib/pic/libdev/pic16f886.c,
166         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
167           prevent building them, gputils do not really support them yet
168
169 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
170
171         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
172           helps printf_small. 32 bytes more __idata mem.
173
174 2007-04-27 Raphael Neider <rneider AT web.de>
175
176         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
177           return early when pb or pb->pcHead is NULL (patch #1708427)
178         * src/regression/empty.c,
179         * src/regression/Makefile: added test with empty functions
180         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
181
182 2007-04-27 Borut Razem <borut.razem AT siol.net>
183
184         * src/SDCCast.c: fixed feature request
185           #1547512: Redundant strings linked when using sizeof("abc")
186
187 2007-04-23 Borut Razem <borut.razem AT siol.net>
188
189         * doc/sdccman.lyx, src/SDCCmain.c:
190           peep-hole comments are generated only if --fverbose-asm option is
191           specified and --no-peep-comments is not, as proposed by Frieder.
192         * support/regression/Makefile.in: compile regression tests with
193           --fverbose-asm option so one can "grep" whether a new (or an old)
194           peephole is (still) applied; requested by Frieder.
195
196 2007-04-23 Kevin Buettner <kevin AT buettner.to>
197
198         * device/include/pic/pic16f886.h,
199         * device/include/pic/pic16f887.h,
200         * device/lib/pic/libdev/pic16f886.c,
201         * device/lib/pic/libdev/pic16f887.c,
202         * device/include/pic/pic14devices.txt,
203         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
204
205 2007-04-23 Kevin Buettner <kevin AT buettner.to>
206
207         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
208           fixes #1704666
209
210 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
211
212         * device/lib/_memset.c: assembler version for mcs51
213
214 2007-04-22 Borut Razem <borut.razem AT siol.net>
215
216         * support/scripts/listerr.c: program to create the list of errors and
217           warnings list from - added
218         * doc/sdccman.lyx: removed the note
219           "For list of warnings and corresponding codes, see err_warn.txt"
220         * src/SDCCsymt.c: fixed bug #1699804:
221           Bug with some uses of sizeof(static local array) (MCS51)
222         * support/regression/tests/bug-1699804.c: added
223
224 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
225
226         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
227           (main): added option -i,
228           (asmbl, case S_INCL): use search_path_fopen,
229           mostly from patch 1579668 by Peter Miller, thanks
230         * src/z80/main.c: fixed typo --callee-saves-bc
231         * device/include/mcs51/compiler.h: added sfrword for Tasking
232
233 2007-04-20 Borut Razem <borut.razem AT siol.net>
234
235         * src/z80/main.c: replaced reserved keyword asm with asmblr
236
237 2007-04-19 Borut Razem <borut.razem AT siol.net>
238
239         * src/port.h: use const pointers to strings
240         * src/SDCCargs.h: declared getStringArg() and getIntArg()
241         * src/pic16/main.c: include SDCCargs.h
242         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
243           const char, since the strings are dynamically allocated
244         * src/SDCCmain.c: options.code_seg and options.const_seg are
245           dynamically allocated; check port specific command line options
246           before the general ones
247         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
248
249 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
250
251         * device/include/ds400rom.h,
252         * device/lib/ds390/lcd390.c,
253         * device/lib/ds390/memcpyx.c,
254         * device/lib/ds390/rtc390.c,
255         * device/lib/ds400/ds400rom.c,
256         * device/lib/ds400/memcpyx.c,
257         * device/lib/hc08/_ret.c: more replacements of keywords with their
258           double underscore equivalents
259         * device/lib/ds390/Makefile.in,
260         * device/lib/ds400/Makefile.in,
261         * device/lib/gbz80/Makefile.in,
262         * device/lib/hc08/Makefile.in,
263         * device/lib/mcs51/Makefile.in,
264         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
265
266 2007-04-17 Borut Razem <borut.razem AT siol.net>
267
268         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
269           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
270           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
271           to --fverbose-asm, to be gcc'ish
272
273 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
274
275         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
276
277 2007-04-17 Borut Razem <borut.razem AT siol.net>
278
279         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
280         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
281           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
282           with their double underscore equivalent
283
284 2007-04-14 Borut Razem <borut.razem AT siol.net>
285
286         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
287           source"
288
289 2007-04-13 Borut Razem <borut.razem AT siol.net>
290
291         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
292           C99 standard
293         * device/examples/serialcomm/windows/serial.[ch],
294           device/examples/serialcomm/windows/test_serialcomm.cpp:
295           updated by Bela Torok
296         * device/examples/serialcomm/windows/serialcomm.dsw,
297           device/examples/serialcomm/windows/serialcomm.dsp: added
298
299 2007-04-13 Jan Waclawek <wek AT efton.sk>
300
301         * doc/sdccman.lyx: additions and changes at various places
302           (submitted as #1697136).
303           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
304
305 2007-04-10 Borut Razem <borut.razem AT siol.net>
306
307         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
308           LyX file format changed to 245
309         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
310           "FreeWare" replaced with "free open source"
311
312 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
313
314         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
315
316 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
317
318         * device/include/pic16/pic18fregs.h,
319         * device/lib/_bp.c,
320         * device/lib/_decdptr.c,
321         * device/lib/_divsint.c,
322         * device/lib/_divslong.c,
323         * device/lib/_divuint.c,
324         * device/lib/_divulong.c,
325         * device/lib/_fs2schar.c,
326         * device/lib/_fs2sint.c,
327         * device/lib/_fs2slong.c,
328         * device/lib/_fs2uchar.c,
329         * device/lib/_fs2uint.c,
330         * device/lib/_fs2ulong.c,
331         * device/lib/_fsadd.c,
332         * device/lib/_fscmp.c,
333         * device/lib/_fsdiv.c,
334         * device/lib/_fseq.c,
335         * device/lib/_fsget1arg.c,
336         * device/lib/_fsget2args.c,
337         * device/lib/_fsgt.c,
338         * device/lib/_fslt.c,
339         * device/lib/_fsmul.c,
340         * device/lib/_fsneq.c,
341         * device/lib/_fsnormalize.c,
342         * device/lib/_fsreturnval.c,
343         * device/lib/_fsrshift.c,
344         * device/lib/_fssub.c,
345         * device/lib/_fsswapargs.c,
346         * device/lib/_gptrget.c,
347         * device/lib/_gptrgetc.c,
348         * device/lib/_gptrput.c,
349         * device/lib/_logexpf.c,
350         * device/lib/_modsint.c,
351         * device/lib/_modslong.c,
352         * device/lib/_moduint.c,
353         * device/lib/_modulong.c,
354         * device/lib/_mulint.c,
355         * device/lib/_mullong.c,
356         * device/lib/_schar2fs.c,
357         * device/lib/_ser.c,
358         * device/lib/_setjmp.c,
359         * device/lib/_sint2fs.c,
360         * device/lib/_slong2fs.c,
361         * device/lib/_spx.c,
362         * device/lib/_uchar2fs.c,
363         * device/lib/_uint2fs.c,
364         * device/lib/_ulong2fs.c,
365         * device/lib/asincosf.c,
366         * device/lib/atanf.c,
367         * device/lib/calloc.c,
368         * device/lib/ds390/tinibios.c,
369         * device/lib/ds400/tinibios.c,
370         * device/lib/expf.c,
371         * device/lib/free.c,
372         * device/lib/hc08/_mulint.c,
373         * device/lib/logf.c,
374         * device/lib/malloc.c,
375         * device/lib/printf_fast.c,
376         * device/lib/printf_tiny.c,
377         * device/lib/printfl.c,
378         * device/lib/realloc.c,
379         * device/lib/ser_ir.c,
380         * device/lib/serial.c,
381         * support/regression/tests/libmullong.c: replaced all special keywords
382           with their double underscore equivalent
383         * support/regression/ports/mcs51-xstack-auto/spec.mk,
384         * device/lib/Makefile.in: compile libs with --std-c99 instead of
385           --std-sdcc99
386         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
387           (genRet): if the bit-symbol is ruonly it already is in the carry
388         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
389         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
390         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
391           type UCHAR if dest is not bit
392
393 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
394
395         * device/include/math.h,
396         * device/lib/cotf.c,
397         * device/lib/expf.c,
398         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
399
400 2007-04-01 Borut Razem <borut.razem AT siol.net>
401
402         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
403           fixed bug #1692042: input buffer overflow...scanner uses REJECT
404         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
405           gcc_unreachable() called internal_error()...
406
407 2007-03-30 Raphael Neider <rneider AT web.de>
408
409         * src/pic/ralloc.c (isData): suppress garbage debug output
410
411 2007-03-28 Borut Razem <borut.razem AT siol.net>
412
413         * doc/sdccman.lyx:
414           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
415           is developed, built and used worldwide, and the word "night" doesn't
416           make any sense.
417
418 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
419
420         * device/include/mcs51/C8051F360.h: new, added
421         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
422
423 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
424
425         * src/SDCC.y (declaration_specifiers, function_specifier),
426         * support/Util/SDCCerr.c,
427         * support/Util/SDCCerr.h,
428         * src/SDCCsymt.h,
429         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
430           inline keyword
431         * src/SDCCmem.c (deallocParms),
432         * src/SDCCast.c: support for function inlining, not quite complete
433         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
434           'restrict' qualifier
435
436 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
437
438         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
439           (saveRBank, unsaveRBank): don't save bits,
440           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
441         * support/regression/tests/bug1535242.c: new, added
442         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
443           thanks Alexey Shamrin <shamrin AT gmail.com>,
444           made assert.h header ANSI compliant (added a check for NDEBUG macro,
445           removed header guard)
446         * .version,
447         * sdcc.spec: bumped version to 2.6.5
448         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
449
450 2007-03-22 Borut Razem <borut.razem AT siol.net>
451
452         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
453           fixed bug #1653671: sdcdb integration into ddd is broken
454
455 2007-03-22 Raphael Neider <rneider AT web.de>
456
457         * src/pic/gen.c (popGetExternal): augmented to also create references
458           to external variables (not only labels),
459           (genCall): comment on plan to reduce PAGESEL overhead,
460           (genFunction, genEndFunction): also save/restore FSR around interrupt
461           handling code, removed lots of unused code
462           (genDivOneByte): release acquired temp register
463         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
464           of popGetExternal
465         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
466           for registers that need to be saved during interrupts (FSR, STATUS,
467           PCLATH; W needs special handling), currently only FSR is used
468
469 2007-03-22 Raphael Neider <rneider AT web.de>
470
471         * device/include/pic/pic14devices.txt: 16f688 has only one config word
472
473 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
474
475         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
476
477 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
478
479         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
480
481 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
482
483         * as/link/aslink.h: added LKOBJEXT
484         * as/link/hc08/link_hc08.dsp,
485         * as/link/hc08/Makefile.bcc,
486         * as/link/hc08/Makefile.in,
487         * as/link/mcs51/aslink.dsp,
488         * as/link/mcs51/Makefile.bcc,
489         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
490         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
491         * as/link/lkaomf51.c: merged and moved
492         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
493         * as/link/z80/lkdata.c,
494         * as/link/lkdata.c: merged and moved
495         * as/link/hc08/lkmain.c,
496         * as/link/mcs51/lkmain.c: cosmetic changes
497         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
498         * as/link/lklex.c: use LKOBJEXT
499         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
500           ANSI-fied functions, removed bubble-sorts
501         * as/link/z80/lksym.c           as/link/lksym.c: merged,
502           ANSI-fied functions
503         * as/link/z80/linkgbz80.dsp,
504         * as/link/z80/linkz80.dsp,
505         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
506           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
507         * as/link/z80/lkhead.c,
508         * as/link/z80/lklex.c: deleted
509         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
510         * as/link/z80/lkmain.c: added copyfile()
511
512 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
513
514         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
515
516 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
517
518         * device/lib/_strlen.c: assembler version for mcs51
519
520 2007-03-13 Raphael Neider <rneider AT web.de>
521
522         * device/include/pic16/pic18f2221.h,
523         * device/include/pic16/pic18f2321.h,
524         * device/include/pic16/pic18f2331.h,
525         * device/include/pic16/pic18f4221.h,
526         * device/include/pic16/pic18f4321.h,
527         * device/include/pic16/pic18f4331.h: fixed config byte location names
528         * support/scripts/inc2h-pic16.pl: removed debug output, emit
529           consistently named config byte locations
530
531 2007-03-13 Borut Razem <borut.razem AT siol.net>
532
533         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
534           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
535           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
536           as/link/z80/Makefile.in, as/z80/Makefile.in:
537           introduced LDFLAGS
538
539 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
540
541         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
542         * device/lib/printf_large.c: pointer was converted to generic
543         pointer for mcs51 models other than model-small (Maarten noticed)
544
545 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
546
547         * device/include/mcs51/ADuC84x.h: Added.
548
549 2007-03-10 Borut Razem <borut.razem AT siol.net>
550
551         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
552           fixed RFE #1624219: double backslashes in filenames;
553           functions hexEscape(), octalEscape() and copyStr() moved from
554           SDCCval.c to SDCCutil.c and made them glovbally available
555
556 2007-03-09 Borut Razem <borut.razem AT siol.net>
557
558         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
559           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
560           1673361: Missaligned comments in output files
561
562 2007-03-09 Raphael Neider <rneider AT web.de>
563
564         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
565
566 2007-03-09 Raphael Neider <rneider AT web.de>
567
568         * src/pic/gen.c,
569         * src/pic/glue.c,
570         * src/pic/ralloc.c: suppress undesired debug output
571         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
572
573 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
574
575         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
576
577 2007-03-07 Borut Razem <borut.razem AT siol.net>
578
579         * device/lib/pic16/libdev/pic18f[24][34]31.c:
580           search include files in the current directory
581
582 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
583
584         * src/SDCCglue.c (emitMaps, glue),
585         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
586           absolute xdata
587         * support/regression/tests/absolute.c: added xdata test
588
589 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
590
591         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
592           added condition to macro, fixes bug 1666080
593
594 2007-03-02 Raphael Neider <rneider AT web.de>
595
596         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
597
598 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
599
600         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
601         be cleared. Unconditionally set __XPAGE
602         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
603
604 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
605
606         * src/SDCCglobl.h,
607         * src/SDCCmain.c,
608         * src/mcs51/gen.c,
609         * src/mcs51/rtrack.c,
610         * src/ds390/gen.c,
611         * doc/sdccman.lyx: added --no-gen-comments
612         * src/mcs51/peeph.def: added 192.b, disabled 185
613
614 2007-02-25 Raphael Neider <rneider AT web.de>
615
616         * src/pic16/gen.c (genCast): fixed typo
617         * device/lib/pic16/Makefile.subdir: only install existing files
618         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
619
620 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
621
622         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
623         * device/lib/mcs51/crtclear.asm,
624         * device/lib/mcs51/crtxclear.asm: renumbered labels
625         * device/lib/mcs51/Makefile.in: added crtcall.asm
626         * doc/sdccman.lyx: documented mcs51 crt* library startup code
627         * src/mcs51/gen.c (movc): removed,
628           (aopGet, genPlusBits): clear a after loading the carry (possibly from
629             acc.x or psw.x),
630           (toCarry, genSend, genRet): added function toCarry,
631           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
632           (assignBit, genAssign, genCast): added function assignBit
633         * src/mcs51/Makefile.bcc: added rtrack.c
634         * src/mcs51/ralloc.h: made valueKnown a bitfield
635         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
636           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
637           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
638         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
639         * src/z80/gen.c: added AOP_IS_PAIRPTR,
640           (_pop): only pop valid pairs, see gencjneshort,
641           (gencjneshort): return pair that still needs to be popped, restructured,
642           (gencjne, genCmpEq): call _pop
643
644 2007-02-23 Raphael Neider <rneider AT web.de>
645
646         * device/include/pic/pic14devices.txt: 16f684 has only one config word
647
648 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
649
650         * device/include/mcs51/P89LPC925.h: Added.
651
652 2007-02-18 Raphael Neider <rneider AT web.de>
653
654         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
655
656 2007-02-17 Borut Razem <borut.razem AT siol.net>
657
658         * support/cpp2/directives.c, support/cpp2/version.c:
659           synchronized with GCC CPP 4.1.2
660
661 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
662
663         * src/mcs51/rtrack.h,
664         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
665           by checking the strings passed by emitcode() to the assembler.
666           Feel free to change. This in part addresses RFE #482179.
667           Set environment variable SDCC_RTRACK to enable.
668         * src/mcs51/gen.c: inserted hooks
669         * src/mcs51/ralloc.h: added two members to struct regs
670         * support/regression/tests/regtrack.c: added
671
672 2007-02-14 Borut Razem <borut.razem AT siol.net>
673
674         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
675         * Makefile.in: applied patch from Makefile related part of
676           #1469393: Compiler does not initialize static data
677
678 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
679
680         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
681           for better fix of bug 1273984, compiles pic16 rand.c
682
683 2007-02-12 Borut Razem <borut.razem AT siol.net>
684
685         * src/pic16/main.c: fixed pic16 standard library directory bug
686
687 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
688
689         * src/hc08/gen.c (genSwap): fix swap regression test
690
691 2007-02-10 Borut Razem <borut.razem AT siol.net>
692
693         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
694           with same scope
695         * support/regression/tests/bug-1654060.c: added regression test for
696           #1654060
697
698 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
699
700         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
701         bit moves in return statement
702
703 2007-02-09 Borut Razem <borut.razem AT siol.net>
704
705         * src/SDCC.y: fixed bug #1654060 typedef within function causes
706           syntax error
707
708 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
709
710         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
711         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
712
713 2007-02-07 Raphael Neider <rneider AT web.de>
714
715         * src/pic16/devices.inc,
716         * device/include/pic16/pic18fregs.h,
717         * device/include/pic16/pic18f[24][34]31.h,
718         * device/lib/pic16/libdev/pic18f[24][34]31.c,
719         * device/lib/pic16/pics.all: added 18f[24][34]31 family
720         * device/lib/pic16/libio/i2c.ignore: do not build i2c
721
722 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
723
724         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
725           can this have lived here for so many years?
726         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
727           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
728         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
729
730 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
731
732         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
733         appended by loop induction must be at the very end of the eBBlock
734
735 2007-02-05 Kevin Vigor
736
737         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
738
739 2007-02-05 Borut Razem <borut.razem AT siol.net>
740
741         * support/regression/fwk/lib/timeout.c: native WIN32 port,
742           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
743
744 2007-02-03 Borut Razem <borut.razem AT siol.net>
745
746         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
747           applied patch #1646602 option to set default signedness of char to
748           unsigned, added -funsigned-char command line option,
749           thanks to Gunther Jehle
750         * device/lib/Makefile.in: added the -f option to rm so it doesn't
751           prompt for file deletion a few hundred times (especially the
752           subversion files, which have ro permissions so it asks for
753           confirmation), thanks to Simon McAuliffe;
754           added {} + option to find in order to remove multiple files from a
755           single rm commad
756
757 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
758
759         * device/include/mcs51/SST89x5xRDx.h: Added.
760
761 2007-02-02 Raphael Neider <rneider AT web.de>
762
763         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
764         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
765
766 2007-02-01 Raphael Neider <rneider AT web.de>
767
768         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
769           config words again
770
771 2007-01-31 Borut Razem <borut.razem AT siol.net>
772
773         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
774           if compiled with GCC. Thanks to Raphael Neider
775
776 2007-01-31 Raphael Neider <rneider AT web.de>
777
778         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
779             operand names, handles name and (name + n) for all n,
780           (sameBank): restructured, also check bank allocation policy,
781         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
782           (pic14_operandsAllocatedInSameBank): check whether to operands
783             will be allocated into the same bank (i.e., section) to reduce
784             BANKSEL overhead, queried from pcode.c:sameBank,
785           (pic14printLocals): reintroduced clustering registers into a single
786             section: all compiler generated symbols will now reside in one
787             bank (per file), reducing BANKSEL overhead and code size,
788           (showAllMemmaps): use local dbuf where possible
789
790 2007-01-29 Raphael Neider <rneider AT web.de>
791
792         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
793           (call_libraryfunc): retrieve/create symbol and mark as used,
794           (genFunction): mark defined functions as non-extern and add again
795            to code memmap for later output
796         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
797           (pic14printLocals): reworked for new symbol emission,
798           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
799           showAllMemmaps): reworked symbol output using dbufs, added handling
800             of string literals (still incomplete),
801           (picglue): removed symbol emission, moved into showAllMemmaps,
802           (emitSymbolSet): new workhorse for symbol output,
803           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
804
805 2007-01-29 Borut Razem <borut.razem AT siol.net>
806
807         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
808           component contains the extension separator.
809
810 2007-01-28 Borut Razem <borut.razem AT siol.net>
811
812         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
813           on WIN32
814         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
815           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
816           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
817           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
818           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
819           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
820           src/z80/gen.c, support/Util/MySystem.c:
821           accept slash and backslash as directory separator on WIN32 and
822           Cygwin ports
823
824 2007-01-28 Raphael Neider <rneider AT web.de>
825
826         * src/pic16/devices.inc,
827         * device/include/pic16/pic18f[24][23]21.h,
828         * device/include/pic16/pic18fregs.h,
829         * device/lib/pic16/libdev/pic18f[24][23]21.c,
830         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
831         * device/lib/pic16/libio/adc.ignore,
832         * device/lib/pic16/libio/i2c.ignore,
833         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
834           family, as gputils do not yet support the devices
835         * device/lib/pic16/Makefile.subdir: ignore errors on install
836         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
837           headers and libraries from gputils .inc files
838
839 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
840
841         * doc/sdccman.lyx: add printf_fast_f precision limitation note
842
843 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
844
845         * doc/sdccman.lyx: add printf benchmarks
846
847 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
848
849         * device/lib/printf_fast.c: fix %c, char promoted to int
850         * device/lib/printf_tiny.c: fix %c, char promoted to int
851
852 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
853
854         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
855
856 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
857
858         * support/regression/tests/swap.c: 64 bit hosts failed
859         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
860
861 2007-01-25 Raphael Neider <rneider AT web.de>
862
863         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
864           based on absolute register address, patch by Alex Blond
865
866 2007-01-22 Raphael Neider <rneider AT web.de>
867
868         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
869           emitted, do not emit them again...
870
871 2007-01-22 Raphael Neider <rneider AT web.de>
872
873         * src/regression/bank1.c, src/regression/compare6.c,
874           src/regression/add.c: cosmetic changes
875         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
876         * src/pic/gen.c: fixed global zero and one,
877           (aopForSym): removed unued code,
878           (aopGet): assert aop is defined, check and use `index' of
879             pCodeImmd operands (fixes #1630908),
880         * src/pic/pcode.c (get_op): added output of generic pointer tag,
881           (register_reassign): prevent accidental register unification,
882           (ReuseReg): cosmetic changes (also above)
883         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
884           pic14emitStaticSeg): do not emit initialized data,
885           (printIval*): replaced with working versions,
886           (pic14createInterruptVect,picglue): use idata for initialized data,
887             now init data should work in all modules (not only main()),
888         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
889
890 2007-01-21 Borut Razem <borut.razem AT siol.net>
891
892         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
893           use -fPIC or -fpic if they are supported and not ignored
894         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
895         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
896
897 2007-01-20 Borut Razem <borut.razem AT siol.net>
898
899         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
900           implemented RFE #1470316: allow "$" in variable names
901
902 2007-01-20 Raphael Neider <rneider AT web.de>
903
904         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
905
906 2007-01-20 Raphael Neider <rneider AT web.de>
907
908         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
909         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
910         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
911         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
912           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
913         * device/lib/pic/libdev/pic*.c,
914         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
915         * device/lib/pic/libdev/Makefile.in: show progress
916
917 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
918
919         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
920         * support/scripts/sdcc_cygwin_mingw32,
921         * support/scripts/sdcc_mingw32,
922         * support/scripts/build.mak: replaced --datadir by --datarootdir for
923         conformance with autoconf 2.6
924
925 2007-01-19 Raphael Neider <rneider AT web.de>
926
927         * src/pic/device.c (register_map): fixed list construction
928         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
929           (genMod): removed case for genModbits,
930           (genModbits): removed as now unused/unimplemented
931         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
932
933 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
934
935         * support/regression/tests/swap.c: added in response to #1638622
936         * doc/sdccman.lyx: synced version, minor changes
937
938 2007-01-18 Borut Razem <borut.razem AT siol.net>
939
940         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
941           thanks to Gunther Jehle
942         * src/asm.c: don't die if the file drfined in #line couldn't be opened
943         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
944           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
945           use filename in lineno instead.
946         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
947           print the file name in ast_print()
948
949 2007-01-18 Borut Razem <borut.razem AT siol.net>
950
951         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
952           defined in MSVC
953         * src/SDCC.lex: stringLiteral() returns const char pointer,
954           EOF detection in stringLiteral(), fixed asmbuf memory leak,
955           fixed column counting
956         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
957           accept const char pointer as parameter
958         * src/SDCCdwarf2.c: corrected buffer size
959
960 2007-01-17 Borut Razem <borut.razem AT siol.net>
961
962         * support/Util/dbuf_string.c: fixed for amd64
963
964 2007-01-15 Borut Razem <borut.razem AT siol.net>
965
966         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
967           removed terminal symbol ELIPSIS, since it was never generated by the
968           lexer and it was wrongly used in parameter_identifier_list rule
969
970 2007-01-15 Raphael Neider <rneider AT web.de>
971
972         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
973             code page and data banking description
974         * src/pic/genarith.c,
975         * src/pic/gen.h: removed bit arithmetic functions,
976             updated exit(1) to exit(EXIT_FAILURE)
977         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
978         * device/include/pic16/pic18f2455.h,
979         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
980             TRISD and TRISE, fixed/added some bit names
981         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
982         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
983             updated pic18f2455.{c,h} instead of duplicating them
984
985 2007-01-14 Borut Razem <borut.razem AT siol.net>
986
987         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
988           Cannot debug files that contain spaces in the path name
989           by converting spaces in asm file name to underscores
990
991 2007-01-13 Borut Razem <borut.razem AT siol.net>
992
993         * doc/sdccman.lyx: fixed format errors
994
995 2007-01-10 Borut Razem <borut.razem AT siol.net>
996
997         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
998           codeseg/constseg #pragma fail
999         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
1000         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
1001           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
1002           suppoprt/cpp2/sdcpp.[ch]: house cleaning
1003
1004 2007-01-09 Borut Razem <borut.razem AT siol.net>
1005
1006         * get rid of diagnistic.[ch], pretty-print.[ch],
1007           c-pretty-print.[ch], ... used just for error, warning, ...
1008           message formatting
1009         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
1010           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
1011           suppoprt/cpp2/pretty-print.[ch]:
1012           removed
1013         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
1014           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
1015           suppoprt/cpp2/sdcpp.dsp:
1016           changed
1017
1018 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
1019
1020         * device/lib/printf_large.c (output_float): removed recursion,
1021           use smaller buffer on stack for mcs51,
1022           fixed bug printing 1.96
1023         * support/regression/tests/snprintf.c: added test
1024
1025 2007-01-07 Borut Razem <borut.razem AT siol.net>
1026
1027         * use dynamic memory buffers instead temporary files
1028         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
1029           added
1030         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
1031           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
1032           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
1033           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
1034           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
1035           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
1036           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
1037           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
1038           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
1039           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
1040           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
1041           support/Util/dbuf.c, support/Util/dbuf.h:
1042           modified
1043         * .version, sdcc.spec: bumped version to 2.6.4
1044
1045 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1046
1047         * src/port.h: added TARGET_Z80_LIKE macro
1048         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
1049           output PSEG location if --xram-loc or --xstack-loc was used
1050         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
1051
1052 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
1053
1054         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
1055         * as/as_z80.dsp,   as/z80/as_z80.dsp,
1056         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
1057         * sdcc.dsw: moved project files into subdir
1058         * as/hc08/as_hc08.dsp,
1059         * as/hc08/Makefile.bcc,
1060         * as/hc08/Makefile.in,
1061         * as/mcs51/Makefile.bcc,
1062         * as/mcs51/Makefile.in,
1063         * as/z80/Makefile.bcc,
1064         * as/z80/Makefile.in,
1065         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
1066         * as/hc08/asm.h,
1067         * as/mcs51/asm.h,
1068         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
1069         * as/hc08/asmain.c,
1070         * as/hc08/assym.c,
1071         * as/mcs51/asmain.c,
1072         * as/mcs51/assym.c,
1073         * as/z80/assym.c: removed include "strcmpi.h"
1074         * as/hc08/strcmpi.c,
1075         * as/hc08/strcmpi.h,
1076         * as/mcs51/strcmpi.c,
1077         * as/mcs51/strcmpi.h,
1078         * support/Util/strcmpi.c,
1079         * support/Util/strcmpi.h: removed files
1080         * as/strcmpi.c: added as_strncmpi()
1081
1082 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1083
1084         * sdcc.dsw: Added some dependencies on project config.dsp
1085
1086 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
1087
1088         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
1089           with [di]ram_start to fix a regresion
1090
1091 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
1092
1093         * configure.in: added missing mcs51 in status output
1094         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
1095         directory
1096         * debugger/mcs51/clean.mk (distclean): remove config.h
1097         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
1098         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
1099         options.h, s-options-h and options.c
1100         * support/cpp2/clean.mk: unused, removed
1101         * Makefile.common.in,
1102         * main_in.mk,
1103         * as/Makefile.in,
1104         * as/hc08/Makefile.in,
1105         * as/hc08/clean.mk,
1106         * as/mcs51/Makefile.in,
1107         * as/mcs51/clean.mk,
1108         * as/z80/clean.mk,
1109         * as/z80/conf.mk,
1110         * as/z80/Makefile.in,
1111         * as/z80/clean.mk,
1112         * as/link/Makefile.in,
1113         * as/link/hc08/Makefile.in,
1114         * as/link/hc08/clean.mk,
1115         * as/link/mcs51/Makefile.in,
1116         * as/link/mcs51/clean.mk,
1117         * as/link/z80/Makefile.in,
1118         * as/link/z80/clean.mk,
1119         * as/link/z80/conf.mk,
1120         * debugger/mcs51/Makefile.in,
1121         * debugger/mcs51/clean.mk,
1122         * device/include/Makefile.in,
1123         * device/lib/Makefile.in,
1124         * device/lib/mcs51/Makefile.in,
1125         * device/lib/pic/Makefile.in,
1126         * device/lib/pic/Makefile.common.in,
1127         * device/lib/pic/Makefile.subdir,
1128         * device/lib/pic/Makefile.rules,
1129         * device/lib/pic16/libio/Makefile.in,
1130         * device/lib/pic16/Makefile.subdir,
1131         * device/lib/pic16/libdev/Makefile.in,
1132         * device/lib/pic16/Makefile.rules,
1133         * device/lib/pic16/Makefile.common.in,
1134         * sim/ucsim/avr.src/Makefile.in,
1135         * sim/ucsim/main_in.mk,
1136         * sim/ucsim/cmd.src/Makefile.in,
1137         * sim/ucsim/doc/Makefile.in,
1138         * sim/ucsim/gui.src/Makefile.in,
1139         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1140         * sim/ucsim/gui.src/serio.src/Makefile.in,
1141         * sim/ucsim/hc08.src/Makefile.in,
1142         * sim/ucsim/libltdl/Makefile.in,
1143         * sim/ucsim/s51.src/Makefile.in,
1144         * sim/ucsim/sim.src/Makefile.in,
1145         * sim/ucsim/sim.src/conf.mk,
1146         * sim/ucsim/xa.src/Makefile.in,
1147         * sim/ucsim/z80.src/Makefile.in,
1148         * src/Makefile.in,
1149         * src/clean.mk,
1150         * src/port.mk,
1151         * support/cpp2/Makefile.in,
1152         * support/librarian/Makefile.in,
1153         * support/librarian/clean.mk,
1154         * support/makebin/Makefile.in,
1155         * support/makebin/clean.mk,
1156         * support/packihx/Makefile.in,
1157         * support/regression/Makefile.in,
1158         * support/regression/ports/ds390/spec.mk,
1159         * support/regression/ports/gbz80/spec.mk,
1160         * support/regression/ports/hc08/spec.mk,
1161         * support/regression/ports/mcs51/spec.mk,
1162         * support/regression/ports/mcs51-large/spec.mk,
1163         * support/regression/ports/mcs51-medium/spec.mk,
1164         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1165         * support/regression/ports/pic14/spec.mk,
1166         * support/regression/ports/pic16/spec.mk,
1167         * support/regression/ports/mcs51-stack-auto/spec.mk,
1168         * support/regression/ports/ucz80/spec.mk,
1169         * support/regression/ports/xa51/spec.mk,
1170         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1171         adding a slash after $(top_builddir) and/or adding @datarootdir@
1172         * configure.in,
1173         * debugger/mcs51/configure.in,
1174         * device/lib/pic/configure.in,
1175         * device/lib/pic16/configure.in,
1176         * sim/ucsim/configure.in,
1177         * support/cpp2/configure.in,
1178         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1179         * configure,
1180         * debugger/mcs51/configure,
1181         * device/lib/pic/configure,
1182         * device/lib/pic16/configure,
1183         * sim/ucsim/configure,
1184         * support/cpp2/configure,
1185         * support/packihx/configure: generated with autoconf 2.60
1186
1187 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1188
1189         * as/link/hc08/lkihx.c (newArea),
1190         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1191
1192 2007-01-02 Borut Razem <borut.razem AT siol.net>
1193
1194         * doc/sdccman.lyx: documented #pragma sdcc_hash
1195         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1196           initialized to 0
1197         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1198
1199 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1200
1201         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1202         empty 'while'-loop to work correctly, see regression test 'while.c'
1203         * support/regression/tests/while.c: added
1204
1205 2007-01-01 Borut Razem <borut.razem AT siol.net>
1206
1207         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1208           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1209           support/cpp2/libcpp/sdcpp.c:
1210           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1211         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1212         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1213
1214 2006-12-31 Borut Razem <borut.razem AT siol.net>
1215
1216         * SDCPP synchronized with GCC CPP release version 4.1.1,
1217           currently the latest release:
1218         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1219           support/cpp2/libcpp/include/cpp-id-data.h
1220           support/cpp2/libiberty/fopen_unlocked.c
1221           support/cpp2/libiberty/md5.c
1222           support/cpp2/md5.h
1223           support/cpp2/opt-functions.awk
1224           support/cpp2/opt-gather.awk
1225           support/cpp2/optc-gen.awk
1226           support/cpp2/opth-gen.awk:
1227           added
1228         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1229           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1230           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1231           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1232           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1233           support/cpp2/diagnostic.h, support/cpp2/except.h,
1234           support/cpp2/hwint.h, support/cpp2/input.h,
1235           support/cpp2/intl.h, support/cpp2/move-if-change,
1236           support/cpp2/opts.c, support/cpp2/opts.h,
1237           support/cpp2/output.h, support/cpp2/prefix.c,
1238           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1239           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1240           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1241           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1242           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1243           support/cpp2/version.c:
1244           modified
1245         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1246           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1247           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1248           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1249           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1250           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1251           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1252           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1253           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1254           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1255           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1256           moved
1257         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1258           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1259           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1260           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1261           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1262           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1263           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1264           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1265           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1266           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1267           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1268           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1269           support/cpp2/system.h:
1270           deleted / moved
1271
1272 2006-12-31 Borut Razem <borut.razem AT siol.net>
1273
1274         * configure.in, configure: fixed bug #1538756: configure dies if bison
1275           and flex are not installed, 2nd try
1276
1277 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1278
1279         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1280         400.x for better code in RFE 899102
1281
1282 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1283
1284         * src/SDCCpeeph.c (deadMove),
1285         * src/port.h,
1286         * src/mcs51/peep.h: renamed 'op' by 'reg'
1287         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1288         (scan4op): small change for removeDeadMove(), added support for
1289         'callee saves' and/or PACLL function calls,
1290         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1291         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1292         left in new dispatcher mcs51DeadMove()
1293         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1294         removeDeadMove()
1295         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1296
1297 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1298
1299         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1300           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1301
1302 2006-12-30 Borut Razem <borut.razem AT siol.net>
1303
1304         * support/cpp2/spacs.h: deleted from svn
1305         * configure.in, configure: fixed bug #1538756: configure dies if bison
1306           and flex are not installed
1307
1308 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1309
1310         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1311           with this z80 passes printf float test when enabled
1312         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1313
1314 2006-12-28 Borut Razem <borut.razem AT siol.net>
1315
1316         * support/cpp2/config.in, support/cpp2/configure.in,
1317           support/cpp2/configure, support/cpp2/Makefile.in:
1318           fix for the solaris build
1319
1320 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1321
1322         * src/SDCC.y (type_specifier2, pointer),
1323         * src/SDCCsymt.h,
1324         * src/SDCCsymt.c (mergeSpec, checkSClass),
1325         * support/Util/SDCCerr.c,
1326         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1327         * support/valdiag/valdiag.py: Allow test cases to specify
1328           required language standard
1329         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1330         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1331
1332 2006-12-27 Borut Razem <borut.razem AT siol.net>
1333
1334         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1335         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1336           mbchar removed
1337         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1338           fixed for borland C
1339         * support/cpp2/libiberty/Makefile.bcc: updated
1340         * src/pic16/main.c: fixed #pragma udata handling
1341         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1342
1343 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1344
1345         * src/SDCCpeeph.c: made labelHashEntry global,
1346         made pcDistance, FBYNAME static,
1347         (pcDistance): made static, use isComment and isLabel,
1348         (deadMove): added,
1349         (getLabelRef): added, extracted from labelRefCount(),
1350         (labelRefCount): use new getLabelRef(),
1351         (callFuncByName): made static, added deadMove,
1352         use isComment and isLabel,
1353         (newPeepRule): made static, set isLabel,
1354         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1355         labels from peephole rules,
1356         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1357         when isComment or isLabel is set
1358         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1359         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1360         to make them global
1361         * src/mcs51/peep.h: added
1362         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1363         * src/port.h: added peep->deadMove to port structure
1364         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1365         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1366         deadMove, finally removed no. 1 and 2
1367         * src/mcs51/gen.c,
1368         * src/pic/gen.c,
1369         * src/z80/gen.c,
1370         * src/z80/ralloc.c,
1371         * src/pic16/gen.c,
1372         * src/ds390/gen.c,
1373         * src/hc08/gen.c: mark lines with isComment or isLabel
1374         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1375         * .version,
1376         * sdcc.spec: bumped version to 2.6.3
1377
1378 2006-12-26 Borut Razem <borut.razem AT siol.net>
1379
1380         * support/cpp2/Makefile.in: added dependency on options.h
1381         * configure: regenerated
1382         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1383         * support/cpp2/Makefile.in: added vasprintf.c
1384
1385 2006-12-25 Borut Razem <borut.razem AT siol.net>
1386
1387         * SDCPP synchronized with GCC CPP release version 3.4.6,
1388           the latest release before 4.x:
1389         * support/cpp2/Makefile.in, support/cpp2/config.h,
1390           support/cpp2/configure, support/cpp2/configure.in,
1391           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1392           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1393           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1394           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1395           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1396           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1397           support/cpp2/cpptrad.c, support/cpp2/except.h,
1398           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1399           support/cpp2/hwint.h, support/cpp2/intl.h,
1400           support/cpp2/line-map.c, support/cpp2/line-map.h,
1401           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1402           support/cpp2/output.h, support/cpp2/prefix.c,
1403           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1404           support/cpp2/system.h, support/cpp2/version.c:
1405           modified
1406         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1407           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1408           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1409           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1410           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1411           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1412           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1413           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1414           support/cpp2/move-if-change, support/cpp2/opts.c,
1415           support/cpp2/opts.h, support/cpp2/opts.sh,
1416           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1417           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1418           support/cpp2/win32, support/cpp2/win32/dirent.c,
1419           support/cpp2/win32/dirent.h:
1420           added
1421         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1422         * support/cpp2/sdcpp.h: renamed from sdcc.h
1423         * sdcppinit.c: deleted
1424
1425 2006-12-23 Borut Razem <borut.razem AT siol.net>
1426
1427         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1428           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1429           preproc.c: an other try to fix bug #982435: introduced
1430           -pedantic-parse-number command line option and pedantic_parse_number
1431           pragma
1432
1433 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1434
1435         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1436            BSEG handling,
1437           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1438            corrected overlayed areax addresses, warn about memory overlaps
1439         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1440         * src/avr/main.c,
1441         * src/ds390/main.c,
1442         * src/hc08/main.c,
1443         * src/mcs51/main.c,
1444         * src/pic16/main.c,
1445         * src/pic/main.c,
1446         * src/xa51/main.c,
1447         * src/z80/main.c,
1448         * src/port.h: added xabs_name and iabs_name
1449         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1450           (glue, emitMaps): create and emit maps d_abs and i_abs
1451         * src/SDCCglue.h: cosmetic changes
1452         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1453         * src/SDCCmem.h,
1454         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1455           (allocDefault): put absolute, initialized globals in them
1456         * support/regression/tests/absolute.c: added absolute bdata test
1457         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1458
1459 2006-12-20 Borut Razem <borut.razem AT siol.net>
1460
1461         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1462         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1463           added regression test for bug #982435
1464
1465 2006-12-18 Borut Razem <borut.razem AT siol.net>
1466
1467         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1468         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1469           small cosmetic changes
1470         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1471         * support/regression/tests/bug-1351710.c: added regression test
1472
1473 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1474
1475         * doc/sdccman.lyx: added the long missed iCode table
1476           "<where is figure II?>", added links to wiki
1477
1478 2006-12-17 Borut Razem <borut.razem AT siol.net>
1479
1480         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1481           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1482           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1483           unified table driven pragma handling, pragma argument type checking
1484         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1485           current one - version 1.1.3
1486         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1487
1488 2006-12-13 Raphael Neider <rneider AT web.de>
1489
1490         * src/pic/device.h: removed AssignedMemory structure and macros
1491         * src/pic/device.c: removed global finalMapping (linker assigns
1492             memory locations),
1493           (register_map): add SFRs to remembered memRanges
1494           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1495           assignFixedRegisters,assignRelocatableRegisters): removed,
1496           (setMaxRAM,validAddress): adapted accordingly,
1497           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1498             reasonably sized sharebanks,
1499         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1500           (allDefsOutOfRange): removed unused code,
1501         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1502             handling
1503         * src/pic/pcode.c (register_reassign): removed recursion warning,
1504             fired far too often,
1505         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1506             to use existing pic14_stringInSet() to avoid duplicate symbols,
1507             tidied up the code a bit,
1508           (pic14printLocals): added in symmetry to printExterns, replaces
1509             writeUsedRegs more or less,
1510           (picglue): call new pic14_printLocals(),
1511         * device/include/pic/pic*.h: removed #pragma memmap directives,
1512             information gathered from include/pic/pic14devices.txt
1513         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1514
1515 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1516
1517         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1518
1519 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1520
1521         * device/include/mcs51/cc2430.h: fixed missing ';'
1522
1523 2006-12-10 Raphael Neider <rneider AT web.de>
1524
1525         * device/lib/pic16/libc/stdio/vfprintf.c,
1526         * device/lib/pic16/libc/stdio/printf_small.c,
1527         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1528           char arguments, as char varargs are cast to int by the caller,
1529           hopefully fixes #1604915 (other device libraries are still affected)
1530
1531 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1532
1533         * src/mcs51/ralloc.c (packRegsForAssign),
1534         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1535
1536 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1537
1538         * device/include/malloc.h: removed init_dynamic_memory
1539         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1540           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1541         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1542         * device/lib/libsdcc.lib,
1543         * device/lib/Makefile.in,
1544         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1545         * doc/sdccman.lyx: documented use of new _heap.c
1546         * support/regression/tests/malloc.c: removed init_dynamic_memory
1547         * src/cdbFile.c(spacesToUnderscores): new function,
1548           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1549           1068030
1550         * device/include/tinibios.h: removed defines for putchar and getchar
1551         * device/lib/ds390/Makefile.in: added putchar.c
1552         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1553
1554 2006-12-09 Borut Razem <borut.razem AT siol.net>
1555
1556         * support/cpp2/sdcc.h: prevent multiple inclusion
1557         * support/cpp2/options.h: deleted
1558
1559 2006-12-08 Borut Razem <borut.razem AT siol.net>
1560
1561         * support/cpp2/sdcc.h: removed x*alloc() macros
1562         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1563         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1564           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1565         * support/cpp2/system.h: moved #include "sdcc.h"
1566         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1567           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1568           added
1569         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1570           -funsigned-char options
1571         * support/cpp2/sdcppmain.c: fixed bug 1611411
1572
1573 2006-12-07 Borut Razem <borut.razem AT siol.net>
1574
1575         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1576           directive
1577
1578 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1579
1580         * src/SDCCsymt.c (addDecl): fixed bug 1609244
1581         * src/SDCCmain.c (linkEdit): fixed bug 1609279
1582         * doc/sdccman.lyx,
1583         * .version: bumped to 2.6.2 because a) it's been a while
1584           b) the linker sources have moved c) the preprocessor is upgraded
1585
1586 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1587
1588         * support/regression/tests/snprintf.c: some checks
1589         * lib/src/printf_large.c: %bc: read char instead of int from stack
1590
1591 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1592
1593         * device/include/mcs51/cc2430.h: inserted _XPAGE
1594
1595 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1596
1597         * device/include/mcs51/cc2430.h: added
1598
1599 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1600
1601         * device/include/asm/default/features.h,
1602         * device/include/asm/ds390/features.h,
1603         * device/include/mcs51/at89s53.h,
1604         * device/include/ser.h,
1605         * device/include/ser_ir.h,
1606         * device/include/serial.h: changed keywords to double underscore variants,
1607           fixes bug 1590261 some more, thanks Steven Borley
1608
1609 2006-12-01 Raphael Neider <rneider AT web.de>
1610
1611         * src/pic/pcode.c (register_reassign): do not crash on recursive code
1612           but emit warning (recursion is not supported for pic14)
1613
1614 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1615
1616         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1617         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1618
1619 2006-11-30 Raphael Neider <rneider AT web.de>
1620
1621         * src/pic/device.c (dump_sfr): always emit symbols
1622         * src/pic/glue.c (pic14printPublics): fixed typo
1623
1624 2006-11-30 Raphael Neider <rneider AT web.de>
1625
1626         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1627           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1628           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1629            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1630            a sharebank, use a non-shared bank for the stack if none available
1631         * src/pic/device.h (struct memRange): added linked list next field,
1632           added prototypes for above functions
1633         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1634           (typeRegWithIdx): accept fixed and unfixed stack registers
1635         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1636           the stack, handle shared and banked stack (except for WSAVE),
1637           (insertBankSel): removed useless optimization (will never fire),
1638           (FixRegisterBanking): added optimization for devices with only one
1639           possibly aliased bank of memory, like 16f84
1640         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1641           devices have no SHAREBANK in the linker script
1642         * device/include/pic/pic14devices.txt: documented memmap
1643         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1644
1645 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1646
1647         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1648           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1649           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1650           genhc08Code): switched most of the D (debug) macros to DD (detailed
1651           debug) macros to better control clutter in the generated .asm file.
1652         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1653           genRightShift): fixed bug with non-constant bit shift stored to
1654           a volatile result (SF Open Discussion forum thread #1616749).
1655           Single byte case is not yet optimized.
1656
1657 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1658
1659         * device/include/asm/mcs51/features.h,
1660         * device/include/malloc.h,
1661         * device/include/stdio.h: changed keywords to double underscore variants,
1662           fixes bug 1590261
1663
1664 2006-11-27 Borut Razem <borut.razem AT siol.net>
1665
1666         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1667           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1668           support/cpp2/output.h, support/cpp2/cppinit.c,
1669           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1670           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1671           support/cpp2/cppdefault.c, support/cpp2/system.h,
1672           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1673           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1674           support/cpp2/prefix.c, support/cpp2/except.h,
1675           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1676           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1677           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1678           support/cpp2/version.c, support/cpp2/cppmain.c,
1679           support/cpp2/version.h, support/cpp2/hashtable.c,
1680           support/cpp2/cpperror.c:
1681           synchronized with GCC CPP release version 3.3.6,
1682           the latest where cppmain.c still exists.
1683         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1684           support/cpp2/sdcppinit.c: added
1685
1686 2006-11-27 Borut Razem <borut.razem AT siol.net>
1687
1688         * support/cpp2/cpplex.c:
1689           fixed _asm ... _endasm handling bug, introduce with GCC CPP
1690           synchronization
1691         * support/cpp2/cpplib.c: removed definitions of unused variables
1692
1693 2006-11-26 Borut Razem <borut.razem AT siol.net>
1694
1695         * support/cpp2/libiberty.h: commented out x*alloc() declarations
1696           since they are redefined by macros in support/cpp2/sdcc.h
1697         * support/cpp2/sdcc.h: x*alloc macro redefinition
1698
1699 2006-11-25 Borut Razem <borut.razem AT siol.net>
1700
1701         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1702           support/cpp2/configure, support/cpp2/Makefile.in,
1703           support/cpp2/cppfiles.c, support/cpp2/output.h,
1704           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1705           support/cpp2/config.h, support/cpp2/cpplib.h,
1706           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1707           support/cpp2/cppdefault.c, support/cpp2/config.in,
1708           support/cpp2/system.h, support/cpp2/cpplex.c,
1709           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1710           support/cpp2/cppdefault.h, support/cpp2/prefix.c
1711           support/cpp2/hwint.h, support/cpp2/mbchar.h,
1712           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1713           support/cpp2/configure.in, support/cpp2/intl.h,
1714           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1715           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1716           support/cpp2/version.c, support/cpp2/cppmain.c,
1717           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1718           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1719           support/cpp2/cpperror.c,
1720           support/cpp2/libiberty/safe-ctype.c,
1721           support/cpp2/libiberty/safe-ctype.h,
1722           support/cpp2/libiberty/splay-tree.c,
1723           support/cpp2/libiberty/obstack.c,
1724           support/cpp2/libiberty/lbasename.c,
1725           support/cpp2/libiberty/splay-tree.h,
1726           support/cpp2/libiberty/obstack.h:
1727           synchronized with GCC CPP release version 3.2.3,
1728           the latest before integration of cpp into gcc
1729         * support/cpp2/except.h, support/cpp2/line-map.c,
1730           support/cpp2/line-map.h,
1731           support/cpp2/libiberty/hex.c,
1732           support/cpp2/libiberty/concat.c,
1733           support/cpp2/libiberty/filenames.h: added
1734         * support/cpp2/intl.c: deleted
1735
1736 2006-11-24 Borut Razem <borut.razem AT siol.net>
1737
1738         * src/SDCC.y: enabled compilation of empty source file
1739         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1740           "ISO C forbids an empty source file"
1741         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1742           if all the code is ifdefed out.
1743
1744 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1745
1746         * src/hc08/gen.c (genPcall): fix for bug #1601032
1747
1748 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1749
1750         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1751         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1752         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1753         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1754         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1755         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1756         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1757         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1758         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1759         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1760         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1761         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1762         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1763         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1764         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1765           Renamed to all upper case as per the standard set by SiLabs
1766
1767 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1768
1769         * device/include/mcs51/C8051F520.h: new, added
1770         * device/include/mcs51/compiler.h: added link about predefined macros
1771
1772 2006-11-23 Raphael Neider <rneider AT web.de>
1773
1774         * src/regression/Makefile: add -L path to fresh library
1775         * src/regression/simulate: emphasize FAILED output
1776         * src/regression/create_stc: output _failures from gpsim
1777         * src/regression/compare4.c,
1778         * src/regression/rotate6.c: fixed char literals,
1779           all compile, all run =8-D
1780
1781         * src/pic/pcode.h: added isPCASMDIR macro
1782         * src/pic/gen.c (genAnd): fixed bit offset
1783         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1784           packBits): unified register numbering schemes,
1785           (newReg): do not insert stack registers into hash table,
1786           (initStack): unpinned pseudo stack, simplified,
1787           (typeRegWithIdx): fixed retrieval of stack registers,
1788         * src/pic/pcode.c (addpCodeComment,sameBank): added,
1789           (pCodeReplace): removed invalid assertion,
1790           (insertPCodeInstruction): fixed newly added labels,
1791           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1792           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1793           DumpFlow): removed unsed (broken?) code,
1794           (insertBankSel): prevent STATUS from being BANKSELed,
1795           (FixRegisterBanking): rewritten from scratch, implemented generic
1796             optimizations (suppress BANKSELs to same register and to registers
1797             present in all banks),
1798           (AnalyzeBanking): update flow after BANKSELection
1799
1800         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
1801             sharebank, let linker place it, mark STKxx symbols as emitted
1802
1803 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1804
1805         * src/regression/arrays.c,
1806         * src/regression/bank1.c,
1807         * src/regression/bool2.c,
1808         * src/regression/compare7.c,
1809         * src/regression/compare8.c,
1810         * src/regression/compare9.c,
1811         * src/regression/compare10.c,
1812         * src/regression/configword.c,
1813         * src/regression/for.c,
1814         * src/regression/mult1.c,
1815         * src/regression/pointer1.c,
1816         * src/regression/rotate6.c,
1817         * src/regression/string1.c,
1818         * src/regression/struct1.c,
1819         * src/regression/Makefile: make PIC14 regression tests run again
1820           (3 fail, 6 won't compile)
1821
1822 2006-11-21 Raphael Neider <rneider AT web.de>
1823
1824         * device/include/pic16/pic18f4550.h,
1825         * device/include/pic16/pic18f4455.h,
1826         * device/lib/pic16/libdev/pic18f4550.c,
1827         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
1828         * configure.in: removed superfluous closing bracket
1829
1830 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1831
1832         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
1833           always positive.
1834
1835 2006-11-21 Raphael Neider <rneider AT web.de>
1836
1837         * src/pic/device.{c,h}: added pic14_getPIC()
1838         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
1839           (genAnd): added PIC code for one case, fixes #1597044
1840         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
1841           SFRs that are present in all banks (e.g., STATUS)
1842
1843 2006-11-20 Raphael Neider <rneider AT web.de>
1844
1845         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
1846           INCFSZ/INCFSZW and declared them as changing Z bit,
1847           (insertPCodeInstruction): correctly invert the above instructions,
1848           fixes #1599333,
1849           (DoBankSelect): don't panic on po_immediates
1850
1851 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1852
1853         * as/link/aslink.h,
1854         * as/link/mcs51/lkihx.c (newArea),
1855         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
1856         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
1857
1858 2006-11-11 Raphael Neider <rneider AT web.de>
1859
1860         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
1861           bitfield symbols, fixes #1579535 (once more...).
1862
1863 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1864
1865         * support/regression/generate-cases.py,
1866         * support/regression/fwk/include/testfwk.h,
1867         * support/regression/fwk/lib/testfwk.c: used code pointers,
1868           (about 50kByte less code generated for mcs51)
1869
1870 2006-11-06 Borut Razem <borut.razem AT siol.net>
1871
1872         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1873           debugger/mcs51/configure: fixed failed check because the function
1874           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
1875           who submitted the patch for gpsim.
1876         * debugger/mcs51/configure.in: removed the result message
1877         * debugger/mcs51/Makefile.in: fixed the config.status warning
1878           "... seems to ignore the --datarootdir setting"
1879
1880 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1881
1882         * device/include/mcs51/c8051f020.h,
1883         * device/include/mcs51/c8051f040.h,
1884         * device/include/mcs51/c8051f060.h,
1885         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
1886         * src/z80/gen.c (gencjneshort),
1887         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
1888
1889 2006-10-31 Borut Razem <borut.razem AT siol.net>
1890
1891         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1892           debugger/mcs51/configure: get readline version
1893
1894 2006-10-30 Borut Razem <borut.razem AT siol.net>
1895
1896         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
1897         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1898           debugger/mcs51/configure: locate readline even when cross compiling
1899         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
1900
1901 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1902
1903         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
1904           serial port.
1905
1906 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1907
1908         * device/include/malloc.h,
1909         * device/lib/calloc.c,
1910         * device/lib/free.c,
1911         * device/lib/malloc.c,
1912         * device/lib/realloc.c: moved definition of struct into sources
1913         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
1914
1915 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1916
1917         * as/asx8051.dsp: corrected output directories
1918         * as/link/hc08: new directory for hc08 linker
1919         * as/hc08/aslink.h,             as/link/aslink.h,
1920         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
1921         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
1922         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
1923         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
1924         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
1925         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
1926         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
1927         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
1928         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
1929         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
1930         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
1931         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
1932         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
1933         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
1934         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
1935         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
1936         * as/link/hc08/conf.mk,
1937         * configure,
1938         * configure.in,
1939         * Makefile.in,
1940         * sdcc.dsw: moved hc08 linker to as/link/hc08
1941         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
1942         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
1943         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
1944         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
1945         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
1946         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
1947         * as/link/mcs51/aslink.dsp,
1948         * as/link/mcs51/Makefile.in: factored out the common files
1949         * as/hc08/lkstore.c: deleted, use the one already in as/link/
1950         * as/clean.mk: extra cleaning common files
1951         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
1952         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
1953         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
1954
1955 2006-10-29 Raphael Neider <rneider AT web.de>
1956
1957         * src/pic/ralloc.c (newReg): create aliases for registers with
1958           multiple names to fix #1579535 and #1584001,
1959           (regWithIdx,dirregWithName): resolve aliases on lookup
1960         * src/pic/pcode.c (DoBankSelect): die with error message on failing
1961           bankselect
1962         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
1963           to prevent build errors on small devices
1964
1965 2006-10-28 Raphael Neider <rneider AT web.de>
1966
1967         * src/pic/gen.c (genFunction,genCall): drop "same code page"
1968           assumption within interrupt handlers, fixes #1584940
1969         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
1970           "emitted" to avoid emitting them again in udata
1971
1972 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1973
1974         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1975         Removed.
1976
1977 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1978
1979         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1980         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
1981         on/off CR to CRLF conversion.
1982
1983 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1984
1985         * doc/sdccman.lyx: updated IRQ section
1986
1987 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1988
1989         * device/lib/serial_io.c: removed
1990         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
1991         replacements for serial_io.c
1992
1993 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
1994
1995         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
1996
1997 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1998
1999         * device/lib/serial_io.c: Default putchar() and getchar() for
2000           mcs51 uses serial port.
2001
2002 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
2003
2004         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
2005
2006 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2007
2008         * support/regression/ports/mcs51/support.c: smaller
2009         _sdcc_external_startup()
2010         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
2011
2012 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
2013
2014         * device/lib/gbz80/crt0.s,
2015         * device/lib/gbz80/crt0_rle.s,
2016         * device/lib/gbz80/div.s,
2017         * device/lib/gbz80/fstubs.s,
2018         * device/lib/gbz80/heap.s,
2019         * device/lib/gbz80/mul.s,
2020         * device/lib/gbz80/putchar.s,
2021         * device/lib/gbz80/stubs.s,
2022         * device/lib/z80/crt0.s,
2023         * device/lib/z80/crt0_rle.s,
2024         * device/lib/z80/div.s,
2025         * device/lib/z80/fstubs.s,
2026         * device/lib/z80/heap.s,
2027         * device/lib/z80/mul.s,
2028         * device/lib/z80/putchar.s,
2029         * device/lib/z80/stubs.s: reverted, I was mistaken
2030
2031 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2032
2033         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
2034         * support/regression/ports/mcs51/support.c: removed race
2035         condition on TI in _putchar allowing to use serial port mode 0
2036
2037 2006-10-20 Borut Razem <borut.razem AT siol.net>
2038
2039         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
2040
2041 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
2042
2043         * device/lib/gbz80/crt0.s,
2044         * device/lib/gbz80/crt0_rle.s,
2045         * device/lib/gbz80/div.s,
2046         * device/lib/gbz80/fstubs.s,
2047         * device/lib/gbz80/heap.s,
2048         * device/lib/gbz80/mul.s,
2049         * device/lib/gbz80/putchar.s,
2050         * device/lib/gbz80/stubs.s,
2051         * device/lib/z80/crt0.s,
2052         * device/lib/z80/crt0_rle.s,
2053         * device/lib/z80/div.s,
2054         * device/lib/z80/fstubs.s,
2055         * device/lib/z80/heap.s,
2056         * device/lib/z80/mul.s,
2057         * device/lib/z80/putchar.s,
2058         * device/lib/z80/stubs.s: removed all leading underscores from area names
2059
2060 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
2061
2062         * support/regression/ports/mcs51/support.c: use highest baudrate so the
2063           regression tests are not waiting in the simulator for simulated
2064           transmission of debug output
2065
2066 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2067
2068         * device/lib/printf_large.c: slightly smaller
2069         * doc/sdccman.lyx: do not use spaces within html links
2070
2071 2006-10-16 Borut Razem <borut.razem AT siol.net>
2072
2073         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
2074           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
2075           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
2076           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
2077           debugger/mcs51/configure:
2078           [ 1185668 ] add gnu readline support to sdcdb - enabled
2079
2080 2006-10-16 Raphael Neider <rneider AT web.de>
2081
2082         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
2083           fixes #1577882, removes close to all banking optimizations
2084
2085 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
2086
2087         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
2088           variables in code memory
2089         * support/regression/tests/absolute.c: added test for this
2090
2091 2006-10-15 Raphael Neider <rneider AT web.de>
2092
2093         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
2094           devices,
2095           (BankSelect): emit BANKSEL before touching linker-placed regs,
2096           fixes #1570934
2097
2098 2006-10-10 Raphael Neider <rneider AT web.de>
2099
2100         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
2101         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
2102         * src/pic/main.c (_pic14_parseOptions),
2103         * src/pic/main.h: mostly reverted to previous state, now use results
2104             from SDCCmain.c's argument parsing
2105
2106 2006-10-10 Borut Razem <borut.razem AT siol.net>
2107
2108         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2109           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2110           [ 1185668 ] add gnu readline support to sdcdb -
2111           prepared for READLINE, not enabled yet,
2112           thanks to <tal.bav AT gmail.com>
2113
2114 2006-10-10 Raphael Neider <rneider AT web.de>
2115
2116         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2117         * src/pic16/devices.inc,
2118         * device/include/pic16 (pic18f[24]620.h),
2119         * device/include/pic18fregs.h,
2120         * device/lib/pic16/pics.all,
2121         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2122             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2123             Gary Plumbridge and Anton Strobl
2124
2125 2006-10-10 Raphael Neider <rneider AT web.de>
2126
2127         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2128           --stack-siz=NUM options to configure the argument passing stack
2129         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2130         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2131           (pic14_getSharebankSize): obey --stack-siz=NUM,
2132           (pic14_getSharebankAddress): obey --stack-loc=NUM
2133
2134 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2135
2136         * doc/sdccman.lyx: added to the manual
2137         * doc/figures/ddd_example.png: added (neither pdflatex nor
2138         most browsers seem to like the .eps file)
2139
2140 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2141
2142         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2143         to /tmp and /var/tmp acc. LSB
2144         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2145         RESULT_TYPE_IFX
2146         * support/regression/tests/onebyte.c: added test
2147
2148 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2149
2150         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2151
2152 2006-10-05 Borut Razem <borut.razem AT siol.net>
2153
2154         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2155           thanks to dfulab:
2156           - sdcc.dsw: changed property eol-style to CRLF
2157           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2158
2159 2006-10-04 Raphael Neider <rneider AT web.de>
2160
2161         * device/include/pic/{pic16f84.h,pic16f84a.h},
2162         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2163           from patch #1522504, thanks to Robas Teodor
2164
2165 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2166
2167         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2168           fixes bug 1566015
2169
2170 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2171
2172         * src/pic16/glue.c (pic16emitMaps),
2173         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2174         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2175         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2176         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2177           Philipp Krause
2178         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2179         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2180
2181 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2182
2183         * support/librarian/sdcclib.c: Added option -l.
2184         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2185           usage totals.
2186         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2187           using Windows command prompt.
2188
2189 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2190
2191         * device/lib/libsdcc.lib: added module rand
2192         * src/ds390/ralloc.c (rematStr),
2193         * src/hc08/ralloc.c (rematStr),
2194         * src/mcs51/ralloc.c (rematStr),
2195         * src/z80/ralloc.c (rematStr): made output more consistent
2196         * src/mcs51/gen.c: cosmetic changes
2197
2198 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2199
2200         * src/port.h: added mem.cabs_name to PORT
2201         * src/ds390/main.c,
2202         * src/hc08/main.c,
2203         * src/mcs51/main.c,
2204         * src/pic16/main.c,
2205         * src/pic/main.c,
2206         * src/xa51/main.c,
2207         * src/z80/main.c: added cabs_name initializers
2208         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2209           constants
2210           (emitMaps): emit absolutes in code memory into cabs_name
2211         * src/SDCCmem.c,
2212         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2213         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2214         * support/regression/fwk/include/testfwk.h: added define for at
2215         * support/regression/tests/absolute.c: added, new
2216
2217 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2218
2219         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2220           optimizations, see also patch 887161 by Stas Sergeev
2221         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2222           to be necessary anymore,
2223           (102, 103, 104, 127): renamed all occurances of bp to _bp
2224
2225 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2226
2227         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2228           thanks Weston T. Schmidt for patch 1555221
2229         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2230         * src/SDCCicode.c(geniCodeMultiply): small optimization
2231
2232 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2233
2234         * device/include/stdlib.h: added rand prototypes
2235         * device/lib/rand.c: new, added
2236         * device/lib/Makefile.in: added rand.c
2237         * src/z80/peeph.def,
2238         * src/z80/peeph-gbz80.def,
2239         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2240
2241 2006-09-20 Raphael Neider <rneider AT web.de>
2242
2243         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2244
2245 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2246
2247         * as/link/aslink.h: cosmetic changes
2248         * as/link/mcs51/Makefile.in,
2249         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2250
2251 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2252
2253         * as/link/aslink.h,
2254         * as/link/mcs51/aslink.h,
2255         * as/link/z80/aslink.h: merged and moved to as/link/
2256         * as/link/lkstore.c,
2257         * as/link/mcs51/lkstore.c: moved to as/link/
2258         * as/link/clean.mk: remove *.o
2259         * as/link/mcs51/alloc.h: deleted
2260         * as/link/mcs51/lkarea.c: added lnksect prototype
2261         * as/link/mcs51/lkdata.c,
2262         * as/link/mcs51/lklex.c,
2263         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2264         * as/link/mcs51/lkmem.c,
2265         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2266         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2267         * as/link/mcs51/aslink.dsp,
2268         * as/link/mcs51/Makefile.aslink,
2269         * as/link/mcs51/Makefile.bcc,
2270         * as/link/mcs51/Makefile.in: updated for moved files
2271         * as/link/z80/lkarea.c,
2272         * as/link/z80/lkhead.c,
2273         * as/link/z80/lklex.c,
2274         * as/link/z80/lklibr.c,
2275         * as/link/z80/lklist.c,
2276         * as/link/z80/lkmain.c,
2277         * as/link/z80/lkrloc.c,
2278         * as/link/z80/lksym.c: synced with mcs51
2279         * as/link/z80/lkdata.c,
2280         * as/link/z80/lkeval.c,
2281         * as/link/z80/lkihx.c,
2282         * as/link/z80/lks19.c: cosmetic changes
2283         * as/link/z80/Makefile.in,
2284         * as/link/z80/linkgbz80.dsp,
2285         * as/link/z80/linkz80.dsp: updated for moved files
2286
2287 2006-09-16 Borut Razem <borut.razem AT siol.net>
2288
2289         * debugger/mcs51/sdcdb.c: partially fixed
2290           [ 1203664 ] sdcdb fails to open files w. two "." periods
2291         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2292           debugger/mcs51/symtab.h: fixed indenting
2293         * configure.in, configure: up to date with latest Maarten's changes
2294
2295 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2296
2297         as/link/mcs51
2298         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2299         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2300         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2301         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2302         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2303         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2304         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2305         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2306         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2307         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2308         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2309         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2310         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2311         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2312         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2313         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2314         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2315         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2316         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2317         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2318         as/link/mcs51/alloc.h,
2319         as/link/mcs51/clean.mk,
2320         as/link/mcs51/conf.mk,
2321         as/link/mcs51/Makefile.bcc,
2322         as/link/mcs51/Makefile.in,
2323         as/link/mcs51/readme.390,
2324         as/link/mcs51/strcmpi.c,
2325         as/link/mcs51/strcmpi.h,
2326         as/mcs51/clean.mk,
2327         as/mcs51/Makefile.bcc,
2328         as/mcs51/Makefile.in,
2329         configure,
2330         Makefile.in,
2331         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2332
2333 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2334
2335         * as/link,
2336         * as/link/Makefile.in,
2337         * as/link/z80/linkgbz80.dsp,
2338         * as/link/z80/linkz80.dsp,
2339         * configure,
2340         * link,
2341         * link/clean.mk,
2342         * link/Makefile.in,
2343         * link/README,
2344         * link/z80,
2345         * link/z80/aslink.h,
2346         * link/z80/clean.mk,
2347         * link/z80/conf.mk,
2348         * link/z80/linkgbz80.dsp,
2349         * link/z80/linkz80.dsp,
2350         * link/z80/lkarea.c,
2351         * link/z80/lkdata.c,
2352         * link/z80/lkeval.c,
2353         * link/z80/lkgb.c,
2354         * link/z80/lkgg.c,
2355         * link/z80/lkhead.c,
2356         * link/z80/lkihx.c,
2357         * link/z80/lklex.c,
2358         * link/z80/lklibr.c,
2359         * link/z80/lklist.c,
2360         * link/z80/lkmain.c,
2361         * link/z80/lkrloc.c,
2362         * link/z80/lks19.c,
2363         * link/z80/lksym.c,
2364         * link/z80/Makefile.in,
2365         * Makefile.in,
2366         * sdcc.dsw: moved link/ to as/link/
2367
2368 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2369
2370         * as/mcs51/i51mch.c (machine): fixed warning
2371
2372 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2373
2374         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2375
2376 2006-09-09 Borut Razem <borut.razem AT siol.net>
2377
2378         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2379           sdcdb WIN32 native port
2380         * src/clean.mk: fixed
2381
2382 2006-09-08 Borut Razem <borut.razem AT siol.net>
2383
2384         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2385
2386 2006-09-08 Raphael Neider <rneider AT web.de>
2387
2388         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2389         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2390             to gplink to disable processor mismatch warning and to allow
2391             the use of devices with only aliased (shared) memory banks,
2392           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2393
2394 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2395
2396         * doc/sdccman.lyx: Some re-formating plus example on using
2397           #pragma preproc_asm +/-
2398
2399 2006-09-07 Borut Razem <borut.razem AT siol.net>
2400
2401         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2402           section
2403
2404 2006-09-06 Borut Razem <borut.razem AT siol.net>
2405
2406         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2407           line at sdcc.nsi:153
2408         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2409
2410 2006-09-05 Borut Razem <borut.razem AT siol.net>
2411
2412         * configure.in, configure: support for winsock2
2413         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2414           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2415           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2416           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2417           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2418
2419 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2420
2421         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2422           and OP_DEFS
2423         * support/regression/tests/bug1551947.c: new, added
2424         * src/SDCCsymt.h: strings are char* not byte*
2425
2426 2006-09-05 Raphael Neider <rneider AT web.de>
2427
2428         * device/lib/pic16/libdev/pic18f4550.c,
2429           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2430             declarations/definitions from patch #1520949
2431
2432 2006-09-05 Raphael Neider <rneider AT web.de>
2433
2434         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2435           byte-aligned bitfields, fixes #1539278
2436
2437 2006-09-05 Raphael Neider <rneider AT web.de>
2438
2439         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2440           fixes #1544120
2441
2442 2006-09-04 Borut Razem <borut.razem AT siol.net>
2443
2444         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2445         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2446           -mno-cygwin is a part of the compiler name
2447         * support/scripts/sdcc_mingw32: don't disable ucsim
2448
2449 2006-09-03 Borut Razem <borut.razem AT siol.net>
2450
2451         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2452         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2453
2454 2006-09-03 Raphael Neider <rneider AT web.de>
2455
2456         * src/pic/ralloc.c,
2457         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2458           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2459           fixes #1550049
2460
2461 2006-09-01 Borut Razem <borut.razem AT siol.net>
2462
2463         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2464           to make ppc-osx happy
2465
2466 2006-08-31 Borut Razem <borut.razem AT siol.net>
2467
2468         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2469         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2470         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2471         * support/regression/ports/ds390/spec.mk,
2472           support/regression/ports/mcs51/spec.mk,
2473           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2474           To run regression tests in mingw environment:
2475           make DEV_NULL=NUL CC=gcc
2476
2477 2006-08-30 Borut Razem <borut.razem AT siol.net>
2478
2479         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2480           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2481           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2482           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2483           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2484           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2485           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2486           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2487           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2488           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2489           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2490           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2491           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2492           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2493           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2494           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2495           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2496           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2497           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2498           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2499           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2500           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2501           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2502           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2503           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2504           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2505           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2506           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2507           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2508           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2509           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2510           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2511           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2512           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2513           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2514           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2515           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2516           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2517           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2518           ucsim WIN32 native port
2519
2520 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2521
2522         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2523
2524 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2525
2526         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2527         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2528
2529 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2530
2531         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2532         * support/regression/tests/bug1546986.c: new, added
2533         * as/mcs51/.cvsignore,
2534         * debugger/mcs51/.cvsignore,
2535         * src/.cvsignore: deleted
2536
2537 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2538
2539         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2540           definitions)
2541
2542 2006-08-20 Borut Razem <borut.razem AT siol.net>
2543
2544         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2545           removed cl_listen_console::match(), cl_console::match(),
2546           restructured cl_commander::proc_input()
2547
2548 2006-08-16 Borut Razem <borut.razem AT siol.net>
2549
2550         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2551           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2552           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2553
2554 2006-08-14 Borut Razem <borut.razem AT siol.net>
2555
2556         * support/regression/Makefile.in,
2557           support/regression/ports/pic14/gpsim.cmd,
2558           support/regression/ports/pic14/spec.mk,
2559           support/regression/ports/pic14/support.c:
2560           added pic14 regression test
2561
2562 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2563
2564         * as/doc/asxhtm.html: documented changed ABS behaviour
2565         * as/doc/README: fixed some typos
2566
2567 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2568
2569         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2570           not defined on host
2571
2572 2006-08-12 Borut Razem <borut.razem AT siol.net>
2573
2574         * support/regression/fwk/include/testfwk.h,
2575           support/regression/fwk/lib/testfwk.c,
2576           support/regression/generate-cases.py,
2577           support/regression/Makefile.in:
2578           regression test framework does not depend on function pointers and
2579           variable arguments
2580
2581 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2582
2583         * device/include/stddef.h: c temporary hack to fix bug 1518273
2584
2585 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2586
2587         * device/include/mcs51/cc2510fx.h: added
2588         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2589           to projects.
2590
2591 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2592
2593         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2594         * as/z80/Makefile.in: added strcmpi.c
2595         * as/z80/z80adr.c: added upper case registers and lower case conditionals
2596         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2597
2598 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2599
2600         * device/lib/gbz80/asm_strings.s,
2601         * device/lib/gbz80/crt0_rle.s,
2602         * device/lib/gbz80/div.s,
2603         * device/lib/gbz80/mul.s,
2604         * device/lib/gbz80/shift.s,
2605         * device/lib/z80/asm_strings.s,
2606         * device/lib/z80/crt0_rle.s,
2607         * device/lib/z80/div.s,
2608         * device/lib/z80/mul.s,
2609         * device/lib/z80/shift.s: changed to all lower case menmonics except the
2610           flags which are all upper case
2611
2612 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2613
2614         * as/z80/asm.h: made CASE_SENSITIVE 1
2615         * link/z80/aslink.h: made CASE_SENSITIVE 1
2616         * src/z80/gen.c (throughout): made all conditionals upper case
2617         * support/regression/tests/bug1503067.c: new
2618
2619 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2620
2621         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2622           (shiftIntoPair): added case 2 for PAIR_IY,
2623           (setupToPreserveCarry): replaced parameters with iCode and check if
2624            PAIR_DE is in use to fix bug 1399290,
2625           (genPlus, genMinus): updated call to setupToPreserveCarry
2626         * support/regression/tests/bug1399290.c: new
2627
2628 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2629
2630         * device/lib/Makefile.in (Z80SOURCES): enabled float support
2631         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2632         * src/ds390/gen.c (shiftRLong),
2633         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2634         * src/mcs51/gen.c (sameReg): changed to sameByte,
2635           (xch_a_aopGet): new,
2636           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2637            shiftRLong): fixed bug 1533966
2638         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2639           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2640         * support/regression/Makefile.in: disabled z80, enabled ucz80
2641         * support/regression/tests/float_trans.c: enabled test for z80 and host
2642         * support/regression/tests/shifts2.c: new, for testing bug 1533966
2643
2644 2006-08-01 Borut Razem <borut.razem AT siol.net>
2645
2646         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2647           comparison is always false due to limited range of data type
2648           on PPC64 machine (openpower-linux1) where "char = unsigned char"
2649
2650 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2651
2652         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2653         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2654         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2655         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2656
2657 2006-07-31 Borut Razem <borut.razem AT siol.net>
2658
2659         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2660           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2661           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2662           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2663           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2664           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2665           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2666           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2667           enable ucsim mingw compilation. Serial port is disabled,
2668           since it uses termios.h API, which is not available on native
2669           WIN32
2670
2671 2006-07-31 Borut Razem <borut.razem AT siol.net>
2672
2673         * Small Device C Compiler 2.6.0 released
2674         * support/scripts/sdcc.nsi: added FULL_DOC option
2675         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2676
2677 2006-07-28 Borut Razem <borut.razem AT siol.net>
2678
2679         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2680         * doc/INSTALL.txt: updated
2681
2682 2006-07-27 Borut Razem <borut.razem AT siol.net>
2683
2684         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2685           device/lib/pic/libdev/Makefile.in: fixed bug
2686           [ 1438354 ] pic libsdcc: distclean doesn't work
2687         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2688           device/lib/pic16/libio/Makefile.in: fixed bug
2689           [ 1438344 ] pic16 lib: clean doesn't work properly
2690         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2691
2692 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2693
2694         * device/lib/pic/libsdcc/fsdiv.c,
2695         * device/lib/pic/libsdcc/fsmul.c,
2696         * device/lib/pic16/libsdcc/float/fsdiv.c,
2697         * device/lib/pic16/libsdcc/float/fsmul.c,
2698         * device/lib/_fsdiv.c,
2699         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2700         * support/regression/tests/bug1520966.c: added
2701         * doc/knownbugs.html: removed [ 1520966 ] from the list
2702
2703 2006-07-25 Borut Razem <borut.razem AT siol.net>
2704
2705         * configure.in, configure, sdccconf_in.h: fixed bug
2706           [ 1519095 ] regression test onebyte.c fails on ppc64 host
2707         * doc/knownbugs.html: removed [ 1519095 ] from the list
2708
2709 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2710
2711         * doc/knownbugs.html: added, contains list of known bugs at release
2712         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2713
2714 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2715
2716         * device/include/mcs51/compiler.h: added SFRX for xdata based special
2717           function registers and corrected defaults with additional warning
2718         * device/lib/malloc.c: cosmetic changes
2719         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2720         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2721           (fillGaps): and used it
2722
2723 2006-07-20 Raphael Neider <rneider AT web.de>
2724
2725         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2726           output unless SDCCPICDEBUG is set
2727         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2728           output if SILENT is set
2729
2730 2006-07-11 Borut Razem <borut.razem AT siol.net>
2731
2732         * doc/README.txt: updated
2733
2734 2006-07-10 Borut Razem <borut.razem AT siol.net>
2735
2736         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2737           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2738           in WIN32 installation
2739         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2740           release candidate 1
2741
2742 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2743
2744         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2745         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2746
2747 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2748
2749         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2750
2751 2006-07-06 Borut Razem <borut.razem AT siol.net>
2752
2753         * support/regression/tests/bitfields.c:
2754           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2755         * support/regression/tests/constantRange.c:
2756           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2757
2758 2006-07-04 Borut Razem <borut.razem AT siol.net>
2759
2760         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2761           src/port.mk,
2762           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2763           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2764           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2765           reverted changes from 2006-07-03
2766         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2767         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2768           added CPPFLAGS, used by the host port
2769
2770 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2771
2772         * support/regression/valdiag/tests/switch.c,
2773         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2774         * support/regression/tests/libmullong.c: fixed for host
2775         * support/regression/ports/host/spec.mk: disable all warnings for host,
2776         SDCC runs with --less-pedantic too
2777
2778 2006-07-03 Borut Razem <borut.razem AT siol.net>
2779
2780         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2781           defined CPPFLAGS
2782         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2783         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2784           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2785           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2786           include ../port.mk
2787         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2788           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2789           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2790           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2791
2792 2006-07-02 Raphael Neider <rneider AT web.de>
2793
2794         * src/pic16/devices.inc,
2795         * device/include/pic16/pic18fregs.h,
2796         * device/include/pic16/pic18f4550.h,
2797         * device/lib/pic16/pics.all,
2798         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
2799
2800 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2801
2802         * as/hc08/lkaomf51.c (OutputName),
2803         * as/mcs51/lkaomf51.c (OutputName),
2804         * as/z80/asmain.c (asmbl),
2805         * src/ds390/main.c (asmLineNodeFromLineNode),
2806         * src/hc08/ralloc.c (hc08_assignRegisters),
2807         * src/mcs51/main.c (asmLineNodeFromLineNode),
2808         * src/xa51/ralloc.c (checkRegMask),
2809         * src/xa51/gen.c (emitcode),
2810         * src/z80/gen.c (_emit2),
2811         * src/SDCCast.c (searchLitOp),
2812         * src/SDCCglobl.h,
2813         * support/packihx/packihx.c,
2814         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
2815         * src/ds390/gen.c (aopPutUsesAcc),
2816         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
2817         * support/regression/tests/libmullong.c (mullong_wrapper),
2818         * src/SDCCsymt.c (powof2),
2819         * src/SDCCast.c,
2820         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
2821         * src/SDCCsymt.h: added TYPE_TARGET_*
2822         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
2823         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
2824         SDCCast because 1) header problems 2) this is the right place
2825         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
2826         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
2827         prototype
2828
2829 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2830
2831         * src/SDCCicode.h: removed buggy semicolon in unused macro
2832         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
2833         search for previous definiton of auto symbols too,
2834         (findPrevUse): fixed logic of emitWarnings
2835
2836 2006-06-26 Raphael Neider <rneider AT web.de>
2837
2838         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
2839           PCLATH and PCLATU on interrupts, potentially fixes #1505141
2840
2841 2006-06-25 Raphael Neider <rneider AT web.de>
2842
2843         * device/lib/pic/libm: NEW, added math library functions
2844         * device/lib/pic/libsdcc: NEW; added float support functions
2845         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
2846         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
2847           NEW, added math related headers
2848         * device/include/asm/pic/features.h: NEW
2849         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
2850           (popGet): allow larger offsets for AOP_PCODE,
2851           (genDataPointerSet): handle literals explicitly, more debug output,
2852           (genAssign): fixed for float using aopLiteral ;-)
2853         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
2854           GOTO initialisation routine
2855         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
2856           flag on registers, fixes #1469043 (local variables do not work)
2857         * src/pic/main.c (_pic14_do_link),
2858         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
2859           available
2860
2861 2006-06-25 Borut Razem <borut.razem AT siol.net>
2862
2863         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
2864           characters printed (not including the trailing '\0' used to end
2865           output to strings). Problem detected in regression test bug-927659.c.
2866           NOTE: printf() family functions should return int instead
2867           unsigned int!
2868         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
2869           specifier are printed as themselves
2870         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
2871           support flags, width and precision specifiers
2872
2873 2006-06-24 Borut Razem <borut.razem AT siol.net>
2874
2875         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
2876           to the list of sdcc tagrets not supporting bit type
2877         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
2878           testfor pic16 due to bug:
2879           [ 1511794 ] pic16: regression test bug-895992.c fails
2880
2881 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
2882
2883         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
2884         * src/SDCCglue.c (initPointer), fixed bug 1496419
2885         * support/regression/tests/bug1496419.c: new, added
2886
2887 2006-06-22 Borut Razem <borut.razem AT siol.net>
2888
2889         * support/regression/ports/pic16/support.c: use gpsim usart module from
2890           libgpsim_modules library
2891
2892 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2893
2894         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
2895         IP0H to IPH0.
2896
2897 2006-06-19 Raphael Neider <rneider AT web.de>
2898
2899         * src/pic/glue.h,src/pic16/glue.h: added prototypes
2900         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
2901           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
2902           (pic14printExterns,pic14printPublics,pic16printPublics,
2903           pic16_printExterns): use new functions to emit symbols
2904           (picglue,pic16glue): emit publics before emitting externs
2905         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
2906           locally defined functions to avoid bug #1443651
2907         * support/regression/tests/bug-716242.c: removed pic16 workaround
2908         * support/regression/ports/pic16/spec.mk: ignore errors during build
2909
2910 2006-06-19 Raphael Neider <rneider AT web.de>
2911
2912         * src/pic/glue.h: added pic14aopLiteral prototype
2913         * src/pic/glue.c (pic14aopLiteral): return unsigned int
2914         * src/pic/gen.c: removed stdint.h dependency
2915           (aopGet): use Safe_strdup()
2916           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
2917           (genDataPointerSet): use pic14aopLiteral()
2918         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
2919           for pic16; thanks to Bernhard and Maarten
2920
2921 2006-06-18 Borut Razem <borut.razem AT siol.net>
2922
2923         * support/regression/tests/structflexarray.c: flexible array members
2924           not supported by gcc < 3
2925         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
2926           GUI tool by default
2927         * src/pic/gen.c: don't include [p]strdin.h on solaris
2928         * support/Util/pstdint.h: addad svn attributes
2929         * support/regression/tests/constantRange.c,
2930           support/regression/tests/rotate.c: include inttypes.h instead
2931           stdint.h on solaris, addad svn attributes
2932
2933 2006-06-18 Raphael Neider <rneider AT web.de>
2934
2935         * src/SDCCsymt.c (initCSupport): change return type of divschar to
2936           int for PIC16
2937         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
2938           (pic16_genMinusBits): simplified sign-extension
2939           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
2940             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
2941             adjusted to correctly handle mixed-signed operands, disabled
2942             now unused multiplciation routines
2943         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
2944           (assignResultValue): added argument denoting the size of the result
2945             as returned by the function (fixes upcasts in assigning from
2946             function calls: char foo(); int i = foo();)
2947           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
2948             function result to assignResultValue
2949           (genMult): disabled inlined multiplication code
2950           (genDiv): augmented to also handle the modulus operator, fixed to
2951             handle mixed-signed operands correctly
2952           (genMod): simply call genDiv, disabled unused code
2953           (genAssign): fixed missing (sign-)extension on result
2954         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
2955             valid char operands, allow signed operands for native code, added
2956             division and modulo operator handling
2957         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
2958
2959         As a consequence, onebyte.c (if split into two files) and muldiv.c
2960         pass regression tests.
2961
2962 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2963
2964         * doc/Makefile.in: two runs of makeindex seem needed to get
2965         correct page references in the index of sdccman.pdf
2966         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
2967
2968 2006-06-17 Borut Razem <borut.razem AT siol.net>
2969
2970         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
2971
2972 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2973
2974         * doc/sdccman.lyx: updated, added (porting source code, debugging),
2975         mentioned ec2drv and paulmon
2976
2977 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2978
2979         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
2980           consecutive abs areas
2981           (find_empty_space, allocate_space): added map to handle codemap or
2982            xdatamap,
2983           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
2984            absolute idata and xdata
2985         * as/mcs51/lkmem.c (summary2): updated legend
2986
2987 2006-06-16 Raphael Neider <rneider AT web.de>
2988
2989         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
2990
2991 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
2992
2993         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
2994           1208515
2995         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
2996
2997 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
2998
2999         * src/port.h (struct PORT): added field gp_tags, to hold the tag
3000         value of generic pointers,
3001         * src/avr/main.c,
3002           src/ds390/main.c,
3003           src/hc08/main.c,
3004           src/izt/i186.c,
3005           src/izt/tlcs900h.c,
3006           src/mcs51/main.c,
3007           src/pic/main.c,
3008           src/pic16/main.c,
3009           src/xa51/main.c,
3010           src/z80/main.c: PORT structure, added elements for gp_tags field,
3011         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
3012         fields in the PORT structure of each port,
3013         * src/SDCCast.c (decorateType): allow processing of generic pointers
3014         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
3015         S_FIXED symbols
3016
3017 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
3018
3019         * link/z80/lkgb.c,
3020         * link/z80/lkgg.c,
3021         * src/pic16/gen.c,
3022         * src/pic16/main.c,
3023         * src/pic16/pcode.c,
3024         * src/pic/main.c,
3025         * src/pic/pcoderegs.c,
3026         * src/SDCCicode.c,
3027         * src/SDCCmain.c,
3028         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
3029           bug 1504689 on minGW
3030
3031 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3032
3033         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
3034
3035 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
3036
3037         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
3038
3039 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
3040
3041         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
3042           for optimization
3043
3044 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
3045
3046         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
3047         to a char variable. Fixed bug #1504211
3048         * device/include/pic16/adc.h,
3049         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
3050         and fixed bug #1364390
3051
3052 2006-06-10 Borut Razem <borut.razem AT siol.net>
3053
3054         * CVSROOT: removed the CVS left-over
3055
3056 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3057
3058         * as/hc08/asmain.c (asexit),
3059         * as/hc08/lkmain.c (lkexit),
3060         * as/mcs51/asmain.c (asexit),
3061         * as/mcs51/lkmain.c (lkexit),
3062         * src/SDCCglue.c (DEFSETFUNC),
3063         * src/SDCCmain.c (linkEdit, assemble),
3064         * support/librarian/sdcclib.c (AddRel),
3065           replaced unlink() by standard C remove()
3066         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
3067         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
3068           gatherImplicitVariables): new, added to fix bug 608752,
3069           (createFunction): added gatherImplicitVariables()
3070         * src/SDCCast.h: added createRMW prototype
3071         * src/SDCCsymt.h (struct symbol): added infertype
3072         * support/regression/tests/bug608752.c: new, added
3073
3074 2006-06-10 Raphael Neider <rneider AT web.de>
3075
3076         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
3077           multibyte dummy reads (fixes #1503234)
3078
3079 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
3080
3081         * device/include/mcs51/compiler.h: new, added header file to enable
3082           creating common sfr definition header files for different compilers
3083
3084 2006-06-05 Raphael Neider <rneider AT web.de>
3085
3086         * src/pic16/{pcode.h,genarith.c}:
3087           introduced pCodeOp combining any two pCodeOps (previously only
3088           two register operands could be combined), removed pcop2 from
3089           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
3090         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
3091         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
3092           rewritten to use new PO_TWO_OPS
3093         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
3094         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
3095           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
3096           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
3097           (pic16_get_op): embraced return arg to allow #define return(x),
3098             added new case for combined opcodes
3099           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
3100           (pic16_pCode2str,pic16_getRegFrompCodeOp,
3101            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
3102
3103 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
3104
3105         * src/SDCCval.c (checkConstantRange): added
3106         * src/SDCCval.h: added checkConstantRange
3107         * support/Util/SDCCerr.c,
3108         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3109         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3110         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3111         * src/SDCCast.c (decorateType): added checkConstantRange,
3112         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3113         can be emitted with the correct always true/false warning,
3114         added optimization for double '!';
3115         result of decorateType() must be assigned back to the tree, because
3116         decorateType() can change the tree
3117         * src/SDCCicode.c (geniCodeLogic),
3118         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3119         (checkConstantRange): removed, it was only a fragment which never
3120         emitted a warning
3121         * src/SDCCsymt.c (computeType): fixed promotion for
3122         "-1 < (unsigned bit) b"
3123         * src/pic/ralloc.c (packRegsForAssign),
3124         * src/pic16/ralloc.c (packRegsForAssign),
3125         * src/hc08/ralloc.c (packRegsForAssign),
3126         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3127         from mcs51
3128         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3129         * support/regression/tests/constantRange.c: added
3130         * support/valdiag/tests/constantRange.c: added
3131         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3132
3133 2006-06-02 Borut Razem <borut.razem AT siol.net>
3134
3135         * support/regression/ports/pic16/support.c: increase stack size
3136           to 255 bytes
3137         * support/regression/Makefile.in: sort tests by name so that the
3138           resutlts can be compared on different machines / platforms
3139
3140 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3141
3142         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3143         * src/ds390/gen.c (emitLabel): new, added,
3144           (genDjnz): fixed stack overflow bug,
3145           (throughout): cosmetic changes to sync with mcs51/gen.c,
3146           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3147         * src/mcs51/gen.c (genEndFunction): small optimization,
3148           (throughout): cosmetic changes to sync with ds390/gen.c
3149
3150 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3151
3152         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3153           (_print_format): fixed printing pointers
3154         * src/mcs51/gen.c (emitLabel, movb): new, added,
3155           (genAssign): small optimization,
3156           (genDjnz): fixed stack overflow bug,
3157           (throughout): replaced sprintf with SNPRINTF,
3158           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3159           replaced emitcode("mov", "b,...") with MOVB(...),
3160           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3161           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3162         * src/mcs51/peeph.def: added rules 140 and 264
3163         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3164           so they may get optimized into registers
3165
3166 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3167
3168         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3169           immediately when encountered,
3170           (printUsage): always use stderr even on windows
3171
3172 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3173
3174         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3175         (processParms): fixed bug #1247551
3176         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3177         parseCmdLine, main): print '--version' to stdout,
3178         print 'help' to stdout if --help is given,
3179         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3180         arguments are given; fixed --help
3181
3182 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3183
3184         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3185         * support/regression/tests/bug-1493710.c: added
3186
3187 2006-05-27 Borut Razem <borut.razem AT siol.net>
3188
3189         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3190           static instead auto
3191         * support/regression/ports/pic16/support.c: increase stack size
3192           from default 64 bytes to 128 bytes
3193         * support/regression/tests/staticinit.c,
3194           support/regression/tests/float.c: regression tests fully enabled
3195           for pic16 port by putting the initialized data arrays into the code
3196           section
3197         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3198           This was changed by mistake in the previous version.
3199
3200 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3201
3202         * src/pic16/gen.c (genFunction, genEndFunction): some
3203         beautifications, fixed bug with falsely restoring FSR2 in large
3204         stack model, thanks to Beau E. Cox for reporting the bug
3205
3206 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3207
3208         * debugger/mcs51/break.c,
3209         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3210           use %p to print pointers, made address variables unsigned
3211         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3212         * debugger/mcs51/symtab.c (parseSymbol): must return something
3213         * src/mcs51/gen.c (aopForSym): small optimization,
3214            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3215           (freeAsmop): added missing break,
3216           (aopPut): removed parameter bvolatile, determine it inside the function,
3217           (saveRegisters, unsaveRegisters): small optimization,
3218           (genIpush): removed pointless check,
3219           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3220           replaced sprintf with SNPRINTF,
3221           replaced strcpy with strncpyz,
3222           updated aopPut calls,
3223           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3224         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3225
3226 2006-05-24 Borut Razem <borut.razem AT siol.net>
3227
3228         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3229           modification of test for the pic16 port, put the array to the code
3230           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3231
3232 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3233
3234         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3235         * support/Util/pstdint.h: added
3236
3237 2006-05-22 Borut Razem <borut.razem AT siol.net>
3238
3239         * src/regression/Makefile: removed bool2.c test, added -q linker option
3240         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3241           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3242           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3243           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3244           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3245           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3246           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3247           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3248           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3249
3250 2006-05-22 Raphael Neider <rneider AT web.de>
3251
3252         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3253           bug #1492360 (problematic due to generic pointers, see code)
3254
3255 2006-05-22 Borut Razem <borut.razem AT siol.net>
3256
3257         * support/regression/ports/pic16/specs.mk: removed stack size linker
3258           directive
3259         * support/regression/tests/array.c,
3260           support/regression/tests/bitopcse.c,
3261           support/regression/tests/bug-908454.c,
3262           support/regression/tests/malloc.c: modified for pic16 regression test
3263         * support/regression/tests/bitfields.c:
3264           pic16 - excluded bitfileds of size > 8
3265         * support/regression/tests/bp.c: pic16 - reduced data size
3266         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3267         * support/regression/tests/bug-460010.c:
3268           pic16 - used the absolute address the fits in memory
3269         * support/regression/tests/bug-716242.c:
3270           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3271         * support/regression/tests/float.c:
3272           pic16 - excluded - data size too big
3273         * support/regression/tests/onebyte.c:
3274           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3275         * support/regression/tests/shifts.c:
3276           pic16 - function names probably have to differ in first X characters
3277           (gpasm limitation?)
3278         * support/regression/tests/staticinit.c:
3279           pic16 - excluded some tests due error: no target memory available for
3280           section ".idata"
3281
3282 2006-05-22 Borut Razem <borut.razem AT siol.net>
3283
3284         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3285           second try. Thanks Stas Sergeev once more.
3286
3287 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3288
3289         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3290           (genLeftShift, genRightShift): fixed bug 1491627
3291         * src/hc08/peeph.def (rules 7, 8.x): added
3292         * support/regression/tests/shifts.c (ShiftLeftByParam,
3293           ShiftRightByParam, testShiftByParam): added to test variable shifting
3294
3295 2006-05-20 Raphael Neider <rneider AT web.de>
3296
3297         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3298         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3299           (allocReg): add only new registers to dynAllocRegs,
3300           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3301             #1489055, #1445850, and probably #1483693
3302
3303 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3304
3305         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3306         bug in for-loop that didn't emit the last of CONFIG and ID registers
3307
3308 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3309
3310         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3311           with offset
3312         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3313           1489016, 1434401 and 1490124
3314         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3315           1489016, 1434401 and 1490124
3316
3317 2006-05-17 Borut Razem <borut.razem AT siol.net>
3318
3319         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3320           thanks Stas Sergeev
3321
3322 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3323
3324         * device/include/mcs51/P89c51RD2.h,
3325         * device/include/mcs51/P89LPC901.h,
3326         * device/include/mcs51/P89LPC922.h,
3327         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3328
3329 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3330
3331         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3332         to fix missing stack pragma in compiled binary object file,
3333
3334 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3335
3336         * support/packihx/configure.in,
3337         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3338         determine sizeof basic types even while cross compiling
3339
3340 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3341
3342         * src/avr/gen.c (aopop),
3343         * src/ds390/gen.c (aopOp),
3344         * src/hc08/gen.c (aopOp),
3345         * src/mcs51/gen.c (aopop),
3346         * src/pic16/gen.c (pic16_aopOp),
3347         * src/pic/gen.c (aopOp),
3348         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3349         if size of operand is smaller than spill location
3350
3351 2006-05-12 Borut Razem <borut.razem AT siol.net>
3352
3353         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3354           have to have CR/LF line endings even if they are checked out on *nix
3355           or on WIN32 in cygwin binmode
3356
3357 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3358
3359         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3360         * device/include/ds80c390.h: added sfr16 definitions
3361         * src/ds390/gen.c,
3362         * src/ds390/gen.h,
3363         * src/ds390/main.c,
3364         * src/ds390/ralloc.c,
3365         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3366           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3367           bit returning functions
3368         * support/regression/tests/sfr16.c: enabled test on ds390
3369
3370 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3371
3372         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3373         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3374
3375 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3376
3377         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3378         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3379           (cl_address_space constructor): removed expensive initialization,
3380           (cl_address_space::get_cell): extended for late initialization,
3381           (cl_address_space::*): use late initialization,
3382           (cl_address_decoder::activate): removed expensive initialization,
3383           This reduced regression test running time by 25%
3384
3385 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3386
3387         * packihx/,
3388         * configure.in,
3389         * configure,
3390         * sdcc.dsw,
3391         * Makefile.bcc,
3392         * Makefile.in,
3393         * support/packihx/Makefile.in,
3394         * support/packihx/clean.mk,
3395         * support/packihx/Makefile.bcc,
3396         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3397
3398 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3399
3400         * src/SDCCval.c (valNot): fix for regression test failure
3401           of not.c on big endian hosts
3402
3403 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3404
3405         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3406
3407 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3408
3409         * device/lib/mcs51/Makefile.in: changed string comparison operator
3410           to = for POSIX compliance; == is bash extension
3411
3412 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3413
3414         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3415           kosmonaut_pirx
3416
3417 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3418
3419         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3420         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3421         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3422         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3423         bug report #1478657,
3424
3425 2006-05-05 Borut Razem <borut.razem AT siol.net>
3426
3427         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3428           making the html
3429
3430 2006-05-02 Borut Razem <borut.razem AT siol.net>
3431
3432         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3433           create *.ind, which made make to fail if invoked with -j 2
3434
3435 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3436
3437         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3438           Hubert Sack for patch 1479782
3439
3440 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3441
3442         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3443
3444 2006-05-01 Raphael Neider <rneider AT web.de>
3445
3446         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3447           (create_pic): store only prefix-free device name,
3448           (init_pic): check for device names with "16" prefix,
3449           (list_valid_pics),
3450         * src/pic/device.h (struct PIC_device),
3451         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3452             stored device name,
3453         * device/include/pic/pic12f{635,675,629,683}.h,
3454         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3455         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3456         * device/include/pic/pic16f505.h,
3457         * device/lib/pic/libdev/pic16f505.c: removed
3458         * device/include/pic/pic14devices.txt: added support for pic12f
3459             devices, removed unsupported non 16-bit devices
3460             [above changes provided by patch from Zik Saleeba]
3461         * src/pic/*, src/pic16/*, device/include/pic16/*,
3462           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3463
3464 2006-05-01 Borut Razem <borut.razem AT siol.net>
3465
3466         * configure.in, configure, doc/Makefile.in:
3467           sync with nightly build makefile - latex, dvipdf and dvips
3468           not needed any more
3469
3470 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3471
3472         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3473         in the library source
3474
3475 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3476
3477         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3478
3479 2006-04-28 Raphael Neider <rneider AT web.de>
3480
3481         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3482         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3483           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3484         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3485
3486 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3487
3488         * device/lib/pic/libdev/Makefile.in,
3489         * device/lib/hc08/Makefile.in,
3490         * device/lib/gbz80/Makefile.in,
3491         * device/lib/z80/Makefile.in,
3492         * device/lib/ds390/Makefile.in,
3493         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3494         thanks to Borut for the bug report
3495         * configure.in,
3496         * configure: always create doc/Makefile independent from --enable-doc
3497         * Makefile.in: always install from directory doc independent from
3498         --enable-doc
3499         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3500         removed
3501         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3502         * doc/Makefile.in: install *.txt if present
3503         * device/include/Makefile.in (install): added installation of pic/*.inc
3504         and pic/*.txt files again, they were erroneously removed
3505
3506 2006-04-28 Raphael Neider <rneider AT web.de>
3507
3508         * src/pic/{gen.c,main.h,pcode.c},
3509         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3510             concerning signedness with casts
3511
3512 2006-04-28 Raphael Neider <rneider AT web.de>
3513
3514         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3515             definition of an interrupt handler,
3516         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3517             interrupt handler stuff from picglue() to separate routine,
3518           (picglue): enabled definition of intr handlers in files w/o main()
3519
3520 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3521
3522         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3523           compilation with MSVC 2005 Express Edition (VC8)
3524
3525 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3526
3527         * device/lib/Makefile: fixed build of gbz80 lib
3528
3529 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3530
3531         * support/regression/tests/bug-460010.c,
3532         * support/regression/tests/bug-524691.c,
3533         * support/regression/tests/bug-716242.c: removed conditional defines
3534           that are already in testfwk.h
3535
3536 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3537
3538         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3539           (AccAXRsh1): added, shift right by 1,
3540           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3541            AccAXLrl1
3542         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3543
3544 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3545
3546         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3547         remove cast to same type
3548         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3549         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3550         * as/z80/Makefile,
3551         * link/z80/Makefile: removed, they have moved to
3552         Makefile.in files
3553         * configure,
3554         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3555         * install-sh: fix bug #1204398 by setting umask 0022
3556         * device/lib/Makefile: separate build of z80 and gbz80 lib
3557
3558 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3559
3560         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3561         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3562
3563         One basic decision: e.g. src/clean.mk includes further files. In order
3564         to make this work there are two solutions:
3565         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3566           run configure on them. This way they can use
3567           'include $(srcdir)/port-clean.mk'
3568         - always include clean.mk by the Makefile at the same level. To avoid
3569           that `make clean` tries to include and build Makefile.dep the
3570           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3571           implemented, because now even `make uninstall` doesn't create
3572           Makefile.in. clean.mk could be eliminated by pasting it in
3573           Makefile.in.
3574
3575         * debugger/mcs51/Makefile.in: build own objects from library sources
3576         (SLIB, SDCC) in current directory
3577
3578         * configure, configure.in: renamed --disable-device-lib-build in
3579         --disable-device-lib; added --enable-doc, the required tools are
3580         searched by configure; added result message; the toolchain for the
3581         belonging ports are now only built, if the port is enabled.
3582
3583         * support/regression/*: all output is written in directory gen, because
3584         the fwk and ports directories don't livet in the build tree using vpath
3585
3586         * doc/sdccman.lyx: renamed --disable-device-lib-build to
3587         --disable-device-lib, added --enable-doc, added section VPATH
3588
3589         * sim/ucsim/configure.in,
3590         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3591         z80 are enabled by default
3592
3593 2006-04-24 Raphael Neider <rneider AT web.de>
3594
3595         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3596             to config word, "pic14_"-prefixed some extern functions
3597           (pic14_emitConfigWord): emit __config directive(s) if assignment to
3598             config word has been found
3599         * src/pic/device.h: added prototypes
3600         * src/pic/pcode.c: added "pic14_"-prefix where needed
3601         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3602             fixup
3603         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3604             words,
3605           (pic14emitRegularMap): ignore config words,
3606           (pic14createInterruptVect): moved generating __config directives away
3607           (picglue): have __config directives emitted
3608
3609 2006-04-24 Borut Razem <borut.razem AT siol.net>
3610
3611         * doc/Makefile: sync with nightly build makefile
3612
3613 2006-04-24 Raphael Neider <rneider AT web.de>
3614
3615         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3616             registers that have not been assigned proper liveranges,
3617             fixes #1469504 and #1474602,
3618           (pCodeRegOptimizeRegUsage): fixed typo in comment
3619
3620 2006-04-24 Borut Razem <borut.razem AT siol.net>
3621
3622         * device/examples/main8051.c: deleted - it was removed from CVS
3623           24.mar.2000 and after that modified 18.feb.2001, so it reappered
3624           after the transition to Subversion
3625         * src/SDCCalloc.h: deleted - it was removed  from CVS
3626           3.feb.2001 and after that modified 18.feb.2001, so it reappered
3627           after the transition to Subversion
3628         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3629           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3630           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3631           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3632
3633 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3634
3635         * as/asx8051.dsp: added mcs51/strcmpi.h
3636         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3637         * as/hc08/aslink.h: updated lnksect prototype
3638         * as/hc08/asm.h,
3639         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3640         * as/hc08/asmain.c,
3641         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3642           (newdot): handle A_ABS
3643         * as/hc08/asout.c,
3644         * as/mcs51/asout.c (outarea): output address
3645         * as/hc08/lkaomf51.c,
3646         * as/mcs51/lkaomf51.c: disabled unused array UsageType
3647         * as/hc08/m08pst.c,
3648         * as/mcs51/i51pst.c,
3649         * as/z80/z80pst.c: "ABS" is not A_OVR
3650         * as/hc08/lkarea.c (newarea): read a_addr,
3651           (lnkarea): added codemap array, sort absolute areas to the front,
3652            combine all GSINITx/GSFINAL,
3653           (find_empty_space, allocate_space): new functions,
3654           (lnksect): return next address, handle absolute sections
3655         * as/mcs51/lkarea.c (newarea): read a_addr,
3656           lnksect2 prototype changed,
3657           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3658           (find_empty_space, allocate_space): new, factored out of lnksect2,
3659           (lnksect2): return next address, handle absolute sections
3660         * as/hc08/lkhead.c,
3661         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3662         * as/hc08/lklibr.c (addfile, fndsym),
3663         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3664           index out of range and detect both '\' and '/'
3665         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3666         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3667           regression tests (ds390 cannot return bool yet)
3668         * doc/sdccman.lyx: changed version number, document changed --no-peep,
3669           document critical interrupts on z80, document changed SDCC define
3670         * src/asm.c (_asxxxx_mapping): fixed .org directive,
3671           (_a390_mapping): added .org directive
3672         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3673           (genMultOneByte): fixed warnings
3674         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3675           ones
3676         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3677         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3678           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3679         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3680         * src/pic16/main.c: removed newReg prototype
3681         * src/pic16/pcode.c,
3682         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3683           warnings
3684         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3685           ones
3686         * src/pic16/ralloc.c
3687         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3688           to fix warnings
3689         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3690           from short to PIC_OPTYPE
3691         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3692         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3693           optype from short to PIC_OPTYPE
3694         * src/port.h: made int_size unsigned to fix warnings
3695         * src/SDCC.y: fixed warning on MSVC
3696         * src/SDCCicode.c (getArraySizePtr): return unsigned int
3697         * src/SDCCopt.c (convertToFcall): fixed warnings
3698         * src/SDCCsymt.h: removed double prototype for genSymName
3699         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3700           offset int to fix warnings
3701
3702 2006-04-22 Borut Razem <borut.razem AT siol.net>
3703
3704         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3705           references to CVS replaced with Subversion
3706
3707 2006-04-21 Borut Razem <borut.razem AT siol.net>
3708
3709         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3710           references to CVS replaced with Subversion
3711
3712 2006-04-19 Borut Razem <borut.razem AT siol.net>
3713
3714         * src/version.awk: adapted for svn
3715         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3716           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3717           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3718           /binutils-avr/etc/*.vi, *.jin: removed all properties
3719           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3720
3721 2006-04-19 Borut Razem <borut.razem AT siol.net>
3722
3723         * CVS to Subversion migration completed
3724
3725 2006-04-18 Borut Razem <borut.razem AT siol.net>
3726
3727         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3728           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3729
3730 2006-04-17 Borut Razem <borut.razem AT siol.net>
3731
3732         * device/include/Makefile.in: added pic/*.inc to the installation
3733
3734 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3735
3736         * support/regression/collate-results.py: fixed output in case of
3737         a valdiag error
3738         * support/regression/generate-cases.py: fixed splitting of pathnames
3739         with dots
3740         * as/hc08/lklibr.c (addfile),
3741         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3742
3743 2006-04-11 Raphael Neider <rneider AT web.de>
3744
3745         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3746         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3747         * src/pic16/pcode.c (assignValnums): fixed #1460578
3748
3749 2006-04-11 Raphael Neider <rneider AT web.de>
3750
3751         * device/lib/pic/libdev/*.c,
3752         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3753           fixes #1468739, enables compilation in --std-c99 mode
3754         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3755
3756 2006-04-11 Raphael Neider <rneider AT web.de>
3757
3758         * src/pic/device.c (find_device): removed debug output
3759           (list_valid_pics): enabled verbose listing of supported devices
3760         * device/include/stdbool.h: define bool as char for pic14/16 as well
3761
3762 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3763
3764         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3765
3766 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3767
3768         * .version: bumped version to 2.5.6
3769         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3770
3771 2006-04-06 Raphael Neider <rneider AT web.de>
3772
3773         * .version: bumped version to 2.5.6 (pic14 ABI changed)
3774         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3775         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3776           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3777             pic14_constructAbsMap
3778           (pic14printPublics): declare absolute global symbols as global
3779           (pic14createInterruptVect),
3780         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3781           (newReg): assume new registers unused, use correct name in
3782             hashtable (reg->name instead of name), more debugLog output
3783         * src/pic/device.h (PIC_device): added fields for verbose output
3784         * src/pic/device.c: moved device definition to pic14devices.txt,
3785             added routines for runtime parsing of pic14devices.txt,
3786             added support for second config word
3787         * src/pic/main.c (_process_pragma): removed #pragma maxram,
3788           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3789           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3790           (_pic14_parseOptions): moved pCodeInitRegisters here
3791           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3792         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3793           (pCodeInitRegisters): rewrapped comments, perpared new approach to
3794             handling the pseudo stack
3795         * device/lib/Makefile.in: ignore failures in objects-pic16,
3796         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3797         * device/lib/pic/NEWS: document new dependency on picXXX.lib
3798         * device/lib/pic/Makefile.subdir,
3799         * device/lib/pic16/Makefile.subdir: improved clean rules
3800         * device/lib/pic/libdev/: NEW, pic14 device libraries
3801         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
3802         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
3803         * device/include/Makefile.in: create subdir and install pic14 headers
3804         * device/include/pic/p16f_common.inc: removed unused declarations
3805         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
3806             PICs from inc2h.pl v1.6,
3807             replaced BIT_AT macros with struct declarations
3808         * device/include/pic/pic14devices.txt: definition of supported devices,
3809             all above improvements contributed by Zik Saleeba, thanks
3810         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
3811         * support/scripts/sdcc.nsi: also install pic14 device libraries and
3812             headers
3813
3814 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3815
3816         * device/include/mcs51/c8051f410.h: added interrupt numbers,
3817         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
3818           thanks to Charles Olds
3819
3820 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3821
3822         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
3823
3824 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3825
3826         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
3827         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
3828         * support/regression/bug1464657.c: added, new test
3829
3830 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3831
3832         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
3833           version number
3834
3835 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3836
3837         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
3838           --no-peep and --peep-file <file> are used don't use default rules but
3839           do use the <file>
3840
3841 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3842
3843         * src/mcs51/gen.c (genCall): fixed bug 1457608
3844
3845 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3846
3847         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
3848         changes seem to cause (trigger?) problems with the build system.
3849
3850 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
3851
3852         * src/SDCCpeeph.c (operandsLiteral): new, added,
3853           (callFuncByName): inserted operandsLiteral
3854         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
3855
3856 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3857
3858         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
3859         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
3860
3861 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3862
3863         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
3864           implemented patch 1120823 Thanks to Willy De la Court (normal
3865           interrupts need an interrupt number now if they are made critical),
3866           and enabled nesting of critical functions though not for gbz80
3867           (genCritical, genEndCritical): added functions
3868           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
3869         * src/z80/mappings.i: added "ei" to all mappings
3870
3871 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3872
3873         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
3874         submitted by the Debian SDCC maintainer Aurelien Jarno:
3875         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
3876         archive with gcc 4.1 on mips and wrote the patch"
3877
3878 2006-03-16 Raphael Neider <rneider AT web.de>
3879
3880         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
3881           the left operand is shorter than the result (c* = lit-c* + int),
3882           fixes bug #1450796
3883         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
3884           OP_SYMBOL
3885
3886 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3887
3888         * src/.version: increased version number to 2.5.5
3889         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
3890         linking is done manually in pic16 port's _linkEdit,
3891         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
3892         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
3893         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
3894         allocate asmop as AOP_ACC,
3895         (aopForRemat): added parameter 'bool result' in function declaration,
3896         (pic16_aopGet): return AOP_ACC when accessing WREG,
3897         (pic16_popGetTempReg): minor modification,
3898         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
3899         'pic16_allocWithIdx',
3900         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
3901         calling function in absolute addresses,
3902         (genAssign): take into account AOP_ACC asmop,
3903         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
3904         * src/pic16/pcoderegs.c: some debug functions and lines added,
3905         * src/pic16/ralloc.c (decodeRegType): added but commented out,
3906         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
3907         register too,
3908         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
3909         call to allocReg, not by manually allocating a new one,
3910         (pic16_assignRegisters): now before going through the register
3911         allocating functions mark all registers as free. This eliminates some
3912         side effects resulting from peephole parser done earlier in the backbone
3913
3914 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
3915
3916         * src/SDCCicode.c (geniCodeLogic),
3917         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
3918
3919 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
3920
3921         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
3922           (genSend): bugfix, do not allocate and free twice,
3923           (shiftRLong): handle partially overlapping aops
3924         * support/regression/tests/bitopcse.c: fixed warning redefined idata
3925
3926 2006-03-08 Borut Razem <borut.razem AT siol.net>
3927
3928         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
3929           for pic16
3930
3931 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
3932
3933         * support/regression/tests/bug1409955.c: new, added
3934         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
3935         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
3936           (aopForSym, aopOp): increment asmop.allocated if reused,
3937           (freeAsmop): decrement asmop.allocated and check for zero instead of
3938           using asmop.freed,
3939           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
3940           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
3941            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
3942            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
3943            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
3944            genSignedRightShift, genRightShift, genDataPointerGet,
3945            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
3946            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
3947             in reverse order from allocation,
3948           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
3949             added swappedLR to keep track
3950         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
3951           pdata & code for GCC, z80, gbz80 & hc08
3952         * support/regression/tests/zeropad.c: moved defines to testfwk.h
3953
3954 2006-03-08 Raphael Neider <rneider AT web.de>
3955
3956         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
3957
3958 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
3959
3960         * device/include/mcs51/c8051f410.h: new SiLabs mcu
3961         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
3962         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
3963
3964 2006-03-06 Borut Razem <borut.razem AT siol.net>
3965
3966         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
3967           made the linker quiet
3968
3969 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3970
3971         * src/pic16/gen.c (genPcall): fixed bug #1443644
3972         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
3973         which dumps before the function entry point a data byte which represents
3974         the number of the local variables used by the specified function, added
3975         'xinst' for initial support for Extended Instruction Support,
3976         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
3977         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
3978         port->fun_prefix anymore (may change later),
3979         (genFunction, genEndFunction): do not store/restore local registers for
3980         _main (this should take care the --main-return command line option in
3981         the future),
3982         (genOr): removed some legacy pic-port instructions,
3983         * src/pic16/genarith.c (genAddLit): re-enabled old code because
3984         performing operations with SFR's causes data to be written more than
3985         once to each SFR. Perhaps SFRs should be handled in special cases...
3986         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
3987         pcode.h
3988         * src/pic16/main.c (_process_pragma): stack bound checking did not take
3989         into account for stack starting position,
3990         (struct OPTIONS pic16_optionsTable): added command line argument
3991         --extended or -y for Extended Instruction Support,
3992         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
3993         (deassignLRs): *** perhaps the most important change, old 'for' code
3994         (commented out for reference), didn't account for some registers which
3995         were left marked 'not free' after a pointer operation. The change
3996         reduces register usage a lot in some cases
3997
3998 2006-03-04 Borut Razem <borut.razem AT siol.net>
3999
4000         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
4001           _clean
4002         * support/regression/tests/bug-524697.c: decreased array size for
4003           mcs51 to fit into the internal RAM
4004         * support/regression/Makefile.in: a little bit more verbose
4005
4006 2006-03-03 Borut Razem <borut.razem AT siol.net>
4007
4008         * support/regression/fwk/lib/testfwk.c,
4009           support/regression/fwk/include/testfwk.h: introduced function
4010           _prints(), nonrecursive _printn(), call _initEmu() from main()
4011         * support/regression/ports/gbz80/support.asm,
4012           support/regression/ports/ucz80/support.asm,
4013           support/regression/ports/z80/support.asm,
4014           support/regression/ports/ds390/support.c,
4015           support/regression/ports/hc08/support.c,
4016           support/regression/ports/host/support.c,
4017           support/regression/ports/mcs51/support.c,
4018           support/regression/ports/xa51/support.c: added empty _initEmu()
4019           function
4020         * support/regression/ports/pic16/gpsim.cmd,
4021           support/regression/ports/pic16/spec.mk,
4022           support/regression/ports/pic16/support.c,
4023           support/regression/Makefile.in: added pic16 regression test
4024
4025 2006-03-01 Raphael Neider <rneider AT web.de>
4026
4027         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
4028           genConstPointerGet): use safe way of generating MOVFF to cover
4029             literals as well as registers, fixes bug #1440527
4030         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
4031             dereference
4032           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
4033             more correctly, fixes bug #1232186
4034           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
4035         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
4036             gplink guess the correct processor in more cases, applied patch
4037             from Till Riedel attached to and fixing bug #1436552
4038
4039 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4040
4041         * support/regression/tests/array.c: added, contains check for #1434401
4042         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
4043
4044 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
4045
4046         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
4047         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
4048         * device/include/mcs51/c8051f326.h,
4049         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
4050         * device/include/mcs51/c8051f000.h,
4051         * device/include/mcs51/c8051f018.h,
4052         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
4053           PCON_IDLE,PCON_STOP and added sfr16 definitions
4054
4055 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4056
4057         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
4058           genGetWord): fixed bug 1409955
4059
4060 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
4061
4062         * device/include/hc08/mc68hc908gp32.h,
4063         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
4064
4065 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
4066
4067         * src/SDCCast.c (constExprValue): return NULL if not a value
4068         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
4069         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
4070         * support/regression/tests/bitfields.c: enabled signed bitfield for all
4071
4072 2006-02-13 Borut Razem <borut.razem AT siol.net>
4073
4074         * src/regression/ptrarg.c: added, fails due to bug #1430967
4075         * src/regression/Makefile: ptrarg.c added, ...
4076
4077 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
4078
4079         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
4080         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
4081
4082 2006-02-11 Borut Razem <borut.razem AT siol.net>
4083
4084         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
4085           print "Processor: xxx" message to stdout only if --verbose
4086
4087 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4088
4089         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
4090         * support/regression/tests/bug1426356.c: added
4091         * support/regression/tests/bitfields.c: removed 2 tests
4092
4093 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4094
4095         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
4096         * device/include/mcs51/c8051f330.h,
4097         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
4098           PCON_IDLE,PCON_STOP and added sfr16 definitions
4099         * device/lib/_divsint.c,
4100         * device/lib/_divuint.c,
4101         * device/lib/_divulong.c,
4102         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
4103           register bank bug for small stackauto
4104
4105 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4106
4107         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4108
4109 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4110
4111         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4112         * all.dsp: corrected several bin paths
4113         * device/include/mcs51/c8051f120.h,
4114         * device/include/mcs51/c8051f300.h,
4115         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4116           to PCON_IDLE,PCON_STOP
4117         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4118         * device/lib/printf_large.c (output_float): fixed bug 1388703
4119         * support/regression/tests/bug1057979.c: added test for bug 1388703
4120
4121 2006-02-08 Raphael Neider <rneider AT web.de>
4122
4123         * src/pic/pcode.c (pciTRIS): fixed typo,
4124           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4125           (LinkFlow): fixed handling of flows that end in a call,
4126           (ReuseReg): perform safety check earlier
4127         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4128             to work with flows at the beginning of a pBlock,
4129             fixes #1426557 (Symbol not previously defined),
4130           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4131             usage information
4132           (RemoveUnusedRegisters): update register usage info
4133         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4134             created, reuse existing ones instead
4135         * src/pic/gen.c (genPcall): fixed #1424719
4136
4137 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4138
4139         * link/z80/lkmain.c,
4140         * link/z80/lklex.c,
4141         * link/z80/lkdata.c,
4142         * link/z80/aslink.h: fixed build on current cygwin:
4143         replaced getline() by lk_getline()
4144
4145 2006-02-01 Borut Razem <borut.razem AT siol.net>
4146
4147         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4148           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4149           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4150           src/regression/bool1.c, src/regression/bool2.c,
4151           src/regression/bool3.c, src/regression/call1.c,
4152           src/regression/compare.c, src/regression/compare10.c,
4153           src/regression/compare2.c, src/regression/compare3.c,
4154           src/regression/compare4.c, src/regression/compare5.c,
4155           src/regression/compare6.c, src/regression/compare7.c,
4156           src/regression/compare8.c, src/regression/compare9.c,
4157           src/regression/configword.c, src/regression/for.c,
4158           src/regression/inline.c, src/regression/mult1.c,
4159           src/regression/nestfor.c, src/regression/or1.c,
4160           src/regression/pointer1.c, src/regression/ptrfunc.c,
4161           src/regression/rotate1.c, src/regression/rotate2.c,
4162           src/regression/rotate3.c, src/regression/rotate4.c,
4163           src/regression/rotate5.c, src/regression/rotate6.c,
4164           src/regression/rotate7.c, src/regression/string1.c,
4165           src/regression/struct1.c, src/regression/sub.c,
4166           src/regression/sub2.c, src/regression/switch1.c,
4167           src/regression/while.c, src/regression/xor.c,
4168           src/regression/create_stc, src/regression/simulate,
4169           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4170           regression tests
4171         * src/regression/gpsim_assert.h: added
4172
4173 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4174
4175         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4176         ((void (code *) (void)) 0) ();
4177         * as/hc08/aslex.c,
4178         * as/hc08/aslink.h,
4179         * as/hc08/asm.h,
4180         * as/hc08/asmain.c,
4181         * as/hc08/lkdata.c,
4182         * as/hc08/lklex.c,
4183         * as/hc08/lkmain.c,
4184         * as/mcs51/aslex.c,
4185         * as/mcs51/aslink.h,
4186         * as/mcs51/asm.h,
4187         * as/mcs51/asmain.c,
4188         * as/mcs51/lkdata.c,
4189         * as/mcs51/lklex.c,
4190         * as/mcs51/lkmain.c,
4191         * as/z80/aslex.c,
4192         * as/z80/asm.h,
4193         * as/z80/asmain.c: fixed build on current cygwin:
4194         replaced getline() by as_getline()
4195
4196 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4197
4198         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4199         declarator in the symbol chain
4200         * src/SDCCsymt.h,
4201         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4202         parameter list for function pointers
4203         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4204         * support/regression/tests/bug-716242.c: added
4205
4206 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4207
4208         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4209         offset if possible
4210         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4211
4212 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4213
4214         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4215         inifinitely recurseable, added static
4216         * support/regression/tests/bug-1408066.c: added
4217
4218 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4219
4220         * src/SDCCicode.h,
4221         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4222         renamed, added possibility to create "postLoopLbl"-labels
4223         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4224         newiTempLoopHeaderLabel
4225         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4226         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4227         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4228         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4229         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4230         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4231         (basicInduction): fixed bug #136564, made static,
4232         (loopInduction): changed parameter of basicInduction, made static,
4233         (addPostLoopBlock): added
4234         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4235         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4236         findLoopEndSeq
4237         * support/regression/tests/bug-136564.c: added
4238         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4239         --std-sdcc99 to LIBSDCCFLAGS
4240
4241 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4242
4243         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4244         while loop
4245         * support/regression/tests/bug-1406131.c: added
4246
4247 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4248
4249         * src/SDCCast.c (decorateType): fix promotion of unary minus
4250         * src/SDCCsymt.c (computeType): beautified
4251         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4252         (valUnaryPM, valComplement): fix sign and promotion,
4253         (valNot): ANSI: result type is int (SDCC: unsigned char)
4254         * support/regression/tests/uminus.c: speedup by removing superflous
4255         test case 'int'
4256         * support/regression/tests/onebyte.c: added promotion and signedness
4257         tests for unary minus
4258         * support/regressions/tests/bug-477927.c: disable warning about
4259         uninitialized variables
4260         * support/regression/tests/not.c: added
4261
4262 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4263
4264         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4265         * src/mcs51/gen.c (gen51Code): show final register usage after
4266         fillGaps in asm with --i-code-in-asm
4267         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4268         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4269         incUsed, rliveClear, adjustIChain): made static,
4270         (setFromRange): excluded because it's unused,
4271         (findPrevUseSym, markWholeLoop): added,
4272         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4273         through all branches of predecessors enables sdcc to emit the warning
4274         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4275         (rlivePoint): made static, added parameter emitWarnings which is only
4276         true during the first run out of two,
4277         (findRecursiveSucc, findRecursivePred): removed,
4278         (computeLiveRanges): made static, added parameter emitWarnings,
4279         (dumpIcRlive): added for debugging only
4280         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4281         removed prototype of setFromRange()
4282         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4283         in call of computeLiveRanges()
4284         * support/regression/tests/bug-895992.c: added
4285         * support/regression/tests/bug-971834.c: added
4286         * support/valdiag/tests/bug-895992.c: added
4287         * support/valdiag/tests/bug-971834.c: added
4288
4289 2005-12-18 Raphael Neider <rneider AT web.de>
4290
4291         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4292           (genUnpackBits): improved code for direct operands,
4293           (genPackBits): improved code for literal assignment to bitfields
4294             and for direct destination operands (no FSR indirection),
4295             prevented redundant AND, fixes #1362800,
4296           (AccLsh): added parameter to disable masking of the result
4297         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4298           skip instructions with side-effects (like incfsz),
4299           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4300         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4301         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4302           fixes #1375263
4303
4304 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4305
4306         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4307         volatile variables as spill location
4308
4309 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4310
4311         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4312         replacing literals
4313         * support/regression/tests/bug-1376320.c: added
4314
4315 2005-12-08 Raphael Neider <rneider AT web.de>
4316
4317         * src/pic/device.c: renamed is_shared to pic14_is_shared
4318         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4319         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4320           (is_valid_identifier): added for above workaround
4321
4322 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4323
4324         * device/lib/Makefile.in: fixed to enable port-specific-objects
4325         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4326           char, thanks Hubert Sack
4327         * doc/sdccman.lyx: documented --xstack-loc,
4328           elaborated a bit more on interrupts and pitfalls,
4329           removed "setjmp/longjmp unsupported",
4330           documented some unsupported C99 features
4331         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4332         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4333           if, thanks Hubert Sack
4334         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4335         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4336           make make_library
4337         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4338           regression tests can report resource usage (rfe 700441)
4339         * support/regression/collate-results.py: report resource usage
4340         * support/regression/ports/ds390/spec.mk,
4341         * support/regression/ports/hc08/spec.mk,
4342         * support/regression/ports/mcs51/spec.mk,
4343         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4344         * support/regression/ports/ds390/uCsim.cmd,
4345         * support/regression/ports/hc08/uCsim.cmd,
4346         * support/regression/ports/mcs51/uCsim.cmd,
4347         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4348         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4349           library, use the default one
4350         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4351           building the library
4352
4353 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4354
4355         * config.dsp: added dependency on .version and configure_vc.awk
4356         * device/include/setjmp.h: updated for --stack-auto and --xstack
4357         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4358         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4359         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4360         * device/lib/libsdcc.lib: added _setjmp
4361         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4362           (decorateType): fixed bug 1372851,
4363           (optimizeGetHbit): fixed warning
4364         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4365           array initialisation
4366         * support/regression/tests/bug1057979.c: added test for bug 1358192
4367         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4368
4369 2005-12-03 Borut Razem <borut.razem AT siol.net>
4370
4371         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4372           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4373
4374 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4375
4376         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4377         createIval): implement symbol independant "flexible array member",
4378         (createIvalCharPtr): implemented flexible array initialisation with a
4379         string
4380         * src/SDCCsymt.c (copyStruct): removed,
4381         (getSize): fixed misleading comment,
4382         (getAllocSize): removed, the additional allocation size is now in
4383         sym->flexArrayLength,
4384         (checkStructFlexArray): new, syntax checks for flexible array members,
4385         (compStructSize): added syntax checks for "flexible array members"
4386         (copyStruct): removed,
4387         (copyLinkChain): removed inefficient fix for bug 770487
4388         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4389         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4390         symbol->flexArrayLength
4391         * src/SDCCerr.c,
4392         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4393         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4394         * support/regression/tests/structflexarray.c: added
4395         * support/valdiag/tests/structflexiblearray.c: added
4396
4397 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4398
4399         * src/SDCCast.c (decorateType): fixed bug 1368489
4400         * support/Util/SDCCerr.c,
4401         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4402
4403 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4404
4405         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4406           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4407
4408 2005-11-27 Borut Razem <borut.razem AT siol.net>
4409
4410         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4411           support/cpp2/mkdeps.h: added command line option
4412           -obj-ext=<extension> to SDCPP to define object file externion, used
4413           for generation of make dependencies (-M)
4414         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4415
4416 2005-11-26 Borut Razem <borut.razem AT siol.net>
4417
4418         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4419           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4420           added pic and pic16 libraries
4421
4422 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4423
4424         * device/include/float.h: Corrected typo in prototype of __fsgt
4425
4426 2005-11-25 Borut Razem <borut.razem AT siol.net>
4427
4428         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4429           added creation of model-mcs51-stack-auto libraries
4430
4431 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4432
4433         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4434         and fields-list too
4435         * src/SDCCast.c (createIvalArray): removed obsolete comment
4436
4437 2005-11-24 Borut Razem <borut.razem AT siol.net>
4438
4439         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4440           added missing device/lib/mcs51/crt*.asm sources
4441
4442 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4443
4444         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4445
4446 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4447
4448         * device/lib/_fs2schar.c,
4449         * device/lib/_fs2sint.c,
4450         * device/lib/_fs2slong.c: optimized inline asm
4451
4452 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4453
4454         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4455           Better handling of floats between -1.0 and 0.0.
4456
4457 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4458
4459         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4460           (the missing "if"s prohibited removal of redundant labels)
4461
4462 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4463
4464         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4465           Properly convert floats between -1.0 and 0.0 to long, int, and char
4466           types (max integer value of negative floats tends to zero).
4467         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4468           Removed changes made so to work properly with floats between
4469           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4470           and _fs2char.c
4471
4472 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4473
4474         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4475         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4476         (genCast) cosmetic change
4477         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4478         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4479         from mcs51
4480         * support/regression/tests/bitfields (testSignedBitfields): added
4481
4482 2005-11-18 Borut Razem <borut.razem AT siol.net>
4483
4484         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4485         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4486           introduced SILENT option to make building of pic16 libraries less
4487
4488 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4489
4490         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4491           Now they work properly with floats between -1.0 and 0.0
4492         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4493
4494 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4495
4496         * src/SDCCicode.c (printOperand): added missing else
4497
4498 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4499
4500         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4501         reformatted for better readability
4502         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4503         signed bitfields
4504
4505 2005-11-17 Borut Razem <borut.razem AT siol.net>
4506
4507         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4508           introduced SILENT option to make building of pic16 libraries less
4509           verbose - used for nightly snapshot build
4510         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4511           available on Win32 platforms.
4512         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4513           medium, large, pic and pic16
4514
4515 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4516
4517         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4518           printf("%f"...) sets fraction to zero.
4519
4520 2005-11-16 Raphael Neider <rneider AT web.de>
4521
4522         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4523           fixes #1357221
4524         * src/pic/gen.c (genIfx): implemented for CARRY bit
4525         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4526           to generic pointers, fixes #1357332,
4527           (pic16_movLit2f): NEW,
4528           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4529
4530 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4531
4532         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4533
4534 2005-11-11 Raphael Neider <rneider AT web.de>
4535
4536         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4537         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4538           compute pointer's type from operand,
4539           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4540           improved single bit reads, fixes bug #1353379
4541
4542 2005-11-09 Borut Razem <borut.razem AT siol.net>
4543
4544         * support/scripts/sdcc.nsi: added lib/pic to the package
4545
4546 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4547
4548         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4549
4550 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4551
4552         * support/regression/tests/bug1348008.c: added
4553         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4554         * support/regression/tests/bug1337835.c: updated comment
4555
4556 2005-11-06 Borut Razem <borut.razem AT siol.net>
4557
4558         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4559           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4560           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4561           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4562           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4563           dynamic construction of cl_error_class and derivates - 2.nd try
4564
4565 2005-11-05 Borut Razem <borut.razem AT siol.net>
4566
4567         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4568           bug, which caused Bus Errors on sparc solaris
4569
4570 2005-11-04 Borut Razem <borut.razem AT siol.net>
4571
4572         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4573           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4574           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4575           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4576           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4577           and derivates to resolve the initialization problem on OSX
4578
4579 2005-11-02 Borut Razem <borut.razem AT siol.net>
4580
4581         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4582           corrected typo - #include <winsock2.h>
4583
4584 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4585
4586         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4587           (_asxxxx_mapping): added org directive for future enhancements
4588
4589 2005-11-01 Borut Razem <borut.razem AT siol.net>
4590
4591         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4592           enabled sockets on WIN32
4593         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4594
4595 2005-10-31 Borut Razem <borut.razem AT siol.net>
4596
4597         * support/regression/generate-cases.py: escape backslashes in {testcase}:
4598           WIN32 backslash path delimiters should be escaped when used in C strings
4599         * support/regression/tests/bitfields.c: exclude failing assertions for
4600           __CYGWIN32__ and __MINGW32__ hosts
4601
4602 2005-10-30 Borut Razem <borut.razem AT siol.net>
4603
4604         * src/SDCCutil.c: corrected double comparison typo
4605
4606 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4607
4608         * device/lib/medium/Makefile: added for new memory model medium
4609         * device/include/asm/mcs51/features.h: updated for medium/pdata
4610         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4611           added Multiply & Accumulate sbit's and MAC0_PAGE define
4612         * device/include/mcs51/c8051f300.h: added sfr16 definitions
4613         * device/include/mcs51/c8051f310.h: added sfr16 definitions
4614         * device/lib/_mullong.c: update for medium model
4615         * device/lib/incl.mk: added medium model
4616         * doc/sdccman.lyx: documented medium model
4617         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4618         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4619         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4620         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4621           (allocParms): set SCLS and OCLS to pdata for medium model
4622         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4623           for pdata,
4624           (powof2): return <0 if not power of 2
4625         * src/avr/gen.c (genBitWise): use updated powof2
4626         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4627           (shiftR2Left2Result): small optimization in setup, save acc when storing,
4628           (shiftLLeftOrResult): use B if necessary
4629         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4630         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4631         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4632         * support/regression/Makefile.in: added test-mcs51-medium
4633         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4634
4635 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4636
4637         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4638         specifier unsigned
4639         * device/lib/time.c (mktime): fixed bug 1334315
4640
4641 2005-10-28 Raphael Neider <rneider AT web.de>
4642
4643         * device/include/pic/p16f_common.inc: added common declarations
4644         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4645
4646 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4647
4648         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4649           (aopPutUsesAcc): added to predict accumulator use,
4650           (assignResultValue): save acc if necessary,
4651           (genMinusDec): store result if indirectly addressed,
4652           (genDivOneByte):  save acc if necessary,
4653           (movLeft2Result): bugfix if left already in acc,
4654           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4655             attention to accumulator use (esp. pdata),
4656           (genReceive): receive pdata correctly
4657         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4658         * src/SDCCicode.h: added isOperandInPagedSpace prototype
4659
4660 2005-10-27 Raphael Neider <rneider AT web.de>
4661
4662         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4663
4664 2005-10-27 Raphael Neider <rneider AT web.de>
4665
4666         * .version: changed version to 2.5.4
4667         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4668         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4669           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4670             arithmetics support routines
4671         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4672         * device/lib/Makefile.in: also create installdir for pic
4673
4674         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4675           pic14 port as well
4676         * src/pic/device.c (dump_sfr): rewritten to delegate register
4677           placement to the linker (use `extern sym' rather than sym EQU addr),
4678           (validAddress): fixed to check last specified address
4679         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4680           (popGetLit): truncate literal value to 8 bit,
4681           (popGet): moved assert to more appropriate place
4682           (popGetExternal): create pCode operand from and mark the according
4683             symbol as being `extern'
4684           (popGetAddr): added sanity check on immediate's offset, provide
4685             GPOINTER tag on demand
4686           (aopPut): fixed for immediates,
4687           (mov2w_op): move operand's address or contents to WREG (depending on
4688             operand type), safer variant of mov2w,
4689           (movwf,call_libraryfunc): NEW, handy abbreviations,
4690           (get_argument_pcop,get_return_val_pcop,pass_argument,
4691           get_returnvalue): interface for accessing function parameters and
4692             return values,
4693           (assignResultValuei,genRet): use new parameter/return value interface
4694           (pic14_getDataSize): back to old version handling generic pointers,
4695           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4696             provided implementation and/or fixed old one,
4697           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4698             calls, removed legacy 8051 reference code
4699           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4700           (loadSignToC): NEW, move the operands sign bit to CARRY,
4701           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4702             genRightShiftSigned, accepts negative shift counts,
4703           (setup_fsr): load FSR and adjust IRP (indirect memory access),
4704           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4705             generic pointers, __data pointers and __code pointers,
4706           (genUnpackBits,genPackBits): rewritten to work with generic pointers
4707             and signed bitfields, limit bitfields to 8 bit,
4708           (genDataPointerGet): fixed number of bytes read,
4709           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4710           (genPointerGet,genPointerSet): fixed handling of __code pointers,
4711             pointers to constant data are no longer assumed to point to __code
4712             space, removed invalid pointer types,
4713           (bitpatternFromVal): retrieve the PICs representation of an integer
4714             or float literal,
4715           (genDataPointerSet): fixed assigning to po_immediate operands,
4716           (genGenPointerSet): implemented as library call,
4717           (genIfx): fixed incorrect condition,
4718           (genAddrOf): limit generic pointers' addresses to 2 bytes,
4719             provide GPOINTER tag according to destination's storage class,
4720           (genCast): added code to handle casting to generic pointers, added
4721             sign-/zero extension of the result
4722           (aop_isLitLike,op_isLitLike): fixed handling of immediates
4723         * src/pic/gen.h: added macros to access IRP bit in STATUS register
4724         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4725           extend the result
4726         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4727           address/register resides in the shared banks
4728           (emitSymbolToFile): improved to handle global and `pinned' symbols,
4729             put all variables into separate sections (have the linker arrange
4730             them)
4731           (picglue): put init code and interrupt handlers in separate sections
4732         * src/pic/main.c: added port specific options table, modified to PORT
4733           structure to make GPOINTERs 3 byte, added pic14_options
4734           (_pic14_do_link): private linking routine (update paths to libraries,
4735             add libsdcc.lib by default)
4736         * src/pic/main.h: declare pic14_options
4737         * src/pic/pcode.c: fixed instructions i/o relations,
4738           (RegCond): reverted to correct version,
4739           (newpCodeOpLit): truncate literals to 8 bit,
4740           (genericPrint): added debug output,
4741           (getRegFromInstruction): fixed for various operand types, simplified
4742           (BuildFlow): fixed broken handling of isntructions with labels
4743           (LinkFlow): start at last instruction in flow (skip trailing comments),
4744             pass the flow on to the next instruction after CALL
4745           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4746           (insertPCodeInstruction): fixed inserting after a skip instruction,
4747           (DoBankSelect): fixed for labeled instructions
4748           (OptimizepBlock): honor --nopeep switch
4749           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4750         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4751         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4752           (pCodeOptime2pCodes): allow disabling this optimization via
4753             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4754             but is still buggy), started implementation of a dataflow based
4755             pCode optimization (CSE + dead code elimination)
4756           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4757         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4758           names are independant of the stack location and therefore portable across
4759           devices
4760
4761 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4762
4763         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4764           (selectSpil): fixed bug 1337835 by not spilling bit variables
4765         * support/regression/tests/bug1337835.c: added test for this bug
4766         * src/mcs51/peeph.def: restart after rule 3.c,
4767           addded rules 263.x to optimize loading constants
4768
4769 2005-10-26 Raphael Neider <rneider AT web.de>
4770
4771         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4772         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4773           (genAssign): emit warning when casting literals to generic pointer
4774             type, also applies when taking the address of a fixed variable,
4775           (genCast): improved casting to generic pointers
4776         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4777           extern variables, added verbose error message
4778         * device/include/pic16/{string.h,errno.h}: added #pragma library c
4779
4780 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4781
4782         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4783         carry must be complemented too
4784         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4785         could be emitted by genMinus
4786         * src/SDCCval.c (constVal): fixed bug 1305065
4787
4788 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4789
4790         * src/SDCCast.c (addCast): added promotion for bit variables
4791         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4792         promotion casts + optimisation
4793         (optimizeGetWord): fix warning 'i' might be used uninitialized
4794         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4795         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4796
4797 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
4798
4799         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
4800         all chars are promoted to int; promotion should be handled in SDCCast.c
4801
4802 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4803
4804         * device/lib/_strcmp.c: Fixed bug 1326457
4805
4806 2005-10-11 Raphael Neider <rneider AT web.de>
4807
4808         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
4809         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
4810
4811 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4812
4813         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
4814         * support/regression/tests/sfr16.c: added test for the sfr32 bug
4815
4816 2005-10-04 Raphael Neider <rneider AT web.de>
4817
4818         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
4819           device/lib/pic16/pics.all: added pic18f1320
4820         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
4821
4822 2005-09-30 Raphael Neider <rneider AT web.de>
4823
4824         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
4825         * src/pic16/devices.inc: NEW, provides device descriptions
4826         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
4827
4828 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4829
4830         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
4831           GETHBIT
4832
4833 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
4834
4835         * doc/sdccman.lyx: updated Highest Order Bit documentation,
4836           documented Any Order Bit, Higher Order Byte and Higher Order Word
4837         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
4838         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
4839           (optimizeGetAbit): new, to get any bit, not only the high bit,
4840           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
4841           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
4842           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
4843           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
4844             RIGHT_OP: also try GETBYTE, GETWORD optimization,
4845             GETABIT, GETBYTE, GETWORD: decorate them,
4846           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
4847           (ast_print): added GETABIT, GETBYTE, GETWORD
4848         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
4849         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
4850           (geniCodeBinary): new generic binary icode,
4851           (ast2iCode): added GETABIT, GETBYTE, GETWORD
4852         * src/port.h: updated comment for PORT.hasExtBitOp
4853         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
4854           (genGetByte): new, to get a single byte,
4855           (genGetWord): new, to get a word from a long,
4856           (gen51Code): added GETABIT, GETBYTE, GETWORD
4857         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
4858
4859 2005-09-23 Raphael Neider <rneider AT web.de>
4860
4861         * configure.in, configure: have device/lib/pic configured
4862         * device/lib/Makefile.in: added model-pic14
4863         * device/lib/clean.mk: added pic/ to clean rule
4864         * device/lib/pic: added rudimentary pic14 library providing support
4865           functions for multiplication/division/generic pointer access
4866         * src/SDCCopt.c (convilong): mark support functions as extern
4867           for pic14 port as well
4868         * src/pic/gen.c (genMult): added assertions,
4869           (genpic14Code): emit warning on unhandled iCodes
4870         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
4871         * src/pic/pcode.c (pCodeOpCopy),
4872         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
4873           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
4874           SFR_REGISTER}), made safe for future extensions
4875         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
4876           instructions even if preceeded by SKIP instructions (also remove
4877           them); removed unused code
4878         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
4879           prevents leaving parts of the structure uninitialized after copying
4880
4881 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
4882
4883         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
4884           ago by me
4885         * support/regression/tests/addsub.c: added test for the bug
4886
4887 2005-09-21 Raphael Neider <rneider AT web.de>
4888
4889         * device/include/pic16/pic18f1220.h,
4890           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
4891         * device/lib/pic16/Makefile.rules: added missing opening paren
4892         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
4893           are provided in genutils.c,
4894           (genUminusFloat,genUminus,genCmpEq): added asserts on different
4895           operand/result sizes,
4896           (genCmp): assert on NULL pointers first, then check deref'ed values
4897         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
4898           result size
4899
4900 2005-09-18 Raphael Neider <rneider AT web.de>
4901
4902         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
4903           as these are now unused,
4904           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
4905         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
4906           local, avoids uninitialized pointer dereference on r->name
4907         * src/pic16/ralloc.c (newReg): fixed indentation
4908
4909 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
4910
4911         * src/SDCCval.c (constVal): fixed bug 730366
4912         * support/Util/SDCCerr.c,
4913         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
4914
4915 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4916
4917         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
4918
4919 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
4920
4921         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
4922
4923 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4924
4925         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
4926           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4927         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
4928           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4929         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
4930         * packihx/packihx.c (hexDigit): made c unsigned char
4931         * as/mcs51/lklibr.c (fndsym),
4932         * link/z80/lkgb.c (gb),
4933         * link/z80/lklibr.c (fndsym),
4934         * link/z80/lkrloc.c (relr),
4935         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
4936         * src/SDCC.lex (checkCurrFile, process_pragma),
4937         * src/SDCCglue.c (spacesToUnderscores),
4938         * src/SDCCmain.c (setParseWithComma, processFile),
4939         * src/asm.c (tvsprintf, printCLine),
4940         * src/avr/gen.c (emitcode, aopPut),
4941         * src/ds390/gen.c (emitcode),
4942         * src/hc08/gen.c (emitcode, emitinline),
4943         * src/mcs51/gen.c (emitcode, genInline),
4944         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4945           tokenizeLineNode),
4946         * src/pic/ralloc.c (debugLog),
4947         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4948           tokenizeLineNode),
4949         * src/pic16/ralloc.c (debugLog),
4950         * src/z80/main.c (_process_pragma):
4951            made all ctype.h function calls safe
4952         * src/SDCCopt.c: include math.h for fabs
4953         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
4954           and used them throughout the code to make ctype.h function calls safe
4955         * src/ds390/main.c (asmLineNodeFromLineNode),
4956         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
4957         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
4958            unsigned char*
4959         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
4960           (newpCodeAsmDir): made ctype.h function calls safe
4961         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
4962           pic16_emitcode):  made lbp unsigned char*
4963         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
4964           (pic16_newpCodeAsmDir): made ctype.h function calls safe
4965         * src/xa51/gen.c (emitcode),
4966         * src/z80/gen.c (_emit2): made lbp unsigned char*
4967         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
4968            char*
4969
4970 2005-09-05 Raphael Neider <rneider AT web.de>
4971
4972         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
4973           access bank splitpoint
4974
4975 2005-09-05 Raphael Neider <rneider AT web.de>
4976
4977         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
4978
4979 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
4980
4981         * .version: changed to version 2.5.3
4982         * doc/sdccman.lyx: changed version to 2.5.3,
4983           documented --codeseg and --constseg and pragma codeseg and constseg,
4984           documented bit parameters (reentrant) and bit returning
4985         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
4986            currFunc->recvSize, but is this ok for all ports?
4987           (ast2iCode): result of ~ on unsigned char must be cast to int for
4988            bool to work
4989         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
4990           function pointers in bit space
4991         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
4992           (processFuncArgs): call port.reg_parm() with reentrancy info
4993         * src/port.h,
4994         * src/avr/main.c,
4995         * src/ds390/main.c,
4996         * src/hc08/main.c,
4997         * src/pic/main.c,
4998         * src/pic16/main.c,
4999         * src/xa51/main.c,
5000         * src/z80/main.c: port.reg_parm prototype extended with
5001           "bool reentrant" parameter
5002         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
5003           options.stackAuto for allocating bit register parameters
5004         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
5005           (genSend): set BitBankUsed if it is,
5006           (selectRegBank): factored out of genCall for use in genPcall,
5007           (genCall): removed redundant dtype assignmen, use selectRegBank,
5008           (genPcall): handle returning in Carry properly, save in F0 if needed,
5009           (genReceive): handle bit register parameters
5010         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
5011           (mcs51_assignRegisters): enable bit registers for all reentrant
5012            functions and don't set BitBankUsed unconditionally
5013         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
5014         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
5015         * support/regression/tests/funptrs.c: added tests for BOOL and for return
5016
5017 2005-08-27 Borut Razem <borut.razem AT siol.net>
5018
5019         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
5020         ppc-osx (Darwin) does not support -u option. It seems that it is
5021         supported only on Linux - GNU cp
5022
5023 2005-08-25 Borut Razem <borut.razem AT siol.net>
5024
5025         * sim/ucsim/gui.src/serio.src/Makefile.in,
5026           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
5027           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5028           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
5029           install and strip, since the strip at /usr/ccs/bin should be used
5030           on solaris
5031
5032 2005-08-24 Borut Razem <borut.razem AT siol.net>
5033
5034         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
5035
5036 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
5037
5038         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
5039         ffffffffu
5040
5041 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
5042
5043         * as/mcs51/aslink.h: completed lkrloc.c prototypes
5044         * as/mcs51/lkmain.c (link_main): fixed warning
5045         * device/include/stdbool.h: ds390 has no advanced bit support yet
5046         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
5047         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
5048         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
5049           and updated their macros
5050         * src/SDCCval.c (constVal): updated comment for renamed b_long
5051
5052 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
5053
5054         * as/mcs51/asdata.c: changed ctype['['] to BINOP
5055         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
5056           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
5057           (oprio): set priority for '['
5058         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
5059            and adb_24_bit
5060         * as/mcs51/asm.h: added defines R_BIT and S_BIT
5061         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
5062         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
5063         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
5064           added overlayable BIT_BANK area
5065         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
5066           (summary2): explain 'T' in legenda
5067         * as/mcs51/lkrloc.c: replaced old K&R style,
5068           (relr): added R_BIT processing,
5069           (errmsg): added "Bit-addressable relocation error",
5070           (adb_bit): added for converting from byte- to bit-addressable space,
5071           (adb_24_bit): added for converting from byte- to bit-addressable space
5072         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
5073            used in reentrant functions now even as return value
5074         * device/lib/_gptrput.c (_gptrput): removed obsolete code
5075         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
5076           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
5077         * src/SDCCglobl.h: added indicator BitBankUsed
5078         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
5079            the bit registers b0-b7
5080         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
5081           (geniCodeCast): fixed bug 1263853,
5082           (geniCodeLogicAndOr): put result in bool or char,
5083           (geniCodeReceive): added parameter func for accessing the return type,
5084           (geniCodeFunctionBody): pass func to geniCodeReceive
5085         * src/SDCCmain.c: added indicator BitBankUsed
5086         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
5087         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
5088           (checkSClass): don't put automatic bool/bit on stack,
5089           (checkFunction): removed check on function cannot return bit
5090         * src/SDCCsymt.h: added newBoolLink prototype
5091         * src/mcs51/gen.c (rb1regs): added bit registers,
5092           (movc): created for assigning to carry,
5093           (pushReg, popReg): created for pushing registers,
5094           (sameRegs): check both AOP_REG and AOP_CRY types,
5095           (aopOp): handle bit registers,
5096           (aopPut): optimization no self-assign,
5097           (saveRegisters): push reg->base (bits) only once for bit registers,
5098            and use pushReg,
5099           (unsaveRegisters): pop reg->base only once and use popReg,
5100           (assignResultValue): added parameter func and return in carry for bits,
5101           (genIpush): optimization no reload in A if not changed,
5102           (genSend): bit parameters in reentrant functions are passed in bit
5103            registers by first assigning to bits in B, then save registers and
5104            copy B to bits,
5105           (genCall): handle returning in Carry properly, save it in F0 if needed,
5106           (genPcall): updated assignResultValue call, this is not safe yet for bit
5107            returning function !!!
5108           (genFunction): don't generate equ's for bit registers and use pushReg,
5109           (genEndFunction): take care of bit returning functions and use popReg,
5110           (genRet): return bit in Carry,
5111           (genIfx): optimize bit registers and other directly addressable bits,
5112           (genReceive): updated assignResultValue call
5113         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5114           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5115            registers when using stack-auto
5116         * src/mcs51/ralloc.c (_G): added allBitregs,
5117           (regs8051): added the bit registers,
5118           (createStackSpil): use macro IS_BIT,
5119           (getRegBit): added to allocate a bit register, else spill,
5120           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5121           (updateRegUsage): factored out to ease stepping while debugging,
5122           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5123            also allocate bit registers,
5124           (fillGaps): handle bit registers,
5125           (findAllBitregs): added to create bit vector with all bit registers,
5126           (mcs51_allBitregs): returns this bit vector,
5127           (mcs51_assignRegisters): when using stack-auto use bit registers for
5128            passing parameters and creating local variables
5129         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5130
5131 2005-08-22 Borut Razem <borut.razem AT siol.net>
5132
5133         * device/lib/Makefile.in: replaced find option -or with -o
5134           to make it run on solaris
5135
5136 2005-08-22 Raphael Neider <rneider AT web.de>
5137
5138         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5139           fixes #1265442 (crash on Solaris)
5140
5141 2005-08-20 Borut Razem <borut.razem AT siol.net>
5142
5143         * configure, configure.in: added tests for libsocket and libnsl libraries,
5144           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5145           from support/regression/Makefile.in
5146         * support/regression/Makefile.in: added
5147         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5148         * sim/ucsim/libtool: regenerated on sparc-solaris
5149         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5150           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5151           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5152           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5153           sparc-solaris, which doesn't use GNU ld linker
5154         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5155         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5156
5157 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5158
5159         * src/mcs51/peeph.def: updated comments
5160
5161 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5162
5163         * device/lib/_gptrget.c,
5164         * device/lib/_gptrput.c: slightly shorter
5165         * doc/sdccman.lyx: incremented version
5166         * src/mcs51/peeph.def: moved peephole comments to the line of first
5167           change to better keep line correlation, reanimated 186.e
5168         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5169
5170 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5171
5172         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5173           David Saxton with quotes around file name.
5174
5175 2005-08-15 Borut Razem <borut.razem AT siol.net>
5176
5177         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5178           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5179           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5180           make tests run on x86_64 platform
5181
5182 2005-08-13 Raphael Neider <rneider AT web.de>
5183
5184         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5185           as it might be executed DURING a build (parallel make is wonderful)
5186
5187 2005-08-13 Raphael Neider <rneider AT web.de>
5188
5189         * device/lib/Makefile.in (port-specific-objects-pic16):
5190           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5191         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5192           dependency
5193         * device/lib/pic16/Makefile.rules: build subdirs before creating
5194           the library, removed builddir rule, create $(builddir) early in
5195           recurse rule, use empty recurse rule for leaf directories
5196         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5197           mkdir errors (race condition), removed duplicate suffix "hex"
5198           from clean rules
5199         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5200         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5201           prevents mkdir -p from aborting on Alpha
5202
5203 2005-08-12 Raphael Neider <rneider AT web.de>
5204
5205         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5206           db-statements in order to allow for arrays of pointers in code
5207           sections to be placed without interspersed 0-padding, fixes
5208           bug #1256215
5209         * (emitStatistics): fixed division by zero for pic18f1220
5210         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5211           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5212         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5213         * (pic16_pCodeConstString): keep track of already emitted string
5214           literals to prevent "duplicate definitions of symbol _str_NR"
5215         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5216           debug message
5217         * device/lib/Makefile.in: ignore failing PIC16 library builds
5218         * device/lib/pic16/Makefile: do not build if gputils are missing
5219         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5220
5221 2005-08-10 Raphael Neider <rneider AT web.de>
5222
5223         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5224           my last commit)
5225
5226 2005-08-10 Raphael Neider <rneider AT web.de>
5227
5228         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5229           Rokas' patch to add the new fixed point type "__fixed16x16"
5230         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5231           functions for __fixed16x16 arithmetics
5232         * device/lib/pic16: reimplemented the build system to support
5233           a separate build directory, better handling of libio (create
5234           the library in a separate subdir for each architecture) and
5235           easier configuration (centralized in Makefile.common)
5236
5237 2005-08-07 Raphael Neider <rneider AT web.de>
5238
5239         * src/pic16/gen.c (genrshTwo): fixed sign extension
5240         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5241         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5242           added T0CONbits
5243         * device/include/pic16/pic18f4220.h: NEW, header for
5244           pic18f4220 and pic18f4320
5245         * device/include/pic16/pic18fregs.h: added new devices,
5246           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5247         * device/include/pic16/signal.h: resolved name clashes
5248           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5249           to also allow testing for interrupt enable bits, added
5250           comments on how to use the macros
5251         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5252         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5253           register definitions for the devices
5254         * device/lib/pic16/pics.all: added new devices
5255         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5256           allocated memory
5257         * device/lib/pic16/libc/stdlib/memfree: do not count
5258           the block header as free memory
5259         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5260           simplified and added missing end-of-blocklist-marker
5261           (reported by Peter Onion, fixes #1252814)
5262         * (_mergeHeapBlock): fixed loop condition
5263         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5264           len==0, restructured code
5265         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5266           up a bit, reduced bitfield accesses, prevent endless loops
5267           in case of heap corruption
5268         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5269           "unreferenced arguments/must return a value" warnings
5270         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5271           replaced BAUDREG with SPBRG
5272         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5273           device/lib/pic16/debug/gstack/gstack.c: replaced
5274           _naked, _asm, _endasm with __naked, __asm, __endasm
5275
5276 2005-08-05 Raphael Neider <rneider AT web.de>
5277
5278         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5279           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5280
5281 2005-08-05 Borut Razem <borut.razem AT siol.net>
5282
5283         * device/lib/Makefile.in: added missing ';'
5284         * configure: removed ^M characters
5285
5286 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5287
5288         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5289           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5290           License
5291
5292 2005-08-04 Borut Razem <borut.razem AT siol.net>
5293
5294         * configure.in: pic16 libraries build 2nd try - enable running
5295           configure in device/lib/pic16
5296         * configure: regenerated from configure.in
5297         * device/lib/Makefile.in: create $(PORT)/bin directory
5298
5299 2005-08-03 Raphael Neider <rneider AT web.de>
5300
5301         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5302           to get/set values via pointers
5303         * (genUnpackBits,genPackBits): changed detection of
5304           ptr->bitfield vs. sym.bitfield, fixed access via generic
5305           pointers, removed dead (wrong) code for multibyte bitfields
5306         * (genNearPointerGet, genGenPointerGet): removed useless code,
5307           fixed bitfield detection, fixes #1250594
5308         * (genNearPointerSet): removed useless code
5309         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5310           and introduced macro pic16_emitpcode that conditionally emits
5311           the origin of the following pCode (useful for debugging SDCC)
5312         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5313         * (createDefmap): fixed handling of LFSR for --optimize-df
5314
5315 2005-08-02 Borut Razem <borut.razem AT siol.net>
5316
5317         * device/lib/Makefile.in: pic16 libraries build enabled since
5318           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5319
5320 2005-08-02 Raphael Neider <rneider AT web.de>
5321
5322         * src/pic16/gen.c (genPackBits): removed deprecated warning
5323         * (genGenPointerSet): fixed bitfield detection
5324
5325 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5326
5327         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5328
5329 2005-07-31 Raphael Neider <rneider AT web.de>
5330
5331         * device/lib/pic16/libdev/pic18f458.c,
5332           device/include/pic16/pic18f458.h: added missing T0CONbits
5333
5334 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5335
5336         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5337
5338 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5339
5340         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5341
5342 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5343
5344         * device/include/mcs51/at89c51ed2.h: added.
5345
5346 2005-07-23 Raphael Neider <rneider AT web.de>
5347
5348         * src/pic/gen.h: added emitpcode macro for debugging
5349         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5350           and replace by macro adding debug information on demand
5351         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5352         * (gencjne): tried to fix; replaced with correct (slower) code
5353         * (gen{Unp,P}ackBits): fixed single bit access
5354         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5355         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5356           previous instruction
5357         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5358           register has to be handled with care (forbidding movement
5359           of assignments/uses, removing assignments completely, ...)
5360         * (pCodeOptime2pCodes): make use of regIsSpecial
5361         * added lots of debugging output (commented out)
5362         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5363           from being reused as result UNLESS it is known to work
5364
5365 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5366
5367         * support/Util/dbuf.h: include <stddef.h> for size_t
5368         * .version: changed to version 2.5.2
5369
5370 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5371
5372         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5373
5374 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5375
5376         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5377           (genModOneByte): removed needless psha/pula
5378
5379 2005-07-22 Raphael Neider <rneider AT web.de>
5380
5381         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5382           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5383         * src/pic/gen.c (resolveIfx): do not "invent" labels
5384         * (genSkipc): changed to positive logic
5385         * (genSkipCond): removed as no longer needed
5386         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5387           backport from PIC16
5388         * (genLeftShift): check operands are in different registers
5389         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5390           INCF does not update CARRY...
5391         * src/pic/main.c: fixed _linkCmd
5392         * src/pic/pcode.c (unlinkpCode): added inactive code
5393         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5394           alive (do not assign result and operand overlapping registers)
5395
5396 2005-07-22 Raphael Neider <rneider AT web.de>
5397
5398         * src/pic/device.c (dump_sfr): replaced register declaration with
5399           call to emitSymbolToFile() to avoid duplicate symbols
5400         * (assignRelocatableRegisters): do not declare external symbols
5401         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5402           right (take size of type, not etype)
5403         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5404         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5405         * (packRegsForAccUse): disabled assignment of WREG as
5406           the result reg to prevent occurence of just fixed #1235003,
5407           fixes #1242954
5408         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5409           symbols (avoids duplicate symbols in .asm file)
5410         * (pic14emitRegularMap): use emitSymbolToFile()
5411         * src/pic/gen.c (aopOp): fixed spillLocation handling
5412         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5413         * (genDataPointerSet): removed unneccessary variables/output
5414
5415 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5416
5417         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5418         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5419
5420 2005-07-21 Raphael Neider <rneider AT web.de>
5421
5422         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5423           architecture cannot handle them efficiently, fixes bug #1235003
5424         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5425           check for empty sets before using them (fixes bug #1232190)
5426
5427 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5428
5429         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5430           (lnksect2): generate warnings for memory overlap
5431         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5432           constseg to set the name of these segments so you can instruct the linker
5433           to place them in banks
5434         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5435         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5436           added code_seg and const_seg to options
5437         * src/SDCCglue.c (emitMaps): use options.const_seg,
5438           (createInterruptVect): put interrupt vectors in segment HOME,
5439           (glue): put HOME before static segment and put the main glue in HOME,
5440           (glue): use options.code_seg
5441         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5442         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5443           these segments so you can instruct the linker to place them in banks
5444           (linkEdit): use code_loc for HOME segment which should be the first
5445           segment in code memory now
5446         * src/SDCCmem.c: fixed more stuff like bug 1238386
5447         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5448           (changePointer): don't change function pointers to code pointers for
5449           banked functions,
5450           (compareType): added exceptional check for banked function pointers
5451         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5452         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5453           after static in code memory
5454         * src/mcs51/gen.c: added aopLiteralLong prototype,
5455           (aopForSym): use getSize for functions,
5456           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5457           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5458           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5459           the segment,
5460           (genPcall): use call for literal function pointers and generate banked
5461           calls over the one trampoline so there's only one place for the user to
5462           modify according to his/hers hardware,
5463           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5464           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5465         * src/mcs51/main.c: added keyword banked,
5466           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5467         * support/Util/SDCCerr.c,
5468         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5469           needed for passing the bank and address to the trampoline
5470         * device/lib/mcs51/crtbank.asm: added for bankswitching
5471         * device/lib/mcs51/Makefile: added crtbank
5472
5473 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5474
5475         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5476           for fields at offset 0 of a struct or union as reported
5477           on 2005-07-07 in the developer mailing list.
5478
5479 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5480
5481         * src/SDCCmem.c: fixed bug 1238386
5482
5483 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5484
5485         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5486           (patch #1144962), added peephole 300, enabled 259.x
5487         * doc/sdccman.lyx: removed screenshot and provided link instead
5488
5489 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5490
5491         * doc/sdccman.lyx: added section about debugging with ddd
5492         * doc/figures/ddd_example.eps: screenshot of debugging session
5493
5494 2005-07-04 Raphael Neider <rneider AT web.de>
5495
5496         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5497           like CODE pointers, fixes #1115683
5498         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5499           call, fixes bugs #1232211, #1228110,
5500           fixed wrong casts to pCodeFlow from pCodeInstructions
5501
5502 2005-07-04 Raphael Neider <rneider AT web.de>
5503
5504         * src/pic/gen.c (popGet): changed assert to allow for
5505           bit operands
5506         * (popGetAddr): changed signature to provide
5507           an additional index, patched all call sites
5508         * (genCmpEq): handle literal-like operands correctly
5509         * (genAddrOf): added sanity checks on __code/__data pointers
5510         * (genAssign): added handling of symbols from __code section
5511         * (gencjne): do not generate code for comparisons whose result
5512           is neither stored nor used, fixes bug #1171114
5513         * (AccLsh, AccRsh): operate on operand instead of WREG
5514         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5515           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5516           by known count
5517         * rewrote complete shift-by-literal logic, commented unused
5518           functions out
5519         * (genConstPointerGet): get multiple bytes (if result size > 1),
5520           fixed handling of non-immediate addresses
5521         * (genPointerGet): handle CODE pointers like CONST pointers
5522         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5523         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5524           operand is to be treated as a literal or not
5525         * (mov2w,genPcall,genCmpEq),
5526           src/pic/genarith.c: use aop_isLitLike() to decide between
5527           literal/register contents
5528         * (addSign): added missing offset
5529         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5530           only emit comment in debug-mode,
5531           use {aop,op}_isLitLike throughout the file
5532         * src/pic/glue.c: fix initializers for pointers (work in progress)
5533         * src/pic/pcode.c (get_op): honor index on _const symbols
5534         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5535         * (dumppBlock): added pCode size estimation
5536         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5537           check for IS_SYMOP before OP_SYMBOL'ing
5538         * fixed indentation, compacted switch-statements
5539         * (allocReg): find free register and allocate it instead of
5540           allocating new registers all the time
5541         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5542           registers as its operands (necessary only for multibyte GETs)
5543
5544 2005-07-01 Raphael Neider <rneider AT web.de>
5545
5546         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5547           debugging .asm-output macros FENTRY + FEXIT
5548         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5549           way... I wonder...
5550         * (emitpComment): NEW, printf to pCode
5551         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5552           offset handling
5553         * (popGetAddr): NEW, variant of popGet to access an immediates
5554           high(er) bytes instead of the n'th byte of memory they reference,
5555           replaced popGet with popGetAddr where neccessary
5556         * (genDataPointerGet): reactivated and fixed implementation
5557         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5558           accesses
5559         * (genDataPointerSet): fixed multibyte assignments
5560         * (genpic14Code): fixed --i-code-in-asm handling
5561         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5562         * (genPlus): fixed index-out-of-bounds error
5563         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5564         * src/pic/ralloc.c: added debugging output macro FENTRY2
5565         * (spillThis): fixed indentation, enbraced for-body for clarity
5566         * (rematStr): commented out as now unused
5567         * (regTypeNum): commented out special spill case (overwrites
5568           arbitrary values)
5569         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5570
5571 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5572
5573         * doc/sdccman.lyx: documented sfr16/sfr32,
5574           added example for using storage class with function pointers
5575         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5576
5577 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5578
5579         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5580         * device/lib/_itoa.c,
5581         * device/lib/_ltoa.c: optimized codesize
5582         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5583           but don't know how to suppress the double warning.
5584         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5585         * support/Util/SDCCerr.c,
5586         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5587
5588 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5589
5590         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5591           fixed old K&R prototypes
5592         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5593         * device/lib/_gptrget.c,
5594         * device/lib/_gptrgetc.c,
5595         * device/lib/_gptrput.c: changed versions for new memory indicator values,
5596           also new versions for small generic pointers and banked generic pointers
5597         * src/port.h: added const_name
5598         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5599         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5600         * src/SDCCcse.c (findPrevIc): check all associative operators
5601         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5602         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5603         * src/SDCCmem.c: updated comments,
5604           set far-space to 0 for pdata, results in optimized code
5605         * src/SDCCmem.h: added macro CONST_NAME
5606         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5607           moving the info into the highest bits, see also gptrget/gptrput
5608         * src/src.dsp: added sdcc.ico to project files
5609         * src/avr/gen.c (genCast): fixed bug 0x%d
5610         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5611         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5612           relation between ptr_type and DCL_TYPE,
5613           (genCast): fixed bug 0x%d
5614         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5615           (CODE)" for const_name
5616         * src/hc08/gen.c (genCast): fixed bug 0x%d
5617         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5618           (hc08_port): added "CONST (CODE)" for const_name
5619         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5620           (aopForRemat, adjustArithmeticResult): disconnected direct relation
5621           between ptr_type and DCL_TYPE,
5622           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5623           operand* and took AOP() inside function so sfr-ness can be checked,
5624           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5625           new prototype,
5626           (genFunction, genEndFunction): optimized stack setup,
5627           (genMinus): optimized for literals with ending zeroes (in bytes),
5628           (genCast): fixed bug 0x%d
5629         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5630           (mcs51_port): added "CONST (CODE)" for const_name
5631         * src/mcs51/peeph.def: made rule 226 more generic
5632         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5633         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5634         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5635         * src/z80/main.c (z80_port): added NULL for const_name,
5636           (gbz80_port): added NULL for const_name
5637         * support/regression/tests/bug663539.c,
5638         * support/regression/tests/sfr16.c: new tests
5639
5640 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5641
5642         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5643
5644 2005-06-24 Raphael Neider <rneider AT web.de>
5645
5646         * device/lib/pic16/libdev/pic18f[68][567]20.c:
5647           corrected typos...
5648         * device/include/pic16/signal.h: added USBIF
5649           and SIG_USB
5650
5651 2005-06-24 Raphael Neider <rneider AT web.de>
5652
5653         * device/lib/pic16/libdev/pic18f2455.c,
5654           device/include/pic16/pic18f2455.h: NEW
5655         * device/include/pic16/pic18fregs.h,
5656           device/lib/pic16/pics.all,
5657           src/pic16/device.c: added 18f2455
5658         * device/lib/pic16/libdev/pic18f[68][567]20.c,
5659           device/include/pic16/{pic18f[68][567].h,usart.h}:
5660           replaced MULTIPLE_USARTS define with more relaible
5661           compatibility sfrs (for USART access)
5662
5663 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5664
5665         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5666           and the output asm file line is printed on two lines.
5667
5668 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5669
5670         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5671           BGT, BLE, BHI, and BLS instructions
5672         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5673           genCmpEq): removed
5674         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5675           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5676           fixes bug #1216342
5677         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5678
5679 2005-06-15 Raphael Neider <rneider AT web.de>
5680
5681         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5682         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5683         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5684           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5685           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5686
5687 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5688
5689         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5690           Marcel Telka in bug #1215704
5691
5692 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5693
5694         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5695           located in shared memory bank.
5696
5697 2005-05-31 Raphael Neider <rneider AT web.de>
5698
5699         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5700           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5701           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5702
5703 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5704
5705         * device/lib/_strncpy.c: fixed the fix
5706
5707 2005-05-26 Raphael Neider <rneider AT web.de>
5708
5709         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5710           initializers with \0, bug #1208187
5711         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5712           intializers with \0, bug #1208187
5713
5714 2005-05-26 Raphael Neider <rneider AT web.de>
5715
5716         * src/pic16/glue.c (pic16_printIvalChar): fixed string
5717           initializers with \0, bug #1208187
5718         * src/pic16/main.c (_process_pragma): added sanity checks
5719           for stack position and size, emit warnings when appropriate
5720
5721 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5722
5723         * device/lib/_strncpy.c: fixed not filling with \0
5724
5725 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5726
5727         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5728           createFunction),
5729         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5730           compound_statement),
5731         * src/SDCCsymt.h,
5732         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5733
5734 2005-05-24 Raphael Neider <rneider AT web.de>
5735
5736         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5737
5738 2005-05-24 Raphael Neider <rneider AT web.de>
5739
5740         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5741           TRISE definitions, closes bug #1162453
5742
5743 2005-05-22 Raphael Neider <rneider AT web.de>
5744
5745         * src/pic16/main.c (_process_pragma): check for missing
5746           arguments to pragmas code and udata
5747         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5748           consistency fixes to match other headers (thanks to Jim Paris)
5749         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5750
5751 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5752
5753         * src/SDCCicode.c (isOperandEqual): fixed missing ;
5754
5755 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5756
5757         * support/regression/tests/bug1198642.c: new test
5758         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5759         * src/SDCCcse.c (findPrevIc): added comment, please have a look
5760         * support/scripts/resource.h,
5761         * support/scripts/resource.rc,
5762         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5763         * support/scripts/sdcc.ico: added 32x32 icon
5764
5765 2005-05-18 Raphael Neider <rneider AT web.de>
5766
5767         * device/lib/pic16/libdev/pic18f*.c,
5768         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5769           keywords to "__sfr" and "__at (X)"
5770         * device/include/pic16/pic18fregs.h: added pic18f4520
5771         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5772           #1203088 (MPLAB compatibility)
5773
5774 2005-05-17 Raphael Neider <rneider AT web.de>
5775
5776         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5777         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5778         * device/lib/pic16/pics.all: added new devices
5779         * src/pic16/device.c: added support for pic18f4520
5780
5781 2005-05-16 Raphael Neider <rneider AT web.de>
5782         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5783         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5784         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5785           convenience function for bit access
5786
5787 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5788
5789         * device/lib/printf_large.c: fixed bug 1193299
5790         * support/regression/tests/bug1057979.c: added test %3.3s
5791
5792 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5793
5794         * device/include/mcs51/8051.h,
5795         * device/include/mcs51/8052.h: made parseable with lint
5796         * device/include/mcs51/lint.h: added include file for (sp)lint
5797         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
5798         * doc/cdbfileformat.lyx,
5799         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
5800
5801 2005-05-14 Raphael Neider <rneider AT web.de>
5802
5803         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
5804         * device/lib/pic16/libc/stdlib/itoa.c (new)
5805         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
5806         * device/lib/pic16/libio/Makefile: exclude subdir according to
5807           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
5808         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
5809         * src/pic16/gen.c (genFunction): prevent annoying warning
5810         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
5811           nameclashes on BeOS
5812         * support/cpp2/cppmain.c (cpp_output_string): new
5813         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
5814           fixes bug 1116802
5815
5816 2005-05-13 Borut Razem <borut.razem AT siol.net>
5817
5818         * src/SDCCmain.c (linkEdit): fixed bug 1195202
5819
5820 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5821
5822         * .version: changed to version 2.5.1; back to bleeding edge development
5823
5824 2005-05-11 Borut Razem <borut.razem AT siol.net>
5825
5826         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
5827           generate PDF version 1.3 documents
5828
5829 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5830
5831         * .version: changed to version 2.5.0
5832
5833 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5834
5835         * doc/sdccman.lyx: updated weblinks, index and smaller updates
5836
5837 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5838
5839         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
5840         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
5841         well as many smaller updates.
5842         * .version: changed to version 2.5.0-pre1
5843
5844 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5845
5846         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
5847
5848 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5849
5850         * support/regression/tests/bug1185672.c: added
5851         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
5852           bug 1185672
5853         * src/mcs51/gen.c (genCall): added comments, made it look safer
5854         * src/mcs51/gen.c (genEndFunction): simplified
5855
5856 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5857
5858         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
5859
5860 2005-04-14 Borut Razem <borut.razem AT siol.net>
5861
5862         * fixed bug 1045046 - SIGSEGV with really simple code?:
5863           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
5864           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
5865
5866 2005-04-14 Borut Razem <borut.razem AT siol.net>
5867
5868         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
5869           src/pic16/device.h: temporarily disabled experimental #inline pragma
5870           for 2.5.0 release
5871
5872 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
5873
5874         * device/include/z80/stdio.h,
5875         * device/include/z80/string.h: removed these highly incomplete files so
5876           SDCC can use the default ones in device/include/
5877
5878 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5879
5880         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
5881         gcc warning.
5882         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
5883         fix sdcpp warnings.
5884
5885 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5886
5887         * device/include/malloc.h: removed redundant __reentrant prototypes
5888         * device/lib/_mullong.c: added working xstack variant in asm (C version
5889           doesn't pass regression tests)
5890         * device/lib/bpx.c: used __data and made bpx char for mcs51
5891         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
5892           (createFunction): fixed bug with xstackPtr
5893         * src/SDCCcse.c: corrected comments
5894         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
5895           (killDeadCode, eBBlockFromiCode): removed unused code
5896         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
5897           corrected comments
5898         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
5899           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
5900           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
5901           (genModOneByte): fixed warning in MSVC
5902         * src/mcs51/main.c (): added comments
5903         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
5904
5905 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5906
5907         * src/SDCCmain.c (linkEdit): oops, changed one line too many
5908
5909 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
5910
5911         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
5912
5913 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
5914
5915         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
5916         characters arrays of larger size than the declared one.
5917
5918 2005-04-10 Borut Razem <borut.razem AT siol.net>
5919
5920         * src/pic/gen.c (genInline),
5921           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
5922           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
5923           (findNextInstruction), (findPrevInstruction),
5924           (findInstructionUsingLabel),
5925           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
5926         * src/pic/pcode.c (findLabel): added missing '\n'
5927         * src/src.dsp: added SDCCdwarf2.c to the project
5928
5929 2005-04-09 Borut Razem <borut.razem AT siol.net>
5930
5931         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
5932
5933 2005-04-08 Raphael Neider <rneider AT web.de>
5934
5935         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
5936           into the chain after a given one) and mergeDefmapSymbols (combine
5937           defmap entries for each symbol per pcode)
5938         * (createDefmap): have defmap entries merged in the end
5939         * (defmapReplaceSymRef): split defmap entries covering two accesses to
5940           a symbol before replacing one access type's symbol, merge symbols in
5941           the end (replacement symbol might already have an entry)
5942         * (assignValnums): keep reference to written WREG intact
5943
5944 2005-04-08 Raphael Neider <rneider AT web.de>
5945
5946         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
5947           Alpha)
5948
5949 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
5950
5951         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
5952         bytes
5953
5954 2005-04-07 Raphael Neider <rneider AT web.de>
5955
5956         * device/include/pic16/usart.h: added compatibility defines for
5957           devices with more than one USART
5958         * device/include/pic16/pic18f[68][567]20.h: activated above defines
5959
5960 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5961
5962         * device/lib/Makefile.in: updated for port specific include
5963
5964 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5965
5966         * support/regression/ports/mcs51/spec.mk: added mcs51 include
5967
5968 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5969
5970         * device/include/8051.h,
5971         * device/include/8052.h,
5972         * device/include/at89S8252.h,
5973         * device/include/at89c55.h,
5974         * device/include/at89x051.h,
5975         * device/include/at89x51.h,
5976         * device/include/at89x52.h,
5977         * device/include/mcs51reg.h,
5978         * device/include/reg51.h,
5979         * device/include/reg764.h,
5980         * device/include/regc515c.h,
5981         * device/include/sab80515.h: (re)moved these 12 files
5982         * device/include/mcs51/8051.h,
5983         * device/include/mcs51/8052.h,
5984         * device/include/mcs51/at89S8252.h,
5985         * device/include/mcs51/at89c55.h,
5986         * device/include/mcs51/at89x051.h,
5987         * device/include/mcs51/at89x51.h,
5988         * device/include/mcs51/at89x52.h,
5989         * device/include/mcs51/mcs51reg.h,
5990         * device/include/mcs51/reg51.h,
5991         * device/include/mcs51/reg764.h,
5992         * device/include/mcs51/regc515c.h,
5993         * device/include/mcs51/sab80515.h: and added them here
5994
5995 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5996
5997         * device/include/stdarg.h: changed SDCC specific keywords to double
5998           underlined form.
5999         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
6000           mcs51 and ds390.
6001         * device/include/hc08/mc68hc908gp32.h,
6002         * device/include/hc08/mc68hc908jb8.h,
6003         * device/include/hc08/mc68hc908jkjl.h,
6004         * device/include/hc08/mc68hc908qy.h: fixed comments
6005         * device/include/mcs51/README: updated
6006         * device/include/mcs51/c8051f120.h: added PINRSF
6007         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
6008         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
6009           amidst code. Also inline is not supported.
6010
6011 2005-04-06 Raphael Neider <rneider AT web.de>
6012
6013         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
6014         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
6015           callers stack/frame pointers
6016
6017 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6018
6019         * device/include/pic16/usart.h: added, missing in previous commit,
6020         * device/include/pic16/adc.h: fixed typo,
6021         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
6022         commit,
6023         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
6024         <p18fxxx.inc>
6025         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
6026         uninitialized because a bug appears with gplink
6027         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
6028         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
6029         complains for unrecognised option
6030
6031 2005-04-05 Raphael Neider <rneider AT web.de>
6032
6033         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
6034           structs as well (using memcpy)
6035         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
6036           on ISRs (GOTO has no label)
6037         * src/pic16/device.h: added OF_OPTIMIZE_DF
6038         * src/pic16/main.c: added compiler switch --optimize-df to enable the
6039           new data flow analysis/optimization
6040         * src/pic16/pcode.c: added (prototypes for and implementation of)
6041           dataflow analysis functions, fixed pCodeInstructions' inCond and
6042           outCond values, made RCALL a branch instruction
6043         * (pic16_unlinkpCode): keep C line if possible
6044         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
6045           C line moved if possible
6046         * (pic16_getRegFrompCodeOp): NEW, improved version of...
6047         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
6048           to use new pic16_getRegFrompCodeOp (works for more SFRs)
6049         * (pic16_BuildFlow): fixed skip instructions with label (did not start
6050           new flow)
6051         * (pic16_getJumptabpCode): NEW, needed in...
6052         * (LinkFlow): fixed handling of jumptables, calls and conditional
6053           branches
6054         * (pic16_InsertCommentAfter): NEW
6055         * (pic16_pCodeReplace): made verbose and flow preserving
6056         * (AnalyzeFlow): added call to data flow analysis
6057         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
6058         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
6059         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
6060
6061 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6062
6063         * src/SDCCast.c (decorateType): fixed bug #1105626
6064
6065 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
6066
6067         * device/include/asm/pic16/features.h,
6068         * pic18f*.h headers,
6069         * device/include/pic16/adc.h,
6070         * device/include/pic16/delay.h,
6071         * device/include/pic16/i2c.h,
6072         * device/include/pic16/malloc.h,
6073         * device/include/pic16/stdio.h,
6074         * device/include/pic16/stdlib.h,
6075         * device/include/pic16/string.h,
6076         * device/lib/pic16/libc/stdio/printf_tiny.c,
6077         * device/lib/pic16/libc/stdio/printf_small.c,
6078         * device/lib/pic16/libc/stdio/strmgpsim.c,
6079         * device/lib/pic16/libc/stdio/strmmssp.c,
6080         * device/lib/pic16/libc/stdio/strmusart.c,
6081         * device/lib/pic16/libc/stdio/vfprintf.c,
6082         * device/lib/pic16/libc/stdlib/ltoa.c,
6083         * device/lib/pic16/libc/stdlib/putchar.c,
6084         * device/lib/pic16/libc/stdlib/x_ftoa.c,
6085         * device/lib/pic16/libc/stdlib/memchrpgm.c,
6086         * device/lib/pic16/libc/stdlib/memchrram.c,
6087         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
6088         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
6089         * device/lib/pic16/libio/adc/adcbusy.c,
6090         * device/lib/pic16/libio/adc/adcread.c,
6091         * device/lib/pic16/libio/adc/adcsetch.c,
6092         * device/lib/pic16/libio/usart/ubaud.c,
6093         * device/lib/pic16/libio/usart/ubusy.c,
6094         * device/lib/pic16/libio/usart/udrdy.c,
6095         * device/lib/pic16/libio/usart/uopen.c,
6096         * device/lib/pic16/libio/usart/uputc.c,
6097         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
6098         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
6099         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
6100         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
6101         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
6102         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
6103         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
6104         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
6105         specific keywords to double underlined form,
6106         * device/lib/pic16/libc/Makefile.rules,
6107         * device/lib/pic16/libsdcc/Makefile.rules,
6108         * device/lib/pic16/libm/Makefile,
6109         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6110         to compile with C standard set in Makefile.common
6111         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6112         rand.c and crc.c in compilation process,
6113         * device/lib/pic16/libsdcc/int/divuint.c,
6114         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6115         `c' from signed to unsigned,
6116         * device/lib/pic16/startup/crt0.c,
6117         * device/lib/pic16/startup/crt0i.c,
6118         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6119         keywords to double underlined form, bug fixes in _do_cinit function
6120         which prevented the correct initialization of the .idata segment,
6121         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6122         core to enter a infinite loop
6123         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6124
6125 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6126
6127         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6128
6129 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6130
6131         * device/include/Makefile.in: add support for hc08 subdirectory
6132         * device/include/hc08/: new subdirectory
6133         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6134         Lucas Loizaga, thanks!
6135         * device/include/hc08/mc68hc908qy.h,
6136         * device/include/hc08/mc68hc908gp32.h,
6137         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6138         their own directory. Changed internal macro names to use the compiler
6139         reserved namespace. Changed SDCC specific keywords to double
6140         underlined form.
6141         * device/include/math.h,
6142         * device/include/malloc.h,
6143         * device/include/stdarg.h,
6144         * device/include/stdbool.h
6145         * device/include/string.h,
6146         * device/include/tinibios.h,
6147         * device/include/ds400rom.h,
6148         * device/include/8051.h,
6149         * device/include/8052.h,
6150         * device/include/80c51xa.h,
6151         * device/include/at89c55.h,
6152         * device/include/at89S8252.h,
6153         * device/include/at89x51.h,
6154         * device/include/at89x52.h,
6155         * device/include/ds80c390.h,
6156         * device/include/reg764.h,
6157         * device/include/regc515c.h,
6158         * device/include/sab80515.h,
6159         * device/include/mcs51/c8051f000.h,
6160         * device/include/mcs51/c8051f018.h,
6161         * device/include/mcs51/c8051f020.h,
6162         * device/include/mcs51/c8051f040.h,
6163         * device/include/mcs51/c8051f060.h,
6164         * device/include/mcs51/c8051f120.h,
6165         * device/include/mcs51/c8051f300.h,
6166         * device/include/mcs51/c8051f310.h,
6167         * device/include/mcs51/c8051f320.h,
6168         * device/include/mcs51/c8051f330.h,
6169         * device/include/mcs51/c8051f350.h,
6170         * device/include/z180.h: Changed SDCC specific keywords to double
6171         underlined form.
6172
6173 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6174
6175         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6176         18F4455,
6177         * (pic16_assignConfigWordValue): disable testing of configuration
6178         register value with config mask,
6179         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6180         function with port->fun_prefix,
6181         * (genFunction): when generating a naked interrupt function never
6182         create an absolute segment placed in interrupt vector address, place
6183         the actual interrupt function at IVA instead, when an interrupt
6184         function is generated with unspecified interrupt then do not create
6185         the absolute section,
6186         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6187         code for generating a call to generic pointer get/put function with
6188         a call to function pic16_callGenericPointer(),
6189         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6190         the call to the generic pointer get/put functions with prefixing the
6191         function name with port->fun_prefix,
6192         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6193         * src/pic16/main.c (_process_pragma): prefix function with
6194         port->fun_prefix,
6195         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6196         calling assembler, old 18Fxxxx macro is deprecated,
6197         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6198         PC_ASMDIR in while condition,
6199         * (findInstruction): add PC_ASMDIR in while condition,
6200         * (buildCallTree): prefix main with port->fun_prefix,
6201         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6202         identifier for variable with banked access in instructions BTFSS,
6203         BTFSC, BCF, BSF, BTG
6204         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6205         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6206         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6207         perform optimization when enviroment variable NO_REG_OPT is set,
6208         * (insideLRBlock): NEW, return 1 if register is inside an
6209         INF_LOCALREGS block,
6210         * (RemoveRegFromLRBlock): remove a register that is completely
6211         eliminated by register optimization, but it is still left in local
6212         register store/restore in/from stack block,
6213         * (Remove2pcodes): after removing register, check to see if it
6214         should be removed from local register store/restore in/from stack
6215         block,
6216         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6217         DUMMY_READ_VOLATILE,
6218
6219         * device/include/pic16/adc.h: minor prototype modifications and
6220         update,
6221         * device/include/pic16/malloc.h: added GPL notice various
6222         modifications,
6223         * device/include/pic16/stdint.h: NEW, standard header for ints
6224         * device/include/pic16/delay.h: NEW, header for delay functions,
6225         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6226         delay1mtcy,
6227         * device/include/pic16/signal.h: NEW, header providing helper macros
6228         for implementing signal handlers,
6229         * device/include/pic16/stdio.h: added prototypes for functions,
6230         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6231         prototypes for stdin and stdout, added macro PUTCHAR to
6232         automatically implement putchar function prototype,
6233         * device/include/pic16/usart.h: modified and updated USART library,
6234         * device/lib/pic16/libio/adc/,
6235         * device/lib/pic16/libio/i2c: some modifications to improve library
6236         performance,
6237         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6238         family of functions,
6239         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6240         family of functions and other sources,
6241         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6242         of the PIC18Fxx[28] devices,
6243         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6244         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6245         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6246         _do_cinit function, because the previous failed when local variables
6247         where not placed in the same memory bank,
6248         * device/lib/pic16/libsdcc/char/: various modifications to improve
6249         library performance,
6250         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6251         information on the new functions of the c library and more...
6252
6253 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6254
6255         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6256
6257 2005-03-26 Raphael Neider <rneider AT web.de>
6258
6259         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6260           if condition == CARRY)
6261         * (genCmp): adapted to new genSkipc semantics
6262         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6263           on rIfx (genCmp was broken)
6264
6265 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6266
6267         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6268         * src/z80/main.c (_keywords[]),
6269         * src/SDCCglobal.h (struct options),
6270         * src/SDCC.y,
6271         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6272         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6273         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6274         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6275         always available in leading double underscore form. The C99 support is
6276         mostly missing, but it's a start.
6277         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6278         reserved identifier "__data".
6279
6280 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6281
6282         * src/mcs51/peeph.def: fixed bug 1170013
6283
6284 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6285
6286         * device/include/mcs51reg.h: fixed bug 842007
6287
6288 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6289
6290         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6291         last time.
6292
6293 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6294
6295         * src/port.h (struct PORT),
6296         * src/avr/ralloc.c (avr_assignRegisters),
6297         * src/avr/main.c,
6298         * src/ds390/ralloc.c (ds390_assignRegisters),
6299         * src/ds390/main.c,
6300         * src/hc08/ralloc.c (hc08_assignRegisters),
6301         * src/hc08/main.c,
6302         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6303         * src/mcs51/main.c,
6304         * src/pic/ralloc.c (pic14_assignRegisters),
6305         * src/pic/main.c,
6306         * src/pic16/ralloc.c (pic16_assignRegisters),
6307         * src/pic16/main.c,
6308         * src/xa51/ralloc.c (xa51_assignRegisters),
6309         * src/xa51/main.c,
6310         * src/z80/ralloc.c (z80_assignRegisters),
6311         * src/z80/ralloc.h,
6312         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6313         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6314         * src/SDCCcse.h,
6315         * src/SDCCdflow.c (computeDataFlow),
6316         * src/SDCCdflow.h,
6317         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6318         * src/SDCCloop.h,
6319         * src/SDCCcflow.c (*),
6320         * src/SDCCcflow.h,
6321         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6322         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6323         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6324         immedDom() returning wrong block; probably fixes bug #1160833)
6325
6326 2005-03-20 Borut Razem <borut.razem AT siol.net>
6327
6328         * support/scripts/inc2h.pl: WIN32 port
6329
6330 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6331
6332         * device/lib/makefile.in: added abs.c and labs.c
6333
6334 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6335
6336         * device/include/stdint.h: added
6337         * device/lib/abs.c: added
6338         * device/lib/labs.c: added
6339         * device/include/stdlib.h: added abs() and labs() prototypes
6340         * device/lib/libsdcc.lib: added abs and labs
6341         * device/include/float.h,
6342         * device/lib/_fsmul.c,
6343         * device/lib/printf_fast.c,
6344         * device/lib/printf_tiny.c: updated comments
6345
6346 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6347
6348         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6349         bug #1164313
6350
6351 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6352
6353         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6354         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6355
6356 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6357
6358         * device/lib/printf_large.c: removed inline assembly for portability and
6359           readability. Use printf_fast if speed or size are more important.
6360         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6361         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6362
6363 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6364
6365         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6366         prevent compiler warning
6367
6368 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6369
6370         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6371         moved to level 0 and declared as static. Also they are explicit
6372         placed in access bank. This was necessery because some times they
6373         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6374         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6375         optimizations. Currently only compare to unsigned char is implemented,
6376         * src/pic16/gen.c: added fReturnIdx array,
6377         * (struct resolvedIfx) is moved to gen.h and made public,
6378         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6379         * (aopForSym): added an optimization to directly store in stack of
6380         the operand of a SEND iCode,
6381         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6382         but as registers instead (AOP_REG) using the fReturnIdx array,
6383         * (pic16_freeAsmop): remove the freed register from the
6384         _G.sregsAlloc field,
6385         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6386         a compare of 'WREG',
6387         * (pic16_popGetTempRegCond): changed function prototype, now
6388         function takes also a bitVector argument v which holds the current
6389         set of registers that are allocated for stack access by aopForSym,
6390         registers allocated in aopForSym for accessing stack symbols are not
6391         any more part of the functions usedRegs field,
6392         * (genCall): some times aopOp is called for a stack variable to be
6393         send, aopForSym might perform the push, if this is true make sure
6394         that genCall doesn't push the variable twice by testing _G.resDirect,
6395         * (genFunction): changed testing for unspecified interrupt number
6396         from 256 to INTNO_UNSPEC,
6397         * modified selection scheme of frame pointer generation. Previously
6398         if function did use local registers a frame pointer was generated,
6399         now a frame pointer is generated only if function has arguments
6400         (that need PLUSW2 register access), or has stack arguments, or the
6401         compiler is not instructed to omit the frame pointer,
6402         * (genEndFunction): before restoring local registers that were saved
6403         in the function preamble, also restore the registers that *might*
6404         have been allocated for stack access,
6405         * (genRet): removed some old comments,
6406         * (genCmp, the active (RN's) version): added a call to the
6407         pic16_genCmp_special function to perform the compare with a more
6408         robust and optimized way,
6409         * (genInline): a feature has been added in inline code generation,
6410         which allows a wildcard variable substitution when writing inline
6411         assembly. Code is incomplete and experimental therefore undocumented,
6412         * (genCast): changed order of aopOp for result and right to allow
6413         aopForSym to directly load the result if possible,
6414         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6415         perform an optimized compare on some selected special occasions,
6416         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6417         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6418         generate an IVT any more,
6419         * src/pic16/main.c (pic16_optionsTable): added command line option
6420         --optimize-cmp,
6421         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6422         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6423         macros,
6424         * src/pic16/NOTES: Raphael Neider added in list of active developers
6425         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6426         jumptable_end to prevent bug #,
6427         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6428         inCond and outCond fields,
6429         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6430         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6431         turn off register spilling,
6432         * (packRegsForOneUse): synced with other ports' versions although it
6433         is not used currently,
6434         * (pic16_packRegisters): added an optimization while reading
6435         structure bitfields, some registers may be saved (malloc code is
6436         decreased by 80 bytes)
6437
6438 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6439
6440         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6441         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6442         this can be optimized more?
6443
6444 2005-03-10 Raphael Neider <rneider AT web.de>
6445
6446         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6447           genNearPointerGet): (hopefully) fixed access to bitfields via
6448           pointers (p->bitN = x; and x = p->bitN; failed)
6449
6450 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6451
6452         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6453
6454 2005-03-09 Raphael Neider <rneider AT web.de>
6455
6456         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6457
6458 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6459
6460         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6461         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6462           (regTypeNum): set REG_BIT type if necessary
6463         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6464         * support/regression/tests/critical.c: check bug 1144613
6465
6466 2005-03-02 Raphael Neider <rneider AT web.de>
6467
6468         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6469
6470 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6471
6472         * src/avr/ralloc.c (serialRegAssign),
6473         * src/ds390/ralloc.c (serialRegAssign),
6474         * src/hc08/ralloc.c (serialRegAssign),
6475         * src/mcs51/ralloc.c (serialRegAssign),
6476         * src/pic/ralloc.c (serialRegAssign),
6477         * src/pic16/ralloc.c (serialRegAssign),
6478         * src/xa51/ralloc.c (serialRegAssign),
6479         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6480
6481 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6482
6483         * src/SDCCast.c (decorateType): fixed bug 1124787
6484
6485 2005-02-20 Hubert Sack <sack AT digiplan.de>
6486         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6487
6488         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6489         patch #1121755
6490
6491 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6492
6493         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6494         to keep the correct label reference count when adding/removing references
6495         to labels. A peephole file using this is appended to patch #1144962.
6496
6497 2005-02-14 Raphael Neider <rneider AT web.de>
6498
6499         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6500         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6501         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6502           retrievals of result operand's value on assignment
6503
6504 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6505
6506         * device/include/pic16/string.h: modified prototype for memccpy()
6507         to memccpy(void *, void *, char, size_t)
6508         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6509         check whether to omit frame pointer or not,
6510         * (genInline): convert all occurences of "\n" to LF in inline
6511         assembler blocks, this helps formatting the inline text,
6512         * (pic16_loadFSR0): modified prototype,
6513         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6514         removed some 8051 legacy code,
6515         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6516         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6517         before allocating temporary registers in functions,
6518
6519 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6520
6521         * support/regression/tests/bitvars.c: corrected the "fix"
6522
6523 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6524
6525         * support/regression/tests/bitvars.c,
6526         * support/regression/tests/bitwise.c,
6527         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6528
6529 2005-02-10 Raphael Neider <rneider AT web.de>
6530
6531         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6532           different size for Alpha
6533         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6534
6535 2005-02-09 Raphael Neider <rneider AT web.de>
6536
6537         * src/SDCC.lex(doPragma) : save and restore warning options as well
6538           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6539         * have #pragma less_pedantic set the errorlevel to WARNING
6540           (fixes #1117001)
6541         * (cloneOptimize) : fixed wrong malloc's size
6542         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6543           facilitate correct handling of #pragma (save|restore)
6544
6545 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6546
6547         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6548
6549 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6550
6551         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6552
6553 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6554
6555         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6556
6557 2005-02-02 Raphael Neider <rneider AT web.de>
6558
6559         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6560         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6561         * (pic16_storeForReturn): fixed to allow returning function pointers
6562         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6563         * device/include/pic16/{stddef.h,stdbool.h}: added
6564
6565 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6566
6567         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6568
6569 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6570
6571         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6572         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6573          appeared to be required
6574
6575 2005-01-31 Borut Razem <borut.razem AT siol.net>
6576
6577         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6578           include/mcs51 and include/z80 directories to the package
6579
6580 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6581
6582         * src/hc08/gen.c (genFunction): fixed bug #1112752
6583
6584 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6585
6586         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6587
6588 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6589
6590         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6591
6592 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6593
6594         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6595
6596 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6597
6598         * device/include/c8051fxxx.h: removed these 6 files
6599         * device/include/mcs51/c8051fxxx.h: added these 11 new files
6600
6601 2005-01-26 Raphael Neider <rneider AT web.de>
6602
6603         * src/pic16/gen.c (genAssign): fixed assignment from longs
6604           in codespace (were cut to three bytes)
6605         * (genDummyRead): implemented (except for CODESPACE...),
6606           fixed bug #1108575
6607         * src/pic16/glue.c (emitStatistics): beautified
6608         * device/lib/pic16/libm/Makefile: added include path
6609
6610 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6611
6612         * src/z80/gen.c (aopPut): fixed bug #1103902
6613
6614 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6615
6616         * device/lib/expf.c: fixed bug #1095792
6617
6618 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6619
6620         * device/lib/pic16/libm: added Math library sources
6621
6622 2005-01-24 Raphael Neider <rneider AT web.de>
6623
6624         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6625           to enable upcast to pCodeOpReg2 (there is no type tag to
6626           differenciate the two and pic16_popGet2p cast into PCOR2)
6627         * src/pic16/main.c (_process_pragma): fixed another malloc bug
6628           (sizeof(sectNames) changed to sizeof(sectName))
6629           Both patches fix segfaults under MinGW.
6630
6631 2005-01-23 Raphael Neider <rneider AT web.de>
6632
6633         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6634           Safe_[mc]?alloc()'ed variables
6635         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6636           of (byte sized) temporaries (assign them to WREG for now)
6637         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6638           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6639           this might fix SIGSEGVs on MinGW...
6640         * src/SDCCopt.c (killDeadCode): restored original behaviour
6641           (volatile operands might get thrown away though)
6642
6643 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6644
6645         * src/pic16/gen.c: fixed bug #1106975,
6646         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6647         pointer update, INTCON is saved, global interrupts are disabled and
6648         restored after updateing TOS.
6649         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6650         * added function attribute 'shadowregs' to take advantage of shadow
6651         registers,
6652         * added function attribute 'wparam' as an alternative to the wparam
6653         pragma,
6654         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6655         user declares a non-ISR function as 'shadowregs',
6656         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6657
6658 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6659
6660         * .version: bumped version number to 2.4.8
6661         * device/lib/pic16/pics.all: list of PIC18F devices supported by
6662         pic16 port,
6663         * device/lib/pic16/libio/i2c/: I2C module support library,
6664         * device/include/pic16/i2c.h: I2C support library header,
6665         * device/lib/pic16/libc/stdio/: standard IO support sources,
6666         * (printf_small.c): printf_small() source, supports float print,
6667         * (printf_tiny.c): printf_tiny() source, does not support floats,
6668         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6669         enable global optimizations for entire library source, other
6670         Makefiles in the source tree are also modified to reflect this,
6671         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6672         function,
6673         * doc/sdccman.lyx: updated to reflect new changes,
6674         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6675         sym->onStack if-case,
6676         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6677         sbit, idata, _idata, xdata, _xdata,
6678         * added pragma library, to link an external library, (see doc),
6679         * removed command line options, --pomit-config-words, --pomit-ivt,
6680         --pleave-reset-vector,
6681         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6682         when calling assembler to reflect memory model used, also define
6683         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6684         reflect stack model used,
6685         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6686         on stack return NULL,
6687
6688 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6689
6690         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6691           of the operands is volatile. Fixes #1020220
6692
6693 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6694
6695         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6696         * (OptimizeRegUsage): make sure that there is really no other flow where
6697           the first pCode is used
6698
6699 2005-01-22 Raphael Neider <rneider AT web.de>
6700
6701         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6702           to fix #1106967 (pCode->seq are not set up correctly)
6703
6704 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6705
6706         * src/SDCCglue.c (glue): make sure code area is declared before the
6707         static initialization area.
6708
6709 2005-01-21 Raphael Neider <rneider AT web.de>
6710
6711         * device/lib/Makefile.in: fixed test for pic16 install dir
6712         * device/lib/pic16/*/Makefile*: modified compile flags to enable
6713           optimizations
6714         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6715           added --optimize-goto compiler switch and pragma wparam documentation
6716         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6717         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6718           and PRODH closing bug #1071770 (peephole optimizer)
6719
6720 2005-01-19 Raphael Neider <rneider AT web.de>
6721
6722         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6723           cmdLine buffers (used when calling sdcpp...) are large enough
6724           (MAX_PATH=256 truncates arguments leading to system halts when
6725           used in MinGW...)
6726         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6727         * (genUminus): rewritten to for efficiency
6728         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6729           used uninitialized in some cases)
6730         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6731           copy the third byte from the int -- now assumes 0x80 (data memory)
6732         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6733           operands (genAddLit expects the iCode's operands to swapped as
6734           well), fixed leftover bytes (crashed for short left operands)
6735         * (pic16_genMinusDec): performance improvements, removed false
6736           PIC14 emitSKPNCs
6737         * (pic16_genMinus): fixed to cope with differently sized operands
6738         * src/pic16/glue.c (pic16_glue): added new banksel optimization
6739           for --obanksel > 1
6740         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6741         * src/pic16/graph.[ch]: implementation of directed graphs, used by
6742           new banksel optimization
6743         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6744           analysis for temporary registers (segfaults...)
6745         * src/pic16/peeph.def: added rule
6746
6747 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6748
6749         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6750         which converts a float number to its ASCII representation
6751         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6752         functions to convert the fractional and integer part of a float to ASCII,
6753         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6754         realloc.c): added _MALLOC_SPEC to explicit place variables in data
6755         ram
6756         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6757         _STATMEM macros,
6758         * device/include/pic16/adc.h: added GPL info,
6759         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6760         a pCodeOp as tested operand,
6761         * (genNearPointerGet): optimized bit testing, does not use
6762         intermediate register for bit value, test directly instead with
6763         BTFSS, BTFSC, works only for single bits,
6764         * (genpic16Code): dump the name of the iCode in the asm,
6765         * src/pic16/ralloc.c (decodeOp): removed static declaration and
6766         renamed to pic16_decodeOp,
6767         * (serialRegAssign): do not allocate a temporary register for iCode
6768         sequences that test a single bit for 1/0
6769
6770 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6771
6772         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6773         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6774         access stack and frame pointers. They are initially assigned to
6775         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6776         accessing SFRs. Updated all occurences of modification of stack or
6777         frame pointer in gen.c and pcode.c,
6778         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6779         assigning of a literal value to pointers,
6780         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6781         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6782         selected
6783
6784 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6785
6786         * doc/sdccman.lyx: update documentation about stack pragma, added
6787         some info for stack memory models
6788
6789 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6790
6791         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6792
6793 2005-01-08 Raphael Neider <rneider AT web.de>
6794
6795         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6796           udata sections to fix bug #1097823
6797
6798 2005-01-05 Raphael Neider <rneider AT web.de>
6799
6800         * src/pic16/gen.c (genGenericShift): added handling of differently
6801           sized left operand and result
6802
6803 2005-01-04 Raphael Neider <rneider AT web.de>
6804
6805         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
6806         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
6807           to hold the condition bit)
6808         * added new version of genCmp (old code available via #define)
6809         * added new version of genShiftLeft/genShiftRight in a generic
6810           way, now supports shifting by negative values
6811         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
6812           shiftCount (expected by genGenericShift)
6813         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
6814         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
6815           dump
6816         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
6817           is an invalid literal too...)
6818
6819 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
6820
6821         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
6822         from Raphael Neider,
6823         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
6824         for 8-bit literals. This fixes some literal operands which are sign
6825         extended to 16-bits ints when instruction needs only 8-bits.
6826
6827 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
6828
6829         * device/lib/logf.c: added mcs51 assembly version
6830         * device/lib/expf.c: added mcs51 assembly version
6831         * device/lib/_logexpf.c: new shared asm code for expf and logf
6832         * device/include/math.h: add defines for assembly math library
6833         * device/lib/Makefile.in: build new _logexpf.c
6834         * device/lib/libfloat.lib: use new _logexpf.c
6835
6836 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6837
6838         * src/pic/device.c
6839         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
6840           device types which have less than 0x7f registers.
6841
6842 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6843
6844         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
6845
6846 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6847
6848         * device/lib/printf_fast.c: only build on supported arch.
6849         * device/lib/printf_tiny.c: only build on supported arch.
6850         * device/lib/printf_fast_f.c: only build if asm float lib
6851         * device/lib/_fsget1arg.c: only build if asm float lib
6852         * device/lib/_fsget2args.c: only build if asm float lib
6853         * device/lib/_fsnormalize.c: only build if asm float lib
6854         * device/lib/_fsreturnval.c: only build if asm float lib
6855         * device/lib/_fsrshift.c: only build if asm float lib
6856         * device/lib/_fsswapargs.c: only build if asm float lib
6857         * device/include/stdio.h: don't provide print_fast,
6858           print_fast_f, print_tiny prototypes if --xstack used
6859
6860 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
6861
6862         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
6863         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
6864           to the SOURCES
6865
6866 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6867
6868         * device/lib/printf_fast_f.c: same as printf_fast, but
6869           with floating point enabled
6870         * device/lib/printf_fast.c: minor tweaks
6871         * device/include/stdio.h: add printf_fast_f
6872
6873 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6874
6875         * src/SDCCmain.c: make --float-reent default for mcs51
6876         * device/lib/_fsadd.c: added mcs51 assembly version
6877         * device/lib/_fssub.c: added mcs51 assembly version
6878         * device/lib/_fsmul.c: added mcs51 assembly version
6879         * device/lib/_fsdiv.c: added mcs51 assembly version
6880         * device/lib/_fseq.c: added mcs51 assembly version
6881         * device/lib/_fsneq.c: added mcs51 assembly version
6882         * device/lib/_fsgt.c: added mcs51 assembly version
6883         * device/lib/_fslt.c: added mcs51 assembly version
6884         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
6885         * device/lib/Makefile.in: add _fscmp to build
6886         * device/lib/libfloat.lib: add _fscmp to build
6887
6888 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6889
6890         * device/lib/_fs2slong.c: added mcs51 assembly version
6891         * device/lib/_fs2sint.c: added mcs51 assembly version
6892         * device/lib/_fs2schar.c: added mcs51 assembly version
6893         * device/lib/_fs2ulong.c: added mcs51 assembly version
6894         * device/lib/_fs2uint.c: added mcs51 assembly version
6895         * device/lib/_fs2uchar.c: added mcs51 assembly version
6896         * device/lib/_slong2fs.c: added mcs51 assembly version
6897         * device/lib/_sint2fs.c: added mcs51 assembly version
6898         * device/lib/_schar2fs.c: added mcs51 assembly version
6899         * device/lib/_ulong2fs.c: added mcs51 assembly version
6900         * device/lib/_uint2fs.c: added mcs51 assembly version
6901         * device/lib/_uchar2fs.c: added mcs51 assembly version
6902         * device/include/float.h: added #define to select asm vs c
6903
6904 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
6905
6906         * device/lib/printf_fast.c: improvements to float output
6907         * device/include/float.h: add defines for assembly float library
6908         * device/lib/_fsget1arg.c: receive 1 float arg
6909         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
6910         * device/lib/_fsnormalize.c: normalize a float
6911         * device/lib/_fsreturnval.c: return float, various helper routines
6912         * device/lib/_fsrshift.c: right shift a float's mantissa
6913         * device/lib/_fsswapargs.c: swap 2 floats
6914         * device/lib/Makefile.in: build these 6 new files for mcs51
6915         * device/lib/libfloat.lib: add these 6 files to the library
6916
6917 2004-12-26 Borut Razem <borut.razem AT siol.net>
6918
6919         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
6920           built by gcc 3.4.2
6921
6922 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
6923
6924         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
6925           and fully reentrant and register bank neutral.
6926         * device/lib/printf_fast.c: added float (not enabled by default),
6927           added compact/slower integer (also not enabled by default),
6928           improved size/speed of fast integer code, other minor changes
6929         * device/include/stdio.h, device/lib/Makefile.in,
6930           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
6931
6932 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
6933
6934         * src/pic16/pcode.c: declaring variables other than at the start of a
6935           block is not supported in C by VC6.
6936
6937 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
6938
6939         * applied a previous patch from Raphael Neider that wasn't included
6940         in the previous commits, which fixes infinite loops within jumptable
6941         improvements,
6942         * made some fixes that previous patches introduced
6943
6944 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
6945
6946         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
6947         that fixes an issue with AOP_PCODE asmop's offset,
6948         * (pic16_popCopyReg): update instance field too,
6949         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
6950         function of pic port,
6951         * (genCmp, genAnd, genAssign),
6952         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
6953
6954 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
6955
6956         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
6957         variables initial values to idata section,
6958         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
6959         variables in some functions. This utilizes parmBytes field of iCode
6960         structure to hold the offset of the variable in stack. (might be
6961         able to use the stack field too?)
6962         * applied patch from Raphael Neider # ### , # ###
6963         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
6964         variable initial values in idata section,
6965         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
6966         for static variables with initial value
6967         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
6968         applied fix in while loop from Raphael Neider.
6969
6970 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
6971
6972         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
6973         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
6974         * src/ds390/ralloc.c (serialRegAssign): spill bits
6975         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
6976         * support/Util/SDCCerr.c,
6977         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
6978         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
6979         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
6980
6981 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
6982
6983         * device/include/sdcc-lib.h: inserted LGPL, added includes
6984           asm/ds390/features.h and asm/mcs51/features.h
6985         * device/include/asm/default/features.h,
6986         * device/include/asm/gbz80/features.h,
6987         * device/include/asm/z80/features.h: added empty _AUTOMEM
6988           and _STATMEM
6989         * device/include/asm/ds390/features.h,
6990         * device/include/asm/mcs51/features.h: added files with defines for
6991           _AUTOMEM and _STATMEM indicating automatic and static storage class
6992         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
6993         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
6994         * src/SDCCicode.c (geniCodeCast),
6995         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
6996         * src/SDCCloop.c (loopInduction): removed unused variable lr
6997         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
6998           to convertToFcall to include char modulo (RFE 1065037), added check
6999           if left operand is unsigned and use abs of literal value
7000         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
7001           as it doesn't work after conversion from peephole.def to peephole.rul
7002         * src/mcs51/gen.c (toBoolean): added check for size,
7003           (genModOneByte): optimized code for signed char modulo a literal
7004           power of 2 (thanks to Hubert Sack),
7005           (genRRC): removed unnecessary "clr c",
7006           (genRLC): replaced "add a,acc" with cheaper "rlc a"
7007         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
7008           jump optimization,
7009           swapped rules 256.c and 256.d,
7010           extended 256.d by using new multiple checks (thanks Erik),
7011           added rules 256.e and 256.f,
7012           updated rule 261.a and 261.b to new generated code
7013         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
7014
7015 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7016
7017         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
7018           induction related bugs, including first part of bug #1074377
7019
7020 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
7021
7022         * applied patch from bug-report #1076292,
7023         * applied patches for genAnd and Goto-optimizations for Raphael
7024         Neider,
7025         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
7026         dump a less iCode information,
7027         * src/pic16/device.h (pic16_options_t): added field debgen,
7028         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
7029         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
7030         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
7031         puclic,
7032         * (various functions): added macros FENTRY and FENTRY2 to functions,
7033         to emit function prologue,
7034         * (various functions): fixed indentation,
7035         * (genNearPointerGet): fixed loading of FSR0,
7036         * (genPackBits): applied patch from Raphael Neider to fix updating
7037         of FSR0 and touching only the modified bits,
7038         * src/pic16/genarith.c (various functions): added macros FENTRY to
7039         emit function prologue in comments,
7040         * src/pic16/pcode.h: added functions debugf2, debugf3,
7041         * src/pic16/ralloc.c: partial fix for packForPush caused
7042         segmentation fault,
7043
7044 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7045
7046         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
7047           <stsp AT users.sourceforge.net> with reversed byte order
7048         * support/regression/tests/rotate.c: added (ds390 skips some tests)
7049
7050 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7051
7052         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
7053           bug #1074377
7054         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
7055         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
7056
7057 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7058
7059         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
7060
7061 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7062
7063         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
7064           conditions,
7065           (setFromConditionArgs): friendly operand parser for peephole rules,
7066           (operandBaseName, operandsNotRelated): new peephole condition
7067           "operandsNotRelated" -- similar to "operandsNotSame", but takes
7068           architecture specific register naming into account, handles n-way
7069           comparisons, and supports quoted literals
7070         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
7071
7072 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7073
7074         * src/mcs51/peeph.def: fixed bug #1076940
7075
7076 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
7077
7078         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
7079
7080 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7081
7082         Adding support for replacing ljmps with sjmps in jumptables
7083         generated for switch statements. For now you need to set the
7084         environment variable SDCC_SJMP_JUMPTABLE to enable this.
7085         Now 4 algorithms for mcs51 jumptable generation are used:
7086         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
7087         addresses loaded pc-relative for up to 112 cases and stack-pushing
7088         target addresses loaded with offset from dptr for up to 256 cases.
7089
7090         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
7091         * src/mcs51/main.c: adapted constants for switch table generation
7092         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
7093
7094 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
7095
7096         * device/lib/printf_large.c (_print_format): fixed bug 1073386
7097         * support/regression/tests/bug1057979.c: added test for bug 1073386
7098
7099 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7100
7101         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
7102         compilers
7103
7104 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
7105
7106         * src/pic16/device.h,
7107         * src/pic16/genarith.c,
7108         * src/pic16/glue.c,
7109         * src/pic16/main.c,
7110         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7111
7112 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7113
7114         Large cummulative patch for pic16 port.
7115         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7116         to call when a stack overflow occurs,
7117         * (malloc.h): added CVS Id tag,
7118         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7119         variable,
7120         * added libc directory. The current version of LibC contains string
7121         functions, ctype functions and macros and some functions of the
7122         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7123         be extensively tested in the future. Standard disclaimer here.
7124         Library is not automatically build yet. But one can build it by
7125         invoking 'make' inside the libc directory.
7126         * added ADC library under libio. Preliminary version yet.
7127
7128         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7129         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7130         aopForRemat() now and not by pic16_aopOp(),
7131         * (pic16_popGetTempReg): removed warning messgae when allocating
7132         temporary registers, its a buggy feature and will be removed,
7133         * (pic16_popGet): set register instance field in AOP_CRY,
7134         * (pic16_outBitC): fixed for results in size greater than 1,
7135         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7136         * (pic16_storeForReturn): optimized return of 0,
7137         * (genCmp): experimental code for new genCmp which uses PIC18's
7138         special compare&skip instructions. Initial tests fail some times
7139         with variables grater than 1 byte in size, so new code is disabled,
7140         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7141         a single bit,
7142         * (genCast): began a fix to optimize the casting of a bit to another
7143         bit, now assigning a bitfield to another bitfield will fail, sorry,
7144         * src/pic16/main.c: disabled the use of lr-support feature,
7145         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7146         * added some function prototypes, added function _debugf prototype,
7147         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7148         bits with offset (case PO_GPR_BIT),
7149         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7150         command line,
7151         * (isBankInstruction): modified to return 0 for no banking instruction,
7152         and 1 for banking instruction,
7153         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7154         caused stop processing pCodes after a inline assembly block,
7155         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7156         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7157         registers when it shouldn't,
7158         * src/pic16/ralloc.c (allocReg): add preliminary support for
7159         supporting a limited set of temporary registers,
7160
7161 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7162
7163         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7164           genDataPointerSet): ensure assignments always copy in MSB to LSB
7165           order,
7166           (loadRegFromAop): recognize CLRH optimization,
7167           (genFunction): optimize RECEIVE iCodes in reentrant functions
7168
7169 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7170
7171         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7172           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7173           selected.
7174         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7175         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7176           contiguous with data
7177
7178 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7179
7180         * device/lib/_gptrget.c (_gptrget),
7181         * device/lib/_gptrgetc.c (_gptrgetc),
7182         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7183           instead of sjmp to ret
7184         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7185           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7186
7187 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7188
7189         * .version: bumped version to 2.4.7
7190         * device/lib/_gptrget.c (_gptrget): is now _naked
7191         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7192         * device/lib/_gptrput.c (_gptrput): is now _naked
7193         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7194           (createFunction): fixed xstack
7195         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7196         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7197           or bit either,
7198           (geniCodeCritical): store original interrupt state in an iTemp bit
7199           var unless stack-auto
7200         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7201         * src/SDCCmain.c (setIncludePath): added include/target to search path
7202         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7203         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7204           prototype,
7205           (processFuncArgs): put bit vars in bit area
7206         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7207           unsaveRBank): fixed xstack,
7208           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7209           (genFunction, genEndFunction): fixed xstack,
7210           (genAssign): optimization don't walk backwards through mem
7211         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7212         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7213         * support/regression/Makefile: also make library (for stack-auto) when
7214           making "all" and added "test-mcs51-xstack-auto"
7215         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7216         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7217         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7218         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7219         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7220           make-library by MAKE_LIBRARY
7221         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7222           regression tests for xstack
7223         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7224         * support/regression/tests/critical.c: test for critical on mcs51
7225
7226 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7227
7228         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7229           built version of sdcc instead of installed version
7230
7231 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7232
7233         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7234         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7235           vprintf.c now
7236         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7237         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7238           WARNING: remove device/lib/build/z80/printf.o by hand when
7239           updating from previous build!
7240         * device/lib/z80/printf.c: updated comment
7241         * support/regression/tests/bug1057979.c: test all ports now
7242         * support/regression/tests/bug1065458.c: file added
7243
7244 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7245
7246         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7247           *_start and *_end symbols for static functions
7248
7249 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7250
7251         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7252           and search crt0.o in all library paths,
7253           (setIncludePath): proper handling of --nostdinc,
7254           (setLibPath): proper handling of --nostdlib
7255         * support/regression/Makefile,
7256         * support/regression/ports/ds390/spec.mk,
7257         * support/regression/ports/gbz80/spec.mk,
7258         * support/regression/ports/hc08/spec.mk,
7259         * support/regression/ports/mcs51/spec.mk,
7260         * support/regression/ports/mcs51-large/spec.mk,
7261         * support/regression/ports/mcs51-stack-auto/spec.mk,
7262         * support/regression/ports/z80/spec.mk: use include and lib files from
7263           built version of sdcc instead of installed version
7264         * doc/sdccman.lyx: fixed typo in --nostdinc
7265
7266 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7267
7268         * src/pic/pcode.c,
7269         * src/pic/device.c,
7270         * src/pic/ralloc.c,
7271         * src/pic/gen.c : added support to generate code for struct bit fields.
7272
7273 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7274
7275         * as/xa51/xa_version.h,
7276         * device/include/errno.h,
7277         * device/include/regc515c.h,
7278         * device/lib/_itoa.c,
7279         * device/lib/_ltoa.c,
7280         * device/lib/ser_ir_cts_rts.c,
7281         * sim/ucsim/xa.src/glob.cc,
7282         * sim/ucsim/xa.src/inst_gen.cc,
7283         * sim/ucsim/xa.src/xa_bit.cc,
7284         * sim/ucsim/xa.src/xa_sfr.cc,
7285         * sim/ucsim/z80.src/inst_dd.cc,
7286         * sim/ucsim/z80.src/inst_fdcb.cc,
7287         * support/scripts/keil2sdcc.pl,
7288         * src/pic16/pic16.dsp,
7289         * src/pic16/pic16a.dsp: corrected cvs line endings
7290         * device/lib/printf_large.c: fixed bug 1057979
7291         * src/pic16/gen.c: fixed non-C standard code
7292         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7293         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7294         * support/regression/ports/mcs51/support.c: reload T1 asap
7295         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7296           pdata use and clear idata startup behaviour
7297         * support/regression/tests/bug1057979.c: added
7298
7299 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7300
7301         * device/examples/ds390/ow390/ad26.h,
7302         * device/examples/ds390/ow390/cnt1d.h,
7303         * device/examples/ds390/ow390/crcutil.c,
7304         * device/examples/ds390/ow390/ownet.h,
7305         * device/examples/ds390/ow390/owsesu.c,
7306         * device/examples/ds390/ow390/swt12.h,
7307         * device/examples/ds390/ow390/swtoper.c,
7308         * device/examples/ds390/ow390/temp10.h,
7309         * device/examples/ds390/ow390/thermodl.c,
7310         * device/examples/ds390/tinitalk/tinitalk.dsp,
7311         * device/examples/ds390/tinitalk/tinitalk.dsw,
7312         * device/examples/mcs51/clock/hw.h,
7313         * device/examples/mcs51/simple2/go.bat,
7314         * device/examples/serialcomm/windows/serial.h,
7315         * device/examples/xa51/dummy.c,
7316         * device/examples/xa51/hello.c,
7317         * device/include/80c51xa.h,
7318         * device/include/at89x051.h: corrected cvs line endings
7319
7320 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7321
7322         * src/pic16/main.c (options): added command line --gstack, to trace
7323         stack over/under flows,
7324         * added pragma 'wparam' to allow passing first byte of function
7325         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7326         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7327         call to __gstack_test function and sets up the symbol as extern,
7328         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7329         * popaop): added call to pic16_testStackOverflow,
7330         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7331         wparamList list,
7332         * (genCall, genPcall): now all parameters are passed via stack
7333         except in functions that are pass to wparam pragma in which WREG is
7334         used too,
7335         * (genPcall): REENTRANT flag is checked to see if variable prototype
7336         contains reentrant keyword, don't call a non-reentrant function, via
7337         a reentrant function pointer or vice versa, functions are never
7338         passed via WREG,
7339         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7340         D.Winkler,
7341         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7342         SIGSEGV when accessing a NULL register stucture,
7343         * (pic16_printGPointerType): modified to handle UPPER modifier for
7344         function initializers, changed prototype of function to simpler one,
7345         * (pic16_printIvalFuncPtr): check to see if function is already
7346         added in externs list,
7347         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7348         optimized a move from W to SFR with a move to the same register
7349         later after a CALL,
7350         * device/lib/pic16/debug: NEW directory, contains debug features
7351         which are enabled when linking with libdebug.lib, currently command
7352         line option --gstack enables stack pointer tracing for over/under
7353         flow, corresponding sources are in debug/gstack
7354
7355 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7356
7357         * doc/sdccman.lyx: updated SDCC version,
7358         * (PIC16 port): update list of command line options,
7359         * src/pic16/device.h (structure pic16_options_t): added field gstack
7360         to enable stack overflow tracing on push/pops,
7361         * src/pic16/device.c (statistics structure): added statistics
7362         structure,
7363         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7364         pic16_dump_int_registers): increase statistics counters for each
7365         * variable which is encountered
7366         * (pic16_dump_usection): emit each .udata variable to its own udata
7367         section,
7368         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7369         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7370         parameters via stack, otherwise use old scheme,
7371         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7372         assembler output file,
7373         * src/pic16/main.c: added command line options --gstack to enable
7374         push/pop tracing for stack overflow,
7375         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7376         instructions): added size of each instruction,
7377         * (pic16_countInstruction): estimate size of instructions in
7378         the_pFile list, inline assembly blocks are not counted,
7379         * (pic16_FixRegisterBanking): trace previous register usage, when
7380         banksel optimizations is greater than 0, don't emit a redudant
7381         banksel directive,
7382
7383 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7384
7385         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7386         * src/pic16/ralloc.c : applied same fix for pic16.
7387         * src/pic/gen.c : tidied it up a little.
7388
7389 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7390
7391         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7392         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7393
7394 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7395
7396         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7397
7398 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7399
7400         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7401         non-reentrant function __modsint in the interrupt function (thus
7402         corrupting math operations during serial I/O)
7403         * device/lib/ser_ir.c: as above, changed buffersize
7404         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7405         256.c,d for zeroing
7406         * doc/Makefile: added option -t for rsync
7407
7408 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7409
7410         * src/SDCCast.h (struct ast),
7411         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7412
7413 2004-10-20 Borut Razem <borut.razem AT siol.net>
7414
7415         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7416         package
7417
7418 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7419
7420         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7421         makefile targets,
7422         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7423         support functions to replace long sequences of MOVFF's from access
7424         bank registers to stack and vice versa,
7425         * src/pic16/device.h: added new field opt_flags, where optimization
7426         flags can be set to enable certain features,
7427         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7428         * pBlock, (genFunction, genEndFunction): surroung loop for
7429         saving/loading used registers in stack with PC_INFO pCodes,
7430         INF_LREGS. Code in between can then be optimized by pCode optimizer
7431         to support function calls,
7432         * (genDataPointerSet): fixed bug which loaded float fields in
7433         structures with corrupt data,
7434         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7435         in a standard way debug info on stderr. Feature used for developing
7436         and debugging only,
7437         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7438         obsolete chunks of code,
7439         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7440         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7441         * pic16/src/pcode.c (pic16_newpCodeInfo,
7442         * (pic16_newpCodeOpLocalRegs),
7443         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7444         feature,
7445         * (pic16_pCodeConstString): printing of the initial value of a
7446         symbol as a comment is inhibited since parsing was already done by
7447         copyStr and output is corrupt,
7448         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7449
7450 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7451
7452         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7453
7454 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7455
7456         * as/mcs51/lkarea.c: removed old K&R style,
7457           (lnksect): changed check on boundary error,
7458           (lnksect2): changed check on boundary error,
7459           (lnksect2): extend XSTK to end of page if size = 1
7460         * as/mcs51/lkmain.c: removed old K&R style,
7461           (Areas51): create l_IRAM symbol
7462         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7463         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7464           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7465         * device/lib/_mullong.c: added version to be compiled with xstack
7466         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7467         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7468         * device/lib/mcs51/crtxstack.asm: fixed comment
7469         * src/SDCCglue.c: maxInterrupts defaults to 0,
7470           (emitMaps): added pdata,
7471           (createInterruptVect): (re)moved default,
7472           (glue): added pdata,
7473           (glue): moved __start__xstack to XSTK with default size 1
7474         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7475           and options.float_rent when options.stackAuto is set,
7476           (linkEdit): only write XDATA_NAME if provided on command line
7477         * src/SDCCmem.h,
7478         * src/SDCCmem.c: added pdata
7479         * src/port.h: added pdata_name to PORT
7480         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7481           (saveRegisters, unsaveRegisters): removed usage of B,
7482           (genMinus): fixed accumulator clash,
7483           (genJumpTab): added comment, this needs another look
7484         * src/mcs51/gen.c: added check for "B in use" paranoia,
7485           added pushB() and popB()
7486         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7487           chance
7488         * src/avr/main.c,
7489         * src/ds390/main.c,
7490         * src/hc08/main.c,
7491         * src/mcs51/main.c,
7492         * src/pic/main.c,
7493         * src/pic16/main.c,
7494         * src/xa51/main.c,
7495         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7496           added PSEG (PAG,XDATA) or NULL to port specifier
7497         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7498         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7499           (_mcs51_genInitStartup): removed __start__xstack equ,
7500           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7501         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7502         * src/z80/gen.c (_rleAppend): fixed warnings
7503         * support/regression/tests/zeropad.c: added pdata test
7504         * .version: bumped to 2.4.6
7505
7506 2004-10-17 Borut Razem <borut.razem AT siol.net>
7507
7508         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7509         as a part of nightly build
7510
7511 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7512
7513         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7514         WREG holds the first byte function parameters,
7515         * (aopForSym): take special case for symbols which are in FARSPACE
7516         but in CODESPACE too,
7517         * (assignResultValue): modified to take into account _G.useWreg,
7518         * (genCall): don't use wreg for parameter passing when function is
7519         declared as reentrant, too, added optimization INCF to stack
7520         pointer when stack parameter count is 1,
7521         * (genFunction, genEndFunction): refurnished and fixed to not using
7522         wreg for passing parameters when function has varargs or is
7523         reentrant, fixed bug with symbol name compare for generating
7524         functions in absolute address,
7525         * (pic16_storeForReturn): refurnished,
7526         * (genCmp): began writing a new version of the function, not ready
7527         yet, therefore it is disabled,
7528         * (genAssign): do not read code memory when assigning a function to
7529         a pointer function,
7530         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7531         array of characters, not pointer,
7532         * (pic16initialComments): in debug mode emit an .ident directive for
7533         the assembler,
7534         * (_process_pragma): emit a new warning type (internal to pic16)
7535         when setting stack to default length, emit a similar warning when
7536         placing a function at absolute address and address is not word aligned
7537         * (_pic16_parseOptions): added 'return TRUE' statement,
7538         * (_pic16_linkEdit): if compiling a source, then add the source's
7539         file object, first in the list of objects to link,
7540
7541 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7542
7543         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7544         * src/pic/main.c : removed VC warning.
7545         * src/pic/gen.c : changed comment.
7546
7547 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7548
7549         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7550         reference to a deprecated symbol _GPTRREG was causing failure to
7551         link. Thanks G. M. Gallant for the info.
7552
7553 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7554
7555         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7556         comments for Bugs item #954788.
7557
7558 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7559
7560         * src/pic16/device.c (pic16_dump_gsection,
7561         * pic16_groupRegistersInSection): handle symbols declared to be in
7562         access bank differently,
7563         * src/pic16/gen.c (struct _G): added field resDirect,
7564         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7565         send values read from stack directly to result and don't allocate
7566         temporary values,
7567         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7568         same registers,
7569         * (pic16_sameRegsOfs): NEW,
7570         * (freeAsmop): if _G.resDirect is set then do not mark registers as
7571         free because they were not allocated from temporary pool,
7572         * pic16_popRegFromString): workaround to fix a problem with
7573         allocating variables twice or never,
7574         * (genGenPointerGet): using PRODL instead of FSR0H,
7575         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7576         instead of FSR0H,
7577         * (genAssign): take advantage of the _G.resDirect flag,
7578         * (genCast): around line 11844, use mov2f instead of directly
7579         MOVFF'ing between operands to account for literal values,
7580         * src/pic16/genutils.c: some new debug functions for gpsim have been
7581         added,
7582         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7583         float with integer part only,
7584         * src/pic16/main.c (_process_pragma): handle pragma udata access to
7585         place variables in access bank
7586         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7587         updated sources to reflect recent changes in gen.c
7588
7589 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7590
7591         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7592         sources that searched for headers in installation path, now the
7593         device/include/pic16 is used,
7594         * src/pic16/glue.c (pic16glue),
7595         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7596         .line directives if not in debug mode, this suppresses assembler's
7597         warnings for ignored directives
7598
7599 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7600
7601         * src/port.h: made reset_regparms prototype void parameter explicit.
7602         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7603         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7604         * doc/sdccman.lyx: documented warning disabling and how to use
7605           printf_large to make it print floats.
7606         * device/include/stdbool.h: NEW
7607         * device/lib/_atof.c,
7608         * device/lib/_divuint.c,
7609         * device/lib/_divulong.c,
7610         * device/lib/expf.c,
7611         * device/lib/printf_large.c,
7612         * device/lib/sincosf.c,
7613         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7614         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7615           a completely reentrant lib.
7616
7617 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7618
7619         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7620         * device/include/pic16/stdio.h: fixed bug with colon
7621
7622 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7623
7624         * device/include/pic16/stdio.h,
7625         * device/include/pic16/stdlib.h,
7626         * device/include/pic16/math.h: NEW
7627         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7628         declared as _naked to reduce overhead
7629         * device/lib/Makefile.in (target port-specific-objects-pic16):
7630         changed * to *.* so to ignore the CVS directory,
7631         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7632         stacked variables back in stack,
7633         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7634         corruption
7635
7636 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7637
7638         * .version: bumped version number to 2.4.5
7639         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7640         * support/Util/SDCCerr.c (messages structure): added entry for
7641         W_POSSBUG2
7642
7643         Large cumulative patch for pic16 port and libraries.
7644         * device/include/pic16/sdcc-lib.h,
7645         * device/include/pic16/stdarg.h,
7646         * device/include/asm/pic16/features.h,
7647         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7648         * device/include/pic16/float.h: changes reentrant keyword with
7649         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7650         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7651         updated target build-libraries to include objects from gptr,
7652         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7653         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7654         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7655         all function headings,
7656         * src/SDCCmain.c: added global parameter userIncDirsSet,
7657         * (parseCmdLine): when option -I is encountered add directory to
7658         userIncDirsSet too,
7659         * src/version.awk: added space between control and long,
7660         * src/pic16/NOTES: added some notes for the port,
7661         * src/pic16/gen.c: added prototype for mov2fp function,
7662         * (fReturnpic16[]): properly named return value registers,
7663         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7664         * (aopForSym): added code to handle symbols with onStack flag set,
7665         symbols onStack are allocated PTRSIZE bytes,
7666         * (aopFreeAsmop): handles special case where asmops are stack objects,
7667         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7668         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7669         added argument lock to trace flaws in allocating temporary registers
7670         when developing port,
7671         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7672         * (pic16_popRegFromString): reenabled allocating a direct register
7673         from string,
7674         * (assignResultValue): various beautifications,
7675         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7676         referenced function argument,
7677         * (genIpush): reenabled to allow stacked arguments, handles only
7678         ic->parmPush iCodes,
7679         * (genCall, genPcall): major changes to allow for variable argument
7680         functions, fixed a bug with falsely restoring stack pointer after
7681         returning from call,
7682         * (genFunction): pending code for critical function,
7683         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7684         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7685         * (genNearPointerGet): fixed bug with indirect reading, was always
7686         reading from INDF0
7687         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7688         pointers,
7689         * (genAddrOf): rewrote code to take address of a stacked function parameter
7690         * (genCast): fixed casting to generic pointer type,
7691         * src/pic16/gen.h: added AOP_STA,
7692         * (struct asmop): added field stk,
7693         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7694         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7695         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7696         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7697         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7698         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7699         generic pointers,
7700         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7701         and library paths,
7702         * (pic16_port structure): generic pointer size is set to 3,
7703         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7704         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7705         compiler warning,
7706         * src/pic16/ralloc.c (allocReg): prevent allocating register when
7707         operand is an iTemp,
7708
7709 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7710
7711         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7712         * debugger/mcs51/simi.c: addapt new syntax of s51
7713
7714 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7715
7716         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7717         * src/pic16/pcode.c: commented out some calls to free() in order to
7718         fix bug #989576,
7719
7720 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7721
7722         * src/SDCCicode.h,
7723         * src/SDCCicode.c (isiCodeInFunctionCall),
7724         * src/avr/ralloc.c (selectSpil),
7725         * src/pic/ralloc.c (selectSpil),
7726         * src/pic16/ralloc.c (selectSpil),
7727         * src/ds390/ralloc.c (selectSpil),
7728         * src/hc08/ralloc.c (selectSpil),
7729         * src/xa51/ralloc.c (selectSpil),
7730         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7731         stack in the middle of a function call sequence (fixes bug #1020268)
7732         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7733         costs associated with the minimum switch case.
7734
7735 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7736
7737         * src/SDCC.lex: fixed bug #1030549
7738
7739 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7740
7741         * src/SDCCcse.h (struct cseDef),
7742         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7743         over a function call if the CSE is derived from a symbol whose
7744         address has been taken (fixes bug #1029883)
7745         * support/regression/tests/bug-1029883: a new regression test for
7746         this bug
7747
7748 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7749
7750         * src/hc08/gen.c (emitinline): fixed bug #1029778
7751         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7752         to a cast object is no longer a syntax error ("fixes" bug #1030006,
7753         and starts toward RFE #905167)
7754
7755 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7756
7757         * src/pic16/gen.c (mov2f): New function to move an operand to
7758         another without considering if it is a literal or a register,
7759         * (pic16_sameRegs): don't check if they are both AOP_REG,
7760         * (AccRsh): removed andmask=0 lines,
7761         * (genLeftShift): duplicated to be improved in future versions,
7762         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7763         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7764         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7765         * (pic16initMnemonics): added initialization for POC_INFSNZW,
7766         * (insertBankSwitch): fixed inserting banksel directives algorithm
7767         for instructions that follow a skip instruction, this fixes a report
7768         for broken subtraction code generation,
7769         * src/pic16/ralloc.c (deassignLRs): do not free register if current
7770         iCode is a left op, just in case result and right share the same
7771         registers
7772
7773 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7774
7775         * src/hc08/main.c,
7776         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7777         preservation of HX
7778         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7779         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7780         on 2004-09-12; it was buggy
7781
7782 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7783
7784         * src/SDCCsymt.h: removed RESULT_CHECK
7785         * src/SDCCast.c,
7786         * src/SDCCglue.c,
7787         * src/SDCCval.c,
7788         * src/pic/glue.c,
7789         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7790
7791 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7792
7793         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7794         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7795         configuration values no more rejected by compiler, they are assigned
7796         to configuration registers with a warning message instead,
7797         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
7798         the for-loop so last conf register is emitted too,
7799         * (_pic16_initPaths): link library libsdcc.lib by default,
7800         * (_hasNativeMulFor): modified test for multiplication according to
7801         Raphael Neider's remarks. Integer multiplication is also done with
7802         support functions,
7803         * device/include/pic16/pic18fregs.h: corrected type error in while
7804         testing and including 18f6720 header file
7805
7806 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
7807
7808         * src/pic16/device.h (pic16_options): removed field use_crt,
7809         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
7810         until an optimization to handle single bits is added,
7811         * (pic16_loadFSR0): moved before genUnpackBits,
7812         * (genAnd): some white lines removed,
7813         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
7814         leave_reset flags in pic16_options when using crt modules,
7815
7816 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
7817
7818         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
7819           for bugs 898889 & 979599. Also used some safer print instructions.
7820
7821 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
7822
7823         * src/pic16/device.h (pic16_options_t): added field use_crt,
7824         crt_name, no_crt,
7825         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
7826         catch a probable future bug,
7827         * src/pic16/gen.c: aopIdx function commented out,
7828         * (genAssign): commented out old code which used aopIdx,
7829         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
7830         code, added if conditionals to take into account the --use-crt
7831         command line options,
7832         * src/pic16/main.c (pic16_optionsTable): added new command line
7833         options, --use-crt= and --no-crt,
7834         * (_pic16_linkEdit): now the proper crt object is added in the
7835         linker command line except than when --no-crt is specified,
7836         * src/pic16/pcode.c,
7837         * src/pic16/pcode.h: added some structures and functions for a new
7838         optimization scheme to compansate for instruction overhead between
7839         same iCodes, this scheme is currently under development and is not
7840         working in any way,
7841         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
7842         to && operator,
7843         * device/lib/pic16/startup/crt0i.c,
7844         * device/lib/pic16/startup/crt0iz.c: added global char variable
7845         __uflags to force the generation of an idata section
7846
7847 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
7848
7849         * doc/Makefile,
7850         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
7851         * doc/sdccman.lyx: updated sdcc version to 2.4.4
7852
7853 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7854
7855         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
7856         Frieder) and clarified the default code optimization mode
7857
7858 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7859
7860         * src/SDCC.lex (doPragma, process_pragma),
7861         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
7862         "opt_code_size", and "opt_code_balanced"
7863         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
7864         regrouped options by category, added support for category headers
7865         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
7866         and "--opt-code-size"
7867         * doc/sdccman.lyx: documented these new options and pragmas
7868         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
7869         preference into account
7870
7871 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7872
7873         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
7874           geniCodePreDec): Fixed bug 904237 by generating a warning
7875         * src/SDCCerr.h,
7876         * src/SDCCerr.c: added warning W_SIZEOF_VOID
7877
7878 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
7879
7880         * src/pic/device.c : When no max ram set validate full memory range.
7881         * src/pic/pcode.c,
7882         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
7883
7884 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7885
7886         * device/lib/_gptrget.c,
7887         * device/lib/_gptrput.c: updated comment
7888         * device/lib/calloc.c,
7889         * device/lib/free.c,
7890         * device/lib/malloc.c,
7891         * device/lib/realloc.c: added LGPL, made them reentrant-safe
7892         * src/SDCCcse.c (cseBBlock),
7893         * src/SDCCicode.c (printOperand, geniCodeArray),
7894         * src/SDCCicode.h (struct operand): fixed bug 868103
7895         * support/regression/tests/bug-868103.c: added
7896         * src/SDCCast.c (searchLitOp),
7897         * src/SDCCcse.h (struct cseDef),
7898         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
7899         * src/SDCCicode.h (struct operand),
7900         * src/SDCCsymt.h (struct sym_link),
7901         * src/avr/gen.c (hasInc),
7902         * src/ds390/gen.c (hasInc),
7903         * src/hc08/gen.c (genPlusIncr, hasInc),
7904         * src/mcs51/gen.c (hasInc),
7905         * src/pic16/glue.c (pic16_printIvalChar),
7906         * src/pic16/ralloc.c (regWithIdx),
7907         * src/xa51/gen.c (hasInc) : removed warnings
7908         * src/SDCCast.c (createBlock): added comment ???
7909         * src/hc08/ralloc.c: updated comments
7910
7911 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7912
7913         * doc/sdccman.lyx: updated section on switch statements, added
7914         section about semaphore locking
7915         * doc/Makefile: added option -info for latex2html
7916         * device/lib/_gptrget.c,
7917         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
7918
7919 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7920
7921         * src/pic/device.h,
7922         * src/pic/device.c,
7923         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
7924          maxram is less than 0x100.
7925
7926 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7927
7928         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
7929
7930 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7931
7932         * src/port.h,
7933         * src/mcs51/main.c,
7934         * src/ds390/main.c,
7935         * src/z80/main.c,
7936         * src/hc08/main.c,
7937         * src/pic/main.c,
7938         * src/pic16/main.c,
7939         * src/avr/main.c,
7940         * src/xa51/main.c
7941         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
7942         a jump table is the best form for a switch statement, including
7943         automatic insertion of missing cases to make the case range
7944         continuous. Developed in collaboration with Frieder Ferlemann.
7945
7946 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7947
7948         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
7949         accumulator result if it needs sign extension
7950
7951 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7952
7953         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
7954
7955 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7956
7957         * device/lib/gbz80/printf.c,
7958         * device/lib/z80/printf.c: removed define for NULL
7959
7960 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7961
7962         * as/xa51/xa_link.c,
7963         * device/examples/ds390/ow390/ad26.c,
7964         * device/examples/ds390/ow390/cnt1d.c,
7965         * device/examples/ds390/ow390/counter.c,
7966         * device/examples/ds390/ow390/ds2480.h,
7967         * device/examples/ds390/ow390/ds2480ut.c,
7968         * device/examples/ds390/ow390/findtype.c,
7969         * device/examples/ds390/ow390/gethumd.c,
7970         * device/examples/ds390/ow390/owllu.c,
7971         * device/examples/ds390/ow390/ownetu.c,
7972         * device/examples/ds390/ow390/swt12.c,
7973         * device/examples/ds390/ow390/swtloop.c,
7974         * device/examples/ds390/ow390/temp.c,
7975         * device/examples/ds390/ow390/temp10.c,
7976         * device/examples/ds390/ow390/thermo21.c,
7977         * device/examples/ds390/ow390/tinilnk.c,
7978         * device/examples/ds390/ow390/tstfind.c,
7979         * device/examples/serialcomm/windows/serial.cpp,
7980         * device/examples/serialcomm/windows/test_serialcomm.cpp,
7981         * device/include/reg51.h: fixed line endings for cvs
7982
7983 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7984
7985         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
7986         packRegsForAccUse, packRegisters): new accumulator register
7987         packing algorithm
7988         * support/regression/ports/hc08/support.c (_putchar): suppress
7989         warning of unused variable
7990         * src/SDCCicode.c: added SWAP entry to codeTable
7991
7992 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
7993
7994         * device/lib/sprintf.c: forgot to add this file before previous commit
7995
7996 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
7997
7998         * src/pic16/gen.c (genPackBits): added operand right in function
7999         parameters, load result directly if p_type is POINTER (that is
8000         called by genNearPointerSet)
8001         * (genUnPackBits): added operand left in function parameters,
8002         * (genNearPointerGet, genNearPointerSet): prevent the loading of
8003         FSR0 if accessing bitfields,
8004
8005 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
8006
8007         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
8008           _print_format; updated printf, sprintf, vsprintf
8009         * device/include/asm/default/features.h: corrected comment/define
8010         * device/lib/Makefile.in: added sprintf.c
8011         * device/lib/libsdcc.lib: added sprintf module
8012         * device/lib/printf_large.c,
8013         * device/lib/vprintf.c,
8014         * device/lib/sprintf.c: totally refactored printf_large and vprintf
8015           into these 3 files
8016         * support/regression/Makefile: changed ALL_PORTS into a usefull default
8017         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
8018         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
8019           hc08 test
8020         * support/regression/tests/zeropad.c: define idata as data for hc08
8021
8022 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8023
8024         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
8025         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
8026         labels are referenced at least once (even if a reference is not found)
8027         * src/hc08/gen.c (emitcode): set isComment flag for comments
8028         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
8029         loads), rules 6a..6b (optimize jumps to return)
8030
8031 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8032
8033         * device/lib/acosf.c (acosf),
8034         * device/lib/asinf.c (asinf),
8035         * device/lib/atanf.c (atanf),
8036         * device/lib/ceilf.c (ceilf),
8037         * device/lib/cosf.c (cosf),
8038         * device/lib/coshf.c (coshf),
8039         * device/lib/cotf.c (cotf),
8040         * device/lib/fabsf.c (fabsf),
8041         * device/lib/floorf.c (floorf),
8042         * device/lib/log10f.c (log10f),
8043         * device/lib/logf.c (logf),
8044         * device/lib/sinf.c (sinf),
8045         * device/lib/sinhf.c (sinhf),
8046         * device/lib/sqrtf.c (sqrtf),
8047         * device/lib/tanf.c (tanf),
8048         * device/lib/tanhf.c (tanhf),
8049         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
8050         replaced all instances of "reentrant" in the library functions
8051         defined in math.h with this macro.
8052         * support/regression/tests/float_trans.c: reenabled test for hc08
8053
8054 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
8055
8056         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
8057         erroneously deleted
8058
8059 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8060
8061         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
8062         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
8063         multi-byte volatile operands are used
8064         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
8065         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
8066         initialization to area GSINIT0 so that it would always precede
8067         any static initializers in GSINIT
8068         * support/regression/tests/zeropad.c: fixed idata define for hc08
8069         * support/regression/tests/bug-927659.c,
8070         * support/regression/tests/float_trans.c: disabled tests for hc08
8071         pending missing library routines
8072         * .version: increased version number to 2.4.4 - hc08 port now passes
8073         regression tests
8074
8075
8076 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
8077
8078         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
8079         * Makefile.common.in,
8080         * as/Makefile,
8081         * as/hc08/Makefile.in,
8082         * as/mcs51/Makefile.in,
8083         * as/z80/Makefile.in,
8084         * debugger/mcs51/Makefile.in,
8085         * device/include/Makefile.in,
8086         * device/lib/Makefile.in,
8087         * doc/Makefile,
8088         * link/Makefile,
8089         * link/z80/Makefile.in,
8090         * packihx/Makefile.in,
8091         * sim/ucsim/main_in.mk,
8092         * sim/ucsim/avr.src/Makefile.in,
8093         * sim/ucsim/doc/Makefile.in,
8094         * sim/ucsim/gui.src/serio.src/Makefile.in,
8095         * sim/ucsim/hc08.src/Makefile.in,
8096         * sim/ucsim/s51.src/Makefile.in,
8097         * sim/ucsim/xa.src/Makefile.in,
8098         * sim/ucsim/z80.src/Makefile.in,
8099         * src/Makefile.in,
8100         * support/cpp2/Makefile.in,
8101         * support/librarian/Makefile,
8102         * support/makebin/Makefile: added DESTDIR to the install path proposed
8103         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
8104         * doc/sdccman.lyx: added DESTDIR documentation
8105
8106 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8107
8108         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8109         instruction for interrupt handlers, use fast returns when returning
8110         from high priority interrupts
8111
8112 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8113
8114         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8115         code generation
8116         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8117         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8118         bugs, ported much of Bernhard's code from mcs51
8119         * src/mcs51/gen.c (genSend),
8120         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8121         than one when calling a reentrant function
8122         * device/lib/_mullong.c: defined an alternate struct layout for big
8123         endian ports (hc08)
8124
8125 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8126
8127         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8128         test
8129
8130 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8131
8132         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8133         are sane and complete before asking the port its prefered parameter
8134         passing method (fixes bug #1017633)
8135         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8136         and _ret3
8137
8138 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8139
8140         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8141         problem in bitfields >= 8 bits.
8142
8143 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8144
8145         * src/SDCCsymt.c: undid changes that were not meant to be committed
8146
8147 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8148
8149         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8150
8151 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8152
8153         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8154           copied and wrong bit got inverted
8155
8156 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8157
8158         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8159         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8160         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8161         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8162         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8163         assignments to bitfields at known addresses
8164         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8165         reads from bitfields at known addresses
8166         * src/hc08/ralloc.c (packRegisters),
8167         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8168         genhc08Code): optimize pointer get values used as conditionals
8169         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8170         and branch
8171
8172 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8173
8174         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8175         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8176         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8177         as conditionals
8178
8179 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8180
8181         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8182
8183 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8184
8185         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8186         related problems
8187
8188 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8189
8190         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8191
8192 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8193
8194         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8195         mcs51 port
8196
8197 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8198
8199         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8200
8201 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8202
8203         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8204         cases use more compact code.
8205
8206 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8207
8208         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8209
8210 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8211
8212         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8213
8214 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8215
8216         * src/SDCCsymt.h,
8217         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8218         parameter of changePointer() from symbol* to sym_link*
8219         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8220         * src/SDCCsymt.c (compareType): void* type is castable to other
8221         pointers, but not necesarily an exact match.
8222         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8223         is no longer blindly treated as an exact match.
8224         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8225
8226 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8227
8228         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8229
8230 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8231
8232         * src/pic/gen.c,
8233         * src/pic/pcode.c,
8234         * src/pic/ralloc.h,
8235         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8236
8237 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8238
8239         * src/pic/device.c,
8240         * src/pic/device.h,
8241         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8242
8243 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8244
8245         * src/mcs51/gen.c (emitcode): fixed bug #992819
8246
8247 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8248
8249         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8250           there's no need to make it worse
8251
8252 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8253
8254         * src/mcs51/ralloc.c (deassignLR),
8255         * src/ds390/ralloc.c (deassignLR),
8256         * src/hc08/ralloc.c (deassignLR),
8257         * src/z80/ralloc.c (deassignLR),
8258         * src/pic/ralloc.c (deassignLR),
8259         * src/pic16/ralloc.c (deassignLR),
8260         * src/avr/ralloc.c (deassignLR),
8261         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8262         rlivePoint): fixed another part of bug #971834
8263
8264 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8265
8266         * src/z80/main.c: enabled "critical" keyword
8267         * src/z80/mappings.i,
8268         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8269         functions (fixes bug #979646)
8270         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8271
8272 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8273
8274         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8275           such as c:\mydir.
8276
8277 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8278
8279         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8280           doesn't disable too much optimizations
8281
8282 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8283
8284         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8285
8286 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8287
8288         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8289
8290 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8291
8292         * src/pic/gen.c tidied up tabs
8293         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8294         * src/pic/main.c tidied up tabs
8295         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8296         * src/pic/pcoderegs.c tidied up tabs
8297         * src/pic/ralloc.c tidied up tabs
8298
8299 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8300
8301         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8302         to S_FIXED for pic16 port and when symbol is not in level 0,
8303         allocate for S_REGISTER storage class and pic16 port, too,
8304         * src/pic16/device.h: prototype for checkSym,
8305         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8306         * (pic16_assignConfigWordValue): test the value and the mask to
8307         validate that the value is suitable for the configuration word,
8308         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8309         collect extern declared symbols, don't emit symbol twice, check
8310         first if symbol is in publics set first,
8311         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8312         * added command line '--fstack' which enables an experimental
8313         feature for stack access, too buggy to be used yet...
8314         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8315         * (pic16_allocDirReg): when register has storage class S_REGISTER
8316         allocate in pic16_dynAccessRegs,
8317         * device/include/pic16/pic18f????.h: modified configuration word
8318         naming convention, words started as CONFIG0H but should be CONFIG1H
8319
8320 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8321
8322         * device/include/mcs51reg.h: fixed bug 970993
8323
8324 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8325
8326         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8327         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8328         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8329         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8330         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8331         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8332           error/warning numbers,
8333           added function setWarningDisabled()
8334         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8335         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8336           _memcmp.c _memmove.c calloc.c realloc.c free.c
8337         * support/regression/tests/malloc.c: added tests for new functionality
8338         * support/regression/tests/zeropad.c: added tests for truncated initializers
8339           and initialized char arrays starting with '\x0'
8340         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8341
8342 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8343
8344         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8345
8346 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8347
8348         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8349         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8350         peephole 177.e. Thanks to anonymous
8351
8352 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8353
8354         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8355         function isn't used in the source but referenced as a
8356         variable initializer then declare it as extern in .asm file
8357
8358 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8359
8360         * .version: increased version number to 2.4.3
8361
8362         Adding version extension according to ChangeLog CVS revision
8363         * src/Makefile.in (target all): added dependency 'version.h'
8364         * (rule version.h): added rule to create version.h from ChangeLog,
8365         * (rule dep): added dependency version.h,
8366         * src/version.awk: AWK script to create version.h
8367         * src/SDCCdwarf2.c (dwWriteModule),
8368         * src/SDCCglue.c (initialComments),
8369         * src/SDCCmain.c (printVersionInfo): modified to write after
8370         version string the version extension number,
8371         * src/SDCCutil.c: included "version.h"
8372         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8373         number,
8374         * src/SDCCutil.h: added prototype for getBuildNumber
8375
8376         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8377         includeDirsSet, too,
8378         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8379         const char [] is found in function prototype...
8380
8381         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8382         moving to WREG with source is already in WREG,
8383         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8384         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8385         * (aopForSym): stack'ed symbols are partially supported, added
8386         if-clause to support symbols in FARSPACE,
8387         * (sameRegs): added test for AOP_ACC to see if registers are same,
8388         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8389         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8390         * (pic16_popRegFromString): will not allocate a new register if it
8391         doesn't find one by name, bug may have introduced...
8392         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8393         * (genIpush): revived to use pic16 port's stack,
8394         * (genAddrOf): added incomplete case for stack'ed operand,
8395         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8396         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8397         can handle multibyte operands,
8398         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8399         * (pic16initialComments): added message for MPLAB compatibility
8400         mode enabled,
8401         * src/pic16/main.h: prototype for pic16_mplab_comp,
8402         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8403         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8404         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8405         because of increased complexity of procedure,
8406         * (_process_pragma): stack pragma changed to format 'stack pos len',
8407         emit symbol '_stack_end' to conform with gplink,
8408         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8409         to search for register,
8410         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8411         PO_GPR_REGISTER,
8412         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8413         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8414         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8415         case for PO_GPR_REGISTER,
8416         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8417         dies, the new era is ahead !...
8418         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8419         pic16_dynInternalRegs,
8420         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8421         * (pic16_allocDirReg): minor optimizations and bug fixes,
8422         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8423
8424         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8425         load stack and frame pointer with address of 'stack_end' symbol
8426
8427 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8428
8429         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8430         without source code but only variable initializers
8431
8432 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8433
8434         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8435         external are not declared as extern to reduce overhead while linking
8436
8437 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8438
8439         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8440
8441 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8442
8443         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8444           Yee Keat for the patch
8445         * src/SDCCast.c (decorateType): fixed bug #979599
8446         * src/ds390/gen.h: removed local fReturnSizeDS390
8447         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8448         * src/ds390/gen.c (genAnd, genOr, genXor),
8449         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8450
8451 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8452
8453         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8454         add relFilesSet to $3, manipulate $2 to handle linking of object
8455         files without source files in command line,
8456         * device/include/pic16 (all headers): added ID location macros,
8457         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8458         entries for ID location bytes,
8459         * (pic16_assignIdByteValue): NEW,
8460         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8461         added field dumpcalltree to pic16_options_t,
8462         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8463         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8464         emitting rFalseIfx label after check_carry label,
8465         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8466         pic16_emitDIRegs), NEW
8467         * (pic16glue): dump .calltree file when option --calltree found,
8468         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8469         * (_pic16_genAssemblerPreamble): emit ID locations after
8470         configuration registers,
8471         * (pic16_linkCmd): modifications of the link command,
8472         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8473         * (pic16_pCodeInitRegisters): don't init stack registers,
8474         * (pic16_findPrevInstruction): fixed bug,
8475         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8476         bug with immediate registers,
8477         * (buildCallTree): traces stack push and pop,
8478         * (pct2): dump also stack usage for each function,
8479         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8480         * (pic16_allocDirReg): various modifications,
8481         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8482         fixed to 1,
8483
8484 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8485
8486         * src/pic16/pcode.c: removed buggy double colon
8487
8488 2004-07-01 Borut Razem <borut.razem AT siol.net>
8489
8490         * support/scripts/sdcc.nsi: added include/pic16 to setup
8491
8492 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8493
8494         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8495         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8496         target 'clean',
8497         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8498         specific command line arguments. Also added sample lkr script
8499         for placing a variable at a specific memory bank.
8500         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8501         at a specific memory bank,
8502         * (pic16_dump_isection): fixed bug which caused string literals to
8503         be omitted when dumping idata section,
8504         * (pic16_groupRegistersInSection): added code to handle registers
8505         in specific memory banks,
8506         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8507         public, all references are renamed too,
8508         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8509         AOP_DPTR2,
8510         * (pic16_storeForReturn): added case to handle when dest is WREG,
8511         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8512         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8513         pic16_rel_udata, check to see if that register is marked as being
8514         a member of a specific memory bank,
8515         * (pic16_printIvalCharPtr): added code to add string literals either
8516         to code or the idata sections,
8517         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8518         also accept the 'udata' pragma,
8519         * src/pic16/main.h: new structure types sectName and sectSym
8520         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8521         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8522         * (pic16_findPrevInstruction): fixed, it returned nothing,
8523         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8524         instruction combinations,
8525         * (pic16_FixRegisterBanking): heavily reorganised,
8526         * (pic16_AnalyzeBanking): if generating banksel directives is
8527         disabled, then don't call FixRegisterBanking at all,
8528         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8529         completely removed,
8530         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8531
8532 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8533
8534         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8535         Phuah Yee Keat <yk.phuah AT nestac.com>
8536
8537 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8538
8539         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8540         correctly the IVT even if it is relocated to some other location
8541
8542 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8543
8544         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8545         * device/include/pic16/pic18f2220.h: NEW,
8546         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8547         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8548         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8549         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8550         nodefaultlibs, ivt_loc is the location of the interrupt vector
8551         table, and nodefaultlibs signs that default libraries should not be
8552         linked in link stage,
8553         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8554         according to --ivt-loc argument,
8555         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8556         when pragma stack is found,
8557
8558 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8559
8560         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8561         256 (range check), 257 (do while), 258.a-f (bit banging
8562         f.e. on 3-wire SPI bus)
8563
8564 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8565
8566         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8567         variables used exclusively within a loop
8568
8569 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8570
8571         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8572
8573 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8574
8575         * src/SDCClrange.c (computeClash): fixed bug #971834
8576
8577 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8578
8579         * src/mcs51/gen.c (genCmp): fixed bug #975903
8580         * src/hc08/gen.c (operandsEqu),
8581         * src/ds390/gen.c (operandsEqu),
8582         * src/z80/gen.c (operandsEqu),
8583         * src/pic/gen.c (operandsEqu),
8584         * src/pic16/gen.c (operandsEqu),
8585         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8586         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8587
8588 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8589
8590         * src/SDCCcse.c (cseBBlock): fixed bug #966963
8591
8592 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8593
8594         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8595         default case in switch statement,
8596         * glue.c (pic16_initPointer): expr is initialised via decoarteType
8597         to eliminate problem with initialisation of pointers, but problem
8598         still exists,
8599         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8600         * (emitStaticSegment): removed various lines emitting debug info,
8601         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8602         added processor registers for utilizing EEPROM,
8603         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8604         configurable and set 8
8605
8606 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8607
8608         * .version: increased version number to 2.4.2,
8609
8610         Cumulative patch for pic16 port
8611         * src/pic16/device.c: changed scheme to dump initial values for
8612         variables in idata segment, all print_idata* functions were removed,
8613         now the pic16_printIval* will be called,
8614         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8615         * _pic16_printPointerType, pic16_printPointerType,
8616         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8617         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8618         NEW, similar to the respective functions in SDCCglue.c,
8619         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8620         way, emitting hex bytes,
8621         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8622
8623 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8624
8625         * src/avr/ralloc.c (serialRegAssign),
8626         * src/xa51/ralloc.c (serialRegAssign),
8627         * src/pic/ralloc.c (serialRegAssign),
8628         * src/pic16/ralloc.c (serialRegAssign),
8629         * src/hc08/ralloc.c (serialRegAssign),
8630         * src/z80/ralloc.c (serialRegAssign),
8631         * src/ds390/ralloc.c (serialRegAssign),
8632         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8633
8634 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8635
8636         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8637         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8638
8639 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8640
8641         Cumulative patch for pic16 port:
8642         * src/pic16/device.h (typedef PIC16_device) modified fields for
8643         defining microcontrollers,
8644         * src/pic16/device.c: added new info for all devices in Pics16 array,
8645         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8646         to be optimised out by the pCode optimiser,
8647         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8648         specially, bug reported by G.M. Gallant,
8649         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8650         as force'd so that cannot be optimised out by pCode optimiser,
8651         * src/pic16/pcode.c,
8652         * src/pic16/pcodepeeph.c,
8653         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8654         they are disabled by default, but can be enabled explicit with
8655         command argument --denable-peeps, for testing,
8656         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8657         --pomit-ivt in COMPILE_FLAGS
8658
8659 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8660
8661         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8662           compilation on MSVC
8663
8664 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8665
8666         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8667
8668 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8669
8670         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8671         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8672
8673 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8674
8675         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8676         would only assign 0x300001 register.
8677
8678 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8679
8680         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8681         in COMPILE_FLAGS. Thanks to G. Gallant for report.
8682
8683 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8684
8685         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8686         for ds80c400
8687         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8688         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8689         added peephole 254 (left shift), 255 (jump table)
8690
8691 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8692
8693         * device/lib/Makefile.in: removed comment line with model-pic16,
8694         * (target port-specific-objects-pic16): the libraries and objects
8695         are copied to the build directory form the device/lib/pic16/bin
8696         directory
8697
8698         Cumulative patch concerning pic16 port:
8699         * library directory has been re-organized,
8700         * added support for PIC18F1220,
8701         * added headers and library sources for chips 18f1220,18f6520,
8702         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8703
8704         * configuration registers setting has changed, now each supported
8705         device has a complete description of the registers it uses,
8706         * all initialisations are moved to idata sections, these section
8707         can be absolute or relocatable,
8708         * fixed initialisation of codespace variables,
8709         * fixed warning about PCLATU and gpsim,
8710         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8711         * (genAssign): use table reads when assigning from variables in codespace,
8712         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8713         char/int variables placed in codespace,
8714         * (pic16_emitConfigRegs): NEW, emits a list with configuration
8715         registers set in .asm file, no need for --pomit-config-words anymore,
8716         * (pic16glue): some 8051 legacy segments are commented out
8717         (to be removed completely),
8718         * added support for alternative assembler and linker with --asm=
8719         and --link= command line arguments,
8720         * peepholes are disabled automatically in the port, no need to
8721         specify on command line,
8722         * port supports natively char/int/long multiplication, but converts
8723         all divisions to support functions,
8724         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8725         to the file set in variable $2,
8726         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8727         strings in ASCII format and not in hex,
8728         * ralloc.c (serialRegAssign): added a triplet of conditional calls
8729         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8730         allocate proper register if iCodes aren't temporary,
8731
8732 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8733
8734         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8735
8736 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8737
8738         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8739         is commented out
8740
8741 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8742
8743         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8744         computed address is reused
8745         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8746         multi-byte bitfields
8747
8748 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8749
8750         * src/z80/gen.c: (genArrayInit): must check for pointers too
8751
8752 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8753
8754         * support/regression/tests/zeropad.c: never meant to commit the
8755           nestedstruct test: removed, added check for GCC version
8756
8757 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8758
8759         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8760         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8761         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8762           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8763           bugs 928906 and 954082 half-empty initializers
8764         * src/SDCCsymt.h,
8765         * src/SDCCsymt.c (getAllocSize): added for above fix
8766         * src/z80/gen.c (genArrayInit): fixed bug 741044
8767         * support/regression/tests/zeropad.c: added tests
8768
8769 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8770
8771         * src/pic16/device.c (pic16_dump_section): corrected bug which
8772         caused some symbols of the libraries to be misplaced
8773
8774 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8775
8776         * src/pic16/glue.c,
8777         * src/pic16/ralloc.h,
8778         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8779         to fix conflict with pic port
8780
8781 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8782
8783         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8784         externs configuration variables,
8785         * src/pic16/ralloc.h,
8786         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8787         prototype in header, commented out some debug messages
8788
8789 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8790
8791         * src/pic16/glue.c,
8792         * src/pic16/main.c,
8793         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8794         for gpasm COFF object generation. Thanks to D. Hawkins for
8795         his patch info
8796
8797 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8798
8799         * src/ds390/main.c,
8800         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
8801         Brock for spotting this)
8802         * src/ds390/gen.c (genEndFunction),
8803         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
8804         interrupt handler and critical. Disable push/pop optimizations when
8805         peephole optimizations disabled.
8806
8807 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8808
8809         Updated pic16 library sources and headers.
8810         * device/lib/pic16/pic18f*/ ,
8811         * device/include/pic16/*.h: modified to handle structured SFR
8812         definitions
8813
8814 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8815
8816         * src/port.h (PORT structure): added hook initPaths, now each
8817         port can declare its own default search paths,
8818         which can been seen with the --print-search-dirs option,
8819         see pic16 port for example,
8820         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
8821         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
8822         * (doPrintSearchDirs): NEW, replaces in a central manner the
8823         printing of search dirs which was split in set*Paths functions,
8824         * (main): added call to port->initPaths and doPrintSearchDirs,
8825         * src/avr/main.c,
8826         * src/ds390/main.c,
8827         * src/hc08/main.c,
8828         * src/izt/i186.c,
8829         * src/izt/tlcs900h.c,
8830         * src/mcs51/main.c,
8831         * src/pic/main.c,
8832         * src/pic16/main.c: modified port structures to reflect addition of
8833         initPaths hook,
8834
8835         * src/pic16/device.c (regCompare): registers are finally sorted by name,
8836         * (pic16_dump_section): for registers in same address reserve memory once,
8837         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
8838         to no_banksel,
8839         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
8840         result is greater in size than right or left,
8841         * (pic16_genUMult8X8_8): there are some cases where the result can
8842         be 16 bits size, so handle these,
8843         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
8844         * (pic16_outBitC): modified to emit pcodes,
8845         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
8846         or not,
8847         * (genDivOneByte): implemented algorithm to divide 8-bits,
8848         * (genCmp): uncommented goto, but issues still exist,
8849         * (genAnd): fixed a bug with variables >8bits,
8850         * (genPackBits): optimization added that uses BCF/BSF to change a
8851         single bit,
8852         * (genAssign): fixed bug when assigning floating point literals,
8853         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
8854         __sdcc_gsinit_startup label,
8855         * src/pic16/main.c (_pic16_init): removed search directory
8856         initialisations,
8857         * (_pic16_initPaths): NEW, used to initialise search directories,
8858         * (_hasNativeMulFor): support functions for all except char/int
8859         multiplication, and char division,
8860         * (PIC16_port struct): modified entry for native mul support,
8861         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
8862         no_banksel option,
8863         * (buildCallTree): call to register_usage is ifdef'ed out,
8864
8865 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8866
8867         * device/include/string.h: applied Stas Sergeev's patch to make this
8868         header file compatible with the preprocessor -Wundef option
8869         * src/SDCCmain.c (main): abort compilation if preprocessor reports
8870         failure (fixes bug #941458)
8871
8872 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8873
8874         * src/SDCCopt.c (killDeadCode): fixed bug #907733
8875         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
8876         that the variable, not the function, should be static
8877         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
8878         to be consistent with non-literal case
8879
8880 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8881
8882         * src/SDCCast.c (isConformingBody): fixed bug #949967
8883         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
8884         convilong): fixed bug #952086
8885
8886 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8887
8888         * src/SDCCmem.c (allocVariables): fixed bug #955321
8889
8890 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8891
8892         * src/hc08/main.c (_hc08_genAssemblerEnd),
8893         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
8894         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
8895         completely eliminated the use of a temporary file
8896         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
8897         when more than one file linked
8898         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
8899
8900 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8901
8902         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
8903         which fixes bug #543481
8904         * support/regression/tests/bug-751703.c: fixed comments left from a
8905         cut and paste error
8906         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
8907         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
8908         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
8909         scopes
8910         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
8911         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
8912         are now changed to underscores in moduleName
8913
8914 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8915
8916         * as/mcs51/lkmem.c: better fix for bug #954173
8917
8918 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8919         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8920
8921         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
8922         * device/include/c8051f000.h,
8923         * device/include/c8051f120.h,
8924         * device/include/c8051f300.h,
8925         * device/include/c8051f310.h,
8926         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
8927         PWM16) and detab'ed
8928
8929 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8930
8931         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
8932         and mailing lists, doc'ed --no-peep-comments, removed reference
8933         to knoppix (newest version has no LyX/LaTeX), other minor changes
8934         * src/SDCCglue.c (glue): save 2 bytes stack space with
8935         option --main-return. The ljmp could probably be avoided too
8936
8937 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8938
8939         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
8940
8941 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8942
8943         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
8944         * src/SDCCopt.c (isLocalWithoutDef),
8945         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
8946         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
8947         (credit to Maarten Brock for patch #949363, on which this is based)
8948         * support/regression/tests/bug-751703.c: some test cases of extern used
8949         within inner scopes.
8950
8951 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8952
8953         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
8954         SPEC_STRUCT
8955         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
8956         struct definitions
8957         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
8958         dwWriteLabel): fix to create valid debugger symbols even when
8959         the module name has non-alphanumeric symbols in it
8960         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
8961         when a variable's allocation has been optimized away
8962
8963
8964 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8965
8966         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
8967         * src/hc08/main.c,
8968         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
8969         * src/mcs51/main.c,
8970         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
8971         * src/ds390/main.c,
8972         * src/z80/gen.c (z80_emitDebuggerSymbol),
8973         * src/z80/main.c,
8974         * src/pic/gen.c (pic14_emitDebuggerSymbol),
8975         * src/pic/main.c,
8976         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
8977         * src/pic16/main.c,
8978         * src/avr/gen.c (avr_emitDebuggerSymbol),
8979         * src/avr/main.c,
8980         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
8981         * src/xa51/main.c,
8982         * src/SDCCdebug.c (emitDebuggerSymbol),
8983         * src/SDCCdebug.h,
8984         * src/port.h: added a debugger struct to the port struct. Added a
8985         callback for defining debugger symbols
8986
8987         * src/SDCCast.c (createLabel),
8988         * src/SDCC.y (labeled_statement): mark all compiler generated labels
8989         with isitmp = 1
8990         * src/SDCCicode.h,
8991         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
8992         iCode back to the ast for the function
8993
8994         * src/hc08/ralloc.c (hc08_assignRegisters),
8995         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
8996         unneeded fields from the regs struct.
8997         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
8998         pushReg() & pullReg() functions instead of emitcode()
8999
9000         * src/hc08/gen.c (genLabel, genhc08Code),
9001         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
9002
9003         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
9004         debugger hooks
9005
9006         * src/hc08/gen.c (genEndFunction, genhc08Code),
9007         * src/hc08/gen.h,
9008         * src/mcs51/gen.c (genEndFunction, gen51Code),
9009         * src/mcs51/gen.h,
9010         * src/ds390/gen.c (genEndFunction, gen390Code),
9011         * src/ds390/gen.h,
9012         * src/z80/gen.c (genEndFunction, genZ80Code),
9013         * src/z80/gen.h,
9014         * src/z80/z80.h,
9015         * src/pic/gen.c (genEndFunction, genpic14Code),
9016         * src/pic/gen.h,
9017         * src/pic16/gen.c (genEndFunction, genpic16Code),
9018         * src/pic16/gen.h,
9019         * src/avr/gen.c (genEndFunction, genAVRCode),
9020         * src/avr/gen.h,
9021         * src/xa51/gen.c (genEndFunction, genXA51Code),
9022         * src/xa51/gen.h,
9023         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
9024         specific code to cdbFile.c and out of the backend code generators
9025
9026         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
9027         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
9028         starting address is now 0
9029
9030         * as/hc08/asm.h,
9031         * as/hc08/m08pst.c,
9032         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
9033         assembler directive for DWARF support
9034         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
9035
9036         * src/src.dsp,
9037         * src/Makefile.in,
9038         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
9039
9040 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9041
9042         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
9043         and inappropriate peephole optimization in jump tables
9044
9045 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9046
9047         * as/hc08/m08pst.c,
9048         * src/SDCCglue.c: sdccopt works for the hc08 port now
9049
9050 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
9051
9052         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
9053
9054 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9055
9056         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
9057
9058 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9059
9060         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
9061         rules
9062         * src/SDCCmain.c,
9063         * src/SDCCglobl.h,
9064         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
9065         comments from the peephole optimizer replacement rules
9066         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
9067         symbols
9068         * src/SDCCcse.c (updateSpillLocation),
9069         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
9070         equivalents
9071         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
9072         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
9073         objects far pointers
9074
9075 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9076
9077         * src/SDCCsymt.h: a missing part of my last change
9078         * src/pic/ralloc.c (regTypeNum),
9079         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
9080
9081 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9082
9083         * src/SDCCicode.h,
9084         * src/SDCCicode.c (aggrToPtrDclType),
9085         * src/SDCCptropt.h,
9086         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
9087         ptrPseudoSymConvert),
9088         * src/pic/ralloc.c (regTypeNum),
9089         * src/pic16/ralloc.c (regTypeNum),
9090         * src/hc08/ralloc.c (regTypeNum),
9091         * src/ds390/ralloc.c (regTypeNum),
9092         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
9093         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
9094
9095 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9096
9097         * link/z80/lkmain.c (afile),
9098         * as/hc08/lkmain.c (afile),
9099         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
9100         prevent a pointer problem when a filename has no directory and
9101         no extension specified.
9102
9103 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9104
9105         * link/z80/lkmain.c (afile): allow periods in directory names
9106         * link/z80/lkmain.c (afile),
9107         * as/mcs51/lkmain.c (afile),
9108         * as/hc08/lkmain.c (afile): allow linker script file to have an
9109         extension other than ".lnk"
9110         * link/z80/lklex.c (getfid),
9111         * link/z80/lkmain.c (parse),
9112         * as/mcs51/lklex.c (getfid),
9113         * as/mcs51/lkmain.c (parse),
9114         * as/hc08/lklex.c (getfid),
9115         * as/hc08/lkmain.c (parse): Support comments in the linker script
9116         file on lines by themselves and after filenames
9117
9118 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9119
9120         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9121
9122 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9123
9124         * src/z80/peeph-z80.def: removed some peephole rules that don't
9125         work with multibyte arithmetic (fixed bug #937126)
9126         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9127         to registers and not global variables
9128         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9129         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9130         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9131         checking for assignments not internally generated (fixed bug #931895)
9132         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9133         structure member (fixed bug #930072)
9134
9135 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9136
9137         * src/SDCCmain.c (linkEdit),
9138         * src/hc08/main.c (_hc08_parseOptions),
9139         * as/hc08/Makefile.in,
9140         * as/hc08/aslink.h,
9141         * as/hc08/asm.h,
9142         * as/hc08/m08pst.c,
9143         * as/hc08/lkrloc.c (relr, rele),
9144         * as/hc08/lkarea.c (lnkarea)
9145         * as/hc08/lkmain.c (afile, parse),
9146         * as/hc08/lkelf.c: support for ELF output
9147         * as/hc08/lks19.c (s19),
9148         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9149
9150 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9151
9152         * as/mcs51/lkihx.c: Fixed bug #899105.
9153
9154 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9155
9156         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9157         .dsp files from Unix to DOS.
9158
9159 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9160
9161         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9162         function pointers; we have been compliant for several months now.
9163         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9164         change that was accidently commented out
9165         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9166         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9167         bug #922319
9168
9169 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9170
9171         * src/hc08/gen.c: output of all of the internal debugging information
9172         is now controlled by the D() macro; it is disabled by default
9173
9174 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9175
9176         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9177         harder to keep the same registers during a CAST iCode
9178         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9179         long via int can be done in a single cast, if the signedness is
9180         correct.
9181         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9182         putchar() in tinibios.c in ds390's library
9183
9184 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9185
9186         * src/SDCCast.c (decorateType): fixed bug #898889,
9187         cast result of a literal complement too
9188         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9189         fixed check for bitfields
9190
9191 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9192
9193         * src/SDCCicode.c (geniCodeLogic): made it static,
9194         (geniCodeLogicAndOr): added in order to fix bug #905492,
9195         (ast2iCode): fixed bug #905492
9196         * support/regression/tests/bug-905492.c: added
9197         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9198         (processParms): fixed bug #927659: don't copy parms, this will clear
9199         decorated flag
9200         * support/regression/tests/bug-927659.c: added
9201
9202 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9203
9204         * src/SDCCast.c (addCast): don't cast float to char
9205         * device/lib/libsdcc.lib: added _memmove
9206
9207 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9208
9209         * device/lib/large/Makefile: fixed parallel execution by
9210         replacing `make` by `$(MAKE)`
9211
9212 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9213
9214         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9215         offsets (fixes bug #923936)
9216
9217 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9218
9219         * device/lib/small/Makefile: fixed parallel execution by
9220         replacing `make` by `$(MAKE)`
9221
9222 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9223
9224         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9225
9226 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9227
9228         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9229         * src/regression/Makefile: Regression test was not running.
9230
9231 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9232
9233         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9234         complement if possible
9235         * src/SDCCval.c (valComplement),
9236         * src/SDCCicode.c (operandOperation): fixed complement of literal
9237         * support/regression/tests/onebyte.c (testComplement): added
9238
9239 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9240
9241         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9242         return an optimized tree; actually replace actParm with the new tree
9243         * src/SDCCast.h: added some parantheses to remove side effects
9244         * support/regression/tests/bug-920866.c
9245
9246 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9247         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9248         Bit operands were not being handled properly in the pic14 port.
9249         (now src/regression/add.c passes again).
9250
9251 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9252
9253         * src/SDCC.y (labeled_statement): case and default no longer require
9254         a following statement (RFE #893037)
9255
9256 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9257
9258         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9259         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9260         disabled (fixes bug #916294)
9261         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9262         "mov a,acc"; patch provided by Lenny Story
9263         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9264
9265 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9266
9267         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9268         functions
9269         * src/ds390/gen.c (genFunction, genEndFunction),
9270         * src/ds390/ralloc.c (ds390_assignRegisters),
9271         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9272         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9273         pushed if there are parameters passed on the stack. Also, a cleaner
9274         way to decide if r0/r1 should be pushed/popped. (Together they fix
9275         bug #918693)
9276
9277 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9278
9279         * doc/sdccman.lyx,
9280         * device/lib/mcs51/crtpagesfr.asm,
9281         * device/lib/mcs51/crtxinit.asm,
9282         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9283         to avoid confusion with Si Lab's SFRPAGE register.
9284
9285 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9286
9287         * src/SDCCglue.c (emitMaps): allow public sfr variables
9288         * src/SDCCglue.c (initialComments): include compiler build date
9289         with compiler version and put the timestamp of the generated
9290         assembly file on a serperate line to be less confusing.
9291         * src/port.h: added genInitStartup hook
9292         * src/avr/main.c,
9293         * src/ds390/main.c,
9294         * src/hc08/main.c,
9295         * src/pic/main.c,
9296         * src/pic16/main.c,
9297         * src/xa51/main.c,
9298         * src/z80/main.c: genInitStartup initialize as NULL (default to
9299         historical behaviour)
9300         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9301         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9302         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9303         library instead of hard coding it into the compiler.
9304         * support/regression/ports/mcs51-stack-auto/spec.mk,
9305         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9306         * device/lib/mcs51/Makefile,
9307         * device/lib/small/Makefile,
9308         * device/lib/large/Makefile,
9309         * device/lib/mcs51/crtpagesfr.asm,
9310         * device/lib/mcs51/crtstart.asm,
9311         * device/lib/mcs51/crtxclear.asm,
9312         * device/lib/mcs51/crtxinit.asm,
9313         * device/lib/mcs51/crtclear.asm,
9314         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9315         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9316         and into user configurable files.
9317         * device/lib/clean.mk: clean mcs51 directory too
9318         * support/regression/tests/longlit.c: added static to T1 declaration
9319         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9320         accesses in the initialization code
9321
9322 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9323
9324         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9325         OSCTRIMVAL as noted in bug #916008
9326
9327 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9328
9329         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9330         in loops with multiple exits (reported as incorrect registers
9331         used by Martin Helmling in Sdcc-user list)
9332
9333 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9334
9335         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9336         made ds390 register extensions look less like error messages
9337
9338 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9339
9340         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9341         reported by Adam Wozniak in Sdcc-user list
9342
9343 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9344
9345         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9346         arithmetic optimizations, added debug output
9347
9348 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9349
9350         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9351         * sdcc.spec: updated and split sdcc into 3 rpms
9352         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9353         needed for literals of LEFT_OP and '+'
9354         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9355         introduced RESULT_TYPE_NOPROM
9356         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9357         left shift
9358         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9359         limited promotion to int only for '*'
9360         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9361
9362 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9363
9364         * src/pic16/gen.c (genSkip),
9365         (genc16bit2lit), (gencjneshort): commented out
9366         (is_LitOp): new helper function, checks operand type
9367         (genCmpEq): rewritten
9368
9369 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9370
9371         * support/regression/tests/bug-908454.c: added
9372
9373 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9374
9375         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9376         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9377         (geniCodeCast): cosmetic, don't preserve bit storage class
9378         (geniCodeLeftShift): added promotion
9379         (geniCodeLogic): fixed regression
9380         * src/SDCCsymt.c (computeTypeOr): accept bits too
9381         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9382
9383 2004-03-07  Borut Razem <borut.razem AT siol.net>
9384
9385         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9386
9387 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9388
9389         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9390         version of pic16_genPackRegisters which does not check if ic is a
9391         CAST operator,
9392         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9393         function cause string1.c regression test fails
9394
9395 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9396
9397         * sim/ucsim/configure.in,
9398         * sim/ucsim/configure,
9399         * sim/ucsim/doc/Makefile.in: use docdir
9400         * src/SDCC.y: fixed sbit atrributes
9401         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9402         * src/SDCCast.c (decorateType): |^& need special promotion handling
9403         * src/SDCCast.h,
9404         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9405         * src/SDCCsymt.h (computeType),
9406         * src/SDCCicode.c: computeType() needs op
9407         * src/SDCCsymt.c (checkTypeSanity),
9408         * doc/sddman.lyx: "plain" bitfields are unsigned
9409         * src/SDCCsymt.c (computeTypeOr): added
9410         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9411         |^& ops
9412         * src/SDCCval.c (val*): computeType() needs op
9413         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9414         * support/regression/tests/onebyte.c: added tests for |^&
9415
9416 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9417
9418         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9419         for writing icode into asm output.
9420
9421 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9422
9423         * src/pic16/device.c: added some debug lines enabled
9424         with macro DEBUG_CHECK,
9425         * src/pic16/genarith.c: more debug in genPlus,
9426         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9427         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9428         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9429         * (aopForSym): onStack symbols are re-placed in data memspace,
9430         and onStack flag is cleared,
9431         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9432         copy temporary pcodeop,
9433         * (genPcall): added warning for not updating PCLATU,
9434         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9435         always true for pic16 port,
9436         * (genMultOneWord): NEW, supports integer multiplication,
9437         * (genMult): modified to call genMultOneWord,
9438         * (ifxForOp): added warning when return NULL,
9439         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9440         flag is set before call to operandFromSymbol for implicit
9441         added structures,
9442         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9443         options.intlong_rent are set by default,
9444         * (_hasNativeMulFor): modified to allow port generation of integer
9445         multiplication,
9446         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9447         set regtype to REG_SFR for all registers, restricting seting the
9448         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9449
9450 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9451
9452         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9453         more than 500 times in the regression tests
9454
9455 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9456
9457         * support/Util/SDCCerr.h,
9458         * support/Util/SDCCerr.c,
9459         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9460         enumerator_list),
9461         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9462         for symbol conflicts.
9463         * support/valdiags/tests/enum.c,
9464         * support/valdiags/tests/tentdecl.c,
9465         * support/valdiags/tests/struct.c: expect possible error messages
9466         referring to original symbol definitions.
9467         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9468         * src/SDCCsymt.h,
9469         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9470
9471 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9472
9473         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9474
9475 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9476
9477         * src/pic16/ralloc.c (newReg): fixed bug #908929
9478
9479 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9480
9481         * src/ds390/gen.c: added missing #include "main.h"
9482
9483 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9484
9485         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9486         checking if symbol is already in set,
9487         * src/pic16/device.h: prototype for checkAddSym,
9488         * src/pic16/gen.c: (_G): added entry interruptvector,
9489         * (assignResultValue): removed some commented out lines,
9490         * (genFunction): check for ISR via sym->type, absolute section for
9491         interrupt code is created via a new pBlock, the goto instruction is
9492         placed now correctly at the interrupt vector position, changed all
9493         references from ivec to _G.interruptvector,
9494         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9495         is the interrupt is a high priority one, same for return from ISR,
9496         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9497         externs to calls of checkAddSym,
9498         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9499         pic16_pcode_verbose flag is set,
9500         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9501         * src/pic16/pcoderegs.c: message about how many registers are saved
9502         will only be emitted if pic16_pcode_verbose flag is set,
9503
9504 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9505
9506         * src/ds390/ralloc.h,
9507         * src/ds390/ralloc.c (ds390_regWithIdx),
9508         * src/ds390/gen.c (emitcode),
9509         * src/ds390/main.h,
9510         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9511         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9512         ds390operandCompare, getRegsRead, getRegsWritten,
9513         initializeAsmLineNode): customized instruction size calculation for
9514         ds390, started basis for some register optimizations
9515         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9516         corresponding assembly output
9517         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9518         missing push/pop of r0/r1. Optimized push/pops
9519
9520 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9521
9522         * src/mcs51/main.c (instructionSize): fixed ACALL size
9523         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9524
9525 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9526
9527         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9528         the sorting of rlist with NULL elements
9529         * (print_idataType, print_idata): NEW to create idata sections
9530         * src/pic16/device.h: idataSymSet new variable
9531         * src/pic16/gen.c (genFunction): fixed some bugs in string
9532         comparing, improved the absolute section creation for ISRs,
9533         added FSR0L/FSR0H in registers that are saved in an ISR,
9534         * (genInline): fixed the processing of inline snippets,
9535         now they undergo no process by the peephole optimizer
9536         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9537         are placed in idataSymSet,
9538         * (pic16emitStaticSeg): extern symbols are added in externs,
9539         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9540         switching when aboslute variables are placed in access bank memory
9541         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9542         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9543         commented out with #if,
9544         * (pic16_packRegisters): reintroduce the check for CAST because some
9545         symbols are not correctly handled,
9546         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9547         pCodeInstruction instead of pCode,
9548         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9549         pCodeAsmDir definition,
9550         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9551         directive, then the argument directive is emitted without the leading
9552         tab, hack for inline labels which must be in the first column,
9553         * (compareLabel,pic16_findNextInstruction),
9554         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9555         * (insertBankSwitch): modified for the new pCodeAsmDir,
9556
9557 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9558         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9559
9560         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9561         instance,
9562         * (pushSide): commented out with #if,
9563         * (assignResultValue): fixed some typos in saving
9564         registers,
9565         * (genPcall): FIXED and sync'ed with genCall,
9566         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9567         * (genNearPointerGet): fixed to handle some more cases,
9568         implementation scheme via table reads,
9569         * (genConstPointerGet): modified to access code memory correct,
9570         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9571         and improved to handle some cases
9572         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9573         instead of "RETLW" for init data
9574         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9575         not IN_DIRSPACE, work around to reduce bank switching when aboslute
9576         variables are placed in access bank memory (<0x80 and >=0xf80),
9577         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9578         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9579         TBLWT_POSTDEC,TBLWT_PREINC
9580         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9581         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9582         directives
9583         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9584         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9585         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9586         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9587
9588 2004-02-29  Borut Razem <borut.razem AT siol.net>
9589
9590         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9591         support/Util/findme.h, support/Util/system.h: enhance binary relative
9592         search for lib and include by using findProgramPath()
9593
9594 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9595
9596         * src/SDCCpeeph.h,
9597         * src/SDCCpeeph.c (pcDistance),
9598         * src/port.h,
9599         * src/mcs51/ralloc.h,
9600         * src/mcs51/ralloc.c (mcs51_regWithIdx),
9601         * src/mcs51/main.h,
9602         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9603         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9604         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9605         size calculation port specific, started basis for some register
9606         optimizations
9607         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9608         missing push/pop of r0/r1. Optimized push/pops
9609         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9610         * device/lib/_modsint.c (_modsint),
9611         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9612         and stack version so regression tests pass
9613
9614 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9615
9616         * src/Makefile.in (dep): include SLIBOBJS in dependency check
9617         * src/SDCCast.c (decorateType): catch another small optimization
9618         with '?' operator
9619         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9620         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9621         modified to finally use computeType() all over SDCC,
9622         see Feature Request #877103
9623         * src/SDCCval.h: cosmetic
9624         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9625         valCompare(); regression tested in muldiv.c
9626         * support/regression/tests/muldiv.c (testMod): mod sign follows
9627         dividend only
9628
9629 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9630
9631         * src/SDCCast.c (decorateType): fixed bug #902362
9632         * doc/INSTALL.txt: fixed install instructions for win32
9633
9634 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9635
9636         * device/include/Makefile.in (install): fixed by replacing spaces
9637         by tabs
9638         * doc/README.txt,
9639         * doc/INSTALL.txt: updated for release
9640         * doc/sdccman.lyx: added warning for --xstack being buggy
9641
9642 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9643
9644         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
9645         to eliminate build warnings.
9646         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9647
9648 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9649            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9650
9651         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9652         removed -penable-stack, added comment for stack pragma, added
9653         warning for not initializing the stack/frame registers, removed
9654         comment at interrupts section
9655
9656         Stack is made permanent, there is no ability to disable stack usage.
9657         * src/pic16/device.h,
9658         * src/pic16/device.c: removed all references to USE_STACK macro,
9659         * src/pic16/device.c (pic16_dump_section): when no elements in
9660         rlist, free rlist before return,
9661         * (pic16_dump_int_registers): NEW, internal registers are a new set
9662         of general purpose registers reused by each function,
9663         * (checkAddReg): returns 1 if registers is added to set,
9664         * (pic16_groupRegistersInSection): when a registers is of type
9665         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9666         * src/pic16/device.h: memRange and Assigned Memory are deleted,
9667         SRCASECMP macro is moved here from device.c
9668         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9669         PO_PCLATU, PO_PRODL, PO_PRODH,
9670         * (pic16_pCodeOpType, genMinus,
9671         changed compares to "a" register, with AOP_ACC,
9672         * (pic16_genPlus): fixed some bugs and indented properly,
9673         * (pic16_addSign): changed size to size+offset in the MOVWF
9674         instruction,
9675         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9676         multiply 8-bit operand by literal, result is 8-bit,
9677         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9678         multiply 2 8-bit operand, result is 8-bit,
9679         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9680         genUMult8X*_16,
9681         * src/pic16/gen.c: changed accUse to contain WREG only,
9682         * (pic16_emitcomment): renamed to pic16_emitpcomment,
9683         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9684         true, do not use immediate addressing any more unless sym is a
9685         pointer in codespace,
9686         * (aopForRemat): do not use immediate addressing when symbol not in
9687         codespace and when symbol's address is requested,
9688         * (aopOp): for-loop in if(sym->accUse) is modified for the new
9689         accUse size (= 1),
9690         * (aopGet): added case for AOP_ACC and don't return "accumulator
9691         bug" but WREG instead,
9692         * (popGetTempReg): pushes contents of temporary register in stack,
9693         * (popReleaseTempReg): pops contents of temporary register from
9694         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9695         * (pic16_popGet): separated case AOP_ACC to return register WREG
9696         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9697         or PO_IMMEDIATE and initializes their instance/offset appropriately,
9698         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9699         the use of immediate pointers to certain cases only.
9700
9701         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9702         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9703         * (assignResultValue, genCall, genRet): modified to use the new
9704         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9705         genPcall is still broken,
9706         * (genFunction): added code to create 'A' type pBlocks when
9707         interrupt functions are generated, code not extensively tested yet,
9708         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9709         * (genEndFunction): modified so ISRs pop stored registers from stack,
9710         * (genMultOneByte): cleanup,
9711         * (AccRsh): added flag andmask, to and result with appropriate mask,
9712         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9713         * (genDataPointerGet): fixed and reenabled its use,
9714         * (genNearDataPointerGet): bugs fixed,
9715         * (genDataPointerSet): bugs fixed,
9716         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9717         pic16_DumpSymbol, pic16_DumpOp,
9718         * src/pic16/genutils.h: function prototypes for the above functions,
9719         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9720         pointers,
9721         * (pic16emitRegularMap): many many many improvements, but needs a
9722         major cleanup,
9723         * src/pic16/main.c: enable_stack in pic16_options is removed,
9724         * (_pic16_parseOptions): removed command line options -penable-stack,
9725         * (_process_pragma): emit stack symbol only when stack pragma is
9726         processed,
9727         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9728         redirected to FSR0L/FSR0H pair,
9729         * (pic16_get_op, pic16_get_op2): modifications and improvements,
9730         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9731         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9732         for immediates,
9733         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9734         * (dumpPicOptype): NEW,
9735         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9736         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9737         with movff instruction,
9738         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9739         added pic16_int_regs, some packRegsFor* functions are commented out,
9740         because produce errors,
9741         * src/pic16/NOTES: minor modifications
9742
9743 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9744
9745         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9746         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9747         --pack-iram.
9748         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9749         * as/mcs51/lkaomf51.c: fixed bug #895763
9750
9751 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9752
9753         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9754
9755 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9756
9757         * doc/sdccman.lyx: added details about the HC08 storage classes and
9758         interrupts, fixed the register usage info for z80 & gbz80
9759
9760 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9761
9762         * doc/sdccman.lyx: added more pic16 port documentation
9763         * device/include/pic16/: added header pic18fregs.h
9764
9765 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9766
9767         * doc/sdccman.lyx: added Vangelis' contribution
9768
9769 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9770
9771         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9772         extend to the next CALL or PCALL, not just to the next CALL.
9773
9774 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9775
9776         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9777
9778 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9779
9780         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9781         bug #895752 and a better fix for bug #716790
9782
9783 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9784
9785         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9786
9787 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9788
9789         * doc/sdccman.lyx: minor changes, minor changed
9790
9791 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9792
9793         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9794         which can't handle SDCC_NEWONEBYTEOPS,
9795         (geniCodeMultiply): removed conversion from mult to shift for pic14
9796         and pic16
9797
9798 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9799
9800         * src/hc08/gen.h,
9801         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
9802         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
9803         thus fixing bug #895406
9804
9805 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
9806
9807         * device/lib/_modsint.c,
9808         * device/lib/_modslong.c: sign follows divisor only
9809         * src/hc08/gen.c (genMultOneByte): if result size is 1,
9810         signs or signedness can be ignored
9811         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
9812         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
9813         added optimization for IFX,
9814         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
9815         arguments;
9816         reenabled optimization for IFX, which was removed on 2004-01-11
9817         * src/SDCCast.h: added return type IFX
9818         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
9819         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
9820         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
9821         SDCC_OLDONEBYTEOPS selects the old behaviour
9822         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
9823         changed again and commented promotion rule
9824         * src/SDCCval.c (valDiv): promotion no longer necessary
9825         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
9826         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
9827         rewritten
9828         * support/regression/tests/onebyte.c: added
9829
9830 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
9831
9832         * gen.c (genInline): reverted to old code for assemnling inline
9833         code because of bug reported James Chadd
9834
9835 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
9836
9837         * ralloc.h: missing declarations from previous patch,
9838         seems that patch for ralloc.h was never applied, fixed
9839
9840 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9841            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9842
9843         * pcode.c,
9844         * pcode.h,
9845         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
9846         indirect addressing. Marked FSR0 as deprecated
9847         * gen.c (pointerCode): commented out, not needed now
9848         (pic16_popGet2p): new MOVFF helper function
9849         (genGenPointerGet),
9850         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
9851         (shiftRLong): removed duplicate debugging info
9852
9853 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9854
9855         * src/ds390/gen.c (genNearPointerGet),
9856         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
9857         optimization with bits, but not bitfields.
9858         * src/ds390/ralloc.c (packRegisters),
9859         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
9860
9861 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9862
9863         * src/SDCCcse.c (algebraicOpts): copy operands before modification
9864
9865 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9866
9867         * src/SDCCsymt.h,
9868         * src/SDCCicode.c (operandFromSymbol),
9869         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
9870         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
9871         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
9872         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
9873         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
9874         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
9875         bug #892038
9876         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
9877         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
9878         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
9879         * src/SDCCsymt.c (newSymbol),
9880         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9881         enumerator_list),
9882         * src/SDCCval.h,
9883         * src/SDCCval.c (newiList): fixed bug #885705
9884
9885 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9886
9887         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
9888         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
9889
9890 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9891
9892         * device/include/c8051f120.h,
9893         * device/include/c8051f300.h,
9894         * device/include/c8051f310.h: added/updated header files for Silicon
9895         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9896         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
9897         in new section Submitting patches
9898
9899 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9900
9901         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
9902         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9903         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9904         genGenPointerSet),
9905         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
9906         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9907         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9908         genGenPointerSet),
9909         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
9910         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9911         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9912         genGenPointerSet),
9913         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
9914         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9915         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9916         genGenPointerSet): fixed bug #892400
9917         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
9918         to eliminate build warnings.
9919         * src/SDCCast.c (processParms),
9920         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
9921         fixed bug 751859
9922         * support/valdiag/valdiag.py: added GCC to the list of defines active
9923         when compiling with gcc
9924
9925 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9926
9927         * support/Util/SDCCerr.h,
9928         * support/Util/SDCCerr.c,
9929         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
9930         with an incomplete type (fixed bug #883734)
9931         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
9932
9933 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9934
9935         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
9936
9937 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9938
9939         * src/SDCCast.c (decorateType),
9940         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
9941         function pointer implementation
9942         * support/regression/tests/funptrs.c: added tests to verify both forms
9943         of function pointers work correctly. Added tests to verify parameters
9944         are passed in the correct order.
9945
9946 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
9947
9948         * device.c (regCompare): registers are sorted by ascending
9949         address and increasing size,
9950         * main.c (_pic16_finaliseOptions): removed the declaration
9951         of compiler macro MCU. Now a macro of the format pic18fxxxx
9952         will be defined from the command line
9953
9954 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9955             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9956
9957         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
9958         PCOP_RLCF was overwritten!
9959         * gen.c (genSkip): commented out calls to pic16_emitcode,
9960         * (genCmpEQ): fixed "long" compares, only high word did get compared,
9961         * (genlshTwo),
9962         * (genRRC): added debugging info,
9963         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
9964         overwritten while shifting,
9965         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
9966         overwritten while shifting,
9967         * (AccLsh),
9968         * (AccRsh),
9969         * (shiftLLeftOrResult),
9970         * (shiftRLeftOrResult),
9971         * (shiftRLong),
9972         * (shiftLLong): Implemented with pic16_emitpcode
9973         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
9974         * (genLeftShift): Fixed bug, operand for shift by variable always
9975         was "and"ed with 0x0f,
9976         * (genLeftShiftLiteral),
9977         * (genrshTwo),
9978         * (genRightShiftLiteral): added debugging info,
9979         * (genrshFour): added comment,
9980         * (genRightShift): determined signedness from operand "left"
9981         instead of "result"
9982
9983 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9984
9985         * src/SDCCicode.c (geniCodeParms),
9986         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
9987         function pointers, fixed function pointer bugs #861242 and #861896
9988
9989 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9990
9991         * device/include/c8051f000.h,
9992         * device/include/c8051f120.h,
9993         * device/include/c8051f300.h: added header files for Silicon
9994         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9995
9996 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
9997
9998         * src/SDCCast.c (processParams): added new type flow and restructured
9999         (gatherAutoInit): added new type flow
10000         (addCast): cosmetic changes
10001         (getLeftResultType): added new type flow for array indices, patch
10002         provided by Stas, see FR #877103
10003         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
10004         array index patch by Stas
10005         * src/SDCCast.h: added prototype getResultTypeFromType()
10006         * src/SDCCval.h,
10007         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
10008         * src/pic/glue.c (pic14emitStaticSeg),
10009         * src/pic16/glue.c (pic16emitStaticSeg),
10010         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
10011         for initialization of symbols
10012         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
10013         * support/Util/SDCCerr.h:
10014         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
10015         * .version: bumped version number to 2.3.8
10016         * device/include/Makefile.in (install),
10017         * doc/Makefile (install): changed to 'rm `find ...`' construct to
10018         avoid warnings
10019
10020 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
10021
10022         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
10023         Slade Rich fixed an optimization bug
10024         * src/pic/pcodepeep.c,
10025         * src/pic/pcoderegs.c
10026         * doc/Makefile (install): added test for directory
10027
10028 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10029
10030         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
10031         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
10032         * src/pic/ralloc.c (getRegPtr, getRegGpr),
10033         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
10034         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
10035         * as/mcs51/asexpr.c (term),
10036         * as/hc08/asexpr.c (term): fixed bug #887146
10037
10038 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10039
10040         * src/z80/gen.c (genMult): handle single byte result product
10041         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
10042         DUMMY_READ_VOLATILE (fixed bug #886367)
10043
10044 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10045
10046         * support/regression/tests/libmullong.c: fixed logic, on little endian
10047         hosts we ended without a mullong_wrapper()
10048
10049 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10050
10051         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
10052         virus/worm forged address usage.
10053
10054 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
10055
10056         Fixed promotion, it should be done on AST level:
10057         * src/SDCCast.c (addCast): added promotion to int
10058         (decorateType): updated call to upCast()
10059         * src/SDCCicode.c (geniCodeLeftShift): removed call to
10060         usualUnaryConversions()
10061
10062 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
10063
10064         * support/regression/tests/literalop.c (mulWrapper): Added a
10065         wrapper to remove integer overflow warnings.
10066
10067         * support/regression/tests/float_trans.c: Made work on host.
10068
10069         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
10070         location of sz80.
10071
10072         * support/regression/generate-cases.py (main): Changed from inline
10073         to a main method.
10074
10075         * doc/Makefile (install): Changed to depth first to get rid of
10076         missing directory install warning.
10077
10078         * as/Makefile (install-doc): Made work on Mac.
10079
10080 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
10081
10082         * src/SDCCast.c: added an additional type flow in decorateType() of
10083         opposite direction, see feature request #860006; it's enabled at runtime
10084         by setting the environment variable SDCC_NEWTYPEFLOW
10085         * src/SDCCast.h: changed prototype of decorateType()
10086         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
10087         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
10088         'char' to 'int' can be omitted, if both operands are 'unsigned char';
10089         see feature request #877103
10090         * src/SDCCval.c: updated call of decorateType()
10091         (valBitwise): fixed bug #882876
10092         (valMinus): added promotion
10093         (valLogicAndOr): result is unsigned
10094         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
10095         * src/SDCCsymt.c (computeType),
10096         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
10097         must not cause an unsigned operation
10098         * src/pic/glue (pic14emitRegularMap),
10099         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
10100
10101 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
10102
10103         * src/pic/pcode.c (PCodeID): commented out left over debug code
10104
10105 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10106
10107         * support/valdiag/tests/overflow.c: added shift tests
10108         * src/pic/device.c,
10109         * src/pic/gen.c,
10110         * src/pic/gen.h,
10111         * src/pic/glue.c,
10112         * src/pic/main.c,
10113         * src/pic/pcode.c,
10114         * src/pic/pcode.h,
10115         * src/pic/pcodepeep.c,
10116         * src/pic/pcoderegs.c,
10117         * src/pic/ralloc.c,
10118         * src/pic/ralloc.h: applied patch from Slade Rich;
10119         added support for multiple code pages and multiple RAM banks on the
10120         PIC 14 port. The ASM files now no longer simply assume all the
10121         code / RAM are in the same page / bank. This means the linker can
10122         safely allocate code/RAM of separate ASM files to different pages/banks.
10123         * doc/sdccman.lyx: added Slade's tips
10124         * src/mcs51/peeph.def: fixed bug #880768
10125
10126 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10127
10128         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10129         * src/SDCCast.c (decorateType): fixed bug #880197
10130
10131 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10132
10133         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10134         getopt.h.
10135
10136         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10137         strtof is not part of C89 and isn't included with Mac OS X.
10138
10139 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10140
10141         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10142         shiftL2Left2Result): fixed bug #879326
10143         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10144         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10145         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10146         address fetch for clr instruction
10147         * device/lib/hc08/_mulint.c: created optimized assembly version
10148         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10149
10150 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10151
10152         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10153         proposed in FR #877103
10154
10155 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10156
10157         * src/SDCCval.c (cheapestVal): added missing checks
10158         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10159         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10160
10161 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10162
10163         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10164         equal operands
10165
10166 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10167
10168         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10169         loaded with the linker search paths (-L arguments) and the libraries
10170         to be linked with the current source (-l arguments). Changes
10171         currently will affect only the pic16 port.
10172         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10173         include path the port specific paths and port specific libraries,
10174         * gplink command now contains the $3 argument,
10175         * src/pic16/device.h,
10176         * src/pic16/device.c,: structure PIC_device is made public and
10177         renamed to PIC16_device, the same for variable Pics which is renamed
10178         to Pics16. Updated all references to them.
10179         * src/pic16/glue.c (pic16glue): corrected bug with code
10180         initialization which bypassed the variable initializations block.
10181
10182         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10183         COMPILE_FLAGS and added the --nostdinc option
10184
10185 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10186
10187         * device/include/mc68hc908jb8.h: Register defs for another member
10188         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10189
10190 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10191
10192         Documenting changes from previous commits.
10193         * configure.in (version 1.56),
10194         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10195         when generating output files to configure the pic16 library,
10196         but now I've commented it out, since gputils aren't installed in the
10197         SF compile farm, so library won't compile
10198
10199         * device/lib/Makefile.in (version 1.56): initially I've added in
10200         target 'all' the prerequestive 'model-pic16' so it compiled the
10201         pic16 library, but now I've commented it out for the same reasons
10202         above,
10203         * added targets 'model-pic16' and 'objects-pic16' to compile the
10204         library
10205         * added target 'port-specific-objects-pic16' to handle the
10206         generated libraries and copy them into the build/ directory
10207         * added target 'clean-intermediate-pic16' to clean intermediate
10208         files into pic16 directory
10209         * in target 'installdirs' added line to create directory pic16 in
10210         the installation path
10211
10212         * device/include/Makefile.in (version 1.11): in target 'install'
10213         added lines to copy all header files to installation path,
10214         * in target 'installdirs' added line create directory for pic16
10215         headers in the installation path
10216
10217 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10218
10219         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10220          a function call
10221
10222 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10223
10224         * configure,
10225         * device/lib/configure.in,
10226         * device/lib/configure: fixed for autoconf 2.57
10227
10228 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10229
10230         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10231         option so that it actually works. Made it specific to the z80, since
10232         the gbz80 doesn't have these kinds of I/O ports.
10233
10234 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10235
10236         * device/include/z180.h,
10237         * device/lib/_memcpy.c,
10238         * device/lib/_memmove.c,
10239         * device/lib/_mulint.c,
10240         * device/lib/ser_ir.c,
10241         * device/lib/ser_ir_cts_rts.c,
10242         * device/lib/_strcmp.c,
10243         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10244         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10245         portmode; added deprecation warning for bank= and protmode= forms.
10246         Also, guard against buffer overflow.
10247         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10248
10249 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10250
10251         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10252         changed interrupt vector table generation to only emit declared vectors.
10253         * device/include/Makefile.in: added missing backslash
10254         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10255
10256 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10257
10258         Mainly changes to support compilation of the device libraries
10259         * src/pic16/device.c: stack is allocated via symbol and not
10260         via literal number. The symbol is placed in the corresponding
10261         position of the data ram
10262         * (pic16_dump_section): relocatable and absolute uninitialized
10263         data are now emitted in sorted order to reduce section naming,
10264         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10265         weren't marked as being in the access bank,
10266
10267 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10268
10269         Added portion of GNU PIC Library under the directory
10270         device/include/pic16 and device/lib/pic16. These files
10271         contain the declarations of SFRs for the PIC18Fxx2 devices.
10272         The directory is initialized via configure from toplevel.
10273
10274 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10275
10276         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10277         the spilllocations to be compared correctly
10278
10279 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10280
10281         * src/SDCCast.c (decorateType): fixed bug introduced today
10282
10283 2004-01-12  Borut Razem <borut.razem AT siol.net>
10284
10285         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10286         doc/sdccman.lyx: upper case pragmas are deprecated
10287
10288 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10289
10290         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10291         in simpler and even better code
10292
10293 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10294
10295         * src/SDCCicode.c (operandOperation): fixed bug #874819
10296         * src/SDCCast.c (decorateType): fixed
10297         char foo (unsigned long ul) { return ul > 0; }
10298
10299 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10300
10301         * doc/sdccman.lyx: Moved and added some sections, small changes
10302         all over. Telling LaTeX to be less strict with word spacing
10303         to better keep the right margin. Changed some notes about
10304         maintainance of the ports in section 3.2.1 - is it OK like this?
10305
10306 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10307
10308         SDCC source changes:
10309         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10310         convilong): modified to inform the pic16 port that builtin functions
10311         are external
10312
10313         PIC16 PORT specific changes:
10314         * src/pic16/device.c pic16_dump_equates() added,
10315         processor registers declared internally by the port are emitted in
10316         the translation as equates,
10317         * src/pic16/gen.c: inline code is passed unprocessed to the
10318         translation,
10319         * (pic16_popGetLit2): fnuction modified to take second operand as
10320         pCodeOp pointer and not as literal,
10321         * (popRegFromIdx): prefixed with pic16_,
10322         * (pic16_popCombine2): modified to receive already allocated pCode
10323         operands,
10324         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10325         * (genFunction): initializes local stack frame and pushes on stack
10326         all the registers used by this function,
10327         * (genEndFunction): restores all registers from stack and restores
10328         stack frame,
10329         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10330         improvements,
10331         * (pic16glue): changed the program startup sequence,
10332         * added new dbName code 'A' for functions placed in absolute section
10333         * src/pic16/main.c: added function attribute _naked,
10334         * added pragma 'code' to place a fnuction at an absolute address,
10335         * added command line arguments --debug-ralloc and --pcode-verbose,
10336         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10337         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10338         * (pic16_newpCodeOpLit2): modified to take the second operand as
10339         pCodeOp pointer,
10340         * (pic16_printpBlock): modified to emit each function in a separate
10341         section,
10342         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10343         UPPER for immediate operands,
10344         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10345         instruction,
10346         * src/pic16/peeph.def: all peepholes with movff are commented out,
10347         because there is a problem in the pcode peep optimizer,
10348         * src/pic16/ralloc.c: the register allocator can now reuse local
10349         function symbols for another function. This saves register usage.
10350         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10351
10352         Added file src/pic16/NOTES with information about program writing on
10353         the current port version.
10354
10355 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10356
10357         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10358         and peephole 252 (array access)
10359
10360 2004-01-09  Borut Razem <borut.razem AT siol.net>
10361
10362         * src/SDCCmain.c : fixed #872250: -l command line defined library
10363           files are scanned before standard library files
10364
10365 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10366
10367         * src/SDCCast.c (decorateType): fixed bug #874046
10368
10369 2004-01-09  Borut Razem <borut.razem AT siol.net>
10370
10371         * support/scripts/sdcc.nsi: remove previous installation
10372
10373 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10374
10375         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10376         bytes for last interrupt vector (mcs51)
10377         * sdcc.spec: fixed typo
10378
10379 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10380
10381         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10382         gen51Code): more efficient parameter receive for --model-large
10383         ("bug" #845294)
10384
10385 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10386
10387         * src/ds390/main.c,
10388         * src/z80/main.c: added missed needLinkerScript flags (more than
10389         one port structure defined in these file)
10390         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10391         bug #795325
10392
10393 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10394
10395         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10396         * src/port.h: added flag needLinkerScript in port->linker
10397         structure to inform whether to create a .lnk file or not,
10398         * src/avr/main.c,
10399         * src/ds390/main.c,
10400         * src/hc08/main.c,
10401         * src/mcs51/main.c,
10402         * src/pic/main.c,
10403         * src/pic16/main.c,
10404         * src/xa51/main.c,
10405         * src/z80/main.c: changed appropriately to configure
10406         needLinkerScript flag
10407         * src/pic/gen.c,
10408         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10409         * src/pic/glue.c: added variable udata_section_name to
10410         override default uninitialized data segment definition for
10411         devices only with SHAREBANK memory (reported from Erik Epetrich)
10412         * (pic14emitOverlay): modified to emit a commented overlay segment
10413         directive when no overlay data exist
10414         * (picglue): modified to emit uninitialized data segment
10415         according to udata_section_name
10416         * src/pic/main.c (_pic14_parseOptions): added command line
10417         options --udata-section-name=[name] to override default
10418         udata definition name
10419         * modified _linkCmd and _asmCmd to include compiler passed
10420         arguments via -W option
10421         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10422         object file from '.rel' to '.o' in port->linker structure,
10423         changed size of fptr from 2 to 3 in port structure
10424
10425 2004-01-07  Borut Razem <borut.razem AT siol.net>
10426
10427         * support/scripts/sdcc.nsi: update PATH
10428         * support/scripts/sdcc.ico: craeted
10429
10430 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10431
10432         * device/include/Makefile.in: fix install
10433         * doc/Makefile: fix install
10434
10435 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10436
10437         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10438         in bug #860505
10439         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10440         how the function variable allocation summary is displayed; also
10441         include information about variables allocated to the overlay
10442         segment
10443
10444 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10445
10446         * as/mcs51/lkmain.c: Help about -Y option
10447         * as/mcs51/lkarea.c: Fixed gcc warnings
10448
10449 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10450
10451         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10452         fixed warning
10453         * support/valdiag/tests/overflow.c: added
10454         * src/SDCCast.c (decorateType),
10455         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10456         LEFT_OP (left shift)
10457
10458 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10459
10460         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10461         (default behaviour).
10462
10463 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10464
10465         A python script to validate compiler diagnostic messages. It can be
10466         used to verify that sdcc complains about bad c source code and
10467         gives a good location of the error.
10468         * support/valdiag/Makefile,
10469         * support/valdiag/valdiag.py,
10470         * support/valdiag/tests/*
10471
10472 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10473
10474         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10475         * src/SDCCsymt.c (newEnumType),
10476         * src/SDCCsymt.h
10477         * support/Util/SDCCerr.c,
10478         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10479         enum related bugs.
10480         * support/regression/tests/enum.c: added test for enum values that
10481         require at least 2 bytes of storage.
10482
10483 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10484
10485         * src/common.h: added ifndef/define/endif macros
10486         around the header file.
10487         Bug reported from Jesus Calvino-Fraga
10488
10489 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10490
10491         * sdcc.spec: updated
10492         * device/include/Makefile.in: don't install CVS directories
10493         * device/lib/Makefile.in: added removal of CVS directories after install
10494         * doc/Makefile: fixed install, added local_icons
10495         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10496         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10497         * src/ds390/gen.c (genRightShift): fixed bug #870788
10498         * src/SDCCast.c (decorateType): fixed bug #870781
10499
10500 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10501
10502         PIC16 port related changes:
10503         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10504         added variable stackPos,
10505
10506         * gen.c: genCall, assignResultValue: added support for
10507         pushing/retrieving function parameters to/from stack,
10508         genFunction,genEndFunction: setup stack frame for the
10509         generated function,
10510         genAddrOf: will be changed according to bug 863624
10511
10512         * added files genutils.c and genutils.h which contain gen*
10513         debugged and optimised functions extracted from gen.c
10514
10515         * glue.c: added variable 'externs' which holds extern symbols,
10516         pic16emitRegularMap: is modified to properly handle relocatable
10517          symbols under the new scheme,
10518         pic16createInterruptVect: is modified
10519         pic16printPublics: is modified to emit 'global' assembler directives,
10520         added pic16_printExterns to print extern symbols,
10521         pic16glue: initializes stack/frame pointer in the beginning of
10522         the assembly output. Temporary hack, will be corrected later,
10523         because gplink yet does not support stack and SDCC does not
10524         yet support a type of crt0.o object to create the final binary.
10525
10526         * Removed many lines that contain 8051 legacy code.
10527         * The code is finally placed under a 'code' directive.
10528         * Added port specific options.
10529
10530         * _process_pragma: simplified since now we do not need *special*
10531         include file to define SFR registers. But a separate header
10532         will be needed. This will be developed later.
10533         * _pic16_parseOptions: added, parses port specific options:
10534         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10535         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10536         --preplace-udata-with=
10537
10538         * _pic16_setDefaultOptions: modified to initialize section names,
10539         but hack is temporarly out of order since it needs improvement.
10540         * _pic16_genAssemblerPreamble: configuration words are emitted by
10541         their address instead of their name. This part is incomplete and
10542         supports only the 18Fxx2 devices. Other devices will emit an error
10543         during assembly since they do not contain the same set of config
10544         registers
10545         * _pic16_genIVT: is modified,
10546
10547         * pcode.c: added definitions for some hardware registers that are needed
10548         for stack support
10549         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10550         All PCI entries are updated. Now LFSR is supported.
10551         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10552         * added pic16_newpCodeOpLit2 to support instructions with
10553         two literal arguments
10554         * pic16_pCode2str: corrected code that emits assembler instructions
10555         with two literal operands and those that have an access bit modifier
10556         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10557         this fixes a bug which caused some labels to be lost, when an
10558         assembler directive was added, i.e. banksel,
10559         * pic16_FixRegisterBanking: improved logic that causes the insertion
10560         of bank switching,
10561         * InlineFunction: functions that are called once, are not any more
10562         inlined. This can be a port option in the future,
10563
10564         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10565
10566         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10567         hold the corresponding uninitialized symbols,
10568         * pic16_allocProcessorRegister: registers have explicit marked the
10569         accessBank field,
10570         * pic16_allocInternalRegister: registers are explicit marked as
10571         not used,
10572         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10573         processing list, so bit registers were lost,
10574         *
10575
10576         * ralloc.h: added field 'accessBank' and original symbol operand
10577         in register definition,
10578         * removed the field isMapped from register definition,
10579
10580         ** Several functions have been removed from various sources:
10581         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10582         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10583         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10584         pic16_assignRelocatableRegisters
10585
10586         ** others have been introduced:
10587         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10588         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10589
10590 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10591
10592         * support/scripts/inc2h.pl: changed definition of BIT_AT
10593         to emit 'sbit at' instead of 'bit at'. This was a request.
10594
10595         PIC16 port related preliminary changes:
10596         * gen.c: prefixed function popRegFromString with
10597         pic16_ and all references to it corrected
10598         * pcode.c: all pic16_pc_* hardware registers prefixed
10599         with underscore (_),
10600         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10601         * ralloc.c: newReg(): when register is REG_SFR then
10602         set address to rIdx,
10603         pic16_allocProcessorRegister(): marks register wasUsed=0
10604         pic16_writeUsedRegs(): added a call to assign processor
10605         registers via pic16_assignFixedRegisters
10606
10607 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10608
10609         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10610         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10611         variables in unused register banks.  Also the SSEG is placed
10612         wherever there is enough space for it, and IDATA can be anywhere
10613         in internal RAM.  For now compile using -Wl-Y[stack_size].
10614         The mem file is different for this option as well, since it
10615         makes no sense of talking about DSEG lenght.
10616
10617 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10618
10619         * src/SDCClrange.c: fixed bug 869095 that caused segfault
10620         in certain cases, e.g. when ROM assignment, patch provided
10621         from Albert den Haan.
10622
10623 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10624
10625         Many signedness and type propagation fixes:
10626         * src/SDCCicode.c: made geniCodeCast() static
10627         replaced SPEC_ by IS_ (cosmetic)
10628         (operandOperation): fixed div and mod operation
10629         (usualBinaryConversions): added support for promotion of char
10630         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10631         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10632         (geniCodeAdd): an array index will stay unsigned, even if promoted
10633         from char to int
10634         (geniCodeArray): ditto
10635         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10636         * src/SDCCsymt.c (computeType): added more support for char;
10637         promotion of char is selectable by promoteCharToInt, fixed signedness
10638         for all cases
10639         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10640         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10641         * src/SDCCval (val*): replaced signedness calculation by
10642         computeType()
10643         rearranged if-branches (cosmetic)
10644         (valShift): added warning W_SHIFT_CHANGED
10645         (valCompare): fixed problem with different types
10646         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10647         * support/regression/tests/literalop.c: added many cases
10648         * support/regression/tests/ast_constant_folding.c: changed finally to
10649         'unsigned int'
10650         * .version: new year, new version: 2.3.7
10651         * src/SDCCmain.c (main): applied patch #866468
10652         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10653         provided by Scott Bronson
10654         * doc/sdccman.lyx: updated documentation for sdcdb
10655         updated and added chapter tips
10656
10657 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10658
10659         * src/SDCCsymt.h: missing from yesterday's commits
10660
10661 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10662
10663         * src/SDCC.y (struct_or_union_specifier),
10664         * support/Util/SDCCerr.c,
10665         * support/Util/SDCCerr.h: verify that struct & union tags are used
10666         as declared.
10667
10668 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10669
10670         * src/SDCCglobl.h: missing from yesterday's commits
10671
10672 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10673
10674         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10675         sft_attributes, struct_declaration, parameter_declaration,
10676         type_name, start_block, declaration_list),
10677         * src/SDCC.lex (check_type): support redefinition of typedef names
10678
10679 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10680
10681         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10682         aligned xdata arrays. Erik helped me with the if clause.
10683
10684 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10685
10686         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10687         warning
10688
10689 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10690
10691         * src/SDCCast.h,
10692         * src/SDCCast.c (newAst_),
10693         * src/SDCCicode.h,
10694         * src/SDCCicode.c (ast2iCode, newiCode),
10695         * src/SDCCglobl.h,
10696         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10697         expr, statement, expression_statement, selection_statement,
10698         iteration_statement, expr_opt, jump_statement): foundation for tracking
10699         sequence points
10700         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10701         point code too)
10702
10703 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10704
10705         * support/Util/SDCCerr.c,
10706         * src/SDCCast.h,
10707         * src/SDCCast.c (createCase, createDefault, decorateType),
10708         * src/SDCClabel.c (labelUnreach),
10709         * src/SDCC.y (labeled_statement, jump_statement): More improvements
10710         to error messages.
10711         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10712         (with thanks to Stas Sergeev)
10713         * device/include/time.h,
10714         * device/lib/time.c (CheckTime): suppress unreachable code warning
10715
10716 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10717
10718         * src/SDCCast.c (createIvalCharPtr),
10719         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10720         bug #753752)
10721         * support/regression/tests/nullstring.c: tests for these two bugs
10722
10723 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10724
10725         * support/Util/SDCCerr.h,
10726         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10727         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10728         about storage class and 'at' used inside struct or union
10729         * src/SDCCBBlock.c (iCodeFromeBBlock),
10730         * src/SDCCcse.c (ifxOptimize),
10731         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10732         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10733         printIval, emitStaticSeg, emitOverlay),
10734         * src/SDCClabel.c (deleteIfx),
10735         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10736         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10737         gatherAutoInit, processParms),
10738         * support/Util/SDCCerr.h,
10739         * support/Util/SDCCerr.c (werrorfl): Support for better error location
10740         reporting for post-parse errors.
10741
10742 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10743
10744         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10745         implicit casts via union; they don't work on big endian systems
10746         (possible fix for bug #861138)
10747
10748 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10749
10750         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10751         * src/mcs51/main.c: fixed the fix for bug #737001
10752
10753 2003-12-15  Borut Razem <borut.razem AT siol.net>
10754
10755         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10756
10757 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10758
10759         * support/makebin/makebin.c: put output in binary mode
10760
10761 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10762
10763         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10764         xdata and data memory on startup. Set the environment variable
10765         SDCC_NOGENRAMCLEAR to disable this.
10766         * src/mcs51/peephole.def,
10767         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10768         (allows non-interrupt and interrupt code to safely compete for a resource
10769         without the non-interrupt code having to disable interrupts)
10770
10771 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10772
10773         * src/SDCCicode.c (geniCodeAdd),
10774         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10775         with valFromType if type might be a pointer and host is big endian).
10776         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10777         types, not just integer types.
10778         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10779         multiply defined with mismatching "at" address.
10780
10781 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10782
10783         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10784         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10785         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10786         with embedded nulls (fixed bug #753752)
10787
10788 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10789
10790         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10791         Apparently this did not see much testing (endless loop)
10792
10793 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10794
10795         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10796
10797 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10798
10799         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
10800         gracefully handle NULL memmap pointers
10801
10802 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10803
10804         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
10805         instead of deleting the iCode when an operand is volatile
10806         * src/z80/gen.c (genDummyRead),
10807         * src/mcs51/gen.c (genDummyRead),
10808         * src/ds390/gen.c (genDummyRead),
10809         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
10810         not just IC_RIGHT
10811         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
10812         * src/SDCC.y: fixed bug #850420
10813
10814 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10815
10816         Applied z80 i/o port patch from Peter Townson and fixed some operators
10817         to better handle operands in A register.
10818         * device/include/z180.h
10819         * src/SDCC.y
10820         * src/SDCCglue.c
10821         * src/z80/gen.c
10822         * src/z80/gen.h
10823         * src/z80/main.c
10824         * src/z80/peeph-z80.def
10825         * src/z80/peeph.def
10826         * src/z80/z80.h
10827
10828 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10829
10830         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
10831
10832 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10833
10834         * device/lib/hc08/_mullong.c: Removed extra #endif
10835
10836 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10837
10838         * sim/ucsim/hc08.src/inst.cc,
10839         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
10840         carries from x to h
10841         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
10842         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
10843         * device/include/stdarg.h: fixed varargs for hc08
10844         * device/lib/Makefile.in,
10845         * device/lib/hc08/Makefile,
10846         * device/lib/hc08/_mulint.c,
10847         * device/lib/hc08/_mullong.c: fixed some endian problems
10848
10849 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10850
10851         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
10852         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
10853         * device/lib/_gptrget.c,
10854         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
10855
10856 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10857
10858         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
10859         * src/SDCCast.c (astErrors): fixed bug #846007
10860         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
10861
10862 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10863
10864         * src/SDCCast.c (decorateType): disabled a transformation I added in
10865         revision 1.188 (access to fields of a structure at an absolute address);
10866         it breaks with bitfields, extern declarations, and gcse analysis.
10867         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
10868         could be assigned through a pointer, so don't complain.
10869         * src/SDCCast.c (astErrors),
10870         * src/SDCCast.h,
10871         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
10872
10873 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
10874
10875         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
10876         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
10877         output of __config directives, since gpasm now supports them
10878         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
10879         pre-processor macro, i.e. -DMCU=p18f452
10880         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
10881         and modified to handle 'cast' icode similarly to '=' icode
10882         * src/pic16/device.h (typedef struct PIC_device): added field
10883         'extMIface' to indicate that chip has external memory interface
10884         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
10885         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
10886         18F8720
10887
10888 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10889
10890         * src/SDCC.y (pointer): fixed bug #846006
10891         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
10892         * src/SDCCast.c (decorateType): fixed bug #846009
10893         * src/ds390/peeph.def,
10894         * src/ds390/gen.c (genAnd, genOr),
10895         * src/mcs51/peeph.def,
10896         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
10897
10898 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10899
10900         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
10901         * src/SDCCdflow.c
10902         * src/SDCCcse.c
10903         * src/SDCCcse.h
10904         * src/SDCCBBlock.h
10905         * src/SDCCBBlock.c
10906
10907 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
10908
10909         fixed bug #845089
10910         * src/SDCCbitv.h,
10911         * src/SDCCbitv.c: added function to free a bitvector
10912         * src/SDCClrange.h,
10913         * src/SDCClrange.c: added function to recompute the liveranges
10914         * src/avr/ralloc.c,
10915         * src/ds390/ralloc.c,
10916         * src/hc08/ralloc.c,
10917         * src/mcs51/ralloc.c,
10918         * src/pic/ralloc.c,
10919         * src/pic16/ralloc.c,
10920         * src/xa51/ralloc.c,
10921         * src/z80/ralloc.c: recompute the liveranges after register packing
10922
10923 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
10924
10925         * src/SDCCloop.c (newInduction): fixed bug #845630
10926
10927 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10928
10929         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
10930         inadvertantly left behind from my 2003-11-12 change
10931
10932 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10933
10934         Updated headers I neglected to commit yesterday.
10935         * src/SDCClrange.h,
10936         * src/SDCCicode.h
10937
10938 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10939
10940         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
10941         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
10942         * src/SDCCopt.c (eBBlockFromiCode),
10943         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
10944         the creation of the key hash table from the sequencing so it can be used
10945         earlier (for some GCSE bug fixes still pending)
10946
10947 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10948
10949         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
10950         * support/regression/tests/addsub.c: testing genPlus shortcut
10951
10952 2003-11-15  Borut Razem <borut.razem AT siol.net>
10953
10954         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
10955
10956 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10957
10958         * src/SDCCcse.c (cseBBlock): fixed bug #527779
10959         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
10960         ordering is immaterial.
10961         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
10962
10963 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10964
10965         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
10966         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
10967         (SIGSEV) of bug #840381
10968         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
10969         unlink new file before rename if new and old filenames are the same)
10970
10971 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10972
10973         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
10974         uninitialized variables) for the mcs51. Set environment variable
10975         SDCC_GENRAMCLEAR to test.
10976         xdata initialization slightly shorter
10977
10978 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10979
10980         * src/SDCCsymt.h,
10981         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
10982         #838241 & 780691 (basicly the same bug)
10983         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
10984         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
10985
10986 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
10987
10988         * src/SDCCmain.c (linkEdit): "fix" #834252
10989
10990 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10991
10992         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
10993         * src/SDCCast.h,
10994         * src/SDCC.y: fixed bug #819403
10995
10996 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10997
10998         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
10999         the reentrant attribute.
11000         * src/hc08/gen.c (genPackBits): added missing stack readjustment
11001         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
11002         simulation
11003         * src/SDCCast.c (decorateType): fixed bug with storage class not being
11004         updated during pointer dereference; f.e. ~(((char *)1)*) was being
11005         erroneously reduced to a literal.
11006         * src/hc08/ralloc.c (packRegisters, rematStr),
11007         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
11008         some cases
11009
11010 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11011
11012         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
11013         * doc/sdccman.lyx: changed from 'article' to 'book'
11014         * doc/Makefile: readded test_suite_spec and cdbfileformat
11015
11016 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
11017
11018         * device/include/stdlib.h: include malloc.h to comply with ANSI
11019         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
11020
11021 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11022
11023         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
11024         * doc/clean.mk: also remove *.out files
11025         * doc/sdccman.lyx: some additions, larger top/bottom margins
11026
11027 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11028
11029         * src/SDCC.y: fixed bug #837365
11030         * support/regression/tests/bitopcse.c
11031         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
11032         a symbol (might be valop instead)
11033         * device/lib/Makefile.in: added errno.c to HC08SOURCES
11034         * device/lib/clean.mk: added hc08 to the cleaning list
11035
11036 2003-11-04  Borut Razem <borut.razem AT siol.net>
11037
11038         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
11039           made 2003-11-04
11040         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11041           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
11042           malloc is declared in standard stdlib.h
11043
11044 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11045
11046         * device/lib/hc08/Makefile: need to clean .rel not .o files
11047         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
11048
11049 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11050
11051         * src/port.h,
11052         * src/hc08/main.c,
11053         * src/mcs51/main.c,
11054         * src/ds390/main.c,
11055         * src/z80/main.c,
11056         * src/avr/main.c,
11057         * src/pic/main.c,
11058         * src/pic16/main.c,
11059         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
11060         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
11061         tests (which uses the port's oclsExpense function)
11062         * src/SDCC.y,
11063         * src/SDCCast.c,
11064         * src/SDCCicode.c,
11065         * src/hc08/gen.c,
11066         * src/ds390/gen.c,
11067         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
11068
11069 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11070
11071         * src/SDCCcse.c (ifxOptimize),
11072         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
11073         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
11074         deleting the IFX iCode.
11075         * src/hc08/ralloc.c: reduced unneeded slocs
11076         * src/hc08/gen.c: fixed bug in asmopToBoolean
11077
11078 2003-11-04  Borut Razem <borut.razem AT siol.net>
11079
11080         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
11081           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
11082           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
11083           transferred to configure
11084
11085 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
11086
11087         Use headers defined in the C[++] standards:
11088         * sim/ucsim/gui.src/serio.src/fileio.cc
11089         * sim/ucsim/gui.src/serio.src/frontend.cc
11090         * sim/ucsim/gui.src/serio.src/main.cc
11091         * sim/ucsim/gui.src/serio.src/posix_signal.cc
11092         * support/Util/NewAlloc.c
11093         * as/hc08/lklibr.c
11094         * as/mcs51/lklibr.c
11095         * as/z80/aslist.c
11096         * as/z80/assym.c
11097
11098 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11099
11100         * Added MSVC projects for hc08 assembler and linker:
11101         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
11102         /as/hc08/link_hc08.dsp
11103
11104 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
11105
11106         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11107
11108 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11109
11110         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11111
11112 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11113
11114         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11115
11116 2003-10-31  Borut Razem <borut.razem AT siol.net>
11117
11118         * support/cpp2/cpplib.h,
11119           support/cpp2/cpplib.c,
11120           support/cpp2/cpplex.c,
11121           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11122           to switch _asm block preprocessing on / off. Default is
11123           #pragma preproc_asm +
11124
11125 2003-10-31  Borut Razem <borut.razem AT siol.net>
11126
11127         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11128           when outputting comment blocks (when executed with -C option) and
11129           _asm (SDCPP specific) blocks
11130
11131 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11132
11133         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11134
11135 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11136
11137         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11138
11139 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11140
11141         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11142         * src/SDCCast.c (decorateType): fixed bug #832664
11143
11144 2003-10-31  Borut Razem <borut.razem AT siol.net>
11145
11146         * support/cpp2/cpplex.c: fixed for SDCPP:
11147           comments(when executed with -C option) and _asm blocks
11148           were included even if they where in skipped #if block.
11149           Applied solution from GCC cpp 3.3.2
11150
11151 2003-10-31  Borut Razem <borut.razem AT siol.net>
11152
11153         * src/SDCC.lex: sdcc now understands both formats:
11154           '# <line_number> <file_name>' and
11155           '#line <line_number> <file_name>'
11156         * support/cpp2/cppmain.c: sdcpp now generates the standard
11157           '# <line_number> <file_name>' instead of former
11158           '#line <line_number> <file_name>'
11159
11160 2003-10-30  Borut Razem <borut.razem AT siol.net>
11161
11162         * support/cpp2/cpphash.h,
11163         * support/cpp2/cpplib.h
11164         * support/cpp2/cpplex.c,
11165         * support/cpp2/cppmain.c,
11166         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11167
11168 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11169
11170         Fixed a number of problems revealed by bug #827883.
11171         * src/SDCCloop.c (loopInvariants): Spill location of the
11172         result operand should be recomputed if extracted from
11173         a loop. Also, don't extract assignments of an iTemp
11174         from a literal.
11175         * src/SDCCast.c (isConformingBody): loop reversal should
11176         not occur if the control variable is involved with a
11177         relational operator.
11178
11179 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11180
11181         * .version: bumped to 2.3.6 to reflect the big improvements
11182         made by Erik and Klaus. Thanks!
11183
11184 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11185
11186         Replaced the livrange code.
11187         * src/SDCClrange.c: added new LR code
11188         * src/SDCCloop.c,
11189         * src/SDCCBBlock.h: removed remainig parts from old LR code
11190         * src/ds390/ralloc.c,
11191         * src/ds390/gen.c: minor fixes to make it work with new code
11192
11193 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11194
11195         * as/hc08/asm.h,
11196         * as/hc08/lkrloc.c,
11197         * src/hc08/gen.c,
11198         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11199         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11200         (tweaked fix for bug #818696)
11201
11202 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11203
11204         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11205
11206 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11207
11208         * src/SDCCmain.c,
11209         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11210         * src/mcs51/gen.c (gencjneshort),
11211         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11212         more efficient (per Scott Bronson's suggestion)
11213
11214 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11215
11216         Extended the semantics of the critical keyword to include
11217         individual statements. See RFE #827755 and #799831
11218         * src/SDCC.y
11219         * src/SDCCicode.c
11220         * src/SDCCopt.c
11221         * src/SDCCast.c
11222         * support/Util/SDCCerr.c
11223         * support/Util/SDCCerr.h
11224         * src/mcs51/gen.c
11225         * src/ds390/gen.c
11226         * src/hc08/gen.c
11227
11228 2003-10-19  Borut Razem <borut.razem AT siol.net>
11229
11230         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11231
11232 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11233
11234         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11235         Fixed bug #818696
11236         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11237         and predecrement operand is displayed
11238
11239 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11240
11241         * src/SDCCval.c (valMinus): fixed bug #826041
11242
11243 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11244
11245         Some hc08 related updates that I missed earlier
11246         * sim/ucsim/stypes.h
11247         * support/regression/ports/hc08/spec.mk
11248
11249 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11250
11251         New target "hc08" for the Motorola 68hc08 family of micros
11252
11253         * configure
11254         * configure.in
11255         * Makefile
11256         * src/hc08/*
11257         * src/SDCCmain.c
11258         * src/port.h
11259         * sim/ucsim/hc08.src/*
11260         * sim/ucsim/configure.in
11261         * src/ucsim/configure
11262         * sim/ucsim/packages_in.mk
11263         * as/hc08/*
11264         * as/Makefile
11265         * device/include/mc68hc908qy.h
11266         * device/lib/hc08/*
11267         * device/lib/Makefile.in
11268         * support/regression/ports/hc08/*
11269         * support/regression/Makefile
11270
11271 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11272
11273         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11274         regression test
11275         * src/ds390/gen.c (genCast): fixed bug #821957
11276
11277 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11278
11279         * device/lib/logf.c: "fixed" overlay bug
11280         * support/regression/ports/host/spec.mk: added m library
11281         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11282         * support/regression/tests/float_trans: added (for Eric)
11283
11284 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11285
11286         * src/mcs51/gen.c (genCpl): fixed bug
11287         http://sf.net/mailarchive/message.php?msg_id=6263915
11288
11289 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11290
11291         * src/SDCCast.c (decorateType): added extended constant folding
11292         * src/SDCCsymt.c (computeType): cleanup
11293         * src/SDCCval.c (valShift): minor optimization
11294         * support/regression/tests/ast_constant_folding.c: added
11295
11296 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11297
11298         * src/SDCCmain.c: removed some unintended changes
11299
11300 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11301
11302         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11303         * src/z80/gen.c: fixed part of bug #817589
11304         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11305
11306 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11307
11308         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11309         * src/SDCCcflow.c
11310         * src/SDCCcse.c
11311         * src/SDCCdflow.c
11312         * src/SDCClabel.c
11313         * src/SDCClrange.c
11314         * src/SDCCmem.c
11315         * src/SDCCopt.c
11316         * src/SDCCpeeph.c
11317         * src/SDCCset.c
11318         * src/avr/ralloc.c
11319         * src/ds390/ralloc.c
11320         * src/izt/ralloc.c
11321         * src/mcs51/ralloc.c
11322         * src/pic/ralloc.c
11323         * src/pic16/ralloc.c
11324         * src/xa51/ralloc.c
11325         * src/z80/ralloc.c
11326         * src/z80/gen.c: removed unused label "release:"
11327
11328 2003-10-06  Borut Razem <borut.razem AT siol.net>
11329
11330         * src/SDCC.lex: removed definition of unused variables
11331           save_optimize and save_options
11332
11333 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11334
11335         * clean.mk: removed '=' in "-maxdepth=1"
11336         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11337         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11338
11339 2003-10-06  Borut Razem <borut.razem AT siol.net>
11340
11341         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11342           my_unput() replaced by unput()
11343
11344 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11345
11346         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11347         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11348         type-punned pointer will break strict-aliasing rules"
11349         Old LR behaviour is again default; Klaus' LR can be choosen by
11350         defining the environment variable LRKLAUS
11351         * src/SDCCBBlock.h
11352         * src/SDCCloop.c
11353         * src/SDCClrange.c
11354         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11355         * clean.mk: fixed removal of files in bin/CVS/
11356         * device/lib/clean.mk: fixed removal of directories small and large
11357         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11358         * src/SDCCicode.c,
11359         * src/SDCCval.c: removed superflous test for pedantic
11360
11361 2003-10-05  Borut Razem <borut.razem AT siol.net>
11362
11363         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11364           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11365           message "unmatched #pragma SAVE and #pragma RESTORE"
11366
11367 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11368
11369         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11370           assembly, critical functions, atomic, nojtbound)
11371
11372 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11373
11374         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11375         * src/SDCCBBlock.h
11376         * src/SDCCloop.c
11377         * src/SDCCloop.h
11378         * src/SDCClrange.c
11379
11380 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11381
11382         * src/z80/gen.h,
11383         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11384         * src/mcs51/gen.h
11385         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11386         * src/ds390/gen.h
11387         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11388         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11389         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11390
11391 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11392
11393         * src/z80/gen.c (genRet): fixed bug #524753
11394         * src/z80/gen.c (genCast): fixed internal error on cast from
11395         pointer to long
11396         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11397         fix for bug #477835 to the z80
11398         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11399         for tracking iCodes in the peephole optimizer for z80
11400
11401 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11402
11403         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11404         the other part of bug #814548
11405         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11406
11407 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11408
11409         * src/SDCCcse.c: fixed part of bug #814548
11410
11411 2003-09-28  Borut Razem <borut.razem AT siol.net>
11412
11413         * src/asm.c: rewrite of printILine() to use temporary file instead
11414           a pipe
11415         * src/xa51/main.c: commented out declaration of int rewinds
11416
11417 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11418
11419         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11420
11421 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11422
11423         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11424         * src/asm.c (printILine): Fixed bug #811015
11425
11426 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11427
11428         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11429         freeing.
11430
11431 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11432
11433         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11434         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11435         to correctly handle general case of AOP_PAIRPTR
11436         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11437
11438 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11439
11440         * src/mcs51/ralloc.c (fillGaps),
11441         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11442         register positioning bug)
11443
11444 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11445
11446         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11447
11448 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11449
11450         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11451         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11452         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11453         (ralloc doesn't intentionally do this now, but perhaps later)
11454         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11455         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11456         register positioning bugs (Fixed bug #762602 and #795325)
11457         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11458         (Fixed bug #808779)
11459         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11460         lines that --i-code-in-asm generates
11461
11462 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11463
11464         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11465         trying to fclose a FILE* that was already closed.
11466
11467 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11468
11469         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11470         of const struct should be treated as if const themselves)
11471
11472 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11473
11474         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11475
11476 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11477
11478         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11479         Unix (/n) and DOS (/r/n) line terminations.
11480
11481 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11482
11483         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11484         bug #613775
11485
11486 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11487
11488         * src/mcs51/gen.c (genFunction, genEndFunction),
11489         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11490         and restore of EA so that stack offsets to parameters are
11491         correct when using both critical and reentrant/stack-auto.
11492         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11493         size (can be triggered in error if sloc is shared between
11494         different sized objects)
11495         * device/include/float.h: fixed macros to explicitly use
11496         unsigned long where needed
11497
11498 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11499
11500         Feature req. 799831: added code to allow nesting of critical functions
11501         * src/mcs51/gen.c (genFunction, genEndFunction)
11502         * src/ds390/gen.c (genFunction, genEndFunction)
11503
11504 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11505
11506         * src/SDCCsymt.c (sclsFromPtr),
11507         * src/SDCCsymt.h,
11508         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11509         support for standard C idiom of memory mapped variables; for
11510         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11511         to xdata int at 0x1234 tempvar = 1.
11512         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11513         provided by Akiya ISHIDA
11514
11515 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11516
11517         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11518         * src/SDCCval.c (constVal): added reduction from int to char
11519         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11520         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11521         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11522         to ignore the sign
11523         * support/regression/tests/shifts.c: fixed
11524
11525 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11526
11527         * src/z80/gen.c (genXor): Fixed bug #805445
11528
11529 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11530
11531         Fixed bug #621531 (const & volatile confusion in the type chain).
11532         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11533         refer to the const or volatile state of the pointer itself.
11534
11535         * src/SDCCast.c
11536         * src/SDCCglue.c
11537         * src/SDCCicode.c
11538         * src/SDCCsymt.c
11539         * src/SDCCval.c
11540         * src/SDCC.y
11541         * src/SDCCsymt.h
11542         * src/pic/gen.c
11543         * src/pic/ralloc.c
11544         * src/pic16/gen.c
11545         * src/pic16/ralloc.c
11546         * support/regression/tests/const.c
11547
11548 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11549
11550         When checking for duplicated modules, use absolute paths
11551         instead of relative paths.  Files changed:
11552
11553         * as/mcs51/lklib.c
11554         * link/z80/lklib.c
11555
11556 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11557
11558         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11559
11560 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11561
11562         * device/include/string.h: added size_t typedef, changed
11563         prototypes to use size_t, eliminated separate reentrant and
11564         non-reentrant declarations, added _memmove declaration
11565         * device/lib/_memcpy.c: changed to use size_t instead of int,
11566         changed /4 to >>2 to avoid division library call
11567         * device/lib/_memcmp.c,
11568         * device/lib/_memset.c,
11569         * device/lib/_strncat.c,
11570         * device/lib/_strncpy.c,
11571         * device/lib/_strncmp.c: changed to use size_t instead of int
11572         * device/lib/_memmove.c: new file (fixed bug #772294)
11573         * device/lib/Makefile.in: added _memmove.c
11574         * device/lib/z80/asm_strings.s: fixed bug #772290
11575         * support/regression/tests/bitfields.c: attempt to fix host assertion
11576         failure on amd64-unknown-linux2.2
11577
11578 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11579
11580         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11581         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11582         * as/z80/asmain.c (main): fixed bug #801766
11583
11584 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
11585
11586         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11587         compilers
11588
11589 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11590
11591         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11592         reported in bug #800609
11593
11594 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
11595
11596         * Top header beautifications in src/pic16 directory:
11597           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11598           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11599           pcoderegs.h, ralloc.c, ralloc.h
11600         * main.c: added top header and GPL license notice
11601         * pcode.c: fixed the if-conditional warning
11602
11603 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
11604
11605         * device/lib/_mullong.c: replaced int by short for gcc
11606
11607 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11608
11609         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11610         and JUMPTABLE iCodes properly now (worked by accident before)
11611         * src/mcs51/gen.c (leftRightUseAcc),
11612         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11613         iCode properly now. Use getSize instead of nRegs since a & b
11614         aren't part of the nRegs tally.
11615
11616 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
11617
11618         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11619         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11620           before instructions that use the _STATUS register
11621
11622 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
11623
11624         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11625         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11626         fetching of the pointer
11627         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11628         copied from genNearPointerSet()
11629         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11630         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11631         If they pop r0/r1 they must be called in the opposite order than aopOp().
11632         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11633         (resp. --stack-auto), prepared for --xstack
11634
11635 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11636
11637         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11638
11639 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11640
11641         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11642         these ports have their own __sdcc_external_start()
11643
11644 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
11645
11646         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11647         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11648         type for bits was changed. It resulted in bit variables becoming
11649         global, which is not permitted in PIC 14 assembly output.
11650
11651 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11652
11653         * doc/sdccman.lyx: various additions and updates. Rearranged sections
11654
11655 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11656
11657         Z80 and MCS51 linkers complaint if a public symbol is defined
11658         in more than one library module:
11659
11660         * as/mcs51/lklib.c
11661         * link/z80/lklib.c
11662         * as/mcs51/Makefile.in
11663
11664 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11665
11666         A few small changes that speed up the peephole optimizer.
11667
11668         * src/SDCCpeeph.c
11669
11670 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11671
11672         Try to make the peephole optimizer smarter by maintaining
11673         an association between the assembly source code and the
11674         iCodes that originated them. Put this information to use
11675         with a new peephole rule condition "notVolatile" so that
11676         the rules can be aggressive yet still safe.
11677
11678         * src/SDCCpeeph.c
11679         * src/SDCCpeeph.h
11680         * src/mcs51/gen.c
11681         * src/mcs51/peeph.def
11682
11683 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11684
11685         Fixed bug #741761
11686
11687         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11688         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11689         if the left or right operand symbols have the accuse flag set.
11690
11691 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11692
11693         Changed the type of the result of the ! (NOT) operator to char;
11694         previously it returned the same type as the source. This allows
11695         us to eliminate all the genFloatNot functions (all of its target
11696         implementations were very buggy) since !float can use the same
11697         code as !long now.
11698
11699         * src/SDCCicode.c (ast2iCode): ! returns char
11700         * src/mcs51/gen.c (genNot, genNotFloat),
11701         * src/ds390/gen.c (genNot, genNotFloat),
11702         * src/z80/gen.c (genNot, genNotFloat),
11703         * src/pic/gen.c (genNot, genNotFloat),
11704         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11705
11706 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
11707
11708         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11709         1. Interrupt would not compile properly. Ensure PCLATH register is saved
11710            during interrupts. Ensure WSAVE is located at a shared bank address.
11711         2. Fixed page selection in some places
11712         3. Fixed BTFSS/C to where necessary use registers directly and not simply
11713            the registers name strings.
11714         4. Fixed "signed / unsigned compare" compiler warnings.
11715         5. The PIC port manages its own allocation of the general purpose
11716            registers, but makes no attempt to reuse them. As a result when
11717            compiling it soon runs out of general purpose registers. Some
11718            additional code was added to the files pcode.c and device.c to walk
11719            through the function call tree and rename the registers so that they
11720            get reused.
11721
11722         * src/pic/device.c
11723         * src/pic/gen.c
11724         * src/pic/glue.c
11725         * src/pic/pcode.c
11726         * src/pic/pcode.h
11727         * src/pic/ralloc.c
11728         * src/pic/ralloc.h
11729         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11730         genPlus() & genMinus() when the result is the same as left or right
11731
11732 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11733
11734         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11735
11736 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11737
11738         Made bitfield a distinct type from bit so that bitfields
11739         convert as per ANSI C and bits retain their traditional
11740         boolean style behaviour. Implemented bitfield support in
11741         the z80 port.
11742
11743         * src/SDCCsymt.h,
11744         * src/SDCCsymt.c,
11745         * src/SDCCast.c,
11746         * src/cdbFile.c,
11747         * src/mcs51/gen.c,
11748         * src/ds390/gen.c: bit v bitfield split
11749         * src/z80/gen.c: New support for bitfields
11750         * support/regression/tests/bitfields.c: reenabled z80,
11751         added more tests
11752
11753 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11754
11755         Rules 246.x, 247.x relate to bitfields, the others speed up
11756         access to xdata mapped I/O devices.
11757
11758         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11759
11760 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11761
11762         Cleaned up genPackBits and genUnpackBits and added two helper
11763         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11764         for literal assignments in genPackBits (thanks to Frieder for
11765         reminding me).
11766
11767         * src/mcs51/gen.c
11768         * src/ds390/gen.c
11769
11770 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11771
11772         Fixed bug #748310 (pointer to function type mishandled when the
11773         function name is omitted). Also fixed a SIGSEGV when a function
11774         attribute (reentrant, etc) is used on a non-function or on a
11775         function but misplaced before the parameter list.
11776
11777         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11778         bug #748310
11779         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11780         * support/Util/SDCCerr.h,
11781         * support/Util/SDCCerr.c: Added func attr misuse error msg
11782
11783 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11784
11785         Fixed bug #787649 by anonymous
11786         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11787         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11788
11789 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11790
11791         Fixed numerous bitfield problems.
11792
11793         * src/SDCC.y: More bitfield related error checking
11794         * src/SDCCsymt.h,
11795         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11796         * support/Util/SDCCerr.h,
11797         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
11798         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11799         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11800         * support/regression/tests/bitfields.c: tests added
11801
11802 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11803
11804         Made the constant following the "interrupt" keyword optional. If
11805         omitted, the function will not automatically be given an entry
11806         in the interrupt vector table (similar to #pragma NOIV, but
11807         less syntacticly kludgy). The interrupt number is also now
11808         range checked. Also fixed a bug in the high order bit example
11809         in the manual.
11810
11811         * src/SDCC.y
11812         * src/SDCCmem.c
11813         * src/SDCCglue.c
11814         * src/SDCCsymt.h
11815         * support/Util/SDCCerr.c
11816         * support/Util/SDCCerr.h
11817         * doc/sdccman.lyx
11818
11819 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11820
11821         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
11822         * src/SDCCicode.c (operandOperation): rewritten some ops
11823         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
11824         * src/SDCCsymt.c (computeType): literals are handled the same way as any
11825         other type
11826         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
11827         be re-activated by defining REDUCE_LITERALS)
11828         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
11829         unsigned, but are signed by default
11830         * src/SDCCval.c (constVal): rearranged
11831         * src/SDCCval.c (valMod): preliminary fix
11832         * src/SDCCval.c (valCastLiteral): use TYPE_* types
11833         * support/regression/literalop.c: added, work in progress
11834
11835 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11836
11837         Generate warnings for useless declarations like "char data;"
11838         that don't do what new users expect.
11839
11840         * src/SDCC.y
11841         * support/Util/SDCCerr.h
11842         * support/Util/SDCCerr.c
11843
11844 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
11845
11846         * src/SDCCval.c (valMult): fix overflow detection of negative int
11847
11848 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11849
11850         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
11851
11852         Changes to support big endian targets:
11853
11854         * src/ports.h
11855         * src/SDCCglue.c
11856         * src/avr/main.c
11857         * src/ds390/main.c
11858         * src/izt/i186.c
11859         * src/mcs51/main.c
11860         * src/pic/main.c
11861         * src/pic16/main.c
11862         * src/xa51/main.c
11863         * src/z80/main.c
11864
11865 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
11866
11867         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
11868         * device/lib/time.c: fixed warning "integer overflow in expression"
11869
11870 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
11871
11872         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
11873         * src/SDCCval.c (constVal): changed default to signed; hex and octal
11874         constants are unsigned; added recognition of "u" flag for unsigned
11875         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
11876         * src/SDCCval.c (valDiv, valMod): fixed signdness
11877         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
11878         signedness of modulo, left and right shift
11879         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
11880         * support/Util/SDCCerr.h: added warning W_INT_OVL
11881         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
11882         * src/SDCCast.c (ast_print): improved output of constants
11883
11884 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11885
11886         Fixed some warnings when building with MSVC:
11887
11888         * as/mcs51/asdata.c
11889         * as/z80/asdata.c
11890         * as/mcs51/asm.h
11891         * as/z80/asm.h
11892         * link/z80/aslink.h
11893         * link/z80/lkdata.c
11894         * link/z80/lkeval.c
11895         * link/z80/lkgb.c
11896         * link/z80/lkihx.c
11897         * link/z80/lks19.c
11898         * link/z80/lksym.c
11899         * support/cpp2/cpplib.c
11900         * src/ds390/gen.c
11901         * src/mcs51/gen.c
11902
11903 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
11904
11905         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
11906
11907 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11908
11909         * support/librarian/clean.mk: Do not remove Makefile.
11910         * support/librarian/Makefile: added.
11911
11912 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11913
11914         Added librarian to MSVC build:
11915         * all.dsp
11916         * sdcc.dsw
11917         * support/librarian/librarian.dsp
11918
11919         'configure' not needed for librarian, removed:
11920         * support/librarian/configure
11921         * support/librarian/configure.in
11922         * support/librarian/config_in.h
11923         * support/librarian/Makefile.in
11924
11925         Hopefully these ones built the librarian and the rest of sdcc properly:
11926         * Makefile
11927         * Makefile.common.in
11928
11929         Messed up 'configure', so revert to previous version:
11930         * configure
11931         * configure.in
11932
11933 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
11934
11935         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
11936         there, while the mantissa of a double is "only" 53 bits wide.
11937
11938 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11939
11940         Adding sdcclib to the build.  MSVC project coming soon.
11941         Files added/changed:
11942
11943         * support/librarian/clean.mk
11944         * support/librarian/configure
11945         * support/librarian/configure.in
11946         * support/librarian/config_in.h
11947         * support/librarian/Makefile.bcc
11948         * support/librarian/Makefile.in
11949         * support/librarian/sdcclib.c
11950         * Makefile.bcc
11951         * Makefile
11952         * Makefile.common.in
11953         * configure
11954         * configure.in
11955
11956 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11957
11958         Linker now complaints if linked modules have conflicting options, for
11959         example, one compiled using --model-large and another one compiled with
11960         --model-small.  The following files were modified:
11961
11962         * as/mcs51/asdata.c
11963         * as/mcs51/aslink.h
11964         * as/mcs51/asm.h
11965         * as/mcs51/asmain.c
11966         * as/mcs51/asout.c
11967         * as/mcs51/i51pst.c
11968         * as/mcs51/lkdata.c
11969         * as/mcs51/lklibr.c
11970         * as/mcs51/lkmain.c
11971         * as/z80/asdata.c
11972         * as/z80/asm.h
11973         * as/z80/asmain.c
11974         * as/z80/asout.c
11975         * as/z80/z80pst.c
11976         * link/z80/aslink.h
11977         * link/z80/lkdata.c
11978         * link/z80/lklibr.c
11979         * link/z80/lkmain.c
11980         * src/SDCCglue.c
11981
11982 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11983
11984         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
11985         as/mcs51/lklibr.c: Generate a warning when a library is not found.
11986
11987 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
11988
11989         * src/z80/mappings.i: fix _mul[us][int,long] entries
11990
11991 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11992
11993         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
11994
11995 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
11996
11997         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
11998         * support/regression/tests/bitopcse.c: added
11999         fixed warning:
12000         * src/avr/gen.c:
12001         * src/pic/gen.c:
12002         * src/pic16/gen.c:
12003         * src/z80/gen.c:
12004         * src/xa51/gen.c:
12005
12006 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12007
12008         added support for new library format to z80, gbz80 linkers:
12009         *link/z80/aslink.h
12010         *link/z80/lklex.c
12011         *link/z80/lklib.c
12012         *link/z80/lklist.c
12013
12014 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
12015
12016         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
12017         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
12018
12019 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
12020
12021         added DUMMY_READ_VOLATILE:
12022         * src/SDCC.y:
12023         * src/avr/gen.c:
12024         * src/xa51/gen.c:
12025         * src/z80/gen.c:
12026         * src/pic/gen.c:
12027         * src/pic16/gen.c:
12028         * src/mcs51/gen.c:
12029         * src/ds390/gen.c:
12030         * src/SDCCcse.c (algebraicOpts): many improvements
12031         * src/SDCCcse.h: removed algebraicOpts()
12032         * src/SDCCicode.c (picDummyRead): added
12033
12034 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12035
12036         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
12037         "Insufficient space in data memory".
12038
12039 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12040
12041         * src/mcs51/gen.c: fixed bug #771358
12042         * src/z80/gen.c: fixed bug #759087
12043
12044 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
12045
12046         * src/pic16/glue.c: minor cleanup by Vangelis
12047
12048 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12049
12050         * device/include/regc515c.h: fixed #758477
12051         * device/lib/_gptrget.c: saving some cycles in generic pointer get
12052         * device/lib/_gptrput.c: saved a few bytes
12053         * my tab spacing is 8, yours too?)
12054         * device/lib/_ser.c: process RX bytes earlier than TX bytes
12055         * device/lib/serial.c: process RX bytes earlier than TX bytes
12056         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
12057
12058 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12059
12060         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
12061
12062 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12063
12064     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
12065
12066 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
12067
12068         * device/lib/Makefile.in: bad fix, reverted to 1.43
12069
12070 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
12071
12072         * device/lib/Makefile.in: added missing z80 object files
12073
12074 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
12075
12076         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
12077         pic16 progress by Vangelis:
12078         * src/SDCCglobl.h:
12079         * src/SDCCmain.c:
12080         * src/pic/Makefile:
12081         * src/pic:
12082         * pic/Makefile:
12083         * pic16/device.c:
12084         * pic16/device.h:
12085         * pic16/gen.c:
12086         * pic16/gen.h:
12087         * pic16/genarith.c:
12088         * pic16/glue.c:
12089         * pic16/main.c:
12090         * pic16/pcode.c:
12091         * pic16/pcode.h:
12092         * pic16/pcodepeep.c:
12093         * pic16/peeph.def:
12094
12095 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12096
12097     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
12098
12099 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12100
12101     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
12102     added gbz80 build to MSVC project.
12103     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
12104     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
12105     from 8051 stuff and setup so it links using a .lnk file.
12106
12107 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12108
12109     * support/librarian/sdcclib.c: sdcc librarian.
12110     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12111     with sdcclib.
12112
12113 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12114
12115     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12116
12117 2003-07-02  Borut Razem <borut.razem AT siol.net>
12118
12119         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12120         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12121         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12122         src/xa51/main.c, src/z80/main.c:
12123         virtualization of glue() function: each port has it's own glue function,
12124         which is accessed by do_glue function pointer in PORT.general structure
12125
12126 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12127
12128         * DS800C400 fun, improved ROM interface and tinibios.
12129
12130 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12131
12132         * More support for DS80C400. Now includes beginning of interface to ROM.
12133
12134 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12135
12136         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12137
12138 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12139
12140         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12141
12142 2003-06-19  Borut Razem <borut.razem AT siol.net>
12143
12144         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12145
12146 2003-06-19  Borut Razem <borut.razem AT siol.net>
12147
12148         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12149         fixed Z80 port - crt0.o: cannot open.
12150
12151 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12152
12153         * support/Util/MySystem.c (merge_command): revert bad fix
12154
12155 2003-06-18  Borut Razem <borut.razem AT siol.net>
12156
12157         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12158
12159 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12160
12161         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12162         option --use-stdout sends errors to stdout instead of stderr.
12163
12164 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12165
12166         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12167
12168 2003-06-15  Borut Razem <borut.razem AT siol.net>
12169
12170         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12171         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12172         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12173         fixed width array of pointers replaced with sets;
12174         multiple include and lib paths ared transferred to preprocessor and linker
12175         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12176         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12177         fixed width array of pointers
12178         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12179         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12180         fixupPath(), getPathDifference()
12181         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12182         fixed width array of pointers
12183
12184 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12185
12186         * src/pic16/ralloc.c: fix warnings
12187         * src/pic16/pcode.c: fix warning
12188
12189 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12190
12191          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12192         know all the details, but essentially this set of changes enable
12193         the pic16 port to generate movff instructions and generate assembler
12194         directives,
12195         * src/SDCCmain.c:
12196         * src/pic16/gen.c:
12197         * src/pic16/glue.c:
12198         * src/pic16/pcode.c:
12199         * src/pic16/device.c:
12200         * src/pic16/main.c:
12201         * src/pic16/pcode.h:
12202         * src/pic16/pcoderegs.c:
12203         * src/pic16/ralloc.c:
12204         * src/pic16/ralloc.h:
12205
12206 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12207
12208         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12209         added option --vc, so sdcc errors and warnings are compatible with
12210         Microsoft Visual Studio.
12211
12212 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12213
12214         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12215           device/lib/libfloat.lib: added atof function.
12216
12217 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12218
12219         * doc/sdccman.lyx: updated to Lyx 1.3
12220         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12221         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12222         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12223
12224 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12225
12226         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12227
12228 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12229
12230         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12231           additions to the "related tools/documentation" section
12232
12233 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12234
12235         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12236
12237 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12238
12239         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12240         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12241
12242 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12243
12244         * doc/sdccman.lyx: fix double dash and other minor things
12245         * doc/Makefile: fix double dash
12246
12247 2003-05-28  Karl Bongers(patches from Martin Helmling)
12248         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12249           condition and ignore commands.
12250
12251 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12252
12253         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12254           is in parts still quite out of date, I did changes as far as I felt makes sense
12255           for a non-native english speaker.
12256           Please feel free to add to the manual or to correct my changes.
12257         * doc/Makefile: undid touching the date of intermediate tex files.
12258
12259 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12260
12261         * doc/sdccman.lyx: Manual has an index now
12262
12263 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12264
12265         Finalize muluint/mulsint and mululong/mulslong merging:
12266         * device/lib/_mulint.c
12267         * device/lib/_mullong.c
12268         * device/lib/gbz80/mul.s
12269         * device/lib/gbz80/stubs.s
12270         * device/lib/z80/mul.s
12271         * device/lib/z80/stubs.s
12272         * src/SDCCsymt.c (initCSupport)
12273
12274 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12275
12276         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12277         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12278           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12279           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12280           instead of /Zm500.
12281
12282 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12283
12284         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12285           the regression tests I'm not brave enough to enable 245.b, 245.c
12286         * doc/sdccman.lyx: added latex preamble for hyperref package.
12287           Using pdflatex this will give you a hyperlinked pdf file with
12288           bookmarks. (prepend '%' before /usepackage if this breaks something)
12289
12290 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12291
12292          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12293
12294 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12295
12296         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12297
12298 2003-05-21    <johan AT balder>
12299
12300         * src/SDCCglue.c (printIval): fixed bug #739934
12301
12302 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12303
12304         Applied patch from bug 737905 (renamed yylineo to mylineno):
12305         * src/altlex.c
12306         * src/SDCCast.c
12307         * src/SDCglobl.h
12308         * src/SDCC.lex
12309         * src/SDCCsymt.c
12310         * src/SDCCval.c
12311         * src/pic16/pcode.c: Cleaned warnings
12312         * src/pic16/pcodeflow.c: Cleaned warnings
12313         * src/pic16/pcoderegs.c: Cleaned warnings
12314
12315 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12316
12317         * src/pic16/pcode.c: Cleaned warnings
12318         * src/pic16/pcodepeep.c: Cleaned warnings
12319         * src/pic16/ralloc.c: Cleaned warnings
12320
12321 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12322
12323         * doc/sdccman.lyx: fixed bug 739745
12324         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12325
12326 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12327
12328         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12329         it can be defined with CFLAGS when running configure
12330         * src/SDCCmain.c: fixed compiling + linking with object files
12331
12332 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12333
12334         * configure.in: configure for pic16 port,
12335             added --disable-pic16-port
12336         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12337         * src/SDCCmain.c: linkOptions is changed to set *,
12338             added if/endif conditional macros to remove options help
12339             messages from optionsTable when a port is not configured, added
12340             support for the PIc16 port in the ports table, when executing
12341             the compiler with no port specified on command line, a default
12342             port is selected with the new macro DEFAULT_PORT which is
12343             defined in port.h, in setDefaultOptions() linkOptions is removed
12344             from initialization assignment, since now it is a set,
12345             parseCmdLine uses setParseWithComma for linkOptions, in
12346             linkEdit() linkOptions are accessed with new function indexSet()
12347             which returns the i'th item of a set variable. See SDCCset.c, in
12348             linkEdit() when calling buildCmdLine(), added linkOptions as
12349             last argument. Now users can pass arguments to gplink via the
12350             -Wl option, main() uses pic16glue() to glue up pic16 programs
12351         * src/SDCCpeeph.c: various changes to support pic16
12352         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12353             return the i'th item of the set
12354         * src/SDCCset.h: added function prototype for indexSet()
12355         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12356         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12357         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12358             added macro DEFAULT_PORT
12359         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12360         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12361             generated
12362         * src/pic16/glue.c: commented out some error producing lines
12363         * src/pic16/main.c: __config directives are commented out to stop
12364             gpasm complaining and test the linkage with gplink, _linkCmd and
12365             _asmCmd changed to be more gplink and gpasm friendly
12366         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12367             produced an error when parsed, peep rule 12 is added to utilize
12368             movff, but it is commented out since the pCode does not support
12369             yet a command with 2 address arguments
12370
12371 2003-05-18    <johan AT balder>
12372
12373         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12374         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12375 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12376
12377         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12378   Added feature to script commands from file.
12379
12380 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12381
12382         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12383         * src/SDCCutil.c: include ctype.h for win32
12384
12385 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12386
12387         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12388
12389 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12390
12391         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12392   Fixed so you can set breakpoints prior to run, run does not stop
12393   on entry now.  Add tbreak.  Other enhancements and fixes for use
12394   with ddd.
12395
12396 2003-05-12  Borut Razem <borut.razem AT siol.net>
12397
12398         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12399
12400 2003-05-11  Borut Razem <borut.razem AT siol.net>
12401
12402         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12403         the path of bin directory, so that PATH is the only env. variable, which has to be set
12404         in case of standard installation.
12405         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12406         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12407         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12408
12409 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12410
12411         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12412         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12413         temp files are in the port dir; clean the gen/test directory when
12414         generating new test.c
12415         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12416         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12417         * support/regression/tests/zeropad.c: added
12418
12419 2003-05-09    <johan AT balder>
12420
12421         * src/SDCCglue.c: fixed bug #597940
12422
12423 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12424
12425         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12426   cache sfr, optimize next,step, fix off by one sourceline,
12427   support ddd list function.
12428         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12429
12430 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12431
12432         * support/regression/HTMLgen.py: added compare_s2f()
12433         * support/regression/Makefile: redo 1.27
12434         * support/regression/generate-cases.py: redo 1.5
12435
12436 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12437
12438         * support/regression/tests/float.c: workaround 33 bit hex constant
12439         * support/regression/tests/simplefloat.c: fix division for host
12440
12441 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12442
12443         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12444         that tame's the PIC's over-aggressive optimizer.
12445
12446 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12447
12448          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12449          support for MSVC.
12450
12451 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12452
12453         Initial support for DS80C400. "Hello world" runs on TINIm400
12454         (with polled I/O).
12455
12456 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12457
12458          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12459          * Some notes on ddd usage added in debugger/README
12460          Martin Helmling adding more features and fixes for ddd GUI debugger.
12461          Code added for nexti, stepi, up, down, and other adjustments.
12462
12463 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12464
12465         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12466         * src/pic/peeph.def Added two rules to optimize carry manipulation
12467         * src/pic/* removed debug printfs
12468
12469 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12470
12471         * debugger/mcs51/cmd.c: added header newalloc.h
12472
12473 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12474
12475         * as/Makefile: new EXEEXT
12476         * as/z80/Makefile: remove trailing slash of BUILDIR
12477         * as/z80/clean.mk: new EXEEXT
12478         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12479         * support/cpp2/Makefile.in: new EXEEXT
12480         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12481
12482 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12483
12484         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12485         EXEEXT was introduced to fix all related problems with targets
12486         "clean", "install" and "uninstall"; a couple of further flaws
12487         especially with "clean" have been fixed too
12488         * as/mcs51/Makefile.in
12489         * as/mcs51/clean.mk
12490         * as/z80/Makefile
12491         * Makefile
12492         * clean.mk
12493         * debugger/mcs51/Makefile.in
12494         * debugger/mcs51/clean.mk
12495         * link/z80/Makefile
12496         * link/z80/Makefile.in
12497         * link/z80/clean.mk
12498         * link/Makefile
12499         * packihx/Makefile.in
12500         * packihx/clean.mk
12501         * sim/ucsim/Makefile
12502         * sim/ucsim/clean.mk
12503         * sim/ucsim/avr.src/Makefile.in
12504         * sim/ucsim/avr.src/clean.mk
12505         * sim/ucsim/s51.src/Makefile.in
12506         * sim/ucsim/s51.src/clean.mk
12507         * sim/ucsim/xa.src/Makefile.in
12508         * sim/ucsim/xa.src/clean.mk
12509         * sim/ucsim/z80.src/Makefile.in
12510         * sim/ucsim/z80.src/clean.mk
12511         * sim/ucsim/main_in.mk
12512         * sim/ucsim/packages_in.mk
12513         * sim/ucsim/gui.src/Makefile.in
12514         * sim/ucsim/gui.src/serio.src/Makefile.in
12515         * sim/ucsim/gui.src/serio.src/clean.mk
12516         * src/Makefile.in
12517         * src/clean.mk
12518         * support/cpp2/Makefile.in
12519         * support/cpp2/clean.mk
12520         * support/makebin/Makefile
12521         * support/makebin/clean.mk
12522         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12523         * doc/sdccman.lyx: --program-suffix no longer needed
12524
12525 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12526
12527          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12528          Martin Helmling added support for ddd GUI debugger.
12529          Code added to display assembly, set variables, and other commands
12530          to interface to ddd.
12531
12532 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12533
12534         * as/Makefile: fix target clean
12535         * as/clean.mk: fix target clean
12536         * as/z80/clean.mk: fix target clean
12537
12538 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12539
12540         * Makefile.common.in: added  AT EXEEXT AT
12541         * configure.in: removed all mingw32 stuff
12542         * configure: rebuilt from configure.in
12543         * doc/sdccman.lyx: updated section "installation"
12544         * support/scripts/sdcc_mingw32: adapted to configure
12545         * support/scripts/sdcc_cygwin_mingw32: added
12546
12547 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12548
12549         * src/pic Added object file support for the PIC port
12550         * src/pic Applied patch from Craig Franklin (this started the object file support)
12551         * src/regression Updated the PIC regression tests for object files
12552
12553 2003-04-20  Borut Razem <borut.razem AT siol.net>
12554
12555         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12556           lklex.c: In function `getfid':
12557           lklex.c:203: warning: array subscript has type `char'
12558         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12559           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12560         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12561           stack handling macros
12562
12563 2003-04-19  Borut Razem <borut.razem AT siol.net>
12564
12565         * "handling space characters in file path" task:
12566         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12567         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12568         * support/Util/MySystem.h: make it self-sufficient
12569         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12570           src/z80/main.c, sdcc/as/mcs51/lklex.c:
12571           handling space characters in file path
12572         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12573           (it will be used by assemblers, which have their own includes, e.g. gpasm)
12574         * support/Util/MySystem.c: handling space characters in executable's path
12575
12576 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
12577
12578         * as/z80/Makefile: fix permanent rebuild of z80
12579         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12580         * support/regression/tests/bitfields.c: added Johan's bitfields.c
12581
12582 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
12583
12584         * src/SDCCopt.c: add special case optimization to replace modulo by
12585           a power of two with a bitwise AND.
12586
12587 2003-04-18    <johan AT balder>
12588
12589         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12590
12591 2003-04-17    <johan AT balder>
12592
12593         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12594         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12595
12596 2003-04-13  Borut Razem <borut.razem AT siol.net>
12597
12598         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12599         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12600           fixed mingw problem in adl_NORMALIZE_PATH
12601
12602 2003-04-12  Borut Razem <borut.razem AT siol.net>
12603
12604         * fixed "#pragma SAVE/RESTORE can not be nested":
12605         * src/SDCC.lex: reworked pragma handling functions
12606         * sdcc/src/SDCCglobl.h: reworked stack handling macros
12607         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12608
12609 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12610
12611         * src/SDCCutil.c (pathEquivalent): defined but not used
12612         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12613         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12614         * configure: rebuilt from configure.in
12615         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12616         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12617         * device/include/Makefile.in: replace sdcc_datadir
12618         * device/lib/Makefile.in: replace sdcc_datadir
12619         * Makefile.common.in: add LDFLAGS from configure
12620         * packihx/Makefile.in: use LDFLAGS
12621         * src/Makefile.in: use LDFLAGS
12622         * support/cpp2/Makefile.in: add LDFLAGS from configure
12623         * support/makebin/Makefile: use LDFLAGS
12624         * .version: bumped version number to 2.3.5
12625
12626 2003-04-12  Borut Razem <borut.razem AT siol.net>
12627
12628         * completed "different paths" task:
12629         * src/SDCCmacro.c: fixed bug in handling quotes
12630         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12631         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12632
12633 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12634
12635         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12636
12637 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12638
12639         * ds390/gen.c ds390/peeph.def: fix bug 706781
12640
12641 2003-04-11  Borut Razem <borut.razem AT siol.net>
12642
12643         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12644
12645 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
12646
12647         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12648         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12649          set - this bit used to not be set...).
12650         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12651           bad code in PIC Port
12652         * src/regression/and2.c added to test bug 609268
12653         * src/regression/Makefile added and2.c to regression test
12654
12655
12656 2003-04-08    <johan AT CP255758-A>
12657
12658         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12659         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12660         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12661
12662 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
12663
12664         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12665         fix bug #487815
12666         * support/cpp2/Makefile.in: fix bug #487815
12667         * configure: rebuilt from configure.in
12668         * Makefile.common.in: docdir changed, new path suffixes
12669         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12670         * sdcc_vc_in.h: reflect changes from sdccconf.h
12671         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12672         * src/SDCCutil.h: remove BINDIR hack
12673         * doc/sdccman.lyx: update new path hierarchy
12674
12675 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12676
12677         * src/SDCCpeeph.c: added okToRemoveSLOC test
12678
12679 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12680
12681         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12682
12683 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12684
12685         * src/SDCCpeeph.c: added labelIsReturnOnly test
12686         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12687
12688 2003-04-05    <johan AT balder>
12689
12690         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12691         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12692         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12693         * src/SDCCast.c: fixed a warning
12694         * src/SDCCast.h: fixed a warning
12695         * src/SDCCicode.c (operandFromAst): fixed a warning
12696
12697 2003-04-04    <johan AT balder>
12698
12699         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12700         * src/SDCCast.c (decorateType): fixed bug #715076
12701         * src/SDCC.y: fixed bug #702907
12702
12703 2003-04-03    <johan AT balder>
12704
12705         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12706         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12707         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12708         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12709         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12710
12711 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
12712
12713         * _decdptr.c: fix return values
12714         * _gptrget.c: fix return values
12715         * _gptrgetc.c: fix return values
12716         * _gptrput.c: fix return values
12717         * _mulint.c: fix return values
12718         * as/z80/Makefile: fix 'make -j' problem
12719
12720 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
12721
12722         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12723         * configure.in: big cleanup, updated to autoconf 2.5x
12724         * configure: rebuilt from configure.in
12725         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12726         * sdcc_vc_in.h: reflect changes from sdccconf.h
12727         * doc/Makefile: fixed a flaw in "make install"
12728
12729 2003-04-02    <johan AT balder>
12730
12731         * src/ds390/gen.c (genCmp): no comments
12732         * src/mcs51/gen.c (genCmp): no comments
12733         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12734         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12735
12736 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
12737
12738         * support/regression/generate-cases.py: place generated file in given sub directory
12739         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12740         * support/regression/Makefile: improvements for 'make -j';
12741         side effect: it's simpler and faster now
12742
12743 2003-03-31  Borut Razem <borut.razem AT siol.net>
12744
12745         * src/z80/main.c: link-{port} and as-{port} defined without path
12746         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12747
12748 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
12749
12750         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12751
12752 2003-03-30  Borut Razem <borut.razem AT siol.net>
12753
12754         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12755           changed type of list parameter to set
12756         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12757         * src/port.h: changed type of do_assemble() parameter to set
12758         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12759           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12760           definition of "cppoutfilename" macro with NULL value in preProcess()
12761         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12762         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12763         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12764           replaced with set *binPathSet
12765         * shash_add() deallocates the item, if allready exsists, before adding the new one
12766         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12767
12768 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
12769
12770         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12771           a nested for loop bug in the PIC port
12772         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12773           for loops
12774
12775 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
12776
12777         * support/Util/dbuf.h: remove C++ stuff to make it portable
12778
12779 2003-03-28  Borut Razem <borut.razem AT siol.net>
12780
12781         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12782           literal strings in stringLiteral()
12783         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12784         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12785           to the project
12786
12787 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
12788
12789         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12790
12791 2003-03-26    <johan AT balder>
12792
12793         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12794         * src/ds390/gen.c (saveRegisters): catched symbol abuse
12795         * src/SDCCast.c (decorateType): fixed " -v < 3"
12796
12797 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
12798
12799         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
12800         Added Lenny Story's debug infrastructure changes:
12801         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
12802         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
12803         * src/cdbFile.c: added
12804         * src/SDCCdebug.c: added
12805         * src/SDCCdebug.h: added
12806         * src/SDCCast.c (createFunction)
12807         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
12808         * src/SDCCmain.c (parseCmdLine, main)
12809         * src/SDCCmem.c (redoStackOffsets)
12810         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
12811         * src/SDCCsymt.h
12812         * src/common.h
12813         * src/avr/gen.c (genAVRCode)
12814         * src/ds390/gen.c (gen390Code)
12815         * src/mcs51/gen.c (gen51Code)
12816         * src/pic/gen.c (genpic14Code)
12817         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
12818         * src/xa51/gen.c (genXA51Code)
12819         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
12820
12821 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12822
12823         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
12824         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
12825
12826 2003-03-22    <johan AT balder>
12827
12828         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
12829
12830 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
12831
12832         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
12833         * doc/cdbfileformat.lyx: added, written by Lenny Story
12834         * doc/Makefile: added cdbfileformat.lyx
12835         * doc/clean.mk: added cdbfileformat.lyx
12836
12837 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
12838
12839         * src/mcs51/peeph.def: fix bug #705773
12840
12841 2003-03-20    <johan AT balder>
12842
12843         An sfr/sbit can have an "at #" AND an initializer
12844         * src/SDCCsymt.c (checkSClass):
12845         * src/SDCCmem.c (allocGlobal):
12846         * src/SDCCmem.c (allocLocal):
12847         * src/SDCCast.c (createBlock):
12848
12849 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
12850
12851         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
12852
12853 2003-03-16    <johan AT balder>
12854
12855         Undid the hackup of const and volatile, the problem is much bigger
12856         * src/SDCC.y:1.65
12857         * src/SDCCast.c:1.171
12858         * src/SDCCglue.c:1.138
12859         * src/SDCCicode.c:1.146
12860         * src/SDCCsymt.c:1.150
12861         * src/SDCCval.c:1.65
12862
12863 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
12864
12865         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
12866         * src/ds390/gen.c (genAddrOf): fixed bug #704087
12867
12868 2003-03-13    <johan AT balder>
12869
12870         Hackup const and volatile modifiers in type chains a bit:
12871         * src/SDCC.y:1.63
12872         * src/SDCCast.c:1.169
12873         * src/SDCCglue.c:1.136
12874         * src/SDCCicode.c:1.143
12875         * src/SDCCsymt.c1.146
12876         * src/SDCCsymt.h1.59
12877         * src/SDCCval.c:1.63
12878
12879 2003-03-12    <johan AT balder>
12880
12881         * src/SDCCBBlock.h: more LRH debugging junk
12882         * src/SDCCcflow.h: more LRH debugging junk
12883         * src/SDCCloop.c: more LRH debugging junk
12884         * src/SDCC.y (struct_declaration): fixed bug #697590
12885         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
12886         * src/ds390/gen.c (aopForRemat): fixed bug #700031
12887         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
12888
12889 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12890         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
12891         test function names must now match exactly).
12892         * src/SDCCcse.c: added special case in findCheaperOp to allow
12893         extending a short integer. Makes less awful code for bug 700121 test case.
12894
12895 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12896
12897         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
12898         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
12899
12900 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12901
12902         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
12903         actually called (operandsNotEqual() was called for all
12904         operandsNotEqualX tests).
12905
12906 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12907
12908         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
12909         with shorter literals. Fixes bug 700121.
12910
12911 2003-03-11    <johan AT balder>
12912
12913         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
12914
12915 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
12916
12917         * src/SDCCloop.c (mergeRegions): an evil beast is dead
12918         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
12919
12920 2003-03-10  Borut Razem <borut.razem AT siol.net>
12921
12922         * src/SDCCmain.c: pipe preprocessor's output
12923         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12924         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12925         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12926         which closes all pipes in pipeSet set
12927         * src/SDCCset.c: free deleted item in function deleteSetItem()
12928         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12929         moved from z80 to src subproject
12930         * .version: increased version number to 2.3.4
12931
12932 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
12933
12934         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
12935         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
12936         * support/regression/ports/xa51/spec.mk: fix typo
12937
12938 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
12939
12940         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
12941
12942 2003-03-09  Borut Razem <borut.razem AT siol.net>
12943
12944         * src/SDCCmain.c: pipe preprocessor's output
12945         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12946         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12947         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12948         which closes all pipes in pipeSet set
12949         * src/SDCCset.c: free deleted item in function deleteSetItem()
12950         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12951         moved from z80 to src subproject
12952
12953 2003-03-09  Borut Razem <borut.razem AT siol.net>
12954
12955         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
12956         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
12957         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
12958         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
12959         * src/SDCCglobl.h: unification of WIN32 native definitions
12960
12961 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12962
12963         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
12964
12965 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12966
12967         * src/configure.in:   check for endianess (even while cross-compiling)
12968         * src/configure:      check for endianess (even while cross-compiling)
12969         * src/configure_in.h: check for endianess (even while cross-compiling)
12970         * src/avr/gen.c:        remove old endianess stuff
12971         * src/mcs51/gen.c:      remove old endianess stuff
12972         * src/ds390/gen.c:      remove old endianess stuff
12973         * src/pic/gen.c:        remove old endianess stuff
12974         * src/pic/genarith.c:   remove old endianess stuff
12975         * src/pic/glue.c:       fix endianess check
12976         * src/pic16/gen.c:      remove old endianess stuff
12977         * src/pic16/genarith.c: remove old endianess stuff
12978         * src/pic16/glue.c:     fix endianess check
12979         * src/xa51/gen.c:       remove old endianess stuff
12980         * src/z80/gen.c:        fix endianess check
12981         * src/SDCCglue.c:       fix endianess check
12982         * src/ds390/peeph.def: fix bug 700036
12983
12984 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12985
12986         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
12987         * src/configure: find appropriate data-types on host for SDCC's int and long
12988         * src/configure.in: find appropriate data-types on host for SDCC's int and long
12989         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
12990         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
12991
12992 2003-03-07    <johan AT balder>
12993
12994         Just a big NOOP:
12995                 some minor cleanups before the big shot
12996                 OP_DEFS and OP_USES now use Kevin's protection
12997                 new option --nolabelopt
12998
12999         * src/SDCCBBlock.c:
13000         * src/SDCCast.c,:
13001         * src/SDCCcflow.c:
13002         * src/SDCCcse.c:
13003         * src/SDCCicode.c:
13004         * src/SDCCicode.h:
13005         * src/SDCClabel.c:
13006         * src/SDCCloop.c:
13007         * src/SDCCmain.c:
13008         * src/ds390/ralloc.c:
13009         * src/mcs51/ralloc.c:
13010         * src/pic/ralloc.c:
13011         * src/xa51/ralloc.c:
13012         * src/z80/ralloc.c:
13013
13014 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
13015
13016         * src/pic/pcode.c (get_op): fix 64 bit warnings
13017         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
13018         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
13019         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
13020         * support/regression/tests/malloc.c: fix 64 bit warnings
13021
13022 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
13023
13024         * src/mcs51/gen.c (genMinus): fixed bug 696436
13025
13026 2003-03-02  Borut Razem <borut.razem AT siol.net>
13027
13028         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
13029
13030 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
13031
13032         * configure.in: test for mkstemp
13033         * sdccconf_in.h: add HAVE_MKSTEMP
13034
13035 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
13036
13037         * device/include/ctype.h: removed warning while using --stack-auto
13038         * device/include/malloc.h: removed warning while using --stack-auto
13039         * device/include/string.h: removed warning while using --stack-auto
13040
13041 2003-02-23  Borut Razem <borut.razem AT siol.net>
13042
13043         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
13044         because NDEBUG is defined (see man assert)
13045         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
13046
13047 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13048
13049         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
13050         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
13051
13052 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13053
13054         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
13055         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
13056
13057 2003-02-18    <johan AT balder>
13058
13059         * as/mcs51/asmain.c (asmbl): module can start with a digit
13060         * as/z80/asmain.c (asmbl): module can start with a digit
13061
13062 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
13063
13064         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
13065         * src/asm.c: fix pipe() for Mingw32
13066
13067 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
13068
13069         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
13070         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
13071         make -V work again; --c1mode reads now from stdin
13072         * doc/sdccman.lyx: added --c1mode
13073         * support/Util/SDCCerr.c: new messages for c1 mode
13074         * support/Util/SDCCerr.h: new messages for c1 mode
13075         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
13076
13077 2003-02-15    <johan AT balder>
13078
13079         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
13080
13081 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
13082
13083         * doc/sdccman.lyx: Environment variables, -o and other minor things
13084
13085 2003-02-14    <johan AT balder>
13086
13087         * src/xa51/main.c: before anyone really tries to use it :)
13088
13089         * Install doc's in share/sdcc/doc
13090         * removed some obsolete files
13091         * Do a proper make distclean and uninstall
13092         M Makefile.common.in
13093         R sdccbuild.sh
13094         M as/Makefile
13095         M device/include/Makefile.in
13096         M device/lib/Makefile.in
13097         M doc/sdccman.lyx
13098         M link/Makefile
13099         M sim/ucsim/doc/Makefile.in
13100         M src/clean.mk
13101         R src/avr/peeph.rul
13102         R src/xa51/peeph.rul
13103         M support/cpp2/Makefile.in
13104         M support/makebin/Makefile
13105
13106
13107 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13108
13109         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13110
13111 2003-02-10  Borut Razem <borut.razem AT siol.net>
13112
13113         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13114         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13115         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13116         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13117         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13118         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13119         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13120         src/z80/Makefile.bcc: Borland Makefile cleanup
13121         * as/z80/Makefile.bcc: Added Borland Makefile
13122         * support/cpp2/borland.h: Removed
13123
13124 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13125
13126         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13127         * src/SDCC.lex: new pragma NOIV
13128         * src/SDCCglobl.h: new pragma NOIV
13129         * src/SDCCmem.c: new pragma NOIV
13130
13131 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13132
13133         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13134
13135 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13136
13137         * src/SDCCmain.c: signal handling is switched off by --debug
13138         * doc/Makefile: small fix for install; use clean.mk again
13139         * doc/clean.mk: clean *.pdf and *.html too
13140
13141 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13142
13143         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13144         * device/lib/printfl.c: fix a ds390 bug by making it portable
13145         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13146         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13147         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13148         * debugger/mcs51/cmd.c: converted multi-line string literals
13149         * sim/ucsim/globals.cc: converted multi-line string literals
13150         * src/SDCCmain.c: introduced signal handler to remove temp files
13151         * doc/Makefile: small tweaks, implement clean
13152         * doc: removed generated files
13153
13154 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13155
13156         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13157         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13158         Address Record is not correctly generated for DS390."
13159
13160 2003-02-02  Borut Razem <borut.razem AT siol.net>
13161
13162         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13163         * as/mcs51/asm.h: fixed compilation with Borland C
13164         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13165         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13166         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13167         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13168         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13169         src/z80/Makefile.bcc: delete $(LIB) only if exist
13170         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13171
13172 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13173
13174         * device/include/malloc.h: introduced NULL
13175         * device/include/string.h: introduced NULL
13176         * device/include/stdlib.h: introduced NULL
13177         * device/lib/_memcpy.c: removed NULL
13178         * device/lib/_strcat.c: removed NULL
13179         * device/lib/_strchr.c: removed NULL
13180         * device/lib/_strcmp.c: removed NULL
13181         * device/lib/_strcpy.c: removed NULL
13182         * device/lib/_strcspn.c: removed NULL
13183         * device/lib/_strlen.c: removed NULL
13184         * device/lib/_strncat.c: removed NULL
13185         * device/lib/_strncmp.c: removed NULL
13186         * device/lib/_strncpy.c: removed NULL
13187         * device/lib/_strpbrk.c: removed NULL
13188         * device/lib/_strrchr.c: removed NULL
13189         * device/lib/_strspn.c: removed NULL
13190         * device/lib/_strstr.c: removed NULL
13191         * device/lib/_strtok.c: removed NULL
13192         * device/lib/malloc.c: removed NULL, include own header
13193
13194 2003-02-02    <johan AT balder>
13195
13196         * 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
13197         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13198         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13199         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13200         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13201         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13202
13203 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13204
13205         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13206         area 'DATA'"
13207
13208 2003-02-01    <johan AT balder>
13209
13210         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13211
13212 2003-01-31    <johan AT CP255758-A>
13213
13214         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13215
13216 2003-01-30    <johan AT balder>
13217
13218         * src/SDCCBBlock.c: automatic bug detection
13219         * src/SDCCicode.c: automatic bug detection
13220
13221 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13222
13223         * src/SDCCglobl.h:   now --xram-size 0 works
13224         * src/SDCCmain.c:    now --xram-size 0 works
13225
13226 2003-01-29    <johan AT balder>
13227
13228         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13229
13230 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13231
13232         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13233         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13234         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13235         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13236         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13237         * src/SDCCmain.c:    Added options --xram-size and --code-size
13238
13239 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13240
13241         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13242         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13243
13244 2003-01-27    <johan AT balder>
13245
13246         * src/SDCC.y: fixed bug #613764
13247
13248 2003-01-26    <johan AT balder>
13249
13250         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13251         * src/SDCCsymt.h: fixed bug #673374
13252         * src/SDCCglue.c: fixed bug #661910
13253         * src/SDCCast.c: fixed bug #458099 and 673374
13254
13255 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13256
13257         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13258         * as/mcs51/strcmpi.h: added
13259         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13260         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13261         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13262         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13263         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13264         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13265         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13266         * as/mcs51/Makefile.aslink: new module strcmpi
13267         * as/mcs51/Makefile.asx8051: new module strcmpi
13268         * as/mcs51/Makefil.bcc: new module strcmpi
13269         * as/mcs51/Makefile.in: new module strcmpi
13270         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13271
13272 2003-01-26    <johan AT balder>
13273
13274         * src/SDCCglue.c: reverted back to 1.124
13275         * src/SDCCast.c: reverted back to 1.156
13276         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13277
13278 2003-01-25    <johan AT balder>
13279
13280         * src/SDCCglue.c: A better fix for bug #661910
13281         * src/SDCCast.c: A better fix for bug #661910
13282         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13283
13284 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13285
13286         * src/Makefile.in: remove spawn.o
13287         * src/SDCCmain.c: remove spawn.h
13288         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13289         * src/spawn.c: removed
13290         * src/spawn.h: removed
13291         * support/regression/ports/ds390/spec.mk: link with -r
13292
13293 2003-01-24    <johan AT CP255758-A>
13294
13295         * src/ds390/gen.c (aopOp): fixed bug #667458
13296         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13297         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13298         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13299
13300 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13301
13302         * src/mcs51/peeph.def: better assembler identation by Frieder
13303         * src/mcs51/gen.c: better assembler identation by Frieder
13304
13305 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13306
13307         * as/z80/string.h: removed for gcc 3.2
13308         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13309         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13310
13311 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13312
13313         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13314         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13315         * support/regression/Makefile: separate temp files for ports
13316         * support/regression/generate-cases.py: separate temp files for ports
13317         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13318         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13319
13320 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13321
13322         * moved tinitalk to device/examples/ds390
13323
13324 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13325
13326         * as/mcs51/lkmem.c: rflag is for DS390
13327         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13328         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13329                          (linkEdit): move mem- and map-files the same way as ihx-files
13330         * src/z80/main.c (_setDefaultOptions): removed --generic
13331         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13332         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13333         * src/pic/glue.c (picglue): --c1mode works again
13334         * src/pic16/glue.c (pic16glue): --c1mode works again
13335         * src/asm.c (printCLine): fix #660034
13336
13337 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13338
13339         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13340         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13341         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13342         * as/mcs51/lkmem (summary): better fix for sp problem
13343         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13344         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13345         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13346                                               remove --stack-after-data
13347
13348 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13349
13350         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13351         * src/SDCCutil.c (join): ugly bug: missing '\0'
13352         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13353
13354 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13355
13356         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13357         * src/port.h: typo
13358         * src/pic/main.c (_asmCmd): gpasm supports -o
13359         * src/z80/main.c: more general macros
13360         * device/lib/Makefile.in: remove intermediate files
13361
13362 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13363
13364         * .version: Bumped version number to 2.3.3
13365         * src/SDCCBBlock.c: new option -o
13366         * src/SDCCglobl.h: new option -o
13367         * src/SDCCglue.c: new option -o
13368         * src/SDCCmain.c: new option -o
13369         * src/asm.c: new option -o
13370         * src/ds390/main.c: new option -o
13371         * src/pic/glue.c: new option -o
13372         * src/pic/pcode.c: new option -o
13373         * src/pic/ralloc.c: new option -o
13374         * src/pic16/glue.c: new option -o
13375         * src/pic16/pcode.c: new option -o
13376         * src/pic16/ralloc.c: new option -o
13377         * src/z80/main.c: new option -o
13378         * device/lib/Makefile.in: use -o
13379         * support/regression/ports/ds390/spec.mk: use -o
13380         * support/regression/ports/gbz80/spec.mk: use -o
13381         * support/regression/ports/mcs51/spec.mk: use -o
13382         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13383         * support/regression/ports/z80/spec.mk: use -o
13384         * support/regression/ports/ucz80/spec.mk: use -o
13385         * support/regression/ports/xa51/spec.mk: use -o
13386         * support/regression/fwk/lib/timeout.c: fix usage string
13387
13388 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13389         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13390
13391 2003-01-07    <johan AT balder>
13392
13393         * src/SDCCast.c (decorateType): fixed bug #600035
13394
13395 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13396         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13397         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13398         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13399         * src/pic/pcode.c: outcommented unused variable to remove warnings
13400         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13401
13402 2003-01-06    <karl AT turbobit.com>
13403         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13404    regression tests.
13405
13406 2003-01-06    <johan AT balder>
13407
13408         * src/SDCCicode.c: fixed array add
13409
13410 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13411         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13412         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13413
13414 2003-01-04    <johan AT balder>
13415
13416         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13417
13418 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13419         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13420
13421 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13422         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13423         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13424
13425 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13426         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13427
13428 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13429         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13430
13431 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13432         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13433
13434 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13435
13436     * in /sdcc/as/mcs51/ changed these files in order to create an
13437     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13438     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13439     following files to include the previous two files: aslink.dsp,
13440     Makefile.aslink, Makefile.bcc, and Makefile.in.
13441
13442     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13443     .adb instead of .cdb
13444
13445 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13446
13447         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13448         value from option --iram-size.
13449
13450 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13451
13452         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13453         dram[] array.
13454
13455 2002-09-18    <wiml AT hhhh.org>
13456
13457         * SDCClrange.h: exposed setFromRange() and setToRange()
13458         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13459           packRegsForAccUse() (bug 542397)
13460         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13461           multiple times and emitting the fetch operations more than once
13462           added aopGetUsesAcc() function to allow binary operators to
13463           fetch their operands in the correct order; made genMinus() emit
13464           compact code for X = LITERAL - Y
13465
13466 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13467         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13468         sprintf() in line 1267.
13469
13470 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13471         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13472         like ports.
13473
13474 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13475         Changes to aslink (All the changes are marked with 'JCF'):
13476
13477         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13478         summary().
13479
13480         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13481         area BSEG.  Also moves, if possible, the DATA area down into the internal
13482         ram so more space is available.
13483
13484         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13485         sflag.
13486
13487         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13488         not bytes.  Function summary() which creates a memory usage summary
13489         file with extension .mem.  Reports of overlaping stack and small stack
13490         size.  If the space for the stack is less than 16 bytes aslink trows a
13491         warning.
13492
13493         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13494         the 8051.  Option 'y' for memory summary output file.
13495
13496         Changes to sdcc (All the changes are marked with 'JCF'):
13497
13498         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13499
13500         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13501         overlaying area for it (uses RegBankUsed[4]).
13502
13503         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13504         bank zero as used by default.  By default aslink locates the stack
13505         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13506         the creation of the .mem file.  Delegates the allocation of data area
13507         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13508         the begining of the stack area to aslink.
13509
13510         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13511         glue() in SDCCglue.c creates an area for it.
13512
13513 2002-09-03  Borut Razem <borut.razem AT siol.net>
13514         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13515         sdcc/src/pic/glue.c:
13516         introduced atexit() handler for teporay files removal in case of
13517         errors, assertions, ...
13518
13519 2002-08-29  Borut Razem <borut.razem AT siol.net>
13520         * sdcc/support/cpp2/auto-host_vc_in.h:
13521         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13522         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13523         Maybe there is a similar problem with BORLANDC? It should be checked!
13524
13525         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13526         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13527         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13528         was not executed, and the compiler (cl) launched a warning:
13529         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13530
13531 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13532         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13533
13534 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13535         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13536
13537         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13538           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13539           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13540           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13541           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13542           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13543           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13544         - added Release configuration in VS projects
13545         - review of compiler an linker options
13546         - VC .exe files are generated in bin_vc directory, not to interfere
13547           with binaries generated from other projects (cygwin, mingw, bcc ...)
13548
13549         * sdcc/src/yacc.dsp: added
13550
13551         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13552         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13553         and insert the version number definitions from .version
13554
13555         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13556
13557         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13558         added - genarate auto-host.h using auto-host_vc_in.h as template
13559
13560         * sdcc/sdcc_vc.h,
13561         removed from CVS, generated automatically
13562
13563 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13564         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13565
13566 2002-08-11  Borut Razem <borut.razem AT siol.net>
13567         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13568
13569 2002-08-10  Borut Razem <borut.razem AT siol.net>
13570         * src/SDCCmain.c (main):
13571         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13572         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13573         The consequence was that some temporary files were not removed.
13574
13575         * src/SDCCglue.c:
13576         unification of code in functions tempfilename() and tempfile():
13577         function tempnam() is defined in Visual Studio 6.0 and .NET
13578
13579         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13580
13581         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13582           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13583         - removed compiler command line option /WX: Treats all warnings as errors
13584         - update a list of source files, included into the project
13585
13586         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13587           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13588         changed project type to Generic Project so that can be correcly converted to VS.NET project
13589
13590         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13591
13592         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13593
13594         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13595
13596         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13597         added return 0 statements after assert() to make compiler happy
13598
13599         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13600         added newline in the def file to keep MSC compiler satisfied
13601
13602         * sdcc/src/z80/gen.c:
13603         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13604           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13605         - solved MSC error in function aopDump()
13606
13607         * sdcc_vc.h: define PREFIX as "\\sdcc"
13608
13609 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
13610         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13611
13612 2002-06-22  Scott Dattalo <scott AT dattalo.com>
13613         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13614         - Rewrote the register banking algorithm.
13615         - Added pCode live-range analysis to registers (for now, only non-used and
13616         singly-used registers optimized away)
13617
13618         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13619
13620         * 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.
13621
13622 2002-05-10  Scott Dattalo <scott AT dattalo.com>
13623         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13624
13625 2002-04-22  Michael Hope  <michaelh AT vroom>
13626
13627         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13628
13629         * configure.in (DD_COPT): Added include support required for gbdk.
13630
13631         * .version: Bumped version number just to increase it.
13632
13633         * src/SDCCmain.c: Added -nostdinc to the default options.
13634
13635 2002-04-15  Michael Hope  <michaelh AT vroom>
13636
13637         * device/lib/z80/printf.c (sprintf): Added.
13638
13639         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13640
13641         * src/z80/peeph.def: Added transpose redundent load rule.
13642
13643         * src/z80/main.c: Added force callee saves for jaune.
13644
13645         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13646
13647         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13648
13649 2002-03-28  Johan Knol  <johan AT balder>
13650
13651         * src/SDCCval.c: fixed bug #532436
13652
13653 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13654         * /src/port.h:
13655         Added "char *Processor" field to the port structure.
13656
13657         * /src/SDCCmain.c:
13658         Added -p option. Allows port dependent processor to be specified.
13659
13660         * all ports:
13661         Initialized the new field char *Processor field to NULL in all ports
13662
13663         * /src/pic/*:
13664         Compiler generated registers for interrupt context saving
13665         were not getting allocated.
13666
13667 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
13668
13669         * /src/SDCCast.c:
13670         Fixed left shift. Will promote the left side of a left shift
13671         if a) left shifting more than size of operand or b) when assigned
13672         to something size > size of left side
13673
13674 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13675         * src/pic/*
13676         tons of changes. Register allocation has been
13677         rewritten. Added customization for the various PICs. Flow
13678         analysis is restructured. ...
13679
13680         * src/pic/device.h:
13681         Added
13682
13683         * src/pic/device.c:
13684         Added. device.c is a PIC port hack to accomodate variations
13685         in PIC devices.
13686
13687 2002-03-13  Michael Hope  <michaelh AT vroom>
13688
13689         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
13690
13691 2002-03-04  johanknol  <johanknol AT manik>
13692
13693         * /src/SDCCval.c: fixed
13694
13695         const unsigned char arr[][2] = { { 0, 1 } };
13696         t18.c:1: error: Initializer element is not constant
13697
13698 2002-03-04  bela  <bela AT manik>
13699
13700         * /device/include/mcs51reg.h:
13701         ds89c420 register definition update
13702
13703 2002-03-03    <johan AT FRIJA>
13704
13705         * support/Util/SDCCerr.c: did something, but don't no why anymore
13706
13707         * support/regression/tests/bug-524691.c: made it a little less shy
13708
13709         * src/SDCCast.c (decorateType): fixed bug #524697
13710
13711         * src/SDCCast.c: made some lineno improvements
13712
13713         * src/SDCCval.c (getNelements): changed warning to error
13714
13715         * src/SDCCglue.c (printIvalArray): changed warning to error
13716
13717         * src/SDCCicode.c: fixed a warning for mingw
13718
13719         * src/SDCCast.c (decorateType): fixed the << promotion for ops
13720
13721         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13722
13723 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
13724
13725         * src/ds390/peeph.def:
13726         Added some more peephole rules
13727
13728         * src/ds390/gen.c: Various fixes & enhancements
13729
13730         * src/SDCClrange.c, src/SDCClrange.h:
13731         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13732
13733         * src/ds390/ralloc.c:
13734         various fixes & enhancements (ds390) specific
13735
13736         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13737         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13738         from rallocs.
13739
13740         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13741
13742 2002-03-02    <johan AT FRIJA>
13743
13744         * src/SDCCast.c (decorateType): fixed bug #524708
13745
13746         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13747
13748         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13749
13750 2002-03-01  Michael Hope  <michaelh AT vroom>
13751
13752         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13753
13754         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13755
13756 2002-03-01    <johan AT FRIJA>
13757
13758         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13759
13760         * src/SDCCast.c (decorateType): fixed bug #524209
13761
13762         * src/SDCCval.c (valNot): fixed bug #524195
13763
13764 2002-02-26    <johan AT balder>
13765
13766         * src/xa51/gen.c: fixed a warning
13767
13768         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13769
13770         * src/SDCCast.c (decorateType): fixed bug #522534
13771
13772 2002-02-23    <johan AT balder>
13773
13774         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13775
13776 2002-02-22    <johan AT balder>
13777
13778         * src/SDCCast.c: fixed bug #514865
13779
13780         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13781
13782 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
13783
13784         * sdcc/src/SDCCloop.c:
13785         Previous fix was not good. basic blocks that have "break" or "return" are
13786         not really partof a loop , but live ranges used in these blocks should
13787         be live thru the entire loop, so set partOfLoop but don't add them to
13788         loop region
13789
13790 2002-02-21    <johan AT FRIJA>
13791
13792         * src/SDCCcse.c: fixed bug #514308
13793
13794 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
13795
13796         * src/SDCCloop.c:
13797         Fixed BUG #519583. If a conditional block ended in a return/break
13798         statement inside a loop, it was not being considered part of the loop.
13799
13800         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
13801
13802 2002-02-10  Karl Bongers <karl AT turbobit.com>
13803
13804         * debugger/*:
13805         Fixed up SDCDB debugger somewhat.  Updated debugger/README
13806         with lots of comments and notes.
13807
13808         * device/examples/test2.c:
13809         Fix bug, "red" variable not being initialized(compiler complained).
13810
13811         * device/examples/Makefile, examples/test3.c:
13812         Add Makefile in device/examples folder, compiles test3.c
13813         for use as a multiple module SDCDB test case.
13814
13815         * sim/ucsim/cmd.src/cmdset.cc:
13816         Took out debug printfs in ucsim "next" command.
13817
13818         * sim/ucsim/xa.src:
13819         Karl and Johan start ucsim XA support.  Most dissassembly working,
13820         about 75% emulation done(plenty of work remaining).
13821
13822         * sim/ucsim/z80.src:
13823         Add Z80 support to ucsim, add test-ucz80 regression test,
13824         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
13825         Notice z80 compiler fails on examples/test3.c/crc code.
13826
13827 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
13828
13829         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
13830         Added support for --parms-in-bank1
13831
13832         * src/ds390/peeph.def:
13833         added a few more peephole optimzations
13834
13835         * src/ds390/main.c:
13836         1) added __builtin_inp & __builtin_outp used to read in data of given length
13837            from a memory mapped port
13838         2) added __builtin_memcmp
13839         3) added __builtin_swapw swap bytes of a short
13840
13841         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
13842         1) handle multiple send & receives from register bank1
13843         2) ralloc can now allocate DPTR1 to some liveRanges
13844
13845         * src/SDCCsymt.c, src/SDCCsymt.h:
13846         changes to handle multiple sends & receives
13847
13848         * src/SDCCptropt.h:
13849         added some pointer arithmetic optimization
13850
13851         * src/SDCCptropt.c:
13852         added some pointer arithmetic optimizations but not stable yet so not
13853         called from anywhere (will get this working shortly)
13854
13855         * src/SDCCopt.c: fixed for multiple sends & receives
13856
13857         * src/SDCCmain.c:
13858         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
13859         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
13860            set preprocessor defines (depending on options)
13861
13862         * src/SDCCicode.c, src/SDCCicode.h:
13863         changes made to handle multiple sends & receives
13864
13865         * src/SDCCglobl.h:
13866         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
13867
13868         * src/SDCCcse.c, src/SDCCcse.h:
13869         added function findbackward def (to be used in upcoming optimization)
13870
13871         * src/SDCCcflow.c, src/SDCCcflow.h:
13872         added function returnAtEnd - to determine if a basic block terminates with
13873         a RETURN iCode
13874
13875         * src/SDCCast.c, src/SDCCast.h:
13876         added option parms-in-bank1
13877
13878         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
13879         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
13880         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
13881         adjusted for --parms-in-bank1 option
13882
13883         * device/include/string.h:
13884         donot redefine "reentrant" keyword
13885
13886         * device/include/ds80c390.h: Added some more SFRs
13887
13888 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
13889
13890         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
13891
13892 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
13893
13894         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
13895
13896 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
13897
13898         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
13899
13900 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
13901
13902         * Added --xram-movc option
13903
13904 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
13905
13906         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
13907
13908 2002-01-11  Johan Knol
13909
13910         * Added math lib of Jesus Calvino-Fraga
13911
13912 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
13913
13914         * src/SDCCmain.c (processFile): fix processing of ../../src.c
13915         * support/regression/Makefile: new target test-mcs51-stack-auto
13916         * support/regression/ports/mcs51-stack-auto/spec.mk: added
13917
13918 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13919
13920         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
13921
13922 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13923
13924         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
13925
13926 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
13927
13928         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
13929
13930         * src/SDCCglue.h: add definition for printIvalChar()
13931
13932 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13933
13934         * src/SDCCast.c: fix #498138 by Johan
13935
13936         * src/SDCCglue.c: fix #498138 by Johan
13937
13938 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13939
13940         * support/regression/Makefile: fix clean
13941
13942         * support/regression/ports/ds390/support.c: fix transmission of last character
13943
13944 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
13945
13946         * /sdcc/src/ds390/gen.c:
13947         a) improved computing address of stack variable
13948         b) took out some #if 0 code
13949         c) improved parmBytes adjustment
13950         d) improved genPlusIncr & genMinusIncr
13951         e) genCmp could generate bad code (when left assigned to DPTR)
13952         f) Fixed bug in hasInc
13953
13954         * /sdcc/src/ds390/ralloc.c:
13955         a) packRegsForSupport could mess up live information (Fixed)
13956         b) packRegsDPTRuse could be incorrect for left & right shift
13957
13958         * /sdcc/src/mcs51/ralloc.c:
13959         packRegsForSupport could mess up the live information (Fixed)
13960
13961         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
13962
13963         * /sdcc/src/SDCCast.c:
13964         can reverse a loop even if function call is present as long
13965         as the loop control variable is local & is not passed as parameter
13966
13967 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13968
13969         * /sdcc/ChangeLog: *** empty log message ***
13970
13971         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
13972         More builtin function additions for TININative
13973
13974         * /sdcc/src/ds390/ralloc.c:
13975         Had broken the regression testsuite
13976
13977         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
13978
13979         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
13980         Added funcattr hasStackParms will be set for reentrant functions when there
13981         are paramteres on the stack, this helps in minimizing frame pointer generation
13982         typeFromStr can handle function pointers now
13983
13984         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
13985         *** empty log message ***
13986
13987 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13988
13989         * /src/ds390/gen.c, /src/ds390/main.c:
13990         More builtin function additions for TININative
13991
13992         * /src/ds390/ralloc.c:
13993         Had broken the regression testsuite
13994
13995         * /src/SDCCast.c: Fixed a bug in dumptree
13996
13997         * /src/SDCCsymt.c, /src/SDCCsymt.h:
13998         Added funcattr hasStackParms will be set for reentrant functions when there
13999         are paramteres on the stack, this helps in minimizing frame pointer generation
14000         typeFromStr can handle function pointers now
14001
14002         * /doc/builtins.txt, /doc/TININative.txt:
14003         *** empty log message ***
14004
14005
14006 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
14007
14008         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
14009         ALPHA version for -mTININative
14010
14011         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
14012         updated to reflect changes in the port structure
14013
14014         * /src/port.h:
14015         added function do_assemble (similar to do_link) if non-null this function
14016         will be called to do assembly (-mTININative) requires a multi command
14017         assembly
14018         added function genAssemblerEnd will be called to generate assembler Epilogue
14019
14020         * /src/SDCCsymt.c:
14021         added _JavaNative to debug info printing
14022
14023         * /src/SDCCmain.c: added option --tini-libid
14024         added port->do_assemble function (-mTININative) has a multi command assemble
14025
14026         * /src/SDCCglue.c: Disabled "constExpr" check
14027         added port->genAssemblerEnd function
14028
14029         * /src/SDCCglobl.h: Added option --tini-libid value
14030
14031         * /src/SDCCast.h:
14032         tookout optimizeCompare from the header (has no external references)
14033
14034         * /src/SDCCast.c: made one more function "static"
14035
14036 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
14037
14038         * src/z80/mappings.i: Added z80asm support.
14039
14040         * src/z80/main.c: Added z80asm support on --asm=z80asm
14041
14042         * src/z80/gen.c: Fixed asm portability issues.
14043
14044         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
14045
14046         * src/SDCCglue.c (printExterns): Added global/extern split.
14047
14048 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
14049
14050         * support/regression/Makefile: added test for mcs51 model large
14051
14052         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
14053
14054         * support/regression/ports/gbz80/spec.mk: added -mgbz80
14055
14056 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
14057
14058         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
14059
14060 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
14061
14062         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
14063
14064         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
14065
14066 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
14067
14068         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
14069
14070         * support/regression/tests/simplefloat.c: Port to mcs51.
14071
14072 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
14073         * support/regression/tests/bug-485362.c: Added.
14074
14075         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
14076
14077         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
14078
14079         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
14080
14081         * src/z80/gen.c (aopDump): Added a dump function.
14082
14083 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
14084         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
14085
14086         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
14087
14088         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
14089
14090         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
14091
14092         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
14093
14094         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
14095
14096         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
14097
14098         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
14099
14100         * support/regression/ports/ds390/support.c: Use tinibios.
14101
14102         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
14103
14104 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
14105
14106         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14107         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14108
14109         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14110
14111         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14112
14113 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14114
14115         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14116
14117         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14118         (packRegsForIYUse): Created and optimised.
14119
14120 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14121
14122         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14123 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14124
14125         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14126
14127         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14128
14129         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14130
14131 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14132
14133         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14134
14135         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14136
14137 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14138
14139         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14140
14141         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14142
14143         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14144
14145 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14146
14147         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14148         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14149         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14150
14151         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14152
14153         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14154         (genNotFloat): Added.
14155         (genUminusFloat): Added.
14156
14157         * device/lib/z80/Makefile: Added floating pt stubs.
14158
14159         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14160
14161         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14162
14163         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14164
14165 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14166
14167         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14168
14169         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14170
14171         * sdcc/support/regression/Makefile: Add port ds390.
14172
14173         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14174
14175         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14176
14177         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14178
14179         * sdcc/support/regression/ports/ds390/support.c: Added.
14180
14181         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14182
14183         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14184
14185         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14186
14187 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14188
14189         * device/include/malloc.h: Added z80 and gbz80 support.
14190
14191         * device/lib/gbz80/heap.s: Added.
14192
14193         * device/lib/z80/heap.s: Added.
14194
14195         * device/lib/malloc.c: Added z80 and gbz80 support.
14196
14197         * support/regression/tests/malloc.c (testMalloc): Added.
14198
14199         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14200
14201         * support/regression/tests/bug-478094.c: Added.
14202
14203         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14204
14205 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14206
14207         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14208
14209         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14210
14211         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14212
14213         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14214
14215         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14216
14217 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14218
14219         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14220
14221 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14222
14223         * support/regression/tests/bug-477927.c: Added.
14224
14225         * src/z80/peeph.def: Added minor rules.
14226
14227         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14228
14229         * src/z80/peeph.def: Added jump optimisation modification.
14230
14231 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14232
14233         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14234
14235 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14236
14237         * support/regression/tests/funptrs.c: Added.
14238
14239 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14240
14241         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14242
14243 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14244
14245         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14246
14247         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14248
14249         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14250         (movLeft2ResultLong): Created.
14251
14252         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14253         (joinPushes): Added.  Joins two char pushes into a word push.
14254
14255 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14256
14257         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14258
14259         * support/makebin/Makefile (install): Added creation of dest dir.
14260
14261 2001-10-24 Karl Bongers <karl AT turbobit.com>
14262
14263         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14264
14265 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14266
14267         * src/z80/ralloc.c: Turned off faulty pack for one use.
14268
14269         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14270
14271         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14272
14273 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14274
14275         * support/regression/Makefile: Improved clean
14276
14277         * support/regression/ports/gbz80/spec.mk: Added clean
14278
14279         * support/regression/ports/host/spec.mk: Added clean
14280
14281         * support/regression/ports/z80/spec.mk: Added clean
14282
14283         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14284
14285         * support/regression/ports/mcs51/timeout.c: little improvements
14286
14287 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14288
14289         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14290
14291         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14292
14293         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14294
14295 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14296
14297         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14298
14299         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14300
14301 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14302         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14303
14304         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14305
14306         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14307
14308         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14309
14310         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14311
14312         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14313
14314         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14315
14316         * support/regression/tests/longor.c: Added.
14317
14318 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14319
14320         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14321
14322         * as/mcs51/aslink.h: define PATH_MAX
14323
14324         * as/mcs51/asm.h: define PATH_MAX
14325
14326         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14327
14328         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14329
14330         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14331
14332         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14333
14334         * src/SDCCglobl.h: define PATH_MAX
14335
14336         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14337
14338         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14339
14340 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14341
14342         * src/z80/gen.c (gencjneshort): Fixed
14343
14344         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14345
14346 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14347
14348         * support/regression/tests/bug-469671.c: Added.
14349
14350         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14351
14352 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14353
14354         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14355
14356         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14357
14358 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14359
14360         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14361
14362         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14363
14364         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14365
14366         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14367
14368         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14369
14370         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14371
14372         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14373
14374 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14375
14376         * 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.
14377
14378         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14379
14380         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14381
14382 2001-10-07    <johan AT FRIJA>
14383
14384         * device/lib/gets.c (gets): fixed the return value.
14385
14386 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14387         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14388
14389         * 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.
14390
14391         * 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.
14392
14393         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14394
14395         * src/pic/gen.c: Removed Safe_strdup.
14396
14397         * configure.in: Added option to enable libgc support.
14398
14399         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14400         (bitVectUnion): Optimised.
14401         (bitVectIntersect): Optimised.
14402         (bitVectBitsInCommon): Optimised.
14403         (bitVectCplAnd): Optimised.
14404
14405         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14406
14407 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14408
14409         * src/SDCCmain.c: distinguish between assembler debug and plain options
14410
14411         * src/avr/main.c:   remove standard assembler options
14412
14413         * src/ds390/main.c: remove standard assembler options
14414
14415         * src/mcs51/main.c: remove standard assembler options
14416
14417         * src/port.h: removed "PENDING" comment
14418
14419 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14420
14421         * src/device/lib/_mulint.c  : new, with assember functions
14422
14423         * src/device/lib/_mullong.c : new, with assember functions
14424
14425         * src/device/lib/_divuint.c : with assember functions
14426
14427         * src/device/lib/_divsint.c : with assember functions
14428
14429         * src/device/lib/_divulong.c: with assember functions
14430
14431         * src/device/lib/_divslong.c: with assember functions
14432
14433         * src/device/lib/_moduint.c : with assember functions
14434
14435         * src/device/lib/_modsint.c : with assember functions
14436
14437         * src/device/lib/_modulong.c: with assember functions
14438
14439         * src/device/lib/_modslong.c: with assember functions
14440
14441         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14442
14443         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14444
14445         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14446                                       replaced _mululong.c and _mulslong.c by _mullong.c
14447
14448 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14449
14450         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14451
14452 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14453
14454         * src/SDCCglue.c: test, if win32api is available for MINGW
14455
14456 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14457
14458         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14459         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14460         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14461         * support/regression/ports/host/spec.mk: removed GENERIC
14462         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14463         * support/regression/ports/z80/spec.mk: removed GENERIC
14464
14465 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14466
14467         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14468
14469         * support/regression/tests/bug-467035.c: Created.
14470
14471 2001-10-01    <johan AT FRIJA>
14472
14473         * src/SDCC.y: fixed bug #466586 part 1
14474
14475 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14476
14477         * SDCCicode.c: z80 has no generic pointers
14478         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14479
14480 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14481
14482         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14483
14484 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14485
14486         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14487
14488         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14489
14490 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14491
14492         * configure.in: Fixed up so that ucsim is only configured once.
14493
14494         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14495
14496         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14497         (getPathDifference): As above.
14498
14499         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14500
14501         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14502
14503 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14504         * .version: Updated to 2.3.1
14505
14506         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14507         Added copyright header.
14508
14509         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14510         (assemble): Added support for macro based assembler commands.
14511         (linkEdit): Added support for macro based linker commands.
14512         (preProcess): Changed the pre-processor to use macros.
14513         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14514         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14515
14516         * device/lib/z80/crt0.s: Added module name for debugging.
14517
14518 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14519
14520         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14521
14522         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14523
14524         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14525
14526         * src/Makefile.in: Added SDCCmacro and SDCCutil
14527
14528 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14529
14530         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14531
14532 2001-09-16    <johan AT FRIJA>
14533
14534         * 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.
14535
14536 2001-09-15    <johan AT FRIJA>
14537
14538         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14539         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14540
14541 2001-09-11    <johan AT FRIJA>
14542
14543         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14544
14545 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14546
14547         * support/regression/tests/bug-460444.c: Added test case.
14548
14549         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14550         (genCast): Added justification for all of the asserts.
14551
14552 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14553
14554         * support/regression/support.c: _xdata replaced by xdata
14555
14556         * support/regression/spec.mk: removed _generic
14557
14558 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14559
14560         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14561
14562         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14563         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14564
14565         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14566
14567         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14568
14569         * support/regression/tests/bug-460010.c: Added test case.
14570
14571         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14572
14573 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
14574
14575         * support/regression/Makefile: inter-port-clean adjusted for mcs51
14576
14577         * support/regression/testfwk.c: removed workaround for bug #436344
14578
14579         * support/regression/tests/bp.c: use less memory with mcs51
14580
14581         * support/regression/tests/bug-441448.c: use less memory
14582
14583         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14584
14585         * support/regression/collate-results.py: typo
14586
14587 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
14588
14589         * support/regression/tests/fetchoverlap.c: Added new test case.
14590
14591         * support/regression/tests/bp.c: Added new test case.
14592
14593         * support/regression/tests/bug-448984.c: Added new test case.
14594
14595         * support/regression/tests/pow2shifts.c: Added new test case.
14596
14597         * src/z80/gen.c: Turned off the noise it normally generates for the release.
14598         (genlshTwo): Fixed right shift for count > 8.
14599
14600         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14601
14602 2001-09-08    <johan AT FRIJA>
14603
14604         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14605
14606 2001-09-07    <johan AT FRIJA>
14607
14608         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14609
14610         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14611
14612 2001-09-06    <johan AT FRIJA>
14613
14614         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14615         * bernhard noted me at this: "() equals to (void)" (1.38)
14616
14617 2001-09-05    <johan AT FRIJA>
14618
14619         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14620
14621 2001-09-04    <johan AT FRIJA>
14622
14623         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14624
14625
14626 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
14627
14628         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
14629
14630 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
14631
14632         * link/z80/aslink.h: Fixed path for PATH_MAX
14633
14634 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
14635
14636         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14637
14638         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14639
14640         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14641
14642         * 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.
14643
14644 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
14645
14646         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14647         (genCmp): Fixed up genCmp for the GB with longs.
14648
14649         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14650
14651         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14652
14653         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14654
14655         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14656
14657 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
14658
14659         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
14660
14661 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
14662
14663         * 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.
14664
14665         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14666
14667 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
14668
14669         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
14670
14671         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14672
14673 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
14674
14675   * sim/ucsim/configure:    little improvement of Cygwin-detection
14676   * sim/ucsim/configure.in: little improvement of Cygwin-detection
14677   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14678   * support/regression/tests/bug-221100.c: small changes for mcs51
14679   * support/regression/tests/bug-221168.c: small changes for mcs51
14680   * support/regression/tests/bug-227710.c: small changes for mcs51
14681   * support/regression/tests/staticinit.c: small changes for mcs51
14682   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14683   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14684   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14685
14686 $Revision$