* src/mcs51/peep.c (): fixed bug 1712928
[fw/sdcc] / ChangeLog
1 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * src/port.h: added TARGET_MCS51_LIKE
4         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
5           take advantage of it too
6         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
7           (shiftR2Left2Result): Optimized: don't check shifting by 0
8         * src/z80/peeph-z80.def,
9         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
10           modifications, see patch 1700823
11         * src/mcs51/peep.c (): fixed bug 1712928
12         * support/regression/tests/bug1712928.c: new, added
13
14 2007-05-05 Borut Razem <borut.razem AT siol.net>
15
16         * device/lib/pic16/Makefile.common.in,
17           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
18           removed bash dependencies
19
20 2007-05-01 Borut Razem <borut.razem AT siol.net>
21
22         * src/SDCCicode.c:
23           fixed bug #1710507: --i-code-in-asm makes compile fail
24           all iCode comments are now one liners
25         * src/mcs51/gen.c: fixed memory leak
26
27 2007-05-01 Raphael Neider <rneider AT web.de>
28
29         * device/lib/pic/libdev/*.c
30         * device/include/pic/*.h: regenerated all device libs from updated
31           .inc files
32         * support/scripts/inc2h.pl: documented usage, now uses strict to
33           catch more bugs
34
35 2007-04-30 Borut Razem <borut.razem AT siol.net>
36
37         * doc/sdccman.lyx:
38           fixed bug #1669175: Problem with space in output paths
39           documented how to use paths with spaces for Windows users
40
41 2007-04-29 Borut Razem <borut.razem AT siol.net>
42
43         * Fixed svn:eol-style and svn:keywords properties
44         * src/SDCCval.c: fixed bug
45           #1592871: Segfault with "large" const arrays of characters
46           replaced recursion with iteration
47         * Removed svn:executable property from non-executable files
48
49 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
50
51         * src/mcs51/gen.c (genRet): fixed bug 1707003
52
53 2007-04-27 Raphael Neider <rneider AT web.de>
54
55         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
56           createReachingDefinitions,assignValnums,pic16_destructDF,
57           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
58           prevent NULL pointer dereferences
59         * device/lib/pic/libdev/pic16f886.c,
60         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
61           prevent building them, gputils do not really support them yet
62
63 2007-03-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
64
65         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
66           helps printf_small. 32 bytes more __idata mem.
67
68 2007-04-27 Raphael Neider <rneider AT web.de>
69
70         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
71           return early when pb or pb->pcHead is NULL (patch #1708427)
72         * src/regression/empty.c,
73         * src/regression/Makefile: added test with empty functions
74         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
75
76 2007-04-27 Borut Razem <borut.razem AT siol.net>
77
78         * src/SDCCast.c: fixed feature request
79           #1547512: Redundant strings linked when using sizeof("abc")
80
81 2007-04-23 Borut Razem <borut.razem AT siol.net>
82
83         * doc/sdccman.lyx, src/SDCCmain.c:
84           peep-hole comments are generated only if --fverbose-asm option is
85           specified and --no-peep-comments is not, as proposed by Frieder.
86         * support/regression/Makefile.in: compile regression tests with
87           --fverbose-asm option so one can "grep" whether a new (or an old)
88           peephole is (still) applied; requested by Frieder.
89
90 2007-04-23 Kevin Buettner <kevin AT buettner.to>
91
92         * device/include/pic/pic16f886.h,
93         * device/include/pic/pic16f887.h,
94         * device/lib/pic/libdev/pic16f886.c,
95         * device/lib/pic/libdev/pic16f887.c,
96         * device/include/pic/pic14devices.txt,
97         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
98
99 2007-04-23 Kevin Buettner <kevin AT buettner.to>
100
101         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
102           fixes #1704666
103
104 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
105
106         * device/lib/_memset.c: assembler version for mcs51
107
108 2007-04-22 Borut Razem <borut.razem AT siol.net>
109
110         * support/scripts/listerr.c: program to create the list of errors and
111           warnings list from - added
112         * doc/sdccman.lyx: removed the note
113           "For list of warnings and corresponding codes, see err_warn.txt"
114         * src/SDCCsymt.c: fixed bug #1699804:
115           Bug with some uses of sizeof(static local array) (MCS51)
116         * support/regression/tests/bug-1699804.c: added
117
118 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
119
120         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
121           (main): added option -i,
122           (asmbl, case S_INCL): use search_path_fopen,
123           mostly from patch 1579668 by Peter Miller, thanks
124         * src/z80/main.c: fixed typo --callee-saves-bc
125         * device/include/mcs51/compiler.h: added sfrword for Tasking
126
127 2007-04-20 Borut Razem <borut.razem AT siol.net>
128
129         * src/z80/main.c: replaced reserved keyword asm with asmblr
130
131 2007-04-19 Borut Razem <borut.razem AT siol.net>
132
133         * src/port.h: use const pointers to strings
134         * src/SDCCargs.h: declared getStringArg() and getIntArg()
135         * src/pic16/main.c: include SDCCargs.h
136         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
137           const char, since the strings are dynamically allocated
138         * src/SDCCmain.c: options.code_seg and options.const_seg are
139           dynamically allocated; check port specific command line options
140           before the general ones
141         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
142
143 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
144
145         * device/include/ds400rom.h,
146         * device/lib/ds390/lcd390.c,
147         * device/lib/ds390/memcpyx.c,
148         * device/lib/ds390/rtc390.c,
149         * device/lib/ds400/ds400rom.c,
150         * device/lib/ds400/memcpyx.c,
151         * device/lib/hc08/_ret.c: more replacements of keywords with their
152           double underscore equivalents
153         * device/lib/ds390/Makefile.in,
154         * device/lib/ds400/Makefile.in,
155         * device/lib/gbz80/Makefile.in,
156         * device/lib/hc08/Makefile.in,
157         * device/lib/mcs51/Makefile.in,
158         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
159
160 2007-04-17 Borut Razem <borut.razem AT siol.net>
161
162         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
163           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
164           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
165           to --fverbose-asm, to be gcc'ish
166
167 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
168
169         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
170
171 2007-04-17 Borut Razem <borut.razem AT siol.net>
172
173         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
174         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
175           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
176           with their double underscore equivalent
177
178 2007-04-14 Borut Razem <borut.razem AT siol.net>
179
180         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
181           source"
182
183 2007-04-13 Borut Razem <borut.razem AT siol.net>
184
185         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
186           C99 standard
187         * device/examples/serialcomm/windows/serial.[ch],
188           device/examples/serialcomm/windows/test_serialcomm.cpp:
189           updated by Bela Torok
190         * device/examples/serialcomm/windows/serialcomm.dsw,
191           device/examples/serialcomm/windows/serialcomm.dsp: added
192
193 2007-04-13 Jan Waclawek <wek AT efton.sk>
194
195         * doc/sdccman.lyx: additions and changes at various places
196           (submitted as #1697136).
197           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
198
199 2007-04-10 Borut Razem <borut.razem AT siol.net>
200
201         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
202           LyX file format changed to 245
203         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
204           "FreeWare" replaced with "free open source"
205
206 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
207
208         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
209
210 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
211
212         * device/include/pic16/pic18fregs.h,
213         * device/lib/_bp.c,
214         * device/lib/_decdptr.c,
215         * device/lib/_divsint.c,
216         * device/lib/_divslong.c,
217         * device/lib/_divuint.c,
218         * device/lib/_divulong.c,
219         * device/lib/_fs2schar.c,
220         * device/lib/_fs2sint.c,
221         * device/lib/_fs2slong.c,
222         * device/lib/_fs2uchar.c,
223         * device/lib/_fs2uint.c,
224         * device/lib/_fs2ulong.c,
225         * device/lib/_fsadd.c,
226         * device/lib/_fscmp.c,
227         * device/lib/_fsdiv.c,
228         * device/lib/_fseq.c,
229         * device/lib/_fsget1arg.c,
230         * device/lib/_fsget2args.c,
231         * device/lib/_fsgt.c,
232         * device/lib/_fslt.c,
233         * device/lib/_fsmul.c,
234         * device/lib/_fsneq.c,
235         * device/lib/_fsnormalize.c,
236         * device/lib/_fsreturnval.c,
237         * device/lib/_fsrshift.c,
238         * device/lib/_fssub.c,
239         * device/lib/_fsswapargs.c,
240         * device/lib/_gptrget.c,
241         * device/lib/_gptrgetc.c,
242         * device/lib/_gptrput.c,
243         * device/lib/_logexpf.c,
244         * device/lib/_modsint.c,
245         * device/lib/_modslong.c,
246         * device/lib/_moduint.c,
247         * device/lib/_modulong.c,
248         * device/lib/_mulint.c,
249         * device/lib/_mullong.c,
250         * device/lib/_schar2fs.c,
251         * device/lib/_ser.c,
252         * device/lib/_setjmp.c,
253         * device/lib/_sint2fs.c,
254         * device/lib/_slong2fs.c,
255         * device/lib/_spx.c,
256         * device/lib/_uchar2fs.c,
257         * device/lib/_uint2fs.c,
258         * device/lib/_ulong2fs.c,
259         * device/lib/asincosf.c,
260         * device/lib/atanf.c,
261         * device/lib/calloc.c,
262         * device/lib/ds390/tinibios.c,
263         * device/lib/ds400/tinibios.c,
264         * device/lib/expf.c,
265         * device/lib/free.c,
266         * device/lib/hc08/_mulint.c,
267         * device/lib/logf.c,
268         * device/lib/malloc.c,
269         * device/lib/printf_fast.c,
270         * device/lib/printf_tiny.c,
271         * device/lib/printfl.c,
272         * device/lib/realloc.c,
273         * device/lib/ser_ir.c,
274         * device/lib/serial.c,
275         * support/regression/tests/libmullong.c: replaced all special keywords
276           with their double underscore equivalent
277         * support/regression/ports/mcs51-xstack-auto/spec.mk,
278         * device/lib/Makefile.in: compile libs with --std-c99 instead of
279           --std-sdcc99
280         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
281           (genRet): if the bit-symbol is ruonly it already is in the carry
282         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
283         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
284         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
285           type UCHAR if dest is not bit
286
287 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
288
289         * device/include/math.h,
290         * device/lib/cotf.c,
291         * device/lib/expf.c,
292         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
293
294 2007-04-01 Borut Razem <borut.razem AT siol.net>
295
296         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
297           fixed bug #1692042: input buffer overflow...scanner uses REJECT
298         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
299           gcc_unreachable() called internal_error()...
300
301 2007-03-30 Raphael Neider <rneider AT web.de>
302
303         * src/pic/ralloc.c (isData): suppress garbage debug output
304
305 2007-03-28 Borut Razem <borut.razem AT siol.net>
306
307         * doc/sdccman.lyx:
308           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
309           is developed, built and used worldwide, and the word "night" doesn't
310           make any sense.
311
312 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
313
314         * device/include/mcs51/C8051F360.h: new, added
315         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
316
317 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
318
319         * src/SDCC.y (declaration_specifiers, function_specifier),
320         * support/Util/SDCCerr.c,
321         * support/Util/SDCCerr.h,
322         * src/SDCCsymt.h,
323         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
324           inline keyword
325         * src/SDCCmem.c (deallocParms),
326         * src/SDCCast.c: support for function inlining, not quite complete
327         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
328           'restrict' qualifier
329
330 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
331
332         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
333           (saveRBank, unsaveRBank): don't save bits,
334           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
335         * support/regression/tests/bug1535242.c: new, added
336         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
337           thanks Alexey Shamrin <shamrin AT gmail.com>,
338           made assert.h header ANSI compliant (added a check for NDEBUG macro,
339           removed header guard)
340         * .version,
341         * sdcc.spec: bumped version to 2.6.5
342         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
343
344 2007-03-22 Borut Razem <borut.razem AT siol.net>
345
346         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
347           fixed bug #1653671: sdcdb integration into ddd is broken
348
349 2007-03-22 Raphael Neider <rneider AT web.de>
350
351         * src/pic/gen.c (popGetExternal): augmented to also create references
352           to external variables (not only labels),
353           (genCall): comment on plan to reduce PAGESEL overhead,
354           (genFunction, genEndFunction): also save/restore FSR around interrupt
355           handling code, removed lots of unused code
356           (genDivOneByte): release acquired temp register
357         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
358           of popGetExternal
359         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
360           for registers that need to be saved during interrupts (FSR, STATUS,
361           PCLATH; W needs special handling), currently only FSR is used
362
363 2007-03-22 Raphael Neider <rneider AT web.de>
364
365         * device/include/pic/pic14devices.txt: 16f688 has only one config word
366
367 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
368
369         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
370
371 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
372
373         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
374
375 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
376
377         * as/link/aslink.h: added LKOBJEXT
378         * as/link/hc08/link_hc08.dsp,
379         * as/link/hc08/Makefile.bcc,
380         * as/link/hc08/Makefile.in,
381         * as/link/mcs51/aslink.dsp,
382         * as/link/mcs51/Makefile.bcc,
383         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
384         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
385         * as/link/lkaomf51.c: merged and moved
386         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
387         * as/link/z80/lkdata.c,
388         * as/link/lkdata.c: merged and moved
389         * as/link/hc08/lkmain.c,
390         * as/link/mcs51/lkmain.c: cosmetic changes
391         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
392         * as/link/lklex.c: use LKOBJEXT
393         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
394           ANSI-fied functions, removed bubble-sorts
395         * as/link/z80/lksym.c           as/link/lksym.c: merged,
396           ANSI-fied functions
397         * as/link/z80/linkgbz80.dsp,
398         * as/link/z80/linkz80.dsp,
399         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
400           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
401         * as/link/z80/lkhead.c,
402         * as/link/z80/lklex.c: deleted
403         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
404         * as/link/z80/lkmain.c: added copyfile()
405
406 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
407
408         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
409
410 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
411
412         * device/lib/_strlen.c: assembler version for mcs51
413
414 2007-03-13 Raphael Neider <rneider AT web.de>
415
416         * device/include/pic16/pic18f2221.h,
417         * device/include/pic16/pic18f2321.h,
418         * device/include/pic16/pic18f2331.h,
419         * device/include/pic16/pic18f4221.h,
420         * device/include/pic16/pic18f4321.h,
421         * device/include/pic16/pic18f4331.h: fixed config byte location names
422         * support/scripts/inc2h-pic16.pl: removed debug output, emit
423           consistently named config byte locations
424
425 2007-03-13 Borut Razem <borut.razem AT siol.net>
426
427         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
428           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
429           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
430           as/link/z80/Makefile.in, as/z80/Makefile.in:
431           introduced LDFLAGS
432
433 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
434
435         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
436         * device/lib/printf_large.c: pointer was converted to generic
437         pointer for mcs51 models other than model-small (Maarten noticed)
438
439 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
440
441         * device/include/mcs51/ADuC84x.h: Added.
442
443 2007-03-10 Borut Razem <borut.razem AT siol.net>
444
445         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
446           fixed RFE #1624219: double backslashes in filenames;
447           functions hexEscape(), octalEscape() and copyStr() moved from
448           SDCCval.c to SDCCutil.c and made them glovbally available
449
450 2007-03-09 Borut Razem <borut.razem AT siol.net>
451
452         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
453           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
454           1673361: Missaligned comments in output files
455
456 2007-03-09 Raphael Neider <rneider AT web.de>
457
458         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
459
460 2007-03-09 Raphael Neider <rneider AT web.de>
461
462         * src/pic/gen.c,
463         * src/pic/glue.c,
464         * src/pic/ralloc.c: suppress undesired debug output
465         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
466
467 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
468
469         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
470
471 2007-03-07 Borut Razem <borut.razem AT siol.net>
472
473         * device/lib/pic16/libdev/pic18f[24][34]31.c:
474           search include files in the current directory
475
476 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
477
478         * src/SDCCglue.c (emitMaps, glue),
479         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
480           absolute xdata
481         * support/regression/tests/absolute.c: added xdata test
482
483 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
484
485         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
486           added condition to macro, fixes bug 1666080
487
488 2007-03-02 Raphael Neider <rneider AT web.de>
489
490         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
491
492 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
493
494         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
495         be cleared. Unconditionally set __XPAGE
496         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
497
498 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
499
500         * src/SDCCglobl.h,
501         * src/SDCCmain.c,
502         * src/mcs51/gen.c,
503         * src/mcs51/rtrack.c,
504         * src/ds390/gen.c,
505         * doc/sdccman.lyx: added --no-gen-comments
506         * src/mcs51/peeph.def: added 192.b, disabled 185
507
508 2007-02-25 Raphael Neider <rneider AT web.de>
509
510         * src/pic16/gen.c (genCast): fixed typo
511         * device/lib/pic16/Makefile.subdir: only install existing files
512         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
513
514 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
515
516         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
517         * device/lib/mcs51/crtclear.asm,
518         * device/lib/mcs51/crtxclear.asm: renumbered labels
519         * device/lib/mcs51/Makefile.in: added crtcall.asm
520         * doc/sdccman.lyx: documented mcs51 crt* library startup code
521         * src/mcs51/gen.c (movc): removed,
522           (aopGet, genPlusBits): clear a after loading the carry (possibly from
523             acc.x or psw.x),
524           (toCarry, genSend, genRet): added function toCarry,
525           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
526           (assignBit, genAssign, genCast): added function assignBit
527         * src/mcs51/Makefile.bcc: added rtrack.c
528         * src/mcs51/ralloc.h: made valueKnown a bitfield
529         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
530           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
531           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
532         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
533         * src/z80/gen.c: added AOP_IS_PAIRPTR,
534           (_pop): only pop valid pairs, see gencjneshort,
535           (gencjneshort): return pair that still needs to be popped, restructured,
536           (gencjne, genCmpEq): call _pop
537
538 2007-02-23 Raphael Neider <rneider AT web.de>
539
540         * device/include/pic/pic14devices.txt: 16f684 has only one config word
541
542 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
543
544         * device/include/mcs51/P89LPC925.h: Added.
545
546 2007-02-18 Raphael Neider <rneider AT web.de>
547
548         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
549
550 2007-02-17 Borut Razem <borut.razem AT siol.net>
551
552         * support/cpp2/directives.c, support/cpp2/version.c:
553           synchronized with GCC CPP 4.1.2
554
555 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
556
557         * src/mcs51/rtrack.h,
558         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
559           by checking the strings passed by emitcode() to the assembler.
560           Feel free to change. This in part addresses RFE #482179.
561           Set environment variable SDCC_RTRACK to enable.
562         * src/mcs51/gen.c: inserted hooks
563         * src/mcs51/ralloc.h: added two members to struct regs
564         * support/regression/tests/regtrack.c: added
565
566 2007-02-14 Borut Razem <borut.razem AT siol.net>
567
568         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
569         * Makefile.in: applied patch from Makefile related part of
570           #1469393: Compiler does not initialize static data
571
572 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
573
574         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
575           for better fix of bug 1273984, compiles pic16 rand.c
576
577 2007-02-12 Borut Razem <borut.razem AT siol.net>
578
579         * src/pic16/main.c: fixed pic16 standard library directory bug
580
581 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
582
583         * src/hc08/gen.c (genSwap): fix swap regression test
584
585 2007-02-10 Borut Razem <borut.razem AT siol.net>
586
587         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
588           with same scope
589         * support/regression/tests/bug-1654060.c: added regression test for
590           #1654060
591
592 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
593
594         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
595         bit moves in return statement
596
597 2007-02-09 Borut Razem <borut.razem AT siol.net>
598
599         * src/SDCC.y: fixed bug #1654060 typedef within function causes
600           syntax error
601
602 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
603
604         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
605         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
606
607 2007-02-07 Raphael Neider <rneider AT web.de>
608
609         * src/pic16/devices.inc,
610         * device/include/pic16/pic18fregs.h,
611         * device/include/pic16/pic18f[24][34]31.h,
612         * device/lib/pic16/libdev/pic18f[24][34]31.c,
613         * device/lib/pic16/pics.all: added 18f[24][34]31 family
614         * device/lib/pic16/libio/i2c.ignore: do not build i2c
615
616 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
617
618         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
619           can this have lived here for so many years?
620         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
621           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
622         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
623
624 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
625
626         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
627         appended by loop induction must be at the very end of the eBBlock
628
629 2007-02-05 Kevin Vigor
630
631         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
632
633 2007-02-05 Borut Razem <borut.razem AT siol.net>
634
635         * support/regression/fwk/lib/timeout.c: native WIN32 port,
636           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
637
638 2007-02-03 Borut Razem <borut.razem AT siol.net>
639
640         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
641           applied patch #1646602 option to set default signedness of char to
642           unsigned, added -funsigned-char command line option,
643           thanks to Gunther Jehle
644         * device/lib/Makefile.in: added the -f option to rm so it doesn't
645           prompt for file deletion a few hundred times (especially the
646           subversion files, which have ro permissions so it asks for
647           confirmation), thanks to Simon McAuliffe;
648           added {} + option to find in order to remove multiple files from a
649           single rm commad
650
651 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
652
653         * device/include/mcs51/SST89x5xRDx.h: Added.
654
655 2007-02-02 Raphael Neider <rneider AT web.de>
656
657         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
658         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
659
660 2007-02-01 Raphael Neider <rneider AT web.de>
661
662         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
663           config words again
664
665 2007-01-31 Borut Razem <borut.razem AT siol.net>
666
667         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
668           if compiled with GCC. Thanks to Raphael Neider
669
670 2007-01-31 Raphael Neider <rneider AT web.de>
671
672         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
673             operand names, handles name and (name + n) for all n,
674           (sameBank): restructured, also check bank allocation policy,
675         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
676           (pic14_operandsAllocatedInSameBank): check whether to operands
677             will be allocated into the same bank (i.e., section) to reduce
678             BANKSEL overhead, queried from pcode.c:sameBank,
679           (pic14printLocals): reintroduced clustering registers into a single
680             section: all compiler generated symbols will now reside in one
681             bank (per file), reducing BANKSEL overhead and code size,
682           (showAllMemmaps): use local dbuf where possible
683
684 2007-01-29 Raphael Neider <rneider AT web.de>
685
686         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
687           (call_libraryfunc): retrieve/create symbol and mark as used,
688           (genFunction): mark defined functions as non-extern and add again
689            to code memmap for later output
690         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
691           (pic14printLocals): reworked for new symbol emission,
692           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
693           showAllMemmaps): reworked symbol output using dbufs, added handling
694             of string literals (still incomplete),
695           (picglue): removed symbol emission, moved into showAllMemmaps,
696           (emitSymbolSet): new workhorse for symbol output,
697           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
698
699 2007-01-29 Borut Razem <borut.razem AT siol.net>
700
701         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
702           component contains the extension separator.
703
704 2007-01-28 Borut Razem <borut.razem AT siol.net>
705
706         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
707           on WIN32
708         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
709           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
710           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
711           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
712           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
713           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
714           src/z80/gen.c, support/Util/MySystem.c:
715           accept slash and backslash as directory separator on WIN32 and
716           Cygwin ports
717
718 2007-01-28 Raphael Neider <rneider AT web.de>
719
720         * src/pic16/devices.inc,
721         * device/include/pic16/pic18f[24][23]21.h,
722         * device/include/pic16/pic18fregs.h,
723         * device/lib/pic16/libdev/pic18f[24][23]21.c,
724         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
725         * device/lib/pic16/libio/adc.ignore,
726         * device/lib/pic16/libio/i2c.ignore,
727         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
728           family, as gputils do not yet support the devices
729         * device/lib/pic16/Makefile.subdir: ignore errors on install
730         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
731           headers and libraries from gputils .inc files
732
733 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
734
735         * doc/sdccman.lyx: add printf_fast_f precision limitation note
736
737 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
738
739         * doc/sdccman.lyx: add printf benchmarks
740
741 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
742
743         * device/lib/printf_fast.c: fix %c, char promoted to int
744         * device/lib/printf_tiny.c: fix %c, char promoted to int
745
746 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
747
748         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
749
750 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
751
752         * support/regression/tests/swap.c: 64 bit hosts failed
753         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
754
755 2007-01-25 Raphael Neider <rneider AT web.de>
756
757         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
758           based on absolute register address, patch by Alex Blond
759
760 2007-01-22 Raphael Neider <rneider AT web.de>
761
762         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
763           emitted, do not emit them again...
764
765 2007-01-22 Raphael Neider <rneider AT web.de>
766
767         * src/regression/bank1.c, src/regression/compare6.c,
768           src/regression/add.c: cosmetic changes
769         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
770         * src/pic/gen.c: fixed global zero and one,
771           (aopForSym): removed unued code,
772           (aopGet): assert aop is defined, check and use `index' of
773             pCodeImmd operands (fixes #1630908),
774         * src/pic/pcode.c (get_op): added output of generic pointer tag,
775           (register_reassign): prevent accidental register unification,
776           (ReuseReg): cosmetic changes (also above)
777         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
778           pic14emitStaticSeg): do not emit initialized data,
779           (printIval*): replaced with working versions,
780           (pic14createInterruptVect,picglue): use idata for initialized data,
781             now init data should work in all modules (not only main()),
782         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
783
784 2007-01-21 Borut Razem <borut.razem AT siol.net>
785
786         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
787           use -fPIC or -fpic if they are supported and not ignored
788         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
789         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
790
791 2007-01-20 Borut Razem <borut.razem AT siol.net>
792
793         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
794           implemented RFE #1470316: allow "$" in variable names
795
796 2007-01-20 Raphael Neider <rneider AT web.de>
797
798         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
799
800 2007-01-20 Raphael Neider <rneider AT web.de>
801
802         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
803         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
804         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
805         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
806           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
807         * device/lib/pic/libdev/pic*.c,
808         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
809         * device/lib/pic/libdev/Makefile.in: show progress
810
811 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
812
813         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
814         * support/scripts/sdcc_cygwin_mingw32,
815         * support/scripts/sdcc_mingw32,
816         * support/scripts/build.mak: replaced --datadir by --datarootdir for
817         conformance with autoconf 2.6
818
819 2007-01-19 Raphael Neider <rneider AT web.de>
820
821         * src/pic/device.c (register_map): fixed list construction
822         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
823           (genMod): removed case for genModbits,
824           (genModbits): removed as now unused/unimplemented
825         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
826
827 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
828
829         * support/regression/tests/swap.c: added in response to #1638622
830         * doc/sdccman.lyx: synced version, minor changes
831
832 2007-01-18 Borut Razem <borut.razem AT siol.net>
833
834         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
835           thanks to Gunther Jehle
836         * src/asm.c: don't die if the file drfined in #line couldn't be opened
837         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
838           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
839           use filename in lineno instead.
840         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
841           print the file name in ast_print()
842
843 2007-01-18 Borut Razem <borut.razem AT siol.net>
844
845         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
846           defined in MSVC
847         * src/SDCC.lex: stringLiteral() returns const char pointer,
848           EOF detection in stringLiteral(), fixed asmbuf memory leak,
849           fixed column counting
850         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
851           accept const char pointer as parameter
852         * src/SDCCdwarf2.c: corrected buffer size
853
854 2007-01-17 Borut Razem <borut.razem AT siol.net>
855
856         * support/Util/dbuf_string.c: fixed for amd64
857
858 2007-01-15 Borut Razem <borut.razem AT siol.net>
859
860         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
861           removed terminal symbol ELIPSIS, since it was never generated by the
862           lexer and it was wrongly used in parameter_identifier_list rule
863
864 2007-01-15 Raphael Neider <rneider AT web.de>
865
866         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
867             code page and data banking description
868         * src/pic/genarith.c,
869         * src/pic/gen.h: removed bit arithmetic functions,
870             updated exit(1) to exit(EXIT_FAILURE)
871         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
872         * device/include/pic16/pic18f2455.h,
873         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
874             TRISD and TRISE, fixed/added some bit names
875         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
876         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
877             updated pic18f2455.{c,h} instead of duplicating them
878
879 2007-01-14 Borut Razem <borut.razem AT siol.net>
880
881         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
882           Cannot debug files that contain spaces in the path name
883           by converting spaces in asm file name to underscores
884
885 2007-01-13 Borut Razem <borut.razem AT siol.net>
886
887         * doc/sdccman.lyx: fixed format errors
888
889 2007-01-10 Borut Razem <borut.razem AT siol.net>
890
891         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
892           codeseg/constseg #pragma fail
893         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
894         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
895           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
896           suppoprt/cpp2/sdcpp.[ch]: house cleaning
897
898 2007-01-09 Borut Razem <borut.razem AT siol.net>
899
900         * get rid of diagnistic.[ch], pretty-print.[ch],
901           c-pretty-print.[ch], ... used just for error, warning, ...
902           message formatting
903         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
904           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
905           suppoprt/cpp2/pretty-print.[ch]:
906           removed
907         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
908           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
909           suppoprt/cpp2/sdcpp.dsp:
910           changed
911
912 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
913
914         * device/lib/printf_large.c (output_float): removed recursion,
915           use smaller buffer on stack for mcs51,
916           fixed bug printing 1.96
917         * support/regression/tests/snprintf.c: added test
918
919 2007-01-07 Borut Razem <borut.razem AT siol.net>
920
921         * use dynamic memory buffers instead temporary files
922         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
923           added
924         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
925           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
926           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
927           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
928           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
929           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
930           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
931           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
932           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
933           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
934           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
935           support/Util/dbuf.c, support/Util/dbuf.h:
936           modified
937         * .version, sdcc.spec: bumped version to 2.6.4
938
939 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
940
941         * src/port.h: added TARGET_Z80_LIKE macro
942         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
943           output PSEG location if --xram-loc or --xstack-loc was used
944         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
945
946 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
947
948         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
949         * as/as_z80.dsp,   as/z80/as_z80.dsp,
950         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
951         * sdcc.dsw: moved project files into subdir
952         * as/hc08/as_hc08.dsp,
953         * as/hc08/Makefile.bcc,
954         * as/hc08/Makefile.in,
955         * as/mcs51/Makefile.bcc,
956         * as/mcs51/Makefile.in,
957         * as/z80/Makefile.bcc,
958         * as/z80/Makefile.in,
959         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
960         * as/hc08/asm.h,
961         * as/mcs51/asm.h,
962         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
963         * as/hc08/asmain.c,
964         * as/hc08/assym.c,
965         * as/mcs51/asmain.c,
966         * as/mcs51/assym.c,
967         * as/z80/assym.c: removed include "strcmpi.h"
968         * as/hc08/strcmpi.c,
969         * as/hc08/strcmpi.h,
970         * as/mcs51/strcmpi.c,
971         * as/mcs51/strcmpi.h,
972         * support/Util/strcmpi.c,
973         * support/Util/strcmpi.h: removed files
974         * as/strcmpi.c: added as_strncmpi()
975
976 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
977
978         * sdcc.dsw: Added some dependencies on project config.dsp
979
980 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
981
982         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
983           with [di]ram_start to fix a regresion
984
985 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
986
987         * configure.in: added missing mcs51 in status output
988         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
989         directory
990         * debugger/mcs51/clean.mk (distclean): remove config.h
991         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
992         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
993         options.h, s-options-h and options.c
994         * support/cpp2/clean.mk: unused, removed
995         * Makefile.common.in,
996         * main_in.mk,
997         * as/Makefile.in,
998         * as/hc08/Makefile.in,
999         * as/hc08/clean.mk,
1000         * as/mcs51/Makefile.in,
1001         * as/mcs51/clean.mk,
1002         * as/z80/clean.mk,
1003         * as/z80/conf.mk,
1004         * as/z80/Makefile.in,
1005         * as/z80/clean.mk,
1006         * as/link/Makefile.in,
1007         * as/link/hc08/Makefile.in,
1008         * as/link/hc08/clean.mk,
1009         * as/link/mcs51/Makefile.in,
1010         * as/link/mcs51/clean.mk,
1011         * as/link/z80/Makefile.in,
1012         * as/link/z80/clean.mk,
1013         * as/link/z80/conf.mk,
1014         * debugger/mcs51/Makefile.in,
1015         * debugger/mcs51/clean.mk,
1016         * device/include/Makefile.in,
1017         * device/lib/Makefile.in,
1018         * device/lib/mcs51/Makefile.in,
1019         * device/lib/pic/Makefile.in,
1020         * device/lib/pic/Makefile.common.in,
1021         * device/lib/pic/Makefile.subdir,
1022         * device/lib/pic/Makefile.rules,
1023         * device/lib/pic16/libio/Makefile.in,
1024         * device/lib/pic16/Makefile.subdir,
1025         * device/lib/pic16/libdev/Makefile.in,
1026         * device/lib/pic16/Makefile.rules,
1027         * device/lib/pic16/Makefile.common.in,
1028         * sim/ucsim/avr.src/Makefile.in,
1029         * sim/ucsim/main_in.mk,
1030         * sim/ucsim/cmd.src/Makefile.in,
1031         * sim/ucsim/doc/Makefile.in,
1032         * sim/ucsim/gui.src/Makefile.in,
1033         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
1034         * sim/ucsim/gui.src/serio.src/Makefile.in,
1035         * sim/ucsim/hc08.src/Makefile.in,
1036         * sim/ucsim/libltdl/Makefile.in,
1037         * sim/ucsim/s51.src/Makefile.in,
1038         * sim/ucsim/sim.src/Makefile.in,
1039         * sim/ucsim/sim.src/conf.mk,
1040         * sim/ucsim/xa.src/Makefile.in,
1041         * sim/ucsim/z80.src/Makefile.in,
1042         * src/Makefile.in,
1043         * src/clean.mk,
1044         * src/port.mk,
1045         * support/cpp2/Makefile.in,
1046         * support/librarian/Makefile.in,
1047         * support/librarian/clean.mk,
1048         * support/makebin/Makefile.in,
1049         * support/makebin/clean.mk,
1050         * support/packihx/Makefile.in,
1051         * support/regression/Makefile.in,
1052         * support/regression/ports/ds390/spec.mk,
1053         * support/regression/ports/gbz80/spec.mk,
1054         * support/regression/ports/hc08/spec.mk,
1055         * support/regression/ports/mcs51/spec.mk,
1056         * support/regression/ports/mcs51-large/spec.mk,
1057         * support/regression/ports/mcs51-medium/spec.mk,
1058         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1059         * support/regression/ports/pic14/spec.mk,
1060         * support/regression/ports/pic16/spec.mk,
1061         * support/regression/ports/mcs51-stack-auto/spec.mk,
1062         * support/regression/ports/ucz80/spec.mk,
1063         * support/regression/ports/xa51/spec.mk,
1064         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1065         adding a slash after $(top_builddir) and/or adding @datarootdir@
1066         * configure.in,
1067         * debugger/mcs51/configure.in,
1068         * device/lib/pic/configure.in,
1069         * device/lib/pic16/configure.in,
1070         * sim/ucsim/configure.in,
1071         * support/cpp2/configure.in,
1072         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1073         * configure,
1074         * debugger/mcs51/configure,
1075         * device/lib/pic/configure,
1076         * device/lib/pic16/configure,
1077         * sim/ucsim/configure,
1078         * support/cpp2/configure,
1079         * support/packihx/configure: generated with autoconf 2.60
1080
1081 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1082
1083         * as/link/hc08/lkihx.c (newArea),
1084         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1085
1086 2007-01-02 Borut Razem <borut.razem AT siol.net>
1087
1088         * doc/sdccman.lyx: documented #pragma sdcc_hash
1089         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1090           initialized to 0
1091         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1092
1093 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1094
1095         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1096         empty 'while'-loop to work correctly, see regression test 'while.c'
1097         * support/regression/tests/while.c: added
1098
1099 2007-01-01 Borut Razem <borut.razem AT siol.net>
1100
1101         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1102           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1103           support/cpp2/libcpp/sdcpp.c:
1104           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1105         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1106         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1107
1108 2006-12-31 Borut Razem <borut.razem AT siol.net>
1109
1110         * SDCPP synchronized with GCC CPP release version 4.1.1,
1111           currently the latest release:
1112         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1113           support/cpp2/libcpp/include/cpp-id-data.h
1114           support/cpp2/libiberty/fopen_unlocked.c
1115           support/cpp2/libiberty/md5.c
1116           support/cpp2/md5.h
1117           support/cpp2/opt-functions.awk
1118           support/cpp2/opt-gather.awk
1119           support/cpp2/optc-gen.awk
1120           support/cpp2/opth-gen.awk:
1121           added
1122         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1123           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1124           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1125           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1126           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1127           support/cpp2/diagnostic.h, support/cpp2/except.h,
1128           support/cpp2/hwint.h, support/cpp2/input.h,
1129           support/cpp2/intl.h, support/cpp2/move-if-change,
1130           support/cpp2/opts.c, support/cpp2/opts.h,
1131           support/cpp2/output.h, support/cpp2/prefix.c,
1132           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1133           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1134           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1135           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1136           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1137           support/cpp2/version.c:
1138           modified
1139         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1140           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1141           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1142           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1143           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1144           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1145           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1146           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1147           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1148           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1149           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1150           moved
1151         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1152           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1153           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1154           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1155           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1156           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1157           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1158           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1159           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1160           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1161           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1162           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1163           support/cpp2/system.h:
1164           deleted / moved
1165
1166 2006-12-31 Borut Razem <borut.razem AT siol.net>
1167
1168         * configure.in, configure: fixed bug #1538756: configure dies if bison
1169           and flex are not installed, 2nd try
1170
1171 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1172
1173         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1174         400.x for better code in RFE 899102
1175
1176 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1177
1178         * src/SDCCpeeph.c (deadMove),
1179         * src/port.h,
1180         * src/mcs51/peep.h: renamed 'op' by 'reg'
1181         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1182         (scan4op): small change for removeDeadMove(), added support for
1183         'callee saves' and/or PACLL function calls,
1184         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1185         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1186         left in new dispatcher mcs51DeadMove()
1187         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1188         removeDeadMove()
1189         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1190
1191 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1192
1193         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1194           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1195
1196 2006-12-30 Borut Razem <borut.razem AT siol.net>
1197
1198         * support/cpp2/spacs.h: deleted from svn
1199         * configure.in, configure: fixed bug #1538756: configure dies if bison
1200           and flex are not installed
1201
1202 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1203
1204         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1205           with this z80 passes printf float test when enabled
1206         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1207
1208 2006-12-28 Borut Razem <borut.razem AT siol.net>
1209
1210         * support/cpp2/config.in, support/cpp2/configure.in,
1211           support/cpp2/configure, support/cpp2/Makefile.in:
1212           fix for the solaris build
1213
1214 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1215
1216         * src/SDCC.y (type_specifier2, pointer),
1217         * src/SDCCsymt.h,
1218         * src/SDCCsymt.c (mergeSpec, checkSClass),
1219         * support/Util/SDCCerr.c,
1220         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1221         * support/valdiag/valdiag.py: Allow test cases to specify
1222           required language standard
1223         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1224         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1225
1226 2006-12-27 Borut Razem <borut.razem AT siol.net>
1227
1228         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1229         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1230           mbchar removed
1231         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1232           fixed for borland C
1233         * support/cpp2/libiberty/Makefile.bcc: updated
1234         * src/pic16/main.c: fixed #pragma udata handling
1235         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1236
1237 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1238
1239         * src/SDCCpeeph.c: made labelHashEntry global,
1240         made pcDistance, FBYNAME static,
1241         (pcDistance): made static, use isComment and isLabel,
1242         (deadMove): added,
1243         (getLabelRef): added, extracted from labelRefCount(),
1244         (labelRefCount): use new getLabelRef(),
1245         (callFuncByName): made static, added deadMove,
1246         use isComment and isLabel,
1247         (newPeepRule): made static, set isLabel,
1248         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1249         labels from peephole rules,
1250         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1251         when isComment or isLabel is set
1252         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1253         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1254         to make them global
1255         * src/mcs51/peep.h: added
1256         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1257         * src/port.h: added peep->deadMove to port structure
1258         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1259         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1260         deadMove, finally removed no. 1 and 2
1261         * src/mcs51/gen.c,
1262         * src/pic/gen.c,
1263         * src/z80/gen.c,
1264         * src/z80/ralloc.c,
1265         * src/pic16/gen.c,
1266         * src/ds390/gen.c,
1267         * src/hc08/gen.c: mark lines with isComment or isLabel
1268         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1269         * .version,
1270         * sdcc.spec: bumped version to 2.6.3
1271
1272 2006-12-26 Borut Razem <borut.razem AT siol.net>
1273
1274         * support/cpp2/Makefile.in: added dependency on options.h
1275         * configure: regenerated
1276         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1277         * support/cpp2/Makefile.in: added vasprintf.c
1278
1279 2006-12-25 Borut Razem <borut.razem AT siol.net>
1280
1281         * SDCPP synchronized with GCC CPP release version 3.4.6,
1282           the latest release before 4.x:
1283         * support/cpp2/Makefile.in, support/cpp2/config.h,
1284           support/cpp2/configure, support/cpp2/configure.in,
1285           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1286           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1287           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1288           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1289           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1290           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1291           support/cpp2/cpptrad.c, support/cpp2/except.h,
1292           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1293           support/cpp2/hwint.h, support/cpp2/intl.h,
1294           support/cpp2/line-map.c, support/cpp2/line-map.h,
1295           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1296           support/cpp2/output.h, support/cpp2/prefix.c,
1297           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1298           support/cpp2/system.h, support/cpp2/version.c:
1299           modified
1300         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1301           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1302           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1303           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1304           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1305           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1306           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1307           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1308           support/cpp2/move-if-change, support/cpp2/opts.c,
1309           support/cpp2/opts.h, support/cpp2/opts.sh,
1310           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1311           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1312           support/cpp2/win32, support/cpp2/win32/dirent.c,
1313           support/cpp2/win32/dirent.h:
1314           added
1315         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1316         * support/cpp2/sdcpp.h: renamed from sdcc.h
1317         * sdcppinit.c: deleted
1318
1319 2006-12-23 Borut Razem <borut.razem AT siol.net>
1320
1321         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1322           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1323           preproc.c: an other try to fix bug #982435: introduced
1324           -pedantic-parse-number command line option and pedantic_parse_number
1325           pragma
1326
1327 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1328
1329         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1330            BSEG handling,
1331           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1332            corrected overlayed areax addresses, warn about memory overlaps
1333         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1334         * src/avr/main.c,
1335         * src/ds390/main.c,
1336         * src/hc08/main.c,
1337         * src/mcs51/main.c,
1338         * src/pic16/main.c,
1339         * src/pic/main.c,
1340         * src/xa51/main.c,
1341         * src/z80/main.c,
1342         * src/port.h: added xabs_name and iabs_name
1343         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1344           (glue, emitMaps): create and emit maps d_abs and i_abs
1345         * src/SDCCglue.h: cosmetic changes
1346         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1347         * src/SDCCmem.h,
1348         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1349           (allocDefault): put absolute, initialized globals in them
1350         * support/regression/tests/absolute.c: added absolute bdata test
1351         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1352
1353 2006-12-20 Borut Razem <borut.razem AT siol.net>
1354
1355         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1356         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1357           added regression test for bug #982435
1358
1359 2006-12-18 Borut Razem <borut.razem AT siol.net>
1360
1361         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1362         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1363           small cosmetic changes
1364         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1365         * support/regression/tests/bug-1351710.c: added regression test
1366
1367 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1368
1369         * doc/sdccman.lyx: added the long missed iCode table
1370           "<where is figure II?>", added links to wiki
1371
1372 2006-12-17 Borut Razem <borut.razem AT siol.net>
1373
1374         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1375           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1376           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1377           unified table driven pragma handling, pragma argument type checking
1378         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1379           current one - version 1.1.3
1380         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1381
1382 2006-12-13 Raphael Neider <rneider AT web.de>
1383
1384         * src/pic/device.h: removed AssignedMemory structure and macros
1385         * src/pic/device.c: removed global finalMapping (linker assigns
1386             memory locations),
1387           (register_map): add SFRs to remembered memRanges
1388           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1389           assignFixedRegisters,assignRelocatableRegisters): removed,
1390           (setMaxRAM,validAddress): adapted accordingly,
1391           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1392             reasonably sized sharebanks,
1393         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1394           (allDefsOutOfRange): removed unused code,
1395         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1396             handling
1397         * src/pic/pcode.c (register_reassign): removed recursion warning,
1398             fired far too often,
1399         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1400             to use existing pic14_stringInSet() to avoid duplicate symbols,
1401             tidied up the code a bit,
1402           (pic14printLocals): added in symmetry to printExterns, replaces
1403             writeUsedRegs more or less,
1404           (picglue): call new pic14_printLocals(),
1405         * device/include/pic/pic*.h: removed #pragma memmap directives,
1406             information gathered from include/pic/pic14devices.txt
1407         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1408
1409 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1410
1411         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1412
1413 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1414
1415         * device/include/mcs51/cc2430.h: fixed missing ';'
1416
1417 2006-12-10 Raphael Neider <rneider AT web.de>
1418
1419         * device/lib/pic16/libc/stdio/vfprintf.c,
1420         * device/lib/pic16/libc/stdio/printf_small.c,
1421         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1422           char arguments, as char varargs are cast to int by the caller,
1423           hopefully fixes #1604915 (other device libraries are still affected)
1424
1425 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1426
1427         * src/mcs51/ralloc.c (packRegsForAssign),
1428         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1429
1430 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1431
1432         * device/include/malloc.h: removed init_dynamic_memory
1433         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1434           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1435         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1436         * device/lib/libsdcc.lib,
1437         * device/lib/Makefile.in,
1438         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1439         * doc/sdccman.lyx: documented use of new _heap.c
1440         * support/regression/tests/malloc.c: removed init_dynamic_memory
1441         * src/cdbFile.c(spacesToUnderscores): new function,
1442           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1443           1068030
1444         * device/include/tinibios.h: removed defines for putchar and getchar
1445         * device/lib/ds390/Makefile.in: added putchar.c
1446         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1447
1448 2006-12-09 Borut Razem <borut.razem AT siol.net>
1449
1450         * support/cpp2/sdcc.h: prevent multiple inclusion
1451         * support/cpp2/options.h: deleted
1452
1453 2006-12-08 Borut Razem <borut.razem AT siol.net>
1454
1455         * support/cpp2/sdcc.h: removed x*alloc() macros
1456         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1457         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1458           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1459         * support/cpp2/system.h: moved #include "sdcc.h"
1460         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1461           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1462           added
1463         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1464           -funsigned-char options
1465         * support/cpp2/sdcppmain.c: fixed bug 1611411
1466
1467 2006-12-07 Borut Razem <borut.razem AT siol.net>
1468
1469         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1470           directive
1471
1472 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1473
1474         * src/SDCCsymt.c (addDecl): fixed bug 1609244
1475         * src/SDCCmain.c (linkEdit): fixed bug 1609279
1476         * doc/sdccman.lyx,
1477         * .version: bumped to 2.6.2 because a) it's been a while
1478           b) the linker sources have moved c) the preprocessor is upgraded
1479
1480 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1481
1482         * support/regression/tests/snprintf.c: some checks
1483         * lib/src/printf_large.c: %bc: read char instead of int from stack
1484
1485 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1486
1487         * device/include/mcs51/cc2430.h: inserted _XPAGE
1488
1489 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1490
1491         * device/include/mcs51/cc2430.h: added
1492
1493 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1494
1495         * device/include/asm/default/features.h,
1496         * device/include/asm/ds390/features.h,
1497         * device/include/mcs51/at89s53.h,
1498         * device/include/ser.h,
1499         * device/include/ser_ir.h,
1500         * device/include/serial.h: changed keywords to double underscore variants,
1501           fixes bug 1590261 some more, thanks Steven Borley
1502
1503 2006-12-01 Raphael Neider <rneider AT web.de>
1504
1505         * src/pic/pcode.c (register_reassign): do not crash on recursive code
1506           but emit warning (recursion is not supported for pic14)
1507
1508 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1509
1510         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1511         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1512
1513 2006-11-30 Raphael Neider <rneider AT web.de>
1514
1515         * src/pic/device.c (dump_sfr): always emit symbols
1516         * src/pic/glue.c (pic14printPublics): fixed typo
1517
1518 2006-11-30 Raphael Neider <rneider AT web.de>
1519
1520         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1521           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1522           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1523            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1524            a sharebank, use a non-shared bank for the stack if none available
1525         * src/pic/device.h (struct memRange): added linked list next field,
1526           added prototypes for above functions
1527         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1528           (typeRegWithIdx): accept fixed and unfixed stack registers
1529         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1530           the stack, handle shared and banked stack (except for WSAVE),
1531           (insertBankSel): removed useless optimization (will never fire),
1532           (FixRegisterBanking): added optimization for devices with only one
1533           possibly aliased bank of memory, like 16f84
1534         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1535           devices have no SHAREBANK in the linker script
1536         * device/include/pic/pic14devices.txt: documented memmap
1537         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1538
1539 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1540
1541         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1542           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1543           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1544           genhc08Code): switched most of the D (debug) macros to DD (detailed
1545           debug) macros to better control clutter in the generated .asm file.
1546         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1547           genRightShift): fixed bug with non-constant bit shift stored to
1548           a volatile result (SF Open Discussion forum thread #1616749).
1549           Single byte case is not yet optimized.
1550
1551 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1552
1553         * device/include/asm/mcs51/features.h,
1554         * device/include/malloc.h,
1555         * device/include/stdio.h: changed keywords to double underscore variants,
1556           fixes bug 1590261
1557
1558 2006-11-27 Borut Razem <borut.razem AT siol.net>
1559
1560         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1561           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1562           support/cpp2/output.h, support/cpp2/cppinit.c,
1563           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1564           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1565           support/cpp2/cppdefault.c, support/cpp2/system.h,
1566           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1567           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1568           support/cpp2/prefix.c, support/cpp2/except.h,
1569           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1570           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1571           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1572           support/cpp2/version.c, support/cpp2/cppmain.c,
1573           support/cpp2/version.h, support/cpp2/hashtable.c,
1574           support/cpp2/cpperror.c:
1575           synchronized with GCC CPP release version 3.3.6,
1576           the latest where cppmain.c still exists.
1577         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1578           support/cpp2/sdcppinit.c: added
1579
1580 2006-11-27 Borut Razem <borut.razem AT siol.net>
1581
1582         * support/cpp2/cpplex.c:
1583           fixed _asm ... _endasm handling bug, introduce with GCC CPP
1584           synchronization
1585         * support/cpp2/cpplib.c: removed definitions of unused variables
1586
1587 2006-11-26 Borut Razem <borut.razem AT siol.net>
1588
1589         * support/cpp2/libiberty.h: commented out x*alloc() declarations
1590           since they are redefined by macros in support/cpp2/sdcc.h
1591         * support/cpp2/sdcc.h: x*alloc macro redefinition
1592
1593 2006-11-25 Borut Razem <borut.razem AT siol.net>
1594
1595         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1596           support/cpp2/configure, support/cpp2/Makefile.in,
1597           support/cpp2/cppfiles.c, support/cpp2/output.h,
1598           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1599           support/cpp2/config.h, support/cpp2/cpplib.h,
1600           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1601           support/cpp2/cppdefault.c, support/cpp2/config.in,
1602           support/cpp2/system.h, support/cpp2/cpplex.c,
1603           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1604           support/cpp2/cppdefault.h, support/cpp2/prefix.c
1605           support/cpp2/hwint.h, support/cpp2/mbchar.h,
1606           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1607           support/cpp2/configure.in, support/cpp2/intl.h,
1608           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1609           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1610           support/cpp2/version.c, support/cpp2/cppmain.c,
1611           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1612           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1613           support/cpp2/cpperror.c,
1614           support/cpp2/libiberty/safe-ctype.c,
1615           support/cpp2/libiberty/safe-ctype.h,
1616           support/cpp2/libiberty/splay-tree.c,
1617           support/cpp2/libiberty/obstack.c,
1618           support/cpp2/libiberty/lbasename.c,
1619           support/cpp2/libiberty/splay-tree.h,
1620           support/cpp2/libiberty/obstack.h:
1621           synchronized with GCC CPP release version 3.2.3,
1622           the latest before integration of cpp into gcc
1623         * support/cpp2/except.h, support/cpp2/line-map.c,
1624           support/cpp2/line-map.h,
1625           support/cpp2/libiberty/hex.c,
1626           support/cpp2/libiberty/concat.c,
1627           support/cpp2/libiberty/filenames.h: added
1628         * support/cpp2/intl.c: deleted
1629
1630 2006-11-24 Borut Razem <borut.razem AT siol.net>
1631
1632         * src/SDCC.y: enabled compilation of empty source file
1633         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1634           "ISO C forbids an empty source file"
1635         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1636           if all the code is ifdefed out.
1637
1638 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1639
1640         * src/hc08/gen.c (genPcall): fix for bug #1601032
1641
1642 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1643
1644         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1645         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1646         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1647         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1648         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1649         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1650         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1651         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1652         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1653         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1654         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1655         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1656         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1657         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1658         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1659           Renamed to all upper case as per the standard set by SiLabs
1660
1661 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1662
1663         * device/include/mcs51/C8051F520.h: new, added
1664         * device/include/mcs51/compiler.h: added link about predefined macros
1665
1666 2006-11-23 Raphael Neider <rneider AT web.de>
1667
1668         * src/regression/Makefile: add -L path to fresh library
1669         * src/regression/simulate: emphasize FAILED output
1670         * src/regression/create_stc: output _failures from gpsim
1671         * src/regression/compare4.c,
1672         * src/regression/rotate6.c: fixed char literals,
1673           all compile, all run =8-D
1674
1675         * src/pic/pcode.h: added isPCASMDIR macro
1676         * src/pic/gen.c (genAnd): fixed bit offset
1677         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1678           packBits): unified register numbering schemes,
1679           (newReg): do not insert stack registers into hash table,
1680           (initStack): unpinned pseudo stack, simplified,
1681           (typeRegWithIdx): fixed retrieval of stack registers,
1682         * src/pic/pcode.c (addpCodeComment,sameBank): added,
1683           (pCodeReplace): removed invalid assertion,
1684           (insertPCodeInstruction): fixed newly added labels,
1685           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1686           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1687           DumpFlow): removed unsed (broken?) code,
1688           (insertBankSel): prevent STATUS from being BANKSELed,
1689           (FixRegisterBanking): rewritten from scratch, implemented generic
1690             optimizations (suppress BANKSELs to same register and to registers
1691             present in all banks),
1692           (AnalyzeBanking): update flow after BANKSELection
1693
1694         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
1695             sharebank, let linker place it, mark STKxx symbols as emitted
1696
1697 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1698
1699         * src/regression/arrays.c,
1700         * src/regression/bank1.c,
1701         * src/regression/bool2.c,
1702         * src/regression/compare7.c,
1703         * src/regression/compare8.c,
1704         * src/regression/compare9.c,
1705         * src/regression/compare10.c,
1706         * src/regression/configword.c,
1707         * src/regression/for.c,
1708         * src/regression/mult1.c,
1709         * src/regression/pointer1.c,
1710         * src/regression/rotate6.c,
1711         * src/regression/string1.c,
1712         * src/regression/struct1.c,
1713         * src/regression/Makefile: make PIC14 regression tests run again
1714           (3 fail, 6 won't compile)
1715
1716 2006-11-21 Raphael Neider <rneider AT web.de>
1717
1718         * device/include/pic16/pic18f4550.h,
1719         * device/include/pic16/pic18f4455.h,
1720         * device/lib/pic16/libdev/pic18f4550.c,
1721         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
1722         * configure.in: removed superfluous closing bracket
1723
1724 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1725
1726         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
1727           always positive.
1728
1729 2006-11-21 Raphael Neider <rneider AT web.de>
1730
1731         * src/pic/device.{c,h}: added pic14_getPIC()
1732         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
1733           (genAnd): added PIC code for one case, fixes #1597044
1734         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
1735           SFRs that are present in all banks (e.g., STATUS)
1736
1737 2006-11-20 Raphael Neider <rneider AT web.de>
1738
1739         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
1740           INCFSZ/INCFSZW and declared them as changing Z bit,
1741           (insertPCodeInstruction): correctly invert the above instructions,
1742           fixes #1599333,
1743           (DoBankSelect): don't panic on po_immediates
1744
1745 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1746
1747         * as/link/aslink.h,
1748         * as/link/mcs51/lkihx.c (newArea),
1749         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
1750         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
1751
1752 2006-11-11 Raphael Neider <rneider AT web.de>
1753
1754         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
1755           bitfield symbols, fixes #1579535 (once more...).
1756
1757 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1758
1759         * support/regression/generate-cases.py,
1760         * support/regression/fwk/include/testfwk.h,
1761         * support/regression/fwk/lib/testfwk.c: used code pointers,
1762           (about 50kByte less code generated for mcs51)
1763
1764 2006-11-06 Borut Razem <borut.razem AT siol.net>
1765
1766         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1767           debugger/mcs51/configure: fixed failed check because the function
1768           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
1769           who submitted the patch for gpsim.
1770         * debugger/mcs51/configure.in: removed the result message
1771         * debugger/mcs51/Makefile.in: fixed the config.status warning
1772           "... seems to ignore the --datarootdir setting"
1773
1774 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1775
1776         * device/include/mcs51/c8051f020.h,
1777         * device/include/mcs51/c8051f040.h,
1778         * device/include/mcs51/c8051f060.h,
1779         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
1780         * src/z80/gen.c (gencjneshort),
1781         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
1782
1783 2006-10-31 Borut Razem <borut.razem AT siol.net>
1784
1785         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1786           debugger/mcs51/configure: get readline version
1787
1788 2006-10-30 Borut Razem <borut.razem AT siol.net>
1789
1790         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
1791         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1792           debugger/mcs51/configure: locate readline even when cross compiling
1793         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
1794
1795 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1796
1797         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
1798           serial port.
1799
1800 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1801
1802         * device/include/malloc.h,
1803         * device/lib/calloc.c,
1804         * device/lib/free.c,
1805         * device/lib/malloc.c,
1806         * device/lib/realloc.c: moved definition of struct into sources
1807         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
1808
1809 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1810
1811         * as/asx8051.dsp: corrected output directories
1812         * as/link/hc08: new directory for hc08 linker
1813         * as/hc08/aslink.h,             as/link/aslink.h,
1814         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
1815         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
1816         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
1817         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
1818         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
1819         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
1820         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
1821         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
1822         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
1823         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
1824         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
1825         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
1826         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
1827         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
1828         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
1829         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
1830         * as/link/hc08/conf.mk,
1831         * configure,
1832         * configure.in,
1833         * Makefile.in,
1834         * sdcc.dsw: moved hc08 linker to as/link/hc08
1835         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
1836         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
1837         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
1838         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
1839         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
1840         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
1841         * as/link/mcs51/aslink.dsp,
1842         * as/link/mcs51/Makefile.in: factored out the common files
1843         * as/hc08/lkstore.c: deleted, use the one already in as/link/
1844         * as/clean.mk: extra cleaning common files
1845         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
1846         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
1847         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
1848
1849 2006-10-29 Raphael Neider <rneider AT web.de>
1850
1851         * src/pic/ralloc.c (newReg): create aliases for registers with
1852           multiple names to fix #1579535 and #1584001,
1853           (regWithIdx,dirregWithName): resolve aliases on lookup
1854         * src/pic/pcode.c (DoBankSelect): die with error message on failing
1855           bankselect
1856         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
1857           to prevent build errors on small devices
1858
1859 2006-10-28 Raphael Neider <rneider AT web.de>
1860
1861         * src/pic/gen.c (genFunction,genCall): drop "same code page"
1862           assumption within interrupt handlers, fixes #1584940
1863         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
1864           "emitted" to avoid emitting them again in udata
1865
1866 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1867
1868         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1869         Removed.
1870
1871 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1872
1873         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1874         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
1875         on/off CR to CRLF conversion.
1876
1877 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1878
1879         * doc/sdccman.lyx: updated IRQ section
1880
1881 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1882
1883         * device/lib/serial_io.c: removed
1884         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
1885         replacements for serial_io.c
1886
1887 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
1888
1889         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
1890
1891 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1892
1893         * device/lib/serial_io.c: Default putchar() and getchar() for
1894           mcs51 uses serial port.
1895
1896 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
1897
1898         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
1899
1900 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1901
1902         * support/regression/ports/mcs51/support.c: smaller
1903         _sdcc_external_startup()
1904         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
1905
1906 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
1907
1908         * device/lib/gbz80/crt0.s,
1909         * device/lib/gbz80/crt0_rle.s,
1910         * device/lib/gbz80/div.s,
1911         * device/lib/gbz80/fstubs.s,
1912         * device/lib/gbz80/heap.s,
1913         * device/lib/gbz80/mul.s,
1914         * device/lib/gbz80/putchar.s,
1915         * device/lib/gbz80/stubs.s,
1916         * device/lib/z80/crt0.s,
1917         * device/lib/z80/crt0_rle.s,
1918         * device/lib/z80/div.s,
1919         * device/lib/z80/fstubs.s,
1920         * device/lib/z80/heap.s,
1921         * device/lib/z80/mul.s,
1922         * device/lib/z80/putchar.s,
1923         * device/lib/z80/stubs.s: reverted, I was mistaken
1924
1925 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1926
1927         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
1928         * support/regression/ports/mcs51/support.c: removed race
1929         condition on TI in _putchar allowing to use serial port mode 0
1930
1931 2006-10-20 Borut Razem <borut.razem AT siol.net>
1932
1933         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
1934
1935 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
1936
1937         * device/lib/gbz80/crt0.s,
1938         * device/lib/gbz80/crt0_rle.s,
1939         * device/lib/gbz80/div.s,
1940         * device/lib/gbz80/fstubs.s,
1941         * device/lib/gbz80/heap.s,
1942         * device/lib/gbz80/mul.s,
1943         * device/lib/gbz80/putchar.s,
1944         * device/lib/gbz80/stubs.s,
1945         * device/lib/z80/crt0.s,
1946         * device/lib/z80/crt0_rle.s,
1947         * device/lib/z80/div.s,
1948         * device/lib/z80/fstubs.s,
1949         * device/lib/z80/heap.s,
1950         * device/lib/z80/mul.s,
1951         * device/lib/z80/putchar.s,
1952         * device/lib/z80/stubs.s: removed all leading underscores from area names
1953
1954 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
1955
1956         * support/regression/ports/mcs51/support.c: use highest baudrate so the
1957           regression tests are not waiting in the simulator for simulated
1958           transmission of debug output
1959
1960 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1961
1962         * device/lib/printf_large.c: slightly smaller
1963         * doc/sdccman.lyx: do not use spaces within html links
1964
1965 2006-10-16 Borut Razem <borut.razem AT siol.net>
1966
1967         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
1968           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
1969           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
1970           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
1971           debugger/mcs51/configure:
1972           [ 1185668 ] add gnu readline support to sdcdb - enabled
1973
1974 2006-10-16 Raphael Neider <rneider AT web.de>
1975
1976         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
1977           fixes #1577882, removes close to all banking optimizations
1978
1979 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
1980
1981         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
1982           variables in code memory
1983         * support/regression/tests/absolute.c: added test for this
1984
1985 2006-10-15 Raphael Neider <rneider AT web.de>
1986
1987         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
1988           devices,
1989           (BankSelect): emit BANKSEL before touching linker-placed regs,
1990           fixes #1570934
1991
1992 2006-10-10 Raphael Neider <rneider AT web.de>
1993
1994         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
1995         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
1996         * src/pic/main.c (_pic14_parseOptions),
1997         * src/pic/main.h: mostly reverted to previous state, now use results
1998             from SDCCmain.c's argument parsing
1999
2000 2006-10-10 Borut Razem <borut.razem AT siol.net>
2001
2002         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
2003           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
2004           [ 1185668 ] add gnu readline support to sdcdb -
2005           prepared for READLINE, not enabled yet,
2006           thanks to <tal.bav AT gmail.com>
2007
2008 2006-10-10 Raphael Neider <rneider AT web.de>
2009
2010         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
2011         * src/pic16/devices.inc,
2012         * device/include/pic16 (pic18f[24]620.h),
2013         * device/include/pic18fregs.h,
2014         * device/lib/pic16/pics.all,
2015         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
2016             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
2017             Gary Plumbridge and Anton Strobl
2018
2019 2006-10-10 Raphael Neider <rneider AT web.de>
2020
2021         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
2022           --stack-siz=NUM options to configure the argument passing stack
2023         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
2024         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
2025           (pic14_getSharebankSize): obey --stack-siz=NUM,
2026           (pic14_getSharebankAddress): obey --stack-loc=NUM
2027
2028 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2029
2030         * doc/sdccman.lyx: added to the manual
2031         * doc/figures/ddd_example.png: added (neither pdflatex nor
2032         most browsers seem to like the .eps file)
2033
2034 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
2035
2036         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
2037         to /tmp and /var/tmp acc. LSB
2038         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
2039         RESULT_TYPE_IFX
2040         * support/regression/tests/onebyte.c: added test
2041
2042 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2043
2044         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
2045
2046 2006-10-05 Borut Razem <borut.razem AT siol.net>
2047
2048         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
2049           thanks to dfulab:
2050           - sdcc.dsw: changed property eol-style to CRLF
2051           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2052
2053 2006-10-04 Raphael Neider <rneider AT web.de>
2054
2055         * device/include/pic/{pic16f84.h,pic16f84a.h},
2056         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2057           from patch #1522504, thanks to Robas Teodor
2058
2059 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2060
2061         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2062           fixes bug 1566015
2063
2064 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2065
2066         * src/pic16/glue.c (pic16emitMaps),
2067         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2068         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2069         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2070         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2071           Philipp Krause
2072         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2073         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2074
2075 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2076
2077         * support/librarian/sdcclib.c: Added option -l.
2078         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2079           usage totals.
2080         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2081           using Windows command prompt.
2082
2083 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2084
2085         * device/lib/libsdcc.lib: added module rand
2086         * src/ds390/ralloc.c (rematStr),
2087         * src/hc08/ralloc.c (rematStr),
2088         * src/mcs51/ralloc.c (rematStr),
2089         * src/z80/ralloc.c (rematStr): made output more consistent
2090         * src/mcs51/gen.c: cosmetic changes
2091
2092 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2093
2094         * src/port.h: added mem.cabs_name to PORT
2095         * src/ds390/main.c,
2096         * src/hc08/main.c,
2097         * src/mcs51/main.c,
2098         * src/pic16/main.c,
2099         * src/pic/main.c,
2100         * src/xa51/main.c,
2101         * src/z80/main.c: added cabs_name initializers
2102         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2103           constants
2104           (emitMaps): emit absolutes in code memory into cabs_name
2105         * src/SDCCmem.c,
2106         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2107         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2108         * support/regression/fwk/include/testfwk.h: added define for at
2109         * support/regression/tests/absolute.c: added, new
2110
2111 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2112
2113         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2114           optimizations, see also patch 887161 by Stas Sergeev
2115         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2116           to be necessary anymore,
2117           (102, 103, 104, 127): renamed all occurances of bp to _bp
2118
2119 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2120
2121         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2122           thanks Weston T. Schmidt for patch 1555221
2123         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2124         * src/SDCCicode.c(geniCodeMultiply): small optimization
2125
2126 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2127
2128         * device/include/stdlib.h: added rand prototypes
2129         * device/lib/rand.c: new, added
2130         * device/lib/Makefile.in: added rand.c
2131         * src/z80/peeph.def,
2132         * src/z80/peeph-gbz80.def,
2133         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2134
2135 2006-09-20 Raphael Neider <rneider AT web.de>
2136
2137         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2138
2139 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2140
2141         * as/link/aslink.h: cosmetic changes
2142         * as/link/mcs51/Makefile.in,
2143         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2144
2145 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2146
2147         * as/link/aslink.h,
2148         * as/link/mcs51/aslink.h,
2149         * as/link/z80/aslink.h: merged and moved to as/link/
2150         * as/link/lkstore.c,
2151         * as/link/mcs51/lkstore.c: moved to as/link/
2152         * as/link/clean.mk: remove *.o
2153         * as/link/mcs51/alloc.h: deleted
2154         * as/link/mcs51/lkarea.c: added lnksect prototype
2155         * as/link/mcs51/lkdata.c,
2156         * as/link/mcs51/lklex.c,
2157         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2158         * as/link/mcs51/lkmem.c,
2159         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2160         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2161         * as/link/mcs51/aslink.dsp,
2162         * as/link/mcs51/Makefile.aslink,
2163         * as/link/mcs51/Makefile.bcc,
2164         * as/link/mcs51/Makefile.in: updated for moved files
2165         * as/link/z80/lkarea.c,
2166         * as/link/z80/lkhead.c,
2167         * as/link/z80/lklex.c,
2168         * as/link/z80/lklibr.c,
2169         * as/link/z80/lklist.c,
2170         * as/link/z80/lkmain.c,
2171         * as/link/z80/lkrloc.c,
2172         * as/link/z80/lksym.c: synced with mcs51
2173         * as/link/z80/lkdata.c,
2174         * as/link/z80/lkeval.c,
2175         * as/link/z80/lkihx.c,
2176         * as/link/z80/lks19.c: cosmetic changes
2177         * as/link/z80/Makefile.in,
2178         * as/link/z80/linkgbz80.dsp,
2179         * as/link/z80/linkz80.dsp: updated for moved files
2180
2181 2006-09-16 Borut Razem <borut.razem AT siol.net>
2182
2183         * debugger/mcs51/sdcdb.c: partially fixed
2184           [ 1203664 ] sdcdb fails to open files w. two "." periods
2185         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2186           debugger/mcs51/symtab.h: fixed indenting
2187         * configure.in, configure: up to date with latest Maarten's changes
2188
2189 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2190
2191         as/link/mcs51
2192         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2193         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2194         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2195         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2196         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2197         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2198         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2199         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2200         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2201         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2202         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2203         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2204         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2205         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2206         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2207         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2208         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2209         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2210         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2211         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2212         as/link/mcs51/alloc.h,
2213         as/link/mcs51/clean.mk,
2214         as/link/mcs51/conf.mk,
2215         as/link/mcs51/Makefile.bcc,
2216         as/link/mcs51/Makefile.in,
2217         as/link/mcs51/readme.390,
2218         as/link/mcs51/strcmpi.c,
2219         as/link/mcs51/strcmpi.h,
2220         as/mcs51/clean.mk,
2221         as/mcs51/Makefile.bcc,
2222         as/mcs51/Makefile.in,
2223         configure,
2224         Makefile.in,
2225         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2226
2227 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2228
2229         * as/link,
2230         * as/link/Makefile.in,
2231         * as/link/z80/linkgbz80.dsp,
2232         * as/link/z80/linkz80.dsp,
2233         * configure,
2234         * link,
2235         * link/clean.mk,
2236         * link/Makefile.in,
2237         * link/README,
2238         * link/z80,
2239         * link/z80/aslink.h,
2240         * link/z80/clean.mk,
2241         * link/z80/conf.mk,
2242         * link/z80/linkgbz80.dsp,
2243         * link/z80/linkz80.dsp,
2244         * link/z80/lkarea.c,
2245         * link/z80/lkdata.c,
2246         * link/z80/lkeval.c,
2247         * link/z80/lkgb.c,
2248         * link/z80/lkgg.c,
2249         * link/z80/lkhead.c,
2250         * link/z80/lkihx.c,
2251         * link/z80/lklex.c,
2252         * link/z80/lklibr.c,
2253         * link/z80/lklist.c,
2254         * link/z80/lkmain.c,
2255         * link/z80/lkrloc.c,
2256         * link/z80/lks19.c,
2257         * link/z80/lksym.c,
2258         * link/z80/Makefile.in,
2259         * Makefile.in,
2260         * sdcc.dsw: moved link/ to as/link/
2261
2262 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2263
2264         * as/mcs51/i51mch.c (machine): fixed warning
2265
2266 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2267
2268         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2269
2270 2006-09-09 Borut Razem <borut.razem AT siol.net>
2271
2272         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2273           sdcdb WIN32 native port
2274         * src/clean.mk: fixed
2275
2276 2006-09-08 Borut Razem <borut.razem AT siol.net>
2277
2278         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2279
2280 2006-09-08 Raphael Neider <rneider AT web.de>
2281
2282         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2283         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2284             to gplink to disable processor mismatch warning and to allow
2285             the use of devices with only aliased (shared) memory banks,
2286           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2287
2288 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2289
2290         * doc/sdccman.lyx: Some re-formating plus example on using
2291           #pragma preproc_asm +/-
2292
2293 2006-09-07 Borut Razem <borut.razem AT siol.net>
2294
2295         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2296           section
2297
2298 2006-09-06 Borut Razem <borut.razem AT siol.net>
2299
2300         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2301           line at sdcc.nsi:153
2302         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2303
2304 2006-09-05 Borut Razem <borut.razem AT siol.net>
2305
2306         * configure.in, configure: support for winsock2
2307         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2308           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2309           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2310           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2311           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2312
2313 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2314
2315         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2316           and OP_DEFS
2317         * support/regression/tests/bug1551947.c: new, added
2318         * src/SDCCsymt.h: strings are char* not byte*
2319
2320 2006-09-05 Raphael Neider <rneider AT web.de>
2321
2322         * device/lib/pic16/libdev/pic18f4550.c,
2323           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2324             declarations/definitions from patch #1520949
2325
2326 2006-09-05 Raphael Neider <rneider AT web.de>
2327
2328         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2329           byte-aligned bitfields, fixes #1539278
2330
2331 2006-09-05 Raphael Neider <rneider AT web.de>
2332
2333         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2334           fixes #1544120
2335
2336 2006-09-04 Borut Razem <borut.razem AT siol.net>
2337
2338         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2339         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2340           -mno-cygwin is a part of the compiler name
2341         * support/scripts/sdcc_mingw32: don't disable ucsim
2342
2343 2006-09-03 Borut Razem <borut.razem AT siol.net>
2344
2345         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2346         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2347
2348 2006-09-03 Raphael Neider <rneider AT web.de>
2349
2350         * src/pic/ralloc.c,
2351         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2352           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2353           fixes #1550049
2354
2355 2006-09-01 Borut Razem <borut.razem AT siol.net>
2356
2357         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2358           to make ppc-osx happy
2359
2360 2006-08-31 Borut Razem <borut.razem AT siol.net>
2361
2362         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2363         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2364         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2365         * support/regression/ports/ds390/spec.mk,
2366           support/regression/ports/mcs51/spec.mk,
2367           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2368           To run regression tests in mingw environment:
2369           make DEV_NULL=NUL CC=gcc
2370
2371 2006-08-30 Borut Razem <borut.razem AT siol.net>
2372
2373         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2374           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2375           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2376           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2377           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2378           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2379           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2380           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2381           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2382           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2383           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2384           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2385           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2386           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2387           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2388           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2389           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2390           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2391           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2392           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2393           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2394           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2395           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2396           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2397           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2398           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2399           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2400           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2401           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2402           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2403           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2404           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2405           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2406           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2407           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2408           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2409           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2410           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2411           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2412           ucsim WIN32 native port
2413
2414 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2415
2416         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2417
2418 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2419
2420         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2421         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2422
2423 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2424
2425         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2426         * support/regression/tests/bug1546986.c: new, added
2427         * as/mcs51/.cvsignore,
2428         * debugger/mcs51/.cvsignore,
2429         * src/.cvsignore: deleted
2430
2431 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2432
2433         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2434           definitions)
2435
2436 2006-08-20 Borut Razem <borut.razem AT siol.net>
2437
2438         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2439           removed cl_listen_console::match(), cl_console::match(),
2440           restructured cl_commander::proc_input()
2441
2442 2006-08-16 Borut Razem <borut.razem AT siol.net>
2443
2444         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2445           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2446           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2447
2448 2006-08-14 Borut Razem <borut.razem AT siol.net>
2449
2450         * support/regression/Makefile.in,
2451           support/regression/ports/pic14/gpsim.cmd,
2452           support/regression/ports/pic14/spec.mk,
2453           support/regression/ports/pic14/support.c:
2454           added pic14 regression test
2455
2456 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2457
2458         * as/doc/asxhtm.html: documented changed ABS behaviour
2459         * as/doc/README: fixed some typos
2460
2461 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2462
2463         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2464           not defined on host
2465
2466 2006-08-12 Borut Razem <borut.razem AT siol.net>
2467
2468         * support/regression/fwk/include/testfwk.h,
2469           support/regression/fwk/lib/testfwk.c,
2470           support/regression/generate-cases.py,
2471           support/regression/Makefile.in:
2472           regression test framework does not depend on function pointers and
2473           variable arguments
2474
2475 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2476
2477         * device/include/stddef.h: c temporary hack to fix bug 1518273
2478
2479 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2480
2481         * device/include/mcs51/cc2510fx.h: added
2482         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2483           to projects.
2484
2485 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2486
2487         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2488         * as/z80/Makefile.in: added strcmpi.c
2489         * as/z80/z80adr.c: added upper case registers and lower case conditionals
2490         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2491
2492 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2493
2494         * device/lib/gbz80/asm_strings.s,
2495         * device/lib/gbz80/crt0_rle.s,
2496         * device/lib/gbz80/div.s,
2497         * device/lib/gbz80/mul.s,
2498         * device/lib/gbz80/shift.s,
2499         * device/lib/z80/asm_strings.s,
2500         * device/lib/z80/crt0_rle.s,
2501         * device/lib/z80/div.s,
2502         * device/lib/z80/mul.s,
2503         * device/lib/z80/shift.s: changed to all lower case menmonics except the
2504           flags which are all upper case
2505
2506 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2507
2508         * as/z80/asm.h: made CASE_SENSITIVE 1
2509         * link/z80/aslink.h: made CASE_SENSITIVE 1
2510         * src/z80/gen.c (throughout): made all conditionals upper case
2511         * support/regression/tests/bug1503067.c: new
2512
2513 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2514
2515         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2516           (shiftIntoPair): added case 2 for PAIR_IY,
2517           (setupToPreserveCarry): replaced parameters with iCode and check if
2518            PAIR_DE is in use to fix bug 1399290,
2519           (genPlus, genMinus): updated call to setupToPreserveCarry
2520         * support/regression/tests/bug1399290.c: new
2521
2522 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2523
2524         * device/lib/Makefile.in (Z80SOURCES): enabled float support
2525         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2526         * src/ds390/gen.c (shiftRLong),
2527         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2528         * src/mcs51/gen.c (sameReg): changed to sameByte,
2529           (xch_a_aopGet): new,
2530           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2531            shiftRLong): fixed bug 1533966
2532         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2533           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2534         * support/regression/Makefile.in: disabled z80, enabled ucz80
2535         * support/regression/tests/float_trans.c: enabled test for z80 and host
2536         * support/regression/tests/shifts2.c: new, for testing bug 1533966
2537
2538 2006-08-01 Borut Razem <borut.razem AT siol.net>
2539
2540         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2541           comparison is always false due to limited range of data type
2542           on PPC64 machine (openpower-linux1) where "char = unsigned char"
2543
2544 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2545
2546         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2547         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2548         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2549         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2550
2551 2006-07-31 Borut Razem <borut.razem AT siol.net>
2552
2553         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2554           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2555           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2556           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2557           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2558           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2559           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2560           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2561           enable ucsim mingw compilation. Serial port is disabled,
2562           since it uses termios.h API, which is not available on native
2563           WIN32
2564
2565 2006-07-31 Borut Razem <borut.razem AT siol.net>
2566
2567         * Small Device C Compiler 2.6.0 released
2568         * support/scripts/sdcc.nsi: added FULL_DOC option
2569         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2570
2571 2006-07-28 Borut Razem <borut.razem AT siol.net>
2572
2573         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2574         * doc/INSTALL.txt: updated
2575
2576 2006-07-27 Borut Razem <borut.razem AT siol.net>
2577
2578         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2579           device/lib/pic/libdev/Makefile.in: fixed bug
2580           [ 1438354 ] pic libsdcc: distclean doesn't work
2581         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2582           device/lib/pic16/libio/Makefile.in: fixed bug
2583           [ 1438344 ] pic16 lib: clean doesn't work properly
2584         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2585
2586 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2587
2588         * device/lib/pic/libsdcc/fsdiv.c,
2589         * device/lib/pic/libsdcc/fsmul.c,
2590         * device/lib/pic16/libsdcc/float/fsdiv.c,
2591         * device/lib/pic16/libsdcc/float/fsmul.c,
2592         * device/lib/_fsdiv.c,
2593         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2594         * support/regression/tests/bug1520966.c: added
2595         * doc/knownbugs.html: removed [ 1520966 ] from the list
2596
2597 2006-07-25 Borut Razem <borut.razem AT siol.net>
2598
2599         * configure.in, configure, sdccconf_in.h: fixed bug
2600           [ 1519095 ] regression test onebyte.c fails on ppc64 host
2601         * doc/knownbugs.html: removed [ 1519095 ] from the list
2602
2603 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2604
2605         * doc/knownbugs.html: added, contains list of known bugs at release
2606         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2607
2608 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2609
2610         * device/include/mcs51/compiler.h: added SFRX for xdata based special
2611           function registers and corrected defaults with additional warning
2612         * device/lib/malloc.c: cosmetic changes
2613         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2614         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2615           (fillGaps): and used it
2616
2617 2006-07-20 Raphael Neider <rneider AT web.de>
2618
2619         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2620           output unless SDCCPICDEBUG is set
2621         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2622           output if SILENT is set
2623
2624 2006-07-11 Borut Razem <borut.razem AT siol.net>
2625
2626         * doc/README.txt: updated
2627
2628 2006-07-10 Borut Razem <borut.razem AT siol.net>
2629
2630         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2631           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2632           in WIN32 installation
2633         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2634           release candidate 1
2635
2636 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2637
2638         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2639         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2640
2641 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2642
2643         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2644
2645 2006-07-06 Borut Razem <borut.razem AT siol.net>
2646
2647         * support/regression/tests/bitfields.c:
2648           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2649         * support/regression/tests/constantRange.c:
2650           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2651
2652 2006-07-04 Borut Razem <borut.razem AT siol.net>
2653
2654         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2655           src/port.mk,
2656           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2657           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2658           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2659           reverted changes from 2006-07-03
2660         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2661         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2662           added CPPFLAGS, used by the host port
2663
2664 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2665
2666         * support/regression/valdiag/tests/switch.c,
2667         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2668         * support/regression/tests/libmullong.c: fixed for host
2669         * support/regression/ports/host/spec.mk: disable all warnings for host,
2670         SDCC runs with --less-pedantic too
2671
2672 2006-07-03 Borut Razem <borut.razem AT siol.net>
2673
2674         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2675           defined CPPFLAGS
2676         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2677         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2678           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2679           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2680           include ../port.mk
2681         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2682           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2683           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2684           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2685
2686 2006-07-02 Raphael Neider <rneider AT web.de>
2687
2688         * src/pic16/devices.inc,
2689         * device/include/pic16/pic18fregs.h,
2690         * device/include/pic16/pic18f4550.h,
2691         * device/lib/pic16/pics.all,
2692         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
2693
2694 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2695
2696         * as/hc08/lkaomf51.c (OutputName),
2697         * as/mcs51/lkaomf51.c (OutputName),
2698         * as/z80/asmain.c (asmbl),
2699         * src/ds390/main.c (asmLineNodeFromLineNode),
2700         * src/hc08/ralloc.c (hc08_assignRegisters),
2701         * src/mcs51/main.c (asmLineNodeFromLineNode),
2702         * src/xa51/ralloc.c (checkRegMask),
2703         * src/xa51/gen.c (emitcode),
2704         * src/z80/gen.c (_emit2),
2705         * src/SDCCast.c (searchLitOp),
2706         * src/SDCCglobl.h,
2707         * support/packihx/packihx.c,
2708         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
2709         * src/ds390/gen.c (aopPutUsesAcc),
2710         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
2711         * support/regression/tests/libmullong.c (mullong_wrapper),
2712         * src/SDCCsymt.c (powof2),
2713         * src/SDCCast.c,
2714         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
2715         * src/SDCCsymt.h: added TYPE_TARGET_*
2716         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
2717         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
2718         SDCCast because 1) header problems 2) this is the right place
2719         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
2720         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
2721         prototype
2722
2723 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2724
2725         * src/SDCCicode.h: removed buggy semicolon in unused macro
2726         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
2727         search for previous definiton of auto symbols too,
2728         (findPrevUse): fixed logic of emitWarnings
2729
2730 2006-06-26 Raphael Neider <rneider AT web.de>
2731
2732         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
2733           PCLATH and PCLATU on interrupts, potentially fixes #1505141
2734
2735 2006-06-25 Raphael Neider <rneider AT web.de>
2736
2737         * device/lib/pic/libm: NEW, added math library functions
2738         * device/lib/pic/libsdcc: NEW; added float support functions
2739         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
2740         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
2741           NEW, added math related headers
2742         * device/include/asm/pic/features.h: NEW
2743         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
2744           (popGet): allow larger offsets for AOP_PCODE,
2745           (genDataPointerSet): handle literals explicitly, more debug output,
2746           (genAssign): fixed for float using aopLiteral ;-)
2747         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
2748           GOTO initialisation routine
2749         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
2750           flag on registers, fixes #1469043 (local variables do not work)
2751         * src/pic/main.c (_pic14_do_link),
2752         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
2753           available
2754
2755 2006-06-25 Borut Razem <borut.razem AT siol.net>
2756
2757         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
2758           characters printed (not including the trailing '\0' used to end
2759           output to strings). Problem detected in regression test bug-927659.c.
2760           NOTE: printf() family functions should return int instead
2761           unsigned int!
2762         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
2763           specifier are printed as themselves
2764         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
2765           support flags, width and precision specifiers
2766
2767 2006-06-24 Borut Razem <borut.razem AT siol.net>
2768
2769         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
2770           to the list of sdcc tagrets not supporting bit type
2771         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
2772           testfor pic16 due to bug:
2773           [ 1511794 ] pic16: regression test bug-895992.c fails
2774
2775 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
2776
2777         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
2778         * src/SDCCglue.c (initPointer), fixed bug 1496419
2779         * support/regression/tests/bug1496419.c: new, added
2780
2781 2006-06-22 Borut Razem <borut.razem AT siol.net>
2782
2783         * support/regression/ports/pic16/support.c: use gpsim usart module from
2784           libgpsim_modules library
2785
2786 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2787
2788         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
2789         IP0H to IPH0.
2790
2791 2006-06-19 Raphael Neider <rneider AT web.de>
2792
2793         * src/pic/glue.h,src/pic16/glue.h: added prototypes
2794         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
2795           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
2796           (pic14printExterns,pic14printPublics,pic16printPublics,
2797           pic16_printExterns): use new functions to emit symbols
2798           (picglue,pic16glue): emit publics before emitting externs
2799         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
2800           locally defined functions to avoid bug #1443651
2801         * support/regression/tests/bug-716242.c: removed pic16 workaround
2802         * support/regression/ports/pic16/spec.mk: ignore errors during build
2803
2804 2006-06-19 Raphael Neider <rneider AT web.de>
2805
2806         * src/pic/glue.h: added pic14aopLiteral prototype
2807         * src/pic/glue.c (pic14aopLiteral): return unsigned int
2808         * src/pic/gen.c: removed stdint.h dependency
2809           (aopGet): use Safe_strdup()
2810           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
2811           (genDataPointerSet): use pic14aopLiteral()
2812         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
2813           for pic16; thanks to Bernhard and Maarten
2814
2815 2006-06-18 Borut Razem <borut.razem AT siol.net>
2816
2817         * support/regression/tests/structflexarray.c: flexible array members
2818           not supported by gcc < 3
2819         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
2820           GUI tool by default
2821         * src/pic/gen.c: don't include [p]strdin.h on solaris
2822         * support/Util/pstdint.h: addad svn attributes
2823         * support/regression/tests/constantRange.c,
2824           support/regression/tests/rotate.c: include inttypes.h instead
2825           stdint.h on solaris, addad svn attributes
2826
2827 2006-06-18 Raphael Neider <rneider AT web.de>
2828
2829         * src/SDCCsymt.c (initCSupport): change return type of divschar to
2830           int for PIC16
2831         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
2832           (pic16_genMinusBits): simplified sign-extension
2833           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
2834             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
2835             adjusted to correctly handle mixed-signed operands, disabled
2836             now unused multiplciation routines
2837         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
2838           (assignResultValue): added argument denoting the size of the result
2839             as returned by the function (fixes upcasts in assigning from
2840             function calls: char foo(); int i = foo();)
2841           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
2842             function result to assignResultValue
2843           (genMult): disabled inlined multiplication code
2844           (genDiv): augmented to also handle the modulus operator, fixed to
2845             handle mixed-signed operands correctly
2846           (genMod): simply call genDiv, disabled unused code
2847           (genAssign): fixed missing (sign-)extension on result
2848         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
2849             valid char operands, allow signed operands for native code, added
2850             division and modulo operator handling
2851         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
2852
2853         As a consequence, onebyte.c (if split into two files) and muldiv.c
2854         pass regression tests.
2855
2856 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2857
2858         * doc/Makefile.in: two runs of makeindex seem needed to get
2859         correct page references in the index of sdccman.pdf
2860         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
2861
2862 2006-06-17 Borut Razem <borut.razem AT siol.net>
2863
2864         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
2865
2866 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2867
2868         * doc/sdccman.lyx: updated, added (porting source code, debugging),
2869         mentioned ec2drv and paulmon
2870
2871 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2872
2873         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
2874           consecutive abs areas
2875           (find_empty_space, allocate_space): added map to handle codemap or
2876            xdatamap,
2877           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
2878            absolute idata and xdata
2879         * as/mcs51/lkmem.c (summary2): updated legend
2880
2881 2006-06-16 Raphael Neider <rneider AT web.de>
2882
2883         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
2884
2885 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
2886
2887         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
2888           1208515
2889         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
2890
2891 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
2892
2893         * src/port.h (struct PORT): added field gp_tags, to hold the tag
2894         value of generic pointers,
2895         * src/avr/main.c,
2896           src/ds390/main.c,
2897           src/hc08/main.c,
2898           src/izt/i186.c,
2899           src/izt/tlcs900h.c,
2900           src/mcs51/main.c,
2901           src/pic/main.c,
2902           src/pic16/main.c,
2903           src/xa51/main.c,
2904           src/z80/main.c: PORT structure, added elements for gp_tags field,
2905         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
2906         fields in the PORT structure of each port,
2907         * src/SDCCast.c (decorateType): allow processing of generic pointers
2908         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
2909         S_FIXED symbols
2910
2911 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
2912
2913         * link/z80/lkgb.c,
2914         * link/z80/lkgg.c,
2915         * src/pic16/gen.c,
2916         * src/pic16/main.c,
2917         * src/pic16/pcode.c,
2918         * src/pic/main.c,
2919         * src/pic/pcoderegs.c,
2920         * src/SDCCicode.c,
2921         * src/SDCCmain.c,
2922         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
2923           bug 1504689 on minGW
2924
2925 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2926
2927         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
2928
2929 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
2930
2931         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
2932
2933 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
2934
2935         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
2936           for optimization
2937
2938 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
2939
2940         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
2941         to a char variable. Fixed bug #1504211
2942         * device/include/pic16/adc.h,
2943         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
2944         and fixed bug #1364390
2945
2946 2006-06-10 Borut Razem <borut.razem AT siol.net>
2947
2948         * CVSROOT: removed the CVS left-over
2949
2950 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2951
2952         * as/hc08/asmain.c (asexit),
2953         * as/hc08/lkmain.c (lkexit),
2954         * as/mcs51/asmain.c (asexit),
2955         * as/mcs51/lkmain.c (lkexit),
2956         * src/SDCCglue.c (DEFSETFUNC),
2957         * src/SDCCmain.c (linkEdit, assemble),
2958         * support/librarian/sdcclib.c (AddRel),
2959           replaced unlink() by standard C remove()
2960         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
2961         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
2962           gatherImplicitVariables): new, added to fix bug 608752,
2963           (createFunction): added gatherImplicitVariables()
2964         * src/SDCCast.h: added createRMW prototype
2965         * src/SDCCsymt.h (struct symbol): added infertype
2966         * support/regression/tests/bug608752.c: new, added
2967
2968 2006-06-10 Raphael Neider <rneider AT web.de>
2969
2970         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
2971           multibyte dummy reads (fixes #1503234)
2972
2973 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2974
2975         * device/include/mcs51/compiler.h: new, added header file to enable
2976           creating common sfr definition header files for different compilers
2977
2978 2006-06-05 Raphael Neider <rneider AT web.de>
2979
2980         * src/pic16/{pcode.h,genarith.c}:
2981           introduced pCodeOp combining any two pCodeOps (previously only
2982           two register operands could be combined), removed pcop2 from
2983           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
2984         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
2985         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
2986           rewritten to use new PO_TWO_OPS
2987         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
2988         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
2989           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
2990           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
2991           (pic16_get_op): embraced return arg to allow #define return(x),
2992             added new case for combined opcodes
2993           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
2994           (pic16_pCode2str,pic16_getRegFrompCodeOp,
2995            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
2996
2997 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
2998
2999         * src/SDCCval.c (checkConstantRange): added
3000         * src/SDCCval.h: added checkConstantRange
3001         * support/Util/SDCCerr.c,
3002         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
3003         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
3004         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
3005         * src/SDCCast.c (decorateType): added checkConstantRange,
3006         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
3007         can be emitted with the correct always true/false warning,
3008         added optimization for double '!';
3009         result of decorateType() must be assigned back to the tree, because
3010         decorateType() can change the tree
3011         * src/SDCCicode.c (geniCodeLogic),
3012         (geniCodeAssign): replaced new checkConstantRange, added warnings,
3013         (checkConstantRange): removed, it was only a fragment which never
3014         emitted a warning
3015         * src/SDCCsymt.c (computeType): fixed promotion for
3016         "-1 < (unsigned bit) b"
3017         * src/pic/ralloc.c (packRegsForAssign),
3018         * src/pic16/ralloc.c (packRegsForAssign),
3019         * src/hc08/ralloc.c (packRegsForAssign),
3020         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
3021         from mcs51
3022         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
3023         * support/regression/tests/constantRange.c: added
3024         * support/valdiag/tests/constantRange.c: added
3025         * support/valdiag/valdiag.py: added -DPORT_HOST=1
3026
3027 2006-06-02 Borut Razem <borut.razem AT siol.net>
3028
3029         * support/regression/ports/pic16/support.c: increase stack size
3030           to 255 bytes
3031         * support/regression/Makefile.in: sort tests by name so that the
3032           resutlts can be compared on different machines / platforms
3033
3034 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3035
3036         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
3037         * src/ds390/gen.c (emitLabel): new, added,
3038           (genDjnz): fixed stack overflow bug,
3039           (throughout): cosmetic changes to sync with mcs51/gen.c,
3040           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
3041         * src/mcs51/gen.c (genEndFunction): small optimization,
3042           (throughout): cosmetic changes to sync with ds390/gen.c
3043
3044 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
3045
3046         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
3047           (_print_format): fixed printing pointers
3048         * src/mcs51/gen.c (emitLabel, movb): new, added,
3049           (genAssign): small optimization,
3050           (genDjnz): fixed stack overflow bug,
3051           (throughout): replaced sprintf with SNPRINTF,
3052           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3053           replaced emitcode("mov", "b,...") with MOVB(...),
3054           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3055           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3056         * src/mcs51/peeph.def: added rules 140 and 264
3057         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3058           so they may get optimized into registers
3059
3060 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3061
3062         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3063           immediately when encountered,
3064           (printUsage): always use stderr even on windows
3065
3066 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3067
3068         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3069         (processParms): fixed bug #1247551
3070         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3071         parseCmdLine, main): print '--version' to stdout,
3072         print 'help' to stdout if --help is given,
3073         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3074         arguments are given; fixed --help
3075
3076 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3077
3078         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3079         * support/regression/tests/bug-1493710.c: added
3080
3081 2006-05-27 Borut Razem <borut.razem AT siol.net>
3082
3083         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3084           static instead auto
3085         * support/regression/ports/pic16/support.c: increase stack size
3086           from default 64 bytes to 128 bytes
3087         * support/regression/tests/staticinit.c,
3088           support/regression/tests/float.c: regression tests fully enabled
3089           for pic16 port by putting the initialized data arrays into the code
3090           section
3091         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3092           This was changed by mistake in the previous version.
3093
3094 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3095
3096         * src/pic16/gen.c (genFunction, genEndFunction): some
3097         beautifications, fixed bug with falsely restoring FSR2 in large
3098         stack model, thanks to Beau E. Cox for reporting the bug
3099
3100 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3101
3102         * debugger/mcs51/break.c,
3103         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3104           use %p to print pointers, made address variables unsigned
3105         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3106         * debugger/mcs51/symtab.c (parseSymbol): must return something
3107         * src/mcs51/gen.c (aopForSym): small optimization,
3108            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3109           (freeAsmop): added missing break,
3110           (aopPut): removed parameter bvolatile, determine it inside the function,
3111           (saveRegisters, unsaveRegisters): small optimization,
3112           (genIpush): removed pointless check,
3113           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3114           replaced sprintf with SNPRINTF,
3115           replaced strcpy with strncpyz,
3116           updated aopPut calls,
3117           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3118         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3119
3120 2006-05-24 Borut Razem <borut.razem AT siol.net>
3121
3122         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3123           modification of test for the pic16 port, put the array to the code
3124           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3125
3126 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3127
3128         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3129         * support/Util/pstdint.h: added
3130
3131 2006-05-22 Borut Razem <borut.razem AT siol.net>
3132
3133         * src/regression/Makefile: removed bool2.c test, added -q linker option
3134         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3135           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3136           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3137           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3138           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3139           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3140           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3141           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3142           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3143
3144 2006-05-22 Raphael Neider <rneider AT web.de>
3145
3146         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3147           bug #1492360 (problematic due to generic pointers, see code)
3148
3149 2006-05-22 Borut Razem <borut.razem AT siol.net>
3150
3151         * support/regression/ports/pic16/specs.mk: removed stack size linker
3152           directive
3153         * support/regression/tests/array.c,
3154           support/regression/tests/bitopcse.c,
3155           support/regression/tests/bug-908454.c,
3156           support/regression/tests/malloc.c: modified for pic16 regression test
3157         * support/regression/tests/bitfields.c:
3158           pic16 - excluded bitfileds of size > 8
3159         * support/regression/tests/bp.c: pic16 - reduced data size
3160         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3161         * support/regression/tests/bug-460010.c:
3162           pic16 - used the absolute address the fits in memory
3163         * support/regression/tests/bug-716242.c:
3164           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3165         * support/regression/tests/float.c:
3166           pic16 - excluded - data size too big
3167         * support/regression/tests/onebyte.c:
3168           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3169         * support/regression/tests/shifts.c:
3170           pic16 - function names probably have to differ in first X characters
3171           (gpasm limitation?)
3172         * support/regression/tests/staticinit.c:
3173           pic16 - excluded some tests due error: no target memory available for
3174           section ".idata"
3175
3176 2006-05-22 Borut Razem <borut.razem AT siol.net>
3177
3178         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3179           second try. Thanks Stas Sergeev once more.
3180
3181 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3182
3183         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3184           (genLeftShift, genRightShift): fixed bug 1491627
3185         * src/hc08/peeph.def (rules 7, 8.x): added
3186         * support/regression/tests/shifts.c (ShiftLeftByParam,
3187           ShiftRightByParam, testShiftByParam): added to test variable shifting
3188
3189 2006-05-20 Raphael Neider <rneider AT web.de>
3190
3191         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3192         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3193           (allocReg): add only new registers to dynAllocRegs,
3194           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3195             #1489055, #1445850, and probably #1483693
3196
3197 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3198
3199         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3200         bug in for-loop that didn't emit the last of CONFIG and ID registers
3201
3202 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3203
3204         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3205           with offset
3206         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3207           1489016, 1434401 and 1490124
3208         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3209           1489016, 1434401 and 1490124
3210
3211 2006-05-17 Borut Razem <borut.razem AT siol.net>
3212
3213         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3214           thanks Stas Sergeev
3215
3216 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3217
3218         * device/include/mcs51/P89c51RD2.h,
3219         * device/include/mcs51/P89LPC901.h,
3220         * device/include/mcs51/P89LPC922.h,
3221         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3222
3223 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3224
3225         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3226         to fix missing stack pragma in compiled binary object file,
3227
3228 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3229
3230         * support/packihx/configure.in,
3231         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3232         determine sizeof basic types even while cross compiling
3233
3234 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3235
3236         * src/avr/gen.c (aopop),
3237         * src/ds390/gen.c (aopOp),
3238         * src/hc08/gen.c (aopOp),
3239         * src/mcs51/gen.c (aopop),
3240         * src/pic16/gen.c (pic16_aopOp),
3241         * src/pic/gen.c (aopOp),
3242         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3243         if size of operand is smaller than spill location
3244
3245 2006-05-12 Borut Razem <borut.razem AT siol.net>
3246
3247         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3248           have to have CR/LF line endings even if they are checked out on *nix
3249           or on WIN32 in cygwin binmode
3250
3251 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3252
3253         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3254         * device/include/ds80c390.h: added sfr16 definitions
3255         * src/ds390/gen.c,
3256         * src/ds390/gen.h,
3257         * src/ds390/main.c,
3258         * src/ds390/ralloc.c,
3259         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3260           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3261           bit returning functions
3262         * support/regression/tests/sfr16.c: enabled test on ds390
3263
3264 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3265
3266         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3267         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3268
3269 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3270
3271         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3272         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3273           (cl_address_space constructor): removed expensive initialization,
3274           (cl_address_space::get_cell): extended for late initialization,
3275           (cl_address_space::*): use late initialization,
3276           (cl_address_decoder::activate): removed expensive initialization,
3277           This reduced regression test running time by 25%
3278
3279 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3280
3281         * packihx/,
3282         * configure.in,
3283         * configure,
3284         * sdcc.dsw,
3285         * Makefile.bcc,
3286         * Makefile.in,
3287         * support/packihx/Makefile.in,
3288         * support/packihx/clean.mk,
3289         * support/packihx/Makefile.bcc,
3290         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3291
3292 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3293
3294         * src/SDCCval.c (valNot): fix for regression test failure
3295           of not.c on big endian hosts
3296
3297 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3298
3299         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3300
3301 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3302
3303         * device/lib/mcs51/Makefile.in: changed string comparison operator
3304           to = for POSIX compliance; == is bash extension
3305
3306 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3307
3308         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3309           kosmonaut_pirx
3310
3311 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3312
3313         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3314         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3315         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3316         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3317         bug report #1478657,
3318
3319 2006-05-05 Borut Razem <borut.razem AT siol.net>
3320
3321         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3322           making the html
3323
3324 2006-05-02 Borut Razem <borut.razem AT siol.net>
3325
3326         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3327           create *.ind, which made make to fail if invoked with -j 2
3328
3329 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3330
3331         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3332           Hubert Sack for patch 1479782
3333
3334 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3335
3336         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3337
3338 2006-05-01 Raphael Neider <rneider AT web.de>
3339
3340         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3341           (create_pic): store only prefix-free device name,
3342           (init_pic): check for device names with "16" prefix,
3343           (list_valid_pics),
3344         * src/pic/device.h (struct PIC_device),
3345         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3346             stored device name,
3347         * device/include/pic/pic12f{635,675,629,683}.h,
3348         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3349         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3350         * device/include/pic/pic16f505.h,
3351         * device/lib/pic/libdev/pic16f505.c: removed
3352         * device/include/pic/pic14devices.txt: added support for pic12f
3353             devices, removed unsupported non 16-bit devices
3354             [above changes provided by patch from Zik Saleeba]
3355         * src/pic/*, src/pic16/*, device/include/pic16/*,
3356           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3357
3358 2006-05-01 Borut Razem <borut.razem AT siol.net>
3359
3360         * configure.in, configure, doc/Makefile.in:
3361           sync with nightly build makefile - latex, dvipdf and dvips
3362           not needed any more
3363
3364 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3365
3366         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3367         in the library source
3368
3369 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3370
3371         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3372
3373 2006-04-28 Raphael Neider <rneider AT web.de>
3374
3375         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3376         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3377           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3378         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3379
3380 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3381
3382         * device/lib/pic/libdev/Makefile.in,
3383         * device/lib/hc08/Makefile.in,
3384         * device/lib/gbz80/Makefile.in,
3385         * device/lib/z80/Makefile.in,
3386         * device/lib/ds390/Makefile.in,
3387         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3388         thanks to Borut for the bug report
3389         * configure.in,
3390         * configure: always create doc/Makefile independent from --enable-doc
3391         * Makefile.in: always install from directory doc independent from
3392         --enable-doc
3393         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3394         removed
3395         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3396         * doc/Makefile.in: install *.txt if present
3397         * device/include/Makefile.in (install): added installation of pic/*.inc
3398         and pic/*.txt files again, they were erroneously removed
3399
3400 2006-04-28 Raphael Neider <rneider AT web.de>
3401
3402         * src/pic/{gen.c,main.h,pcode.c},
3403         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3404             concerning signedness with casts
3405
3406 2006-04-28 Raphael Neider <rneider AT web.de>
3407
3408         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3409             definition of an interrupt handler,
3410         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3411             interrupt handler stuff from picglue() to separate routine,
3412           (picglue): enabled definition of intr handlers in files w/o main()
3413
3414 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3415
3416         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3417           compilation with MSVC 2005 Express Edition (VC8)
3418
3419 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3420
3421         * device/lib/Makefile: fixed build of gbz80 lib
3422
3423 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3424
3425         * support/regression/tests/bug-460010.c,
3426         * support/regression/tests/bug-524691.c,
3427         * support/regression/tests/bug-716242.c: removed conditional defines
3428           that are already in testfwk.h
3429
3430 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3431
3432         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3433           (AccAXRsh1): added, shift right by 1,
3434           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3435            AccAXLrl1
3436         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3437
3438 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3439
3440         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3441         remove cast to same type
3442         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3443         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3444         * as/z80/Makefile,
3445         * link/z80/Makefile: removed, they have moved to
3446         Makefile.in files
3447         * configure,
3448         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3449         * install-sh: fix bug #1204398 by setting umask 0022
3450         * device/lib/Makefile: separate build of z80 and gbz80 lib
3451
3452 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3453
3454         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3455         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3456
3457         One basic decision: e.g. src/clean.mk includes further files. In order
3458         to make this work there are two solutions:
3459         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3460           run configure on them. This way they can use
3461           'include $(srcdir)/port-clean.mk'
3462         - always include clean.mk by the Makefile at the same level. To avoid
3463           that `make clean` tries to include and build Makefile.dep the
3464           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3465           implemented, because now even `make uninstall` doesn't create
3466           Makefile.in. clean.mk could be eliminated by pasting it in
3467           Makefile.in.
3468
3469         * debugger/mcs51/Makefile.in: build own objects from library sources
3470         (SLIB, SDCC) in current directory
3471
3472         * configure, configure.in: renamed --disable-device-lib-build in
3473         --disable-device-lib; added --enable-doc, the required tools are
3474         searched by configure; added result message; the toolchain for the
3475         belonging ports are now only built, if the port is enabled.
3476
3477         * support/regression/*: all output is written in directory gen, because
3478         the fwk and ports directories don't livet in the build tree using vpath
3479
3480         * doc/sdccman.lyx: renamed --disable-device-lib-build to
3481         --disable-device-lib, added --enable-doc, added section VPATH
3482
3483         * sim/ucsim/configure.in,
3484         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3485         z80 are enabled by default
3486
3487 2006-04-24 Raphael Neider <rneider AT web.de>
3488
3489         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3490             to config word, "pic14_"-prefixed some extern functions
3491           (pic14_emitConfigWord): emit __config directive(s) if assignment to
3492             config word has been found
3493         * src/pic/device.h: added prototypes
3494         * src/pic/pcode.c: added "pic14_"-prefix where needed
3495         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3496             fixup
3497         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3498             words,
3499           (pic14emitRegularMap): ignore config words,
3500           (pic14createInterruptVect): moved generating __config directives away
3501           (picglue): have __config directives emitted
3502
3503 2006-04-24 Borut Razem <borut.razem AT siol.net>
3504
3505         * doc/Makefile: sync with nightly build makefile
3506
3507 2006-04-24 Raphael Neider <rneider AT web.de>
3508
3509         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3510             registers that have not been assigned proper liveranges,
3511             fixes #1469504 and #1474602,
3512           (pCodeRegOptimizeRegUsage): fixed typo in comment
3513
3514 2006-04-24 Borut Razem <borut.razem AT siol.net>
3515
3516         * device/examples/main8051.c: deleted - it was removed from CVS
3517           24.mar.2000 and after that modified 18.feb.2001, so it reappered
3518           after the transition to Subversion
3519         * src/SDCCalloc.h: deleted - it was removed  from CVS
3520           3.feb.2001 and after that modified 18.feb.2001, so it reappered
3521           after the transition to Subversion
3522         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3523           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3524           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3525           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3526
3527 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3528
3529         * as/asx8051.dsp: added mcs51/strcmpi.h
3530         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3531         * as/hc08/aslink.h: updated lnksect prototype
3532         * as/hc08/asm.h,
3533         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3534         * as/hc08/asmain.c,
3535         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3536           (newdot): handle A_ABS
3537         * as/hc08/asout.c,
3538         * as/mcs51/asout.c (outarea): output address
3539         * as/hc08/lkaomf51.c,
3540         * as/mcs51/lkaomf51.c: disabled unused array UsageType
3541         * as/hc08/m08pst.c,
3542         * as/mcs51/i51pst.c,
3543         * as/z80/z80pst.c: "ABS" is not A_OVR
3544         * as/hc08/lkarea.c (newarea): read a_addr,
3545           (lnkarea): added codemap array, sort absolute areas to the front,
3546            combine all GSINITx/GSFINAL,
3547           (find_empty_space, allocate_space): new functions,
3548           (lnksect): return next address, handle absolute sections
3549         * as/mcs51/lkarea.c (newarea): read a_addr,
3550           lnksect2 prototype changed,
3551           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3552           (find_empty_space, allocate_space): new, factored out of lnksect2,
3553           (lnksect2): return next address, handle absolute sections
3554         * as/hc08/lkhead.c,
3555         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3556         * as/hc08/lklibr.c (addfile, fndsym),
3557         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3558           index out of range and detect both '\' and '/'
3559         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3560         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3561           regression tests (ds390 cannot return bool yet)
3562         * doc/sdccman.lyx: changed version number, document changed --no-peep,
3563           document critical interrupts on z80, document changed SDCC define
3564         * src/asm.c (_asxxxx_mapping): fixed .org directive,
3565           (_a390_mapping): added .org directive
3566         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3567           (genMultOneByte): fixed warnings
3568         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3569           ones
3570         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3571         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3572           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3573         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3574         * src/pic16/main.c: removed newReg prototype
3575         * src/pic16/pcode.c,
3576         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3577           warnings
3578         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3579           ones
3580         * src/pic16/ralloc.c
3581         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3582           to fix warnings
3583         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3584           from short to PIC_OPTYPE
3585         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3586         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3587           optype from short to PIC_OPTYPE
3588         * src/port.h: made int_size unsigned to fix warnings
3589         * src/SDCC.y: fixed warning on MSVC
3590         * src/SDCCicode.c (getArraySizePtr): return unsigned int
3591         * src/SDCCopt.c (convertToFcall): fixed warnings
3592         * src/SDCCsymt.h: removed double prototype for genSymName
3593         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3594           offset int to fix warnings
3595
3596 2006-04-22 Borut Razem <borut.razem AT siol.net>
3597
3598         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3599           references to CVS replaced with Subversion
3600
3601 2006-04-21 Borut Razem <borut.razem AT siol.net>
3602
3603         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3604           references to CVS replaced with Subversion
3605
3606 2006-04-19 Borut Razem <borut.razem AT siol.net>
3607
3608         * src/version.awk: adapted for svn
3609         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3610           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3611           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3612           /binutils-avr/etc/*.vi, *.jin: removed all properties
3613           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3614
3615 2006-04-19 Borut Razem <borut.razem AT siol.net>
3616
3617         * CVS to Subversion migration completed
3618
3619 2006-04-18 Borut Razem <borut.razem AT siol.net>
3620
3621         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3622           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3623
3624 2006-04-17 Borut Razem <borut.razem AT siol.net>
3625
3626         * device/include/Makefile.in: added pic/*.inc to the installation
3627
3628 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3629
3630         * support/regression/collate-results.py: fixed output in case of
3631         a valdiag error
3632         * support/regression/generate-cases.py: fixed splitting of pathnames
3633         with dots
3634         * as/hc08/lklibr.c (addfile),
3635         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3636
3637 2006-04-11 Raphael Neider <rneider AT web.de>
3638
3639         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3640         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3641         * src/pic16/pcode.c (assignValnums): fixed #1460578
3642
3643 2006-04-11 Raphael Neider <rneider AT web.de>
3644
3645         * device/lib/pic/libdev/*.c,
3646         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3647           fixes #1468739, enables compilation in --std-c99 mode
3648         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3649
3650 2006-04-11 Raphael Neider <rneider AT web.de>
3651
3652         * src/pic/device.c (find_device): removed debug output
3653           (list_valid_pics): enabled verbose listing of supported devices
3654         * device/include/stdbool.h: define bool as char for pic14/16 as well
3655
3656 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3657
3658         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3659
3660 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3661
3662         * .version: bumped version to 2.5.6
3663         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3664
3665 2006-04-06 Raphael Neider <rneider AT web.de>
3666
3667         * .version: bumped version to 2.5.6 (pic14 ABI changed)
3668         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3669         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3670           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3671             pic14_constructAbsMap
3672           (pic14printPublics): declare absolute global symbols as global
3673           (pic14createInterruptVect),
3674         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3675           (newReg): assume new registers unused, use correct name in
3676             hashtable (reg->name instead of name), more debugLog output
3677         * src/pic/device.h (PIC_device): added fields for verbose output
3678         * src/pic/device.c: moved device definition to pic14devices.txt,
3679             added routines for runtime parsing of pic14devices.txt,
3680             added support for second config word
3681         * src/pic/main.c (_process_pragma): removed #pragma maxram,
3682           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3683           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3684           (_pic14_parseOptions): moved pCodeInitRegisters here
3685           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3686         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3687           (pCodeInitRegisters): rewrapped comments, perpared new approach to
3688             handling the pseudo stack
3689         * device/lib/Makefile.in: ignore failures in objects-pic16,
3690         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3691         * device/lib/pic/NEWS: document new dependency on picXXX.lib
3692         * device/lib/pic/Makefile.subdir,
3693         * device/lib/pic16/Makefile.subdir: improved clean rules
3694         * device/lib/pic/libdev/: NEW, pic14 device libraries
3695         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
3696         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
3697         * device/include/Makefile.in: create subdir and install pic14 headers
3698         * device/include/pic/p16f_common.inc: removed unused declarations
3699         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
3700             PICs from inc2h.pl v1.6,
3701             replaced BIT_AT macros with struct declarations
3702         * device/include/pic/pic14devices.txt: definition of supported devices,
3703             all above improvements contributed by Zik Saleeba, thanks
3704         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
3705         * support/scripts/sdcc.nsi: also install pic14 device libraries and
3706             headers
3707
3708 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3709
3710         * device/include/mcs51/c8051f410.h: added interrupt numbers,
3711         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
3712           thanks to Charles Olds
3713
3714 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3715
3716         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
3717
3718 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3719
3720         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
3721         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
3722         * support/regression/bug1464657.c: added, new test
3723
3724 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3725
3726         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
3727           version number
3728
3729 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3730
3731         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
3732           --no-peep and --peep-file <file> are used don't use default rules but
3733           do use the <file>
3734
3735 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3736
3737         * src/mcs51/gen.c (genCall): fixed bug 1457608
3738
3739 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3740
3741         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
3742         changes seem to cause (trigger?) problems with the build system.
3743
3744 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
3745
3746         * src/SDCCpeeph.c (operandsLiteral): new, added,
3747           (callFuncByName): inserted operandsLiteral
3748         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
3749
3750 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3751
3752         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
3753         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
3754
3755 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3756
3757         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
3758           implemented patch 1120823 Thanks to Willy De la Court (normal
3759           interrupts need an interrupt number now if they are made critical),
3760           and enabled nesting of critical functions though not for gbz80
3761           (genCritical, genEndCritical): added functions
3762           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
3763         * src/z80/mappings.i: added "ei" to all mappings
3764
3765 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3766
3767         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
3768         submitted by the Debian SDCC maintainer Aurelien Jarno:
3769         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
3770         archive with gcc 4.1 on mips and wrote the patch"
3771
3772 2006-03-16 Raphael Neider <rneider AT web.de>
3773
3774         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
3775           the left operand is shorter than the result (c* = lit-c* + int),
3776           fixes bug #1450796
3777         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
3778           OP_SYMBOL
3779
3780 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3781
3782         * src/.version: increased version number to 2.5.5
3783         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
3784         linking is done manually in pic16 port's _linkEdit,
3785         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
3786         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
3787         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
3788         allocate asmop as AOP_ACC,
3789         (aopForRemat): added parameter 'bool result' in function declaration,
3790         (pic16_aopGet): return AOP_ACC when accessing WREG,
3791         (pic16_popGetTempReg): minor modification,
3792         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
3793         'pic16_allocWithIdx',
3794         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
3795         calling function in absolute addresses,
3796         (genAssign): take into account AOP_ACC asmop,
3797         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
3798         * src/pic16/pcoderegs.c: some debug functions and lines added,
3799         * src/pic16/ralloc.c (decodeRegType): added but commented out,
3800         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
3801         register too,
3802         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
3803         call to allocReg, not by manually allocating a new one,
3804         (pic16_assignRegisters): now before going through the register
3805         allocating functions mark all registers as free. This eliminates some
3806         side effects resulting from peephole parser done earlier in the backbone
3807
3808 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
3809
3810         * src/SDCCicode.c (geniCodeLogic),
3811         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
3812
3813 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
3814
3815         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
3816           (genSend): bugfix, do not allocate and free twice,
3817           (shiftRLong): handle partially overlapping aops
3818         * support/regression/tests/bitopcse.c: fixed warning redefined idata
3819
3820 2006-03-08 Borut Razem <borut.razem AT siol.net>
3821
3822         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
3823           for pic16
3824
3825 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
3826
3827         * support/regression/tests/bug1409955.c: new, added
3828         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
3829         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
3830           (aopForSym, aopOp): increment asmop.allocated if reused,
3831           (freeAsmop): decrement asmop.allocated and check for zero instead of
3832           using asmop.freed,
3833           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
3834           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
3835            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
3836            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
3837            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
3838            genSignedRightShift, genRightShift, genDataPointerGet,
3839            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
3840            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
3841             in reverse order from allocation,
3842           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
3843             added swappedLR to keep track
3844         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
3845           pdata & code for GCC, z80, gbz80 & hc08
3846         * support/regression/tests/zeropad.c: moved defines to testfwk.h
3847
3848 2006-03-08 Raphael Neider <rneider AT web.de>
3849
3850         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
3851
3852 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
3853
3854         * device/include/mcs51/c8051f410.h: new SiLabs mcu
3855         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
3856         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
3857
3858 2006-03-06 Borut Razem <borut.razem AT siol.net>
3859
3860         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
3861           made the linker quiet
3862
3863 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3864
3865         * src/pic16/gen.c (genPcall): fixed bug #1443644
3866         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
3867         which dumps before the function entry point a data byte which represents
3868         the number of the local variables used by the specified function, added
3869         'xinst' for initial support for Extended Instruction Support,
3870         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
3871         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
3872         port->fun_prefix anymore (may change later),
3873         (genFunction, genEndFunction): do not store/restore local registers for
3874         _main (this should take care the --main-return command line option in
3875         the future),
3876         (genOr): removed some legacy pic-port instructions,
3877         * src/pic16/genarith.c (genAddLit): re-enabled old code because
3878         performing operations with SFR's causes data to be written more than
3879         once to each SFR. Perhaps SFRs should be handled in special cases...
3880         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
3881         pcode.h
3882         * src/pic16/main.c (_process_pragma): stack bound checking did not take
3883         into account for stack starting position,
3884         (struct OPTIONS pic16_optionsTable): added command line argument
3885         --extended or -y for Extended Instruction Support,
3886         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
3887         (deassignLRs): *** perhaps the most important change, old 'for' code
3888         (commented out for reference), didn't account for some registers which
3889         were left marked 'not free' after a pointer operation. The change
3890         reduces register usage a lot in some cases
3891
3892 2006-03-04 Borut Razem <borut.razem AT siol.net>
3893
3894         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
3895           _clean
3896         * support/regression/tests/bug-524697.c: decreased array size for
3897           mcs51 to fit into the internal RAM
3898         * support/regression/Makefile.in: a little bit more verbose
3899
3900 2006-03-03 Borut Razem <borut.razem AT siol.net>
3901
3902         * support/regression/fwk/lib/testfwk.c,
3903           support/regression/fwk/include/testfwk.h: introduced function
3904           _prints(), nonrecursive _printn(), call _initEmu() from main()
3905         * support/regression/ports/gbz80/support.asm,
3906           support/regression/ports/ucz80/support.asm,
3907           support/regression/ports/z80/support.asm,
3908           support/regression/ports/ds390/support.c,
3909           support/regression/ports/hc08/support.c,
3910           support/regression/ports/host/support.c,
3911           support/regression/ports/mcs51/support.c,
3912           support/regression/ports/xa51/support.c: added empty _initEmu()
3913           function
3914         * support/regression/ports/pic16/gpsim.cmd,
3915           support/regression/ports/pic16/spec.mk,
3916           support/regression/ports/pic16/support.c,
3917           support/regression/Makefile.in: added pic16 regression test
3918
3919 2006-03-01 Raphael Neider <rneider AT web.de>
3920
3921         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
3922           genConstPointerGet): use safe way of generating MOVFF to cover
3923             literals as well as registers, fixes bug #1440527
3924         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
3925             dereference
3926           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
3927             more correctly, fixes bug #1232186
3928           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
3929         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
3930             gplink guess the correct processor in more cases, applied patch
3931             from Till Riedel attached to and fixing bug #1436552
3932
3933 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3934
3935         * support/regression/tests/array.c: added, contains check for #1434401
3936         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
3937
3938 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
3939
3940         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
3941         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
3942         * device/include/mcs51/c8051f326.h,
3943         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
3944         * device/include/mcs51/c8051f000.h,
3945         * device/include/mcs51/c8051f018.h,
3946         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
3947           PCON_IDLE,PCON_STOP and added sfr16 definitions
3948
3949 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
3950
3951         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
3952           genGetWord): fixed bug 1409955
3953
3954 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
3955
3956         * device/include/hc08/mc68hc908gp32.h,
3957         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
3958
3959 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
3960
3961         * src/SDCCast.c (constExprValue): return NULL if not a value
3962         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
3963         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
3964         * support/regression/tests/bitfields.c: enabled signed bitfield for all
3965
3966 2006-02-13 Borut Razem <borut.razem AT siol.net>
3967
3968         * src/regression/ptrarg.c: added, fails due to bug #1430967
3969         * src/regression/Makefile: ptrarg.c added, ...
3970
3971 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3972
3973         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
3974         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
3975
3976 2006-02-11 Borut Razem <borut.razem AT siol.net>
3977
3978         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
3979           print "Processor: xxx" message to stdout only if --verbose
3980
3981 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3982
3983         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
3984         * support/regression/tests/bug1426356.c: added
3985         * support/regression/tests/bitfields.c: removed 2 tests
3986
3987 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3988
3989         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
3990         * device/include/mcs51/c8051f330.h,
3991         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
3992           PCON_IDLE,PCON_STOP and added sfr16 definitions
3993         * device/lib/_divsint.c,
3994         * device/lib/_divuint.c,
3995         * device/lib/_divulong.c,
3996         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
3997           register bank bug for small stackauto
3998
3999 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4000
4001         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
4002
4003 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
4004
4005         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
4006         * all.dsp: corrected several bin paths
4007         * device/include/mcs51/c8051f120.h,
4008         * device/include/mcs51/c8051f300.h,
4009         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
4010           to PCON_IDLE,PCON_STOP
4011         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
4012         * device/lib/printf_large.c (output_float): fixed bug 1388703
4013         * support/regression/tests/bug1057979.c: added test for bug 1388703
4014
4015 2006-02-08 Raphael Neider <rneider AT web.de>
4016
4017         * src/pic/pcode.c (pciTRIS): fixed typo,
4018           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
4019           (LinkFlow): fixed handling of flows that end in a call,
4020           (ReuseReg): perform safety check earlier
4021         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
4022             to work with flows at the beginning of a pBlock,
4023             fixes #1426557 (Symbol not previously defined),
4024           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
4025             usage information
4026           (RemoveUnusedRegisters): update register usage info
4027         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
4028             created, reuse existing ones instead
4029         * src/pic/gen.c (genPcall): fixed #1424719
4030
4031 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
4032
4033         * link/z80/lkmain.c,
4034         * link/z80/lklex.c,
4035         * link/z80/lkdata.c,
4036         * link/z80/aslink.h: fixed build on current cygwin:
4037         replaced getline() by lk_getline()
4038
4039 2006-02-01 Borut Razem <borut.razem AT siol.net>
4040
4041         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
4042           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
4043           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
4044           src/regression/bool1.c, src/regression/bool2.c,
4045           src/regression/bool3.c, src/regression/call1.c,
4046           src/regression/compare.c, src/regression/compare10.c,
4047           src/regression/compare2.c, src/regression/compare3.c,
4048           src/regression/compare4.c, src/regression/compare5.c,
4049           src/regression/compare6.c, src/regression/compare7.c,
4050           src/regression/compare8.c, src/regression/compare9.c,
4051           src/regression/configword.c, src/regression/for.c,
4052           src/regression/inline.c, src/regression/mult1.c,
4053           src/regression/nestfor.c, src/regression/or1.c,
4054           src/regression/pointer1.c, src/regression/ptrfunc.c,
4055           src/regression/rotate1.c, src/regression/rotate2.c,
4056           src/regression/rotate3.c, src/regression/rotate4.c,
4057           src/regression/rotate5.c, src/regression/rotate6.c,
4058           src/regression/rotate7.c, src/regression/string1.c,
4059           src/regression/struct1.c, src/regression/sub.c,
4060           src/regression/sub2.c, src/regression/switch1.c,
4061           src/regression/while.c, src/regression/xor.c,
4062           src/regression/create_stc, src/regression/simulate,
4063           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4064           regression tests
4065         * src/regression/gpsim_assert.h: added
4066
4067 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4068
4069         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4070         ((void (code *) (void)) 0) ();
4071         * as/hc08/aslex.c,
4072         * as/hc08/aslink.h,
4073         * as/hc08/asm.h,
4074         * as/hc08/asmain.c,
4075         * as/hc08/lkdata.c,
4076         * as/hc08/lklex.c,
4077         * as/hc08/lkmain.c,
4078         * as/mcs51/aslex.c,
4079         * as/mcs51/aslink.h,
4080         * as/mcs51/asm.h,
4081         * as/mcs51/asmain.c,
4082         * as/mcs51/lkdata.c,
4083         * as/mcs51/lklex.c,
4084         * as/mcs51/lkmain.c,
4085         * as/z80/aslex.c,
4086         * as/z80/asm.h,
4087         * as/z80/asmain.c: fixed build on current cygwin:
4088         replaced getline() by as_getline()
4089
4090 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4091
4092         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4093         declarator in the symbol chain
4094         * src/SDCCsymt.h,
4095         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4096         parameter list for function pointers
4097         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4098         * support/regression/tests/bug-716242.c: added
4099
4100 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4101
4102         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4103         offset if possible
4104         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4105
4106 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4107
4108         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4109         inifinitely recurseable, added static
4110         * support/regression/tests/bug-1408066.c: added
4111
4112 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4113
4114         * src/SDCCicode.h,
4115         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4116         renamed, added possibility to create "postLoopLbl"-labels
4117         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4118         newiTempLoopHeaderLabel
4119         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4120         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4121         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4122         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4123         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4124         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4125         (basicInduction): fixed bug #136564, made static,
4126         (loopInduction): changed parameter of basicInduction, made static,
4127         (addPostLoopBlock): added
4128         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4129         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4130         findLoopEndSeq
4131         * support/regression/tests/bug-136564.c: added
4132         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4133         --std-sdcc99 to LIBSDCCFLAGS
4134
4135 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4136
4137         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4138         while loop
4139         * support/regression/tests/bug-1406131.c: added
4140
4141 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4142
4143         * src/SDCCast.c (decorateType): fix promotion of unary minus
4144         * src/SDCCsymt.c (computeType): beautified
4145         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4146         (valUnaryPM, valComplement): fix sign and promotion,
4147         (valNot): ANSI: result type is int (SDCC: unsigned char)
4148         * support/regression/tests/uminus.c: speedup by removing superflous
4149         test case 'int'
4150         * support/regression/tests/onebyte.c: added promotion and signedness
4151         tests for unary minus
4152         * support/regressions/tests/bug-477927.c: disable warning about
4153         uninitialized variables
4154         * support/regression/tests/not.c: added
4155
4156 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4157
4158         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4159         * src/mcs51/gen.c (gen51Code): show final register usage after
4160         fillGaps in asm with --i-code-in-asm
4161         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4162         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4163         incUsed, rliveClear, adjustIChain): made static,
4164         (setFromRange): excluded because it's unused,
4165         (findPrevUseSym, markWholeLoop): added,
4166         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4167         through all branches of predecessors enables sdcc to emit the warning
4168         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4169         (rlivePoint): made static, added parameter emitWarnings which is only
4170         true during the first run out of two,
4171         (findRecursiveSucc, findRecursivePred): removed,
4172         (computeLiveRanges): made static, added parameter emitWarnings,
4173         (dumpIcRlive): added for debugging only
4174         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4175         removed prototype of setFromRange()
4176         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4177         in call of computeLiveRanges()
4178         * support/regression/tests/bug-895992.c: added
4179         * support/regression/tests/bug-971834.c: added
4180         * support/valdiag/tests/bug-895992.c: added
4181         * support/valdiag/tests/bug-971834.c: added
4182
4183 2005-12-18 Raphael Neider <rneider AT web.de>
4184
4185         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4186           (genUnpackBits): improved code for direct operands,
4187           (genPackBits): improved code for literal assignment to bitfields
4188             and for direct destination operands (no FSR indirection),
4189             prevented redundant AND, fixes #1362800,
4190           (AccLsh): added parameter to disable masking of the result
4191         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4192           skip instructions with side-effects (like incfsz),
4193           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4194         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4195         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4196           fixes #1375263
4197
4198 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4199
4200         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4201         volatile variables as spill location
4202
4203 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4204
4205         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4206         replacing literals
4207         * support/regression/tests/bug-1376320.c: added
4208
4209 2005-12-08 Raphael Neider <rneider AT web.de>
4210
4211         * src/pic/device.c: renamed is_shared to pic14_is_shared
4212         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4213         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4214           (is_valid_identifier): added for above workaround
4215
4216 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4217
4218         * device/lib/Makefile.in: fixed to enable port-specific-objects
4219         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4220           char, thanks Hubert Sack
4221         * doc/sdccman.lyx: documented --xstack-loc,
4222           elaborated a bit more on interrupts and pitfalls,
4223           removed "setjmp/longjmp unsupported",
4224           documented some unsupported C99 features
4225         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4226         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4227           if, thanks Hubert Sack
4228         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4229         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4230           make make_library
4231         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4232           regression tests can report resource usage (rfe 700441)
4233         * support/regression/collate-results.py: report resource usage
4234         * support/regression/ports/ds390/spec.mk,
4235         * support/regression/ports/hc08/spec.mk,
4236         * support/regression/ports/mcs51/spec.mk,
4237         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4238         * support/regression/ports/ds390/uCsim.cmd,
4239         * support/regression/ports/hc08/uCsim.cmd,
4240         * support/regression/ports/mcs51/uCsim.cmd,
4241         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4242         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4243           library, use the default one
4244         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4245           building the library
4246
4247 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4248
4249         * config.dsp: added dependency on .version and configure_vc.awk
4250         * device/include/setjmp.h: updated for --stack-auto and --xstack
4251         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4252         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4253         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4254         * device/lib/libsdcc.lib: added _setjmp
4255         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4256           (decorateType): fixed bug 1372851,
4257           (optimizeGetHbit): fixed warning
4258         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4259           array initialisation
4260         * support/regression/tests/bug1057979.c: added test for bug 1358192
4261         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4262
4263 2005-12-03 Borut Razem <borut.razem AT siol.net>
4264
4265         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4266           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4267
4268 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4269
4270         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4271         createIval): implement symbol independant "flexible array member",
4272         (createIvalCharPtr): implemented flexible array initialisation with a
4273         string
4274         * src/SDCCsymt.c (copyStruct): removed,
4275         (getSize): fixed misleading comment,
4276         (getAllocSize): removed, the additional allocation size is now in
4277         sym->flexArrayLength,
4278         (checkStructFlexArray): new, syntax checks for flexible array members,
4279         (compStructSize): added syntax checks for "flexible array members"
4280         (copyStruct): removed,
4281         (copyLinkChain): removed inefficient fix for bug 770487
4282         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4283         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4284         symbol->flexArrayLength
4285         * src/SDCCerr.c,
4286         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4287         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4288         * support/regression/tests/structflexarray.c: added
4289         * support/valdiag/tests/structflexiblearray.c: added
4290
4291 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4292
4293         * src/SDCCast.c (decorateType): fixed bug 1368489
4294         * support/Util/SDCCerr.c,
4295         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4296
4297 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4298
4299         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4300           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4301
4302 2005-11-27 Borut Razem <borut.razem AT siol.net>
4303
4304         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4305           support/cpp2/mkdeps.h: added command line option
4306           -obj-ext=<extension> to SDCPP to define object file externion, used
4307           for generation of make dependencies (-M)
4308         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4309
4310 2005-11-26 Borut Razem <borut.razem AT siol.net>
4311
4312         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4313           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4314           added pic and pic16 libraries
4315
4316 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4317
4318         * device/include/float.h: Corrected typo in prototype of __fsgt
4319
4320 2005-11-25 Borut Razem <borut.razem AT siol.net>
4321
4322         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4323           added creation of model-mcs51-stack-auto libraries
4324
4325 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4326
4327         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4328         and fields-list too
4329         * src/SDCCast.c (createIvalArray): removed obsolete comment
4330
4331 2005-11-24 Borut Razem <borut.razem AT siol.net>
4332
4333         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4334           added missing device/lib/mcs51/crt*.asm sources
4335
4336 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4337
4338         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4339
4340 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4341
4342         * device/lib/_fs2schar.c,
4343         * device/lib/_fs2sint.c,
4344         * device/lib/_fs2slong.c: optimized inline asm
4345
4346 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4347
4348         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4349           Better handling of floats between -1.0 and 0.0.
4350
4351 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4352
4353         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4354           (the missing "if"s prohibited removal of redundant labels)
4355
4356 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4357
4358         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4359           Properly convert floats between -1.0 and 0.0 to long, int, and char
4360           types (max integer value of negative floats tends to zero).
4361         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4362           Removed changes made so to work properly with floats between
4363           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4364           and _fs2char.c
4365
4366 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4367
4368         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4369         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4370         (genCast) cosmetic change
4371         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4372         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4373         from mcs51
4374         * support/regression/tests/bitfields (testSignedBitfields): added
4375
4376 2005-11-18 Borut Razem <borut.razem AT siol.net>
4377
4378         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4379         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4380           introduced SILENT option to make building of pic16 libraries less
4381
4382 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4383
4384         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4385           Now they work properly with floats between -1.0 and 0.0
4386         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4387
4388 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4389
4390         * src/SDCCicode.c (printOperand): added missing else
4391
4392 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4393
4394         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4395         reformatted for better readability
4396         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4397         signed bitfields
4398
4399 2005-11-17 Borut Razem <borut.razem AT siol.net>
4400
4401         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4402           introduced SILENT option to make building of pic16 libraries less
4403           verbose - used for nightly snapshot build
4404         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4405           available on Win32 platforms.
4406         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4407           medium, large, pic and pic16
4408
4409 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4410
4411         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4412           printf("%f"...) sets fraction to zero.
4413
4414 2005-11-16 Raphael Neider <rneider AT web.de>
4415
4416         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4417           fixes #1357221
4418         * src/pic/gen.c (genIfx): implemented for CARRY bit
4419         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4420           to generic pointers, fixes #1357332,
4421           (pic16_movLit2f): NEW,
4422           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4423
4424 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4425
4426         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4427
4428 2005-11-11 Raphael Neider <rneider AT web.de>
4429
4430         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4431         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4432           compute pointer's type from operand,
4433           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4434           improved single bit reads, fixes bug #1353379
4435
4436 2005-11-09 Borut Razem <borut.razem AT siol.net>
4437
4438         * support/scripts/sdcc.nsi: added lib/pic to the package
4439
4440 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4441
4442         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4443
4444 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4445
4446         * support/regression/tests/bug1348008.c: added
4447         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4448         * support/regression/tests/bug1337835.c: updated comment
4449
4450 2005-11-06 Borut Razem <borut.razem AT siol.net>
4451
4452         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4453           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4454           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4455           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4456           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4457           dynamic construction of cl_error_class and derivates - 2.nd try
4458
4459 2005-11-05 Borut Razem <borut.razem AT siol.net>
4460
4461         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4462           bug, which caused Bus Errors on sparc solaris
4463
4464 2005-11-04 Borut Razem <borut.razem AT siol.net>
4465
4466         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4467           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4468           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4469           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4470           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4471           and derivates to resolve the initialization problem on OSX
4472
4473 2005-11-02 Borut Razem <borut.razem AT siol.net>
4474
4475         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4476           corrected typo - #include <winsock2.h>
4477
4478 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4479
4480         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4481           (_asxxxx_mapping): added org directive for future enhancements
4482
4483 2005-11-01 Borut Razem <borut.razem AT siol.net>
4484
4485         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4486           enabled sockets on WIN32
4487         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4488
4489 2005-10-31 Borut Razem <borut.razem AT siol.net>
4490
4491         * support/regression/generate-cases.py: escape backslashes in {testcase}:
4492           WIN32 backslash path delimiters should be escaped when used in C strings
4493         * support/regression/tests/bitfields.c: exclude failing assertions for
4494           __CYGWIN32__ and __MINGW32__ hosts
4495
4496 2005-10-30 Borut Razem <borut.razem AT siol.net>
4497
4498         * src/SDCCutil.c: corrected double comparison typo
4499
4500 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4501
4502         * device/lib/medium/Makefile: added for new memory model medium
4503         * device/include/asm/mcs51/features.h: updated for medium/pdata
4504         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4505           added Multiply & Accumulate sbit's and MAC0_PAGE define
4506         * device/include/mcs51/c8051f300.h: added sfr16 definitions
4507         * device/include/mcs51/c8051f310.h: added sfr16 definitions
4508         * device/lib/_mullong.c: update for medium model
4509         * device/lib/incl.mk: added medium model
4510         * doc/sdccman.lyx: documented medium model
4511         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4512         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4513         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4514         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4515           (allocParms): set SCLS and OCLS to pdata for medium model
4516         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4517           for pdata,
4518           (powof2): return <0 if not power of 2
4519         * src/avr/gen.c (genBitWise): use updated powof2
4520         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4521           (shiftR2Left2Result): small optimization in setup, save acc when storing,
4522           (shiftLLeftOrResult): use B if necessary
4523         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4524         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4525         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4526         * support/regression/Makefile.in: added test-mcs51-medium
4527         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4528
4529 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4530
4531         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4532         specifier unsigned
4533         * device/lib/time.c (mktime): fixed bug 1334315
4534
4535 2005-10-28 Raphael Neider <rneider AT web.de>
4536
4537         * device/include/pic/p16f_common.inc: added common declarations
4538         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4539
4540 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4541
4542         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4543           (aopPutUsesAcc): added to predict accumulator use,
4544           (assignResultValue): save acc if necessary,
4545           (genMinusDec): store result if indirectly addressed,
4546           (genDivOneByte):  save acc if necessary,
4547           (movLeft2Result): bugfix if left already in acc,
4548           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4549             attention to accumulator use (esp. pdata),
4550           (genReceive): receive pdata correctly
4551         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4552         * src/SDCCicode.h: added isOperandInPagedSpace prototype
4553
4554 2005-10-27 Raphael Neider <rneider AT web.de>
4555
4556         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4557
4558 2005-10-27 Raphael Neider <rneider AT web.de>
4559
4560         * .version: changed version to 2.5.4
4561         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4562         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4563           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4564             arithmetics support routines
4565         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4566         * device/lib/Makefile.in: also create installdir for pic
4567
4568         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4569           pic14 port as well
4570         * src/pic/device.c (dump_sfr): rewritten to delegate register
4571           placement to the linker (use `extern sym' rather than sym EQU addr),
4572           (validAddress): fixed to check last specified address
4573         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4574           (popGetLit): truncate literal value to 8 bit,
4575           (popGet): moved assert to more appropriate place
4576           (popGetExternal): create pCode operand from and mark the according
4577             symbol as being `extern'
4578           (popGetAddr): added sanity check on immediate's offset, provide
4579             GPOINTER tag on demand
4580           (aopPut): fixed for immediates,
4581           (mov2w_op): move operand's address or contents to WREG (depending on
4582             operand type), safer variant of mov2w,
4583           (movwf,call_libraryfunc): NEW, handy abbreviations,
4584           (get_argument_pcop,get_return_val_pcop,pass_argument,
4585           get_returnvalue): interface for accessing function parameters and
4586             return values,
4587           (assignResultValuei,genRet): use new parameter/return value interface
4588           (pic14_getDataSize): back to old version handling generic pointers,
4589           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4590             provided implementation and/or fixed old one,
4591           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4592             calls, removed legacy 8051 reference code
4593           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4594           (loadSignToC): NEW, move the operands sign bit to CARRY,
4595           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4596             genRightShiftSigned, accepts negative shift counts,
4597           (setup_fsr): load FSR and adjust IRP (indirect memory access),
4598           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4599             generic pointers, __data pointers and __code pointers,
4600           (genUnpackBits,genPackBits): rewritten to work with generic pointers
4601             and signed bitfields, limit bitfields to 8 bit,
4602           (genDataPointerGet): fixed number of bytes read,
4603           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4604           (genPointerGet,genPointerSet): fixed handling of __code pointers,
4605             pointers to constant data are no longer assumed to point to __code
4606             space, removed invalid pointer types,
4607           (bitpatternFromVal): retrieve the PICs representation of an integer
4608             or float literal,
4609           (genDataPointerSet): fixed assigning to po_immediate operands,
4610           (genGenPointerSet): implemented as library call,
4611           (genIfx): fixed incorrect condition,
4612           (genAddrOf): limit generic pointers' addresses to 2 bytes,
4613             provide GPOINTER tag according to destination's storage class,
4614           (genCast): added code to handle casting to generic pointers, added
4615             sign-/zero extension of the result
4616           (aop_isLitLike,op_isLitLike): fixed handling of immediates
4617         * src/pic/gen.h: added macros to access IRP bit in STATUS register
4618         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4619           extend the result
4620         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4621           address/register resides in the shared banks
4622           (emitSymbolToFile): improved to handle global and `pinned' symbols,
4623             put all variables into separate sections (have the linker arrange
4624             them)
4625           (picglue): put init code and interrupt handlers in separate sections
4626         * src/pic/main.c: added port specific options table, modified to PORT
4627           structure to make GPOINTERs 3 byte, added pic14_options
4628           (_pic14_do_link): private linking routine (update paths to libraries,
4629             add libsdcc.lib by default)
4630         * src/pic/main.h: declare pic14_options
4631         * src/pic/pcode.c: fixed instructions i/o relations,
4632           (RegCond): reverted to correct version,
4633           (newpCodeOpLit): truncate literals to 8 bit,
4634           (genericPrint): added debug output,
4635           (getRegFromInstruction): fixed for various operand types, simplified
4636           (BuildFlow): fixed broken handling of isntructions with labels
4637           (LinkFlow): start at last instruction in flow (skip trailing comments),
4638             pass the flow on to the next instruction after CALL
4639           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4640           (insertPCodeInstruction): fixed inserting after a skip instruction,
4641           (DoBankSelect): fixed for labeled instructions
4642           (OptimizepBlock): honor --nopeep switch
4643           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4644         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4645         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4646           (pCodeOptime2pCodes): allow disabling this optimization via
4647             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4648             but is still buggy), started implementation of a dataflow based
4649             pCode optimization (CSE + dead code elimination)
4650           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4651         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4652           names are independant of the stack location and therefore portable across
4653           devices
4654
4655 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4656
4657         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4658           (selectSpil): fixed bug 1337835 by not spilling bit variables
4659         * support/regression/tests/bug1337835.c: added test for this bug
4660         * src/mcs51/peeph.def: restart after rule 3.c,
4661           addded rules 263.x to optimize loading constants
4662
4663 2005-10-26 Raphael Neider <rneider AT web.de>
4664
4665         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4666         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4667           (genAssign): emit warning when casting literals to generic pointer
4668             type, also applies when taking the address of a fixed variable,
4669           (genCast): improved casting to generic pointers
4670         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4671           extern variables, added verbose error message
4672         * device/include/pic16/{string.h,errno.h}: added #pragma library c
4673
4674 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4675
4676         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4677         carry must be complemented too
4678         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4679         could be emitted by genMinus
4680         * src/SDCCval.c (constVal): fixed bug 1305065
4681
4682 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4683
4684         * src/SDCCast.c (addCast): added promotion for bit variables
4685         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4686         promotion casts + optimisation
4687         (optimizeGetWord): fix warning 'i' might be used uninitialized
4688         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4689         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4690
4691 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
4692
4693         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
4694         all chars are promoted to int; promotion should be handled in SDCCast.c
4695
4696 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4697
4698         * device/lib/_strcmp.c: Fixed bug 1326457
4699
4700 2005-10-11 Raphael Neider <rneider AT web.de>
4701
4702         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
4703         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
4704
4705 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4706
4707         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
4708         * support/regression/tests/sfr16.c: added test for the sfr32 bug
4709
4710 2005-10-04 Raphael Neider <rneider AT web.de>
4711
4712         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
4713           device/lib/pic16/pics.all: added pic18f1320
4714         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
4715
4716 2005-09-30 Raphael Neider <rneider AT web.de>
4717
4718         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
4719         * src/pic16/devices.inc: NEW, provides device descriptions
4720         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
4721
4722 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4723
4724         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
4725           GETHBIT
4726
4727 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
4728
4729         * doc/sdccman.lyx: updated Highest Order Bit documentation,
4730           documented Any Order Bit, Higher Order Byte and Higher Order Word
4731         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
4732         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
4733           (optimizeGetAbit): new, to get any bit, not only the high bit,
4734           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
4735           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
4736           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
4737           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
4738             RIGHT_OP: also try GETBYTE, GETWORD optimization,
4739             GETABIT, GETBYTE, GETWORD: decorate them,
4740           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
4741           (ast_print): added GETABIT, GETBYTE, GETWORD
4742         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
4743         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
4744           (geniCodeBinary): new generic binary icode,
4745           (ast2iCode): added GETABIT, GETBYTE, GETWORD
4746         * src/port.h: updated comment for PORT.hasExtBitOp
4747         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
4748           (genGetByte): new, to get a single byte,
4749           (genGetWord): new, to get a word from a long,
4750           (gen51Code): added GETABIT, GETBYTE, GETWORD
4751         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
4752
4753 2005-09-23 Raphael Neider <rneider AT web.de>
4754
4755         * configure.in, configure: have device/lib/pic configured
4756         * device/lib/Makefile.in: added model-pic14
4757         * device/lib/clean.mk: added pic/ to clean rule
4758         * device/lib/pic: added rudimentary pic14 library providing support
4759           functions for multiplication/division/generic pointer access
4760         * src/SDCCopt.c (convilong): mark support functions as extern
4761           for pic14 port as well
4762         * src/pic/gen.c (genMult): added assertions,
4763           (genpic14Code): emit warning on unhandled iCodes
4764         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
4765         * src/pic/pcode.c (pCodeOpCopy),
4766         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
4767           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
4768           SFR_REGISTER}), made safe for future extensions
4769         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
4770           instructions even if preceeded by SKIP instructions (also remove
4771           them); removed unused code
4772         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
4773           prevents leaving parts of the structure uninitialized after copying
4774
4775 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
4776
4777         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
4778           ago by me
4779         * support/regression/tests/addsub.c: added test for the bug
4780
4781 2005-09-21 Raphael Neider <rneider AT web.de>
4782
4783         * device/include/pic16/pic18f1220.h,
4784           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
4785         * device/lib/pic16/Makefile.rules: added missing opening paren
4786         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
4787           are provided in genutils.c,
4788           (genUminusFloat,genUminus,genCmpEq): added asserts on different
4789           operand/result sizes,
4790           (genCmp): assert on NULL pointers first, then check deref'ed values
4791         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
4792           result size
4793
4794 2005-09-18 Raphael Neider <rneider AT web.de>
4795
4796         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
4797           as these are now unused,
4798           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
4799         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
4800           local, avoids uninitialized pointer dereference on r->name
4801         * src/pic16/ralloc.c (newReg): fixed indentation
4802
4803 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
4804
4805         * src/SDCCval.c (constVal): fixed bug 730366
4806         * support/Util/SDCCerr.c,
4807         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
4808
4809 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4810
4811         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
4812
4813 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
4814
4815         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
4816
4817 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4818
4819         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
4820           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4821         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
4822           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4823         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
4824         * packihx/packihx.c (hexDigit): made c unsigned char
4825         * as/mcs51/lklibr.c (fndsym),
4826         * link/z80/lkgb.c (gb),
4827         * link/z80/lklibr.c (fndsym),
4828         * link/z80/lkrloc.c (relr),
4829         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
4830         * src/SDCC.lex (checkCurrFile, process_pragma),
4831         * src/SDCCglue.c (spacesToUnderscores),
4832         * src/SDCCmain.c (setParseWithComma, processFile),
4833         * src/asm.c (tvsprintf, printCLine),
4834         * src/avr/gen.c (emitcode, aopPut),
4835         * src/ds390/gen.c (emitcode),
4836         * src/hc08/gen.c (emitcode, emitinline),
4837         * src/mcs51/gen.c (emitcode, genInline),
4838         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4839           tokenizeLineNode),
4840         * src/pic/ralloc.c (debugLog),
4841         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4842           tokenizeLineNode),
4843         * src/pic16/ralloc.c (debugLog),
4844         * src/z80/main.c (_process_pragma):
4845            made all ctype.h function calls safe
4846         * src/SDCCopt.c: include math.h for fabs
4847         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
4848           and used them throughout the code to make ctype.h function calls safe
4849         * src/ds390/main.c (asmLineNodeFromLineNode),
4850         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
4851         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
4852            unsigned char*
4853         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
4854           (newpCodeAsmDir): made ctype.h function calls safe
4855         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
4856           pic16_emitcode):  made lbp unsigned char*
4857         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
4858           (pic16_newpCodeAsmDir): made ctype.h function calls safe
4859         * src/xa51/gen.c (emitcode),
4860         * src/z80/gen.c (_emit2): made lbp unsigned char*
4861         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
4862            char*
4863
4864 2005-09-05 Raphael Neider <rneider AT web.de>
4865
4866         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
4867           access bank splitpoint
4868
4869 2005-09-05 Raphael Neider <rneider AT web.de>
4870
4871         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
4872
4873 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
4874
4875         * .version: changed to version 2.5.3
4876         * doc/sdccman.lyx: changed version to 2.5.3,
4877           documented --codeseg and --constseg and pragma codeseg and constseg,
4878           documented bit parameters (reentrant) and bit returning
4879         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
4880            currFunc->recvSize, but is this ok for all ports?
4881           (ast2iCode): result of ~ on unsigned char must be cast to int for
4882            bool to work
4883         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
4884           function pointers in bit space
4885         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
4886           (processFuncArgs): call port.reg_parm() with reentrancy info
4887         * src/port.h,
4888         * src/avr/main.c,
4889         * src/ds390/main.c,
4890         * src/hc08/main.c,
4891         * src/pic/main.c,
4892         * src/pic16/main.c,
4893         * src/xa51/main.c,
4894         * src/z80/main.c: port.reg_parm prototype extended with
4895           "bool reentrant" parameter
4896         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
4897           options.stackAuto for allocating bit register parameters
4898         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
4899           (genSend): set BitBankUsed if it is,
4900           (selectRegBank): factored out of genCall for use in genPcall,
4901           (genCall): removed redundant dtype assignmen, use selectRegBank,
4902           (genPcall): handle returning in Carry properly, save in F0 if needed,
4903           (genReceive): handle bit register parameters
4904         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
4905           (mcs51_assignRegisters): enable bit registers for all reentrant
4906            functions and don't set BitBankUsed unconditionally
4907         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
4908         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
4909         * support/regression/tests/funptrs.c: added tests for BOOL and for return
4910
4911 2005-08-27 Borut Razem <borut.razem AT siol.net>
4912
4913         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
4914         ppc-osx (Darwin) does not support -u option. It seems that it is
4915         supported only on Linux - GNU cp
4916
4917 2005-08-25 Borut Razem <borut.razem AT siol.net>
4918
4919         * sim/ucsim/gui.src/serio.src/Makefile.in,
4920           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
4921           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4922           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
4923           install and strip, since the strip at /usr/ccs/bin should be used
4924           on solaris
4925
4926 2005-08-24 Borut Razem <borut.razem AT siol.net>
4927
4928         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
4929
4930 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
4931
4932         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
4933         ffffffffu
4934
4935 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
4936
4937         * as/mcs51/aslink.h: completed lkrloc.c prototypes
4938         * as/mcs51/lkmain.c (link_main): fixed warning
4939         * device/include/stdbool.h: ds390 has no advanced bit support yet
4940         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
4941         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
4942         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
4943           and updated their macros
4944         * src/SDCCval.c (constVal): updated comment for renamed b_long
4945
4946 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
4947
4948         * as/mcs51/asdata.c: changed ctype['['] to BINOP
4949         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
4950           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
4951           (oprio): set priority for '['
4952         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
4953            and adb_24_bit
4954         * as/mcs51/asm.h: added defines R_BIT and S_BIT
4955         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
4956         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
4957         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
4958           added overlayable BIT_BANK area
4959         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
4960           (summary2): explain 'T' in legenda
4961         * as/mcs51/lkrloc.c: replaced old K&R style,
4962           (relr): added R_BIT processing,
4963           (errmsg): added "Bit-addressable relocation error",
4964           (adb_bit): added for converting from byte- to bit-addressable space,
4965           (adb_24_bit): added for converting from byte- to bit-addressable space
4966         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
4967            used in reentrant functions now even as return value
4968         * device/lib/_gptrput.c (_gptrput): removed obsolete code
4969         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
4970           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
4971         * src/SDCCglobl.h: added indicator BitBankUsed
4972         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
4973            the bit registers b0-b7
4974         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
4975           (geniCodeCast): fixed bug 1263853,
4976           (geniCodeLogicAndOr): put result in bool or char,
4977           (geniCodeReceive): added parameter func for accessing the return type,
4978           (geniCodeFunctionBody): pass func to geniCodeReceive
4979         * src/SDCCmain.c: added indicator BitBankUsed
4980         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
4981         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
4982           (checkSClass): don't put automatic bool/bit on stack,
4983           (checkFunction): removed check on function cannot return bit
4984         * src/SDCCsymt.h: added newBoolLink prototype
4985         * src/mcs51/gen.c (rb1regs): added bit registers,
4986           (movc): created for assigning to carry,
4987           (pushReg, popReg): created for pushing registers,
4988           (sameRegs): check both AOP_REG and AOP_CRY types,
4989           (aopOp): handle bit registers,
4990           (aopPut): optimization no self-assign,
4991           (saveRegisters): push reg->base (bits) only once for bit registers,
4992            and use pushReg,
4993           (unsaveRegisters): pop reg->base only once and use popReg,
4994           (assignResultValue): added parameter func and return in carry for bits,
4995           (genIpush): optimization no reload in A if not changed,
4996           (genSend): bit parameters in reentrant functions are passed in bit
4997            registers by first assigning to bits in B, then save registers and
4998            copy B to bits,
4999           (genCall): handle returning in Carry properly, save it in F0 if needed,
5000           (genPcall): updated assignResultValue call, this is not safe yet for bit
5001            returning function !!!
5002           (genFunction): don't generate equ's for bit registers and use pushReg,
5003           (genEndFunction): take care of bit returning functions and use popReg,
5004           (genRet): return bit in Carry,
5005           (genIfx): optimize bit registers and other directly addressable bits,
5006           (genReceive): updated assignResultValue call
5007         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
5008           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
5009            registers when using stack-auto
5010         * src/mcs51/ralloc.c (_G): added allBitregs,
5011           (regs8051): added the bit registers,
5012           (createStackSpil): use macro IS_BIT,
5013           (getRegBit): added to allocate a bit register, else spill,
5014           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
5015           (updateRegUsage): factored out to ease stepping while debugging,
5016           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
5017            also allocate bit registers,
5018           (fillGaps): handle bit registers,
5019           (findAllBitregs): added to create bit vector with all bit registers,
5020           (mcs51_allBitregs): returns this bit vector,
5021           (mcs51_assignRegisters): when using stack-auto use bit registers for
5022            passing parameters and creating local variables
5023         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
5024
5025 2005-08-22 Borut Razem <borut.razem AT siol.net>
5026
5027         * device/lib/Makefile.in: replaced find option -or with -o
5028           to make it run on solaris
5029
5030 2005-08-22 Raphael Neider <rneider AT web.de>
5031
5032         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
5033           fixes #1265442 (crash on Solaris)
5034
5035 2005-08-20 Borut Razem <borut.razem AT siol.net>
5036
5037         * configure, configure.in: added tests for libsocket and libnsl libraries,
5038           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
5039           from support/regression/Makefile.in
5040         * support/regression/Makefile.in: added
5041         * device/lib/pic16/Makefile.common.in: force make to use bash shell
5042         * sim/ucsim/libtool: regenerated on sparc-solaris
5043         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5044           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
5045           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
5046           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
5047           sparc-solaris, which doesn't use GNU ld linker
5048         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
5049         * as/Makefile: find on sparc-solaris does not support -maxdepth option
5050
5051 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5052
5053         * src/mcs51/peeph.def: updated comments
5054
5055 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5056
5057         * device/lib/_gptrget.c,
5058         * device/lib/_gptrput.c: slightly shorter
5059         * doc/sdccman.lyx: incremented version
5060         * src/mcs51/peeph.def: moved peephole comments to the line of first
5061           change to better keep line correlation, reanimated 186.e
5062         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5063
5064 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5065
5066         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5067           David Saxton with quotes around file name.
5068
5069 2005-08-15 Borut Razem <borut.razem AT siol.net>
5070
5071         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5072           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5073           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5074           make tests run on x86_64 platform
5075
5076 2005-08-13 Raphael Neider <rneider AT web.de>
5077
5078         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5079           as it might be executed DURING a build (parallel make is wonderful)
5080
5081 2005-08-13 Raphael Neider <rneider AT web.de>
5082
5083         * device/lib/Makefile.in (port-specific-objects-pic16):
5084           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5085         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5086           dependency
5087         * device/lib/pic16/Makefile.rules: build subdirs before creating
5088           the library, removed builddir rule, create $(builddir) early in
5089           recurse rule, use empty recurse rule for leaf directories
5090         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5091           mkdir errors (race condition), removed duplicate suffix "hex"
5092           from clean rules
5093         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5094         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5095           prevents mkdir -p from aborting on Alpha
5096
5097 2005-08-12 Raphael Neider <rneider AT web.de>
5098
5099         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5100           db-statements in order to allow for arrays of pointers in code
5101           sections to be placed without interspersed 0-padding, fixes
5102           bug #1256215
5103         * (emitStatistics): fixed division by zero for pic18f1220
5104         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5105           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5106         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5107         * (pic16_pCodeConstString): keep track of already emitted string
5108           literals to prevent "duplicate definitions of symbol _str_NR"
5109         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5110           debug message
5111         * device/lib/Makefile.in: ignore failing PIC16 library builds
5112         * device/lib/pic16/Makefile: do not build if gputils are missing
5113         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5114
5115 2005-08-10 Raphael Neider <rneider AT web.de>
5116
5117         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5118           my last commit)
5119
5120 2005-08-10 Raphael Neider <rneider AT web.de>
5121
5122         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5123           Rokas' patch to add the new fixed point type "__fixed16x16"
5124         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5125           functions for __fixed16x16 arithmetics
5126         * device/lib/pic16: reimplemented the build system to support
5127           a separate build directory, better handling of libio (create
5128           the library in a separate subdir for each architecture) and
5129           easier configuration (centralized in Makefile.common)
5130
5131 2005-08-07 Raphael Neider <rneider AT web.de>
5132
5133         * src/pic16/gen.c (genrshTwo): fixed sign extension
5134         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5135         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5136           added T0CONbits
5137         * device/include/pic16/pic18f4220.h: NEW, header for
5138           pic18f4220 and pic18f4320
5139         * device/include/pic16/pic18fregs.h: added new devices,
5140           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5141         * device/include/pic16/signal.h: resolved name clashes
5142           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5143           to also allow testing for interrupt enable bits, added
5144           comments on how to use the macros
5145         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5146         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5147           register definitions for the devices
5148         * device/lib/pic16/pics.all: added new devices
5149         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5150           allocated memory
5151         * device/lib/pic16/libc/stdlib/memfree: do not count
5152           the block header as free memory
5153         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5154           simplified and added missing end-of-blocklist-marker
5155           (reported by Peter Onion, fixes #1252814)
5156         * (_mergeHeapBlock): fixed loop condition
5157         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5158           len==0, restructured code
5159         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5160           up a bit, reduced bitfield accesses, prevent endless loops
5161           in case of heap corruption
5162         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5163           "unreferenced arguments/must return a value" warnings
5164         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5165           replaced BAUDREG with SPBRG
5166         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5167           device/lib/pic16/debug/gstack/gstack.c: replaced
5168           _naked, _asm, _endasm with __naked, __asm, __endasm
5169
5170 2005-08-05 Raphael Neider <rneider AT web.de>
5171
5172         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5173           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5174
5175 2005-08-05 Borut Razem <borut.razem AT siol.net>
5176
5177         * device/lib/Makefile.in: added missing ';'
5178         * configure: removed ^M characters
5179
5180 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5181
5182         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5183           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5184           License
5185
5186 2005-08-04 Borut Razem <borut.razem AT siol.net>
5187
5188         * configure.in: pic16 libraries build 2nd try - enable running
5189           configure in device/lib/pic16
5190         * configure: regenerated from configure.in
5191         * device/lib/Makefile.in: create $(PORT)/bin directory
5192
5193 2005-08-03 Raphael Neider <rneider AT web.de>
5194
5195         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5196           to get/set values via pointers
5197         * (genUnpackBits,genPackBits): changed detection of
5198           ptr->bitfield vs. sym.bitfield, fixed access via generic
5199           pointers, removed dead (wrong) code for multibyte bitfields
5200         * (genNearPointerGet, genGenPointerGet): removed useless code,
5201           fixed bitfield detection, fixes #1250594
5202         * (genNearPointerSet): removed useless code
5203         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5204           and introduced macro pic16_emitpcode that conditionally emits
5205           the origin of the following pCode (useful for debugging SDCC)
5206         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5207         * (createDefmap): fixed handling of LFSR for --optimize-df
5208
5209 2005-08-02 Borut Razem <borut.razem AT siol.net>
5210
5211         * device/lib/Makefile.in: pic16 libraries build enabled since
5212           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5213
5214 2005-08-02 Raphael Neider <rneider AT web.de>
5215
5216         * src/pic16/gen.c (genPackBits): removed deprecated warning
5217         * (genGenPointerSet): fixed bitfield detection
5218
5219 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5220
5221         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5222
5223 2005-07-31 Raphael Neider <rneider AT web.de>
5224
5225         * device/lib/pic16/libdev/pic18f458.c,
5226           device/include/pic16/pic18f458.h: added missing T0CONbits
5227
5228 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5229
5230         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5231
5232 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5233
5234         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5235
5236 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5237
5238         * device/include/mcs51/at89c51ed2.h: added.
5239
5240 2005-07-23 Raphael Neider <rneider AT web.de>
5241
5242         * src/pic/gen.h: added emitpcode macro for debugging
5243         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5244           and replace by macro adding debug information on demand
5245         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5246         * (gencjne): tried to fix; replaced with correct (slower) code
5247         * (gen{Unp,P}ackBits): fixed single bit access
5248         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5249         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5250           previous instruction
5251         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5252           register has to be handled with care (forbidding movement
5253           of assignments/uses, removing assignments completely, ...)
5254         * (pCodeOptime2pCodes): make use of regIsSpecial
5255         * added lots of debugging output (commented out)
5256         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5257           from being reused as result UNLESS it is known to work
5258
5259 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5260
5261         * support/Util/dbuf.h: include <stddef.h> for size_t
5262         * .version: changed to version 2.5.2
5263
5264 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5265
5266         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5267
5268 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5269
5270         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5271           (genModOneByte): removed needless psha/pula
5272
5273 2005-07-22 Raphael Neider <rneider AT web.de>
5274
5275         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5276           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5277         * src/pic/gen.c (resolveIfx): do not "invent" labels
5278         * (genSkipc): changed to positive logic
5279         * (genSkipCond): removed as no longer needed
5280         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5281           backport from PIC16
5282         * (genLeftShift): check operands are in different registers
5283         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5284           INCF does not update CARRY...
5285         * src/pic/main.c: fixed _linkCmd
5286         * src/pic/pcode.c (unlinkpCode): added inactive code
5287         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5288           alive (do not assign result and operand overlapping registers)
5289
5290 2005-07-22 Raphael Neider <rneider AT web.de>
5291
5292         * src/pic/device.c (dump_sfr): replaced register declaration with
5293           call to emitSymbolToFile() to avoid duplicate symbols
5294         * (assignRelocatableRegisters): do not declare external symbols
5295         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5296           right (take size of type, not etype)
5297         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5298         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5299         * (packRegsForAccUse): disabled assignment of WREG as
5300           the result reg to prevent occurence of just fixed #1235003,
5301           fixes #1242954
5302         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5303           symbols (avoids duplicate symbols in .asm file)
5304         * (pic14emitRegularMap): use emitSymbolToFile()
5305         * src/pic/gen.c (aopOp): fixed spillLocation handling
5306         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5307         * (genDataPointerSet): removed unneccessary variables/output
5308
5309 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5310
5311         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5312         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5313
5314 2005-07-21 Raphael Neider <rneider AT web.de>
5315
5316         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5317           architecture cannot handle them efficiently, fixes bug #1235003
5318         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5319           check for empty sets before using them (fixes bug #1232190)
5320
5321 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5322
5323         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5324           (lnksect2): generate warnings for memory overlap
5325         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5326           constseg to set the name of these segments so you can instruct the linker
5327           to place them in banks
5328         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5329         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5330           added code_seg and const_seg to options
5331         * src/SDCCglue.c (emitMaps): use options.const_seg,
5332           (createInterruptVect): put interrupt vectors in segment HOME,
5333           (glue): put HOME before static segment and put the main glue in HOME,
5334           (glue): use options.code_seg
5335         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5336         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5337           these segments so you can instruct the linker to place them in banks
5338           (linkEdit): use code_loc for HOME segment which should be the first
5339           segment in code memory now
5340         * src/SDCCmem.c: fixed more stuff like bug 1238386
5341         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5342           (changePointer): don't change function pointers to code pointers for
5343           banked functions,
5344           (compareType): added exceptional check for banked function pointers
5345         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5346         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5347           after static in code memory
5348         * src/mcs51/gen.c: added aopLiteralLong prototype,
5349           (aopForSym): use getSize for functions,
5350           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5351           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5352           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5353           the segment,
5354           (genPcall): use call for literal function pointers and generate banked
5355           calls over the one trampoline so there's only one place for the user to
5356           modify according to his/hers hardware,
5357           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5358           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5359         * src/mcs51/main.c: added keyword banked,
5360           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5361         * support/Util/SDCCerr.c,
5362         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5363           needed for passing the bank and address to the trampoline
5364         * device/lib/mcs51/crtbank.asm: added for bankswitching
5365         * device/lib/mcs51/Makefile: added crtbank
5366
5367 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5368
5369         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5370           for fields at offset 0 of a struct or union as reported
5371           on 2005-07-07 in the developer mailing list.
5372
5373 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5374
5375         * src/SDCCmem.c: fixed bug 1238386
5376
5377 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5378
5379         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5380           (patch #1144962), added peephole 300, enabled 259.x
5381         * doc/sdccman.lyx: removed screenshot and provided link instead
5382
5383 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5384
5385         * doc/sdccman.lyx: added section about debugging with ddd
5386         * doc/figures/ddd_example.eps: screenshot of debugging session
5387
5388 2005-07-04 Raphael Neider <rneider AT web.de>
5389
5390         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5391           like CODE pointers, fixes #1115683
5392         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5393           call, fixes bugs #1232211, #1228110,
5394           fixed wrong casts to pCodeFlow from pCodeInstructions
5395
5396 2005-07-04 Raphael Neider <rneider AT web.de>
5397
5398         * src/pic/gen.c (popGet): changed assert to allow for
5399           bit operands
5400         * (popGetAddr): changed signature to provide
5401           an additional index, patched all call sites
5402         * (genCmpEq): handle literal-like operands correctly
5403         * (genAddrOf): added sanity checks on __code/__data pointers
5404         * (genAssign): added handling of symbols from __code section
5405         * (gencjne): do not generate code for comparisons whose result
5406           is neither stored nor used, fixes bug #1171114
5407         * (AccLsh, AccRsh): operate on operand instead of WREG
5408         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5409           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5410           by known count
5411         * rewrote complete shift-by-literal logic, commented unused
5412           functions out
5413         * (genConstPointerGet): get multiple bytes (if result size > 1),
5414           fixed handling of non-immediate addresses
5415         * (genPointerGet): handle CODE pointers like CONST pointers
5416         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5417         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5418           operand is to be treated as a literal or not
5419         * (mov2w,genPcall,genCmpEq),
5420           src/pic/genarith.c: use aop_isLitLike() to decide between
5421           literal/register contents
5422         * (addSign): added missing offset
5423         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5424           only emit comment in debug-mode,
5425           use {aop,op}_isLitLike throughout the file
5426         * src/pic/glue.c: fix initializers for pointers (work in progress)
5427         * src/pic/pcode.c (get_op): honor index on _const symbols
5428         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5429         * (dumppBlock): added pCode size estimation
5430         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5431           check for IS_SYMOP before OP_SYMBOL'ing
5432         * fixed indentation, compacted switch-statements
5433         * (allocReg): find free register and allocate it instead of
5434           allocating new registers all the time
5435         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5436           registers as its operands (necessary only for multibyte GETs)
5437
5438 2005-07-01 Raphael Neider <rneider AT web.de>
5439
5440         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5441           debugging .asm-output macros FENTRY + FEXIT
5442         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5443           way... I wonder...
5444         * (emitpComment): NEW, printf to pCode
5445         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5446           offset handling
5447         * (popGetAddr): NEW, variant of popGet to access an immediates
5448           high(er) bytes instead of the n'th byte of memory they reference,
5449           replaced popGet with popGetAddr where neccessary
5450         * (genDataPointerGet): reactivated and fixed implementation
5451         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5452           accesses
5453         * (genDataPointerSet): fixed multibyte assignments
5454         * (genpic14Code): fixed --i-code-in-asm handling
5455         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5456         * (genPlus): fixed index-out-of-bounds error
5457         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5458         * src/pic/ralloc.c: added debugging output macro FENTRY2
5459         * (spillThis): fixed indentation, enbraced for-body for clarity
5460         * (rematStr): commented out as now unused
5461         * (regTypeNum): commented out special spill case (overwrites
5462           arbitrary values)
5463         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5464
5465 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5466
5467         * doc/sdccman.lyx: documented sfr16/sfr32,
5468           added example for using storage class with function pointers
5469         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5470
5471 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5472
5473         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5474         * device/lib/_itoa.c,
5475         * device/lib/_ltoa.c: optimized codesize
5476         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5477           but don't know how to suppress the double warning.
5478         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5479         * support/Util/SDCCerr.c,
5480         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5481
5482 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5483
5484         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5485           fixed old K&R prototypes
5486         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5487         * device/lib/_gptrget.c,
5488         * device/lib/_gptrgetc.c,
5489         * device/lib/_gptrput.c: changed versions for new memory indicator values,
5490           also new versions for small generic pointers and banked generic pointers
5491         * src/port.h: added const_name
5492         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5493         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5494         * src/SDCCcse.c (findPrevIc): check all associative operators
5495         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5496         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5497         * src/SDCCmem.c: updated comments,
5498           set far-space to 0 for pdata, results in optimized code
5499         * src/SDCCmem.h: added macro CONST_NAME
5500         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5501           moving the info into the highest bits, see also gptrget/gptrput
5502         * src/src.dsp: added sdcc.ico to project files
5503         * src/avr/gen.c (genCast): fixed bug 0x%d
5504         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5505         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5506           relation between ptr_type and DCL_TYPE,
5507           (genCast): fixed bug 0x%d
5508         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5509           (CODE)" for const_name
5510         * src/hc08/gen.c (genCast): fixed bug 0x%d
5511         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5512           (hc08_port): added "CONST (CODE)" for const_name
5513         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5514           (aopForRemat, adjustArithmeticResult): disconnected direct relation
5515           between ptr_type and DCL_TYPE,
5516           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5517           operand* and took AOP() inside function so sfr-ness can be checked,
5518           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5519           new prototype,
5520           (genFunction, genEndFunction): optimized stack setup,
5521           (genMinus): optimized for literals with ending zeroes (in bytes),
5522           (genCast): fixed bug 0x%d
5523         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5524           (mcs51_port): added "CONST (CODE)" for const_name
5525         * src/mcs51/peeph.def: made rule 226 more generic
5526         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5527         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5528         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5529         * src/z80/main.c (z80_port): added NULL for const_name,
5530           (gbz80_port): added NULL for const_name
5531         * support/regression/tests/bug663539.c,
5532         * support/regression/tests/sfr16.c: new tests
5533
5534 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5535
5536         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5537
5538 2005-06-24 Raphael Neider <rneider AT web.de>
5539
5540         * device/lib/pic16/libdev/pic18f[68][567]20.c:
5541           corrected typos...
5542         * device/include/pic16/signal.h: added USBIF
5543           and SIG_USB
5544
5545 2005-06-24 Raphael Neider <rneider AT web.de>
5546
5547         * device/lib/pic16/libdev/pic18f2455.c,
5548           device/include/pic16/pic18f2455.h: NEW
5549         * device/include/pic16/pic18fregs.h,
5550           device/lib/pic16/pics.all,
5551           src/pic16/device.c: added 18f2455
5552         * device/lib/pic16/libdev/pic18f[68][567]20.c,
5553           device/include/pic16/{pic18f[68][567].h,usart.h}:
5554           replaced MULTIPLE_USARTS define with more relaible
5555           compatibility sfrs (for USART access)
5556
5557 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5558
5559         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5560           and the output asm file line is printed on two lines.
5561
5562 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5563
5564         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5565           BGT, BLE, BHI, and BLS instructions
5566         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5567           genCmpEq): removed
5568         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5569           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5570           fixes bug #1216342
5571         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5572
5573 2005-06-15 Raphael Neider <rneider AT web.de>
5574
5575         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5576         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5577         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5578           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5579           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5580
5581 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5582
5583         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5584           Marcel Telka in bug #1215704
5585
5586 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5587
5588         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5589           located in shared memory bank.
5590
5591 2005-05-31 Raphael Neider <rneider AT web.de>
5592
5593         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5594           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5595           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5596
5597 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5598
5599         * device/lib/_strncpy.c: fixed the fix
5600
5601 2005-05-26 Raphael Neider <rneider AT web.de>
5602
5603         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5604           initializers with \0, bug #1208187
5605         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5606           intializers with \0, bug #1208187
5607
5608 2005-05-26 Raphael Neider <rneider AT web.de>
5609
5610         * src/pic16/glue.c (pic16_printIvalChar): fixed string
5611           initializers with \0, bug #1208187
5612         * src/pic16/main.c (_process_pragma): added sanity checks
5613           for stack position and size, emit warnings when appropriate
5614
5615 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5616
5617         * device/lib/_strncpy.c: fixed not filling with \0
5618
5619 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5620
5621         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5622           createFunction),
5623         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5624           compound_statement),
5625         * src/SDCCsymt.h,
5626         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5627
5628 2005-05-24 Raphael Neider <rneider AT web.de>
5629
5630         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5631
5632 2005-05-24 Raphael Neider <rneider AT web.de>
5633
5634         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5635           TRISE definitions, closes bug #1162453
5636
5637 2005-05-22 Raphael Neider <rneider AT web.de>
5638
5639         * src/pic16/main.c (_process_pragma): check for missing
5640           arguments to pragmas code and udata
5641         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5642           consistency fixes to match other headers (thanks to Jim Paris)
5643         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5644
5645 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5646
5647         * src/SDCCicode.c (isOperandEqual): fixed missing ;
5648
5649 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5650
5651         * support/regression/tests/bug1198642.c: new test
5652         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5653         * src/SDCCcse.c (findPrevIc): added comment, please have a look
5654         * support/scripts/resource.h,
5655         * support/scripts/resource.rc,
5656         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5657         * support/scripts/sdcc.ico: added 32x32 icon
5658
5659 2005-05-18 Raphael Neider <rneider AT web.de>
5660
5661         * device/lib/pic16/libdev/pic18f*.c,
5662         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5663           keywords to "__sfr" and "__at (X)"
5664         * device/include/pic16/pic18fregs.h: added pic18f4520
5665         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5666           #1203088 (MPLAB compatibility)
5667
5668 2005-05-17 Raphael Neider <rneider AT web.de>
5669
5670         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5671         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5672         * device/lib/pic16/pics.all: added new devices
5673         * src/pic16/device.c: added support for pic18f4520
5674
5675 2005-05-16 Raphael Neider <rneider AT web.de>
5676         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5677         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5678         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5679           convenience function for bit access
5680
5681 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5682
5683         * device/lib/printf_large.c: fixed bug 1193299
5684         * support/regression/tests/bug1057979.c: added test %3.3s
5685
5686 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5687
5688         * device/include/mcs51/8051.h,
5689         * device/include/mcs51/8052.h: made parseable with lint
5690         * device/include/mcs51/lint.h: added include file for (sp)lint
5691         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
5692         * doc/cdbfileformat.lyx,
5693         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
5694
5695 2005-05-14 Raphael Neider <rneider AT web.de>
5696
5697         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
5698         * device/lib/pic16/libc/stdlib/itoa.c (new)
5699         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
5700         * device/lib/pic16/libio/Makefile: exclude subdir according to
5701           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
5702         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
5703         * src/pic16/gen.c (genFunction): prevent annoying warning
5704         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
5705           nameclashes on BeOS
5706         * support/cpp2/cppmain.c (cpp_output_string): new
5707         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
5708           fixes bug 1116802
5709
5710 2005-05-13 Borut Razem <borut.razem AT siol.net>
5711
5712         * src/SDCCmain.c (linkEdit): fixed bug 1195202
5713
5714 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5715
5716         * .version: changed to version 2.5.1; back to bleeding edge development
5717
5718 2005-05-11 Borut Razem <borut.razem AT siol.net>
5719
5720         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
5721           generate PDF version 1.3 documents
5722
5723 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5724
5725         * .version: changed to version 2.5.0
5726
5727 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5728
5729         * doc/sdccman.lyx: updated weblinks, index and smaller updates
5730
5731 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5732
5733         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
5734         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
5735         well as many smaller updates.
5736         * .version: changed to version 2.5.0-pre1
5737
5738 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5739
5740         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
5741
5742 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5743
5744         * support/regression/tests/bug1185672.c: added
5745         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
5746           bug 1185672
5747         * src/mcs51/gen.c (genCall): added comments, made it look safer
5748         * src/mcs51/gen.c (genEndFunction): simplified
5749
5750 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5751
5752         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
5753
5754 2005-04-14 Borut Razem <borut.razem AT siol.net>
5755
5756         * fixed bug 1045046 - SIGSEGV with really simple code?:
5757           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
5758           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
5759
5760 2005-04-14 Borut Razem <borut.razem AT siol.net>
5761
5762         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
5763           src/pic16/device.h: temporarily disabled experimental #inline pragma
5764           for 2.5.0 release
5765
5766 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
5767
5768         * device/include/z80/stdio.h,
5769         * device/include/z80/string.h: removed these highly incomplete files so
5770           SDCC can use the default ones in device/include/
5771
5772 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5773
5774         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
5775         gcc warning.
5776         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
5777         fix sdcpp warnings.
5778
5779 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5780
5781         * device/include/malloc.h: removed redundant __reentrant prototypes
5782         * device/lib/_mullong.c: added working xstack variant in asm (C version
5783           doesn't pass regression tests)
5784         * device/lib/bpx.c: used __data and made bpx char for mcs51
5785         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
5786           (createFunction): fixed bug with xstackPtr
5787         * src/SDCCcse.c: corrected comments
5788         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
5789           (killDeadCode, eBBlockFromiCode): removed unused code
5790         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
5791           corrected comments
5792         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
5793           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
5794           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
5795           (genModOneByte): fixed warning in MSVC
5796         * src/mcs51/main.c (): added comments
5797         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
5798
5799 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5800
5801         * src/SDCCmain.c (linkEdit): oops, changed one line too many
5802
5803 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
5804
5805         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
5806
5807 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
5808
5809         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
5810         characters arrays of larger size than the declared one.
5811
5812 2005-04-10 Borut Razem <borut.razem AT siol.net>
5813
5814         * src/pic/gen.c (genInline),
5815           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
5816           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
5817           (findNextInstruction), (findPrevInstruction),
5818           (findInstructionUsingLabel),
5819           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
5820         * src/pic/pcode.c (findLabel): added missing '\n'
5821         * src/src.dsp: added SDCCdwarf2.c to the project
5822
5823 2005-04-09 Borut Razem <borut.razem AT siol.net>
5824
5825         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
5826
5827 2005-04-08 Raphael Neider <rneider AT web.de>
5828
5829         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
5830           into the chain after a given one) and mergeDefmapSymbols (combine
5831           defmap entries for each symbol per pcode)
5832         * (createDefmap): have defmap entries merged in the end
5833         * (defmapReplaceSymRef): split defmap entries covering two accesses to
5834           a symbol before replacing one access type's symbol, merge symbols in
5835           the end (replacement symbol might already have an entry)
5836         * (assignValnums): keep reference to written WREG intact
5837
5838 2005-04-08 Raphael Neider <rneider AT web.de>
5839
5840         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
5841           Alpha)
5842
5843 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
5844
5845         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
5846         bytes
5847
5848 2005-04-07 Raphael Neider <rneider AT web.de>
5849
5850         * device/include/pic16/usart.h: added compatibility defines for
5851           devices with more than one USART
5852         * device/include/pic16/pic18f[68][567]20.h: activated above defines
5853
5854 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5855
5856         * device/lib/Makefile.in: updated for port specific include
5857
5858 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5859
5860         * support/regression/ports/mcs51/spec.mk: added mcs51 include
5861
5862 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5863
5864         * device/include/8051.h,
5865         * device/include/8052.h,
5866         * device/include/at89S8252.h,
5867         * device/include/at89c55.h,
5868         * device/include/at89x051.h,
5869         * device/include/at89x51.h,
5870         * device/include/at89x52.h,
5871         * device/include/mcs51reg.h,
5872         * device/include/reg51.h,
5873         * device/include/reg764.h,
5874         * device/include/regc515c.h,
5875         * device/include/sab80515.h: (re)moved these 12 files
5876         * device/include/mcs51/8051.h,
5877         * device/include/mcs51/8052.h,
5878         * device/include/mcs51/at89S8252.h,
5879         * device/include/mcs51/at89c55.h,
5880         * device/include/mcs51/at89x051.h,
5881         * device/include/mcs51/at89x51.h,
5882         * device/include/mcs51/at89x52.h,
5883         * device/include/mcs51/mcs51reg.h,
5884         * device/include/mcs51/reg51.h,
5885         * device/include/mcs51/reg764.h,
5886         * device/include/mcs51/regc515c.h,
5887         * device/include/mcs51/sab80515.h: and added them here
5888
5889 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5890
5891         * device/include/stdarg.h: changed SDCC specific keywords to double
5892           underlined form.
5893         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
5894           mcs51 and ds390.
5895         * device/include/hc08/mc68hc908gp32.h,
5896         * device/include/hc08/mc68hc908jb8.h,
5897         * device/include/hc08/mc68hc908jkjl.h,
5898         * device/include/hc08/mc68hc908qy.h: fixed comments
5899         * device/include/mcs51/README: updated
5900         * device/include/mcs51/c8051f120.h: added PINRSF
5901         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
5902         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
5903           amidst code. Also inline is not supported.
5904
5905 2005-04-06 Raphael Neider <rneider AT web.de>
5906
5907         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
5908         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
5909           callers stack/frame pointers
5910
5911 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5912
5913         * device/include/pic16/usart.h: added, missing in previous commit,
5914         * device/include/pic16/adc.h: fixed typo,
5915         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
5916         commit,
5917         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
5918         <p18fxxx.inc>
5919         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
5920         uninitialized because a bug appears with gplink
5921         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
5922         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
5923         complains for unrecognised option
5924
5925 2005-04-05 Raphael Neider <rneider AT web.de>
5926
5927         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
5928           structs as well (using memcpy)
5929         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
5930           on ISRs (GOTO has no label)
5931         * src/pic16/device.h: added OF_OPTIMIZE_DF
5932         * src/pic16/main.c: added compiler switch --optimize-df to enable the
5933           new data flow analysis/optimization
5934         * src/pic16/pcode.c: added (prototypes for and implementation of)
5935           dataflow analysis functions, fixed pCodeInstructions' inCond and
5936           outCond values, made RCALL a branch instruction
5937         * (pic16_unlinkpCode): keep C line if possible
5938         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
5939           C line moved if possible
5940         * (pic16_getRegFrompCodeOp): NEW, improved version of...
5941         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
5942           to use new pic16_getRegFrompCodeOp (works for more SFRs)
5943         * (pic16_BuildFlow): fixed skip instructions with label (did not start
5944           new flow)
5945         * (pic16_getJumptabpCode): NEW, needed in...
5946         * (LinkFlow): fixed handling of jumptables, calls and conditional
5947           branches
5948         * (pic16_InsertCommentAfter): NEW
5949         * (pic16_pCodeReplace): made verbose and flow preserving
5950         * (AnalyzeFlow): added call to data flow analysis
5951         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
5952         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
5953         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
5954
5955 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5956
5957         * src/SDCCast.c (decorateType): fixed bug #1105626
5958
5959 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
5960
5961         * device/include/asm/pic16/features.h,
5962         * pic18f*.h headers,
5963         * device/include/pic16/adc.h,
5964         * device/include/pic16/delay.h,
5965         * device/include/pic16/i2c.h,
5966         * device/include/pic16/malloc.h,
5967         * device/include/pic16/stdio.h,
5968         * device/include/pic16/stdlib.h,
5969         * device/include/pic16/string.h,
5970         * device/lib/pic16/libc/stdio/printf_tiny.c,
5971         * device/lib/pic16/libc/stdio/printf_small.c,
5972         * device/lib/pic16/libc/stdio/strmgpsim.c,
5973         * device/lib/pic16/libc/stdio/strmmssp.c,
5974         * device/lib/pic16/libc/stdio/strmusart.c,
5975         * device/lib/pic16/libc/stdio/vfprintf.c,
5976         * device/lib/pic16/libc/stdlib/ltoa.c,
5977         * device/lib/pic16/libc/stdlib/putchar.c,
5978         * device/lib/pic16/libc/stdlib/x_ftoa.c,
5979         * device/lib/pic16/libc/stdlib/memchrpgm.c,
5980         * device/lib/pic16/libc/stdlib/memchrram.c,
5981         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
5982         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
5983         * device/lib/pic16/libio/adc/adcbusy.c,
5984         * device/lib/pic16/libio/adc/adcread.c,
5985         * device/lib/pic16/libio/adc/adcsetch.c,
5986         * device/lib/pic16/libio/usart/ubaud.c,
5987         * device/lib/pic16/libio/usart/ubusy.c,
5988         * device/lib/pic16/libio/usart/udrdy.c,
5989         * device/lib/pic16/libio/usart/uopen.c,
5990         * device/lib/pic16/libio/usart/uputc.c,
5991         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
5992         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
5993         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
5994         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
5995         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
5996         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
5997         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
5998         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
5999         specific keywords to double underlined form,
6000         * device/lib/pic16/libc/Makefile.rules,
6001         * device/lib/pic16/libsdcc/Makefile.rules,
6002         * device/lib/pic16/libm/Makefile,
6003         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
6004         to compile with C standard set in Makefile.common
6005         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
6006         rand.c and crc.c in compilation process,
6007         * device/lib/pic16/libsdcc/int/divuint.c,
6008         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
6009         `c' from signed to unsigned,
6010         * device/lib/pic16/startup/crt0.c,
6011         * device/lib/pic16/startup/crt0i.c,
6012         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
6013         keywords to double underlined form, bug fixes in _do_cinit function
6014         which prevented the correct initialization of the .idata segment,
6015         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
6016         core to enter a infinite loop
6017         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
6018
6019 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6020
6021         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
6022
6023 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6024
6025         * device/include/Makefile.in: add support for hc08 subdirectory
6026         * device/include/hc08/: new subdirectory
6027         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
6028         Lucas Loizaga, thanks!
6029         * device/include/hc08/mc68hc908qy.h,
6030         * device/include/hc08/mc68hc908gp32.h,
6031         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
6032         their own directory. Changed internal macro names to use the compiler
6033         reserved namespace. Changed SDCC specific keywords to double
6034         underlined form.
6035         * device/include/math.h,
6036         * device/include/malloc.h,
6037         * device/include/stdarg.h,
6038         * device/include/stdbool.h
6039         * device/include/string.h,
6040         * device/include/tinibios.h,
6041         * device/include/ds400rom.h,
6042         * device/include/8051.h,
6043         * device/include/8052.h,
6044         * device/include/80c51xa.h,
6045         * device/include/at89c55.h,
6046         * device/include/at89S8252.h,
6047         * device/include/at89x51.h,
6048         * device/include/at89x52.h,
6049         * device/include/ds80c390.h,
6050         * device/include/reg764.h,
6051         * device/include/regc515c.h,
6052         * device/include/sab80515.h,
6053         * device/include/mcs51/c8051f000.h,
6054         * device/include/mcs51/c8051f018.h,
6055         * device/include/mcs51/c8051f020.h,
6056         * device/include/mcs51/c8051f040.h,
6057         * device/include/mcs51/c8051f060.h,
6058         * device/include/mcs51/c8051f120.h,
6059         * device/include/mcs51/c8051f300.h,
6060         * device/include/mcs51/c8051f310.h,
6061         * device/include/mcs51/c8051f320.h,
6062         * device/include/mcs51/c8051f330.h,
6063         * device/include/mcs51/c8051f350.h,
6064         * device/include/z180.h: Changed SDCC specific keywords to double
6065         underlined form.
6066
6067 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6068
6069         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6070         18F4455,
6071         * (pic16_assignConfigWordValue): disable testing of configuration
6072         register value with config mask,
6073         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6074         function with port->fun_prefix,
6075         * (genFunction): when generating a naked interrupt function never
6076         create an absolute segment placed in interrupt vector address, place
6077         the actual interrupt function at IVA instead, when an interrupt
6078         function is generated with unspecified interrupt then do not create
6079         the absolute section,
6080         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6081         code for generating a call to generic pointer get/put function with
6082         a call to function pic16_callGenericPointer(),
6083         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6084         the call to the generic pointer get/put functions with prefixing the
6085         function name with port->fun_prefix,
6086         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6087         * src/pic16/main.c (_process_pragma): prefix function with
6088         port->fun_prefix,
6089         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6090         calling assembler, old 18Fxxxx macro is deprecated,
6091         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6092         PC_ASMDIR in while condition,
6093         * (findInstruction): add PC_ASMDIR in while condition,
6094         * (buildCallTree): prefix main with port->fun_prefix,
6095         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6096         identifier for variable with banked access in instructions BTFSS,
6097         BTFSC, BCF, BSF, BTG
6098         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6099         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6100         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6101         perform optimization when enviroment variable NO_REG_OPT is set,
6102         * (insideLRBlock): NEW, return 1 if register is inside an
6103         INF_LOCALREGS block,
6104         * (RemoveRegFromLRBlock): remove a register that is completely
6105         eliminated by register optimization, but it is still left in local
6106         register store/restore in/from stack block,
6107         * (Remove2pcodes): after removing register, check to see if it
6108         should be removed from local register store/restore in/from stack
6109         block,
6110         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6111         DUMMY_READ_VOLATILE,
6112
6113         * device/include/pic16/adc.h: minor prototype modifications and
6114         update,
6115         * device/include/pic16/malloc.h: added GPL notice various
6116         modifications,
6117         * device/include/pic16/stdint.h: NEW, standard header for ints
6118         * device/include/pic16/delay.h: NEW, header for delay functions,
6119         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6120         delay1mtcy,
6121         * device/include/pic16/signal.h: NEW, header providing helper macros
6122         for implementing signal handlers,
6123         * device/include/pic16/stdio.h: added prototypes for functions,
6124         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6125         prototypes for stdin and stdout, added macro PUTCHAR to
6126         automatically implement putchar function prototype,
6127         * device/include/pic16/usart.h: modified and updated USART library,
6128         * device/lib/pic16/libio/adc/,
6129         * device/lib/pic16/libio/i2c: some modifications to improve library
6130         performance,
6131         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6132         family of functions,
6133         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6134         family of functions and other sources,
6135         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6136         of the PIC18Fxx[28] devices,
6137         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6138         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6139         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6140         _do_cinit function, because the previous failed when local variables
6141         where not placed in the same memory bank,
6142         * device/lib/pic16/libsdcc/char/: various modifications to improve
6143         library performance,
6144         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6145         information on the new functions of the c library and more...
6146
6147 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6148
6149         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6150
6151 2005-03-26 Raphael Neider <rneider AT web.de>
6152
6153         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6154           if condition == CARRY)
6155         * (genCmp): adapted to new genSkipc semantics
6156         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6157           on rIfx (genCmp was broken)
6158
6159 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6160
6161         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6162         * src/z80/main.c (_keywords[]),
6163         * src/SDCCglobal.h (struct options),
6164         * src/SDCC.y,
6165         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6166         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6167         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6168         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6169         always available in leading double underscore form. The C99 support is
6170         mostly missing, but it's a start.
6171         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6172         reserved identifier "__data".
6173
6174 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6175
6176         * src/mcs51/peeph.def: fixed bug 1170013
6177
6178 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6179
6180         * device/include/mcs51reg.h: fixed bug 842007
6181
6182 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6183
6184         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6185         last time.
6186
6187 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6188
6189         * src/port.h (struct PORT),
6190         * src/avr/ralloc.c (avr_assignRegisters),
6191         * src/avr/main.c,
6192         * src/ds390/ralloc.c (ds390_assignRegisters),
6193         * src/ds390/main.c,
6194         * src/hc08/ralloc.c (hc08_assignRegisters),
6195         * src/hc08/main.c,
6196         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6197         * src/mcs51/main.c,
6198         * src/pic/ralloc.c (pic14_assignRegisters),
6199         * src/pic/main.c,
6200         * src/pic16/ralloc.c (pic16_assignRegisters),
6201         * src/pic16/main.c,
6202         * src/xa51/ralloc.c (xa51_assignRegisters),
6203         * src/xa51/main.c,
6204         * src/z80/ralloc.c (z80_assignRegisters),
6205         * src/z80/ralloc.h,
6206         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6207         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6208         * src/SDCCcse.h,
6209         * src/SDCCdflow.c (computeDataFlow),
6210         * src/SDCCdflow.h,
6211         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6212         * src/SDCCloop.h,
6213         * src/SDCCcflow.c (*),
6214         * src/SDCCcflow.h,
6215         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6216         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6217         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6218         immedDom() returning wrong block; probably fixes bug #1160833)
6219
6220 2005-03-20 Borut Razem <borut.razem AT siol.net>
6221
6222         * support/scripts/inc2h.pl: WIN32 port
6223
6224 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6225
6226         * device/lib/makefile.in: added abs.c and labs.c
6227
6228 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6229
6230         * device/include/stdint.h: added
6231         * device/lib/abs.c: added
6232         * device/lib/labs.c: added
6233         * device/include/stdlib.h: added abs() and labs() prototypes
6234         * device/lib/libsdcc.lib: added abs and labs
6235         * device/include/float.h,
6236         * device/lib/_fsmul.c,
6237         * device/lib/printf_fast.c,
6238         * device/lib/printf_tiny.c: updated comments
6239
6240 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6241
6242         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6243         bug #1164313
6244
6245 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6246
6247         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6248         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6249
6250 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6251
6252         * device/lib/printf_large.c: removed inline assembly for portability and
6253           readability. Use printf_fast if speed or size are more important.
6254         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6255         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6256
6257 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6258
6259         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6260         prevent compiler warning
6261
6262 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6263
6264         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6265         moved to level 0 and declared as static. Also they are explicit
6266         placed in access bank. This was necessery because some times they
6267         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6268         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6269         optimizations. Currently only compare to unsigned char is implemented,
6270         * src/pic16/gen.c: added fReturnIdx array,
6271         * (struct resolvedIfx) is moved to gen.h and made public,
6272         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6273         * (aopForSym): added an optimization to directly store in stack of
6274         the operand of a SEND iCode,
6275         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6276         but as registers instead (AOP_REG) using the fReturnIdx array,
6277         * (pic16_freeAsmop): remove the freed register from the
6278         _G.sregsAlloc field,
6279         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6280         a compare of 'WREG',
6281         * (pic16_popGetTempRegCond): changed function prototype, now
6282         function takes also a bitVector argument v which holds the current
6283         set of registers that are allocated for stack access by aopForSym,
6284         registers allocated in aopForSym for accessing stack symbols are not
6285         any more part of the functions usedRegs field,
6286         * (genCall): some times aopOp is called for a stack variable to be
6287         send, aopForSym might perform the push, if this is true make sure
6288         that genCall doesn't push the variable twice by testing _G.resDirect,
6289         * (genFunction): changed testing for unspecified interrupt number
6290         from 256 to INTNO_UNSPEC,
6291         * modified selection scheme of frame pointer generation. Previously
6292         if function did use local registers a frame pointer was generated,
6293         now a frame pointer is generated only if function has arguments
6294         (that need PLUSW2 register access), or has stack arguments, or the
6295         compiler is not instructed to omit the frame pointer,
6296         * (genEndFunction): before restoring local registers that were saved
6297         in the function preamble, also restore the registers that *might*
6298         have been allocated for stack access,
6299         * (genRet): removed some old comments,
6300         * (genCmp, the active (RN's) version): added a call to the
6301         pic16_genCmp_special function to perform the compare with a more
6302         robust and optimized way,
6303         * (genInline): a feature has been added in inline code generation,
6304         which allows a wildcard variable substitution when writing inline
6305         assembly. Code is incomplete and experimental therefore undocumented,
6306         * (genCast): changed order of aopOp for result and right to allow
6307         aopForSym to directly load the result if possible,
6308         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6309         perform an optimized compare on some selected special occasions,
6310         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6311         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6312         generate an IVT any more,
6313         * src/pic16/main.c (pic16_optionsTable): added command line option
6314         --optimize-cmp,
6315         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6316         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6317         macros,
6318         * src/pic16/NOTES: Raphael Neider added in list of active developers
6319         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6320         jumptable_end to prevent bug #,
6321         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6322         inCond and outCond fields,
6323         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6324         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6325         turn off register spilling,
6326         * (packRegsForOneUse): synced with other ports' versions although it
6327         is not used currently,
6328         * (pic16_packRegisters): added an optimization while reading
6329         structure bitfields, some registers may be saved (malloc code is
6330         decreased by 80 bytes)
6331
6332 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6333
6334         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6335         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6336         this can be optimized more?
6337
6338 2005-03-10 Raphael Neider <rneider AT web.de>
6339
6340         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6341           genNearPointerGet): (hopefully) fixed access to bitfields via
6342           pointers (p->bitN = x; and x = p->bitN; failed)
6343
6344 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6345
6346         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6347
6348 2005-03-09 Raphael Neider <rneider AT web.de>
6349
6350         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6351
6352 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6353
6354         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6355         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6356           (regTypeNum): set REG_BIT type if necessary
6357         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6358         * support/regression/tests/critical.c: check bug 1144613
6359
6360 2005-03-02 Raphael Neider <rneider AT web.de>
6361
6362         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6363
6364 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6365
6366         * src/avr/ralloc.c (serialRegAssign),
6367         * src/ds390/ralloc.c (serialRegAssign),
6368         * src/hc08/ralloc.c (serialRegAssign),
6369         * src/mcs51/ralloc.c (serialRegAssign),
6370         * src/pic/ralloc.c (serialRegAssign),
6371         * src/pic16/ralloc.c (serialRegAssign),
6372         * src/xa51/ralloc.c (serialRegAssign),
6373         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6374
6375 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6376
6377         * src/SDCCast.c (decorateType): fixed bug 1124787
6378
6379 2005-02-20 Hubert Sack <sack AT digiplan.de>
6380         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6381
6382         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6383         patch #1121755
6384
6385 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6386
6387         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6388         to keep the correct label reference count when adding/removing references
6389         to labels. A peephole file using this is appended to patch #1144962.
6390
6391 2005-02-14 Raphael Neider <rneider AT web.de>
6392
6393         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6394         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6395         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6396           retrievals of result operand's value on assignment
6397
6398 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6399
6400         * device/include/pic16/string.h: modified prototype for memccpy()
6401         to memccpy(void *, void *, char, size_t)
6402         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6403         check whether to omit frame pointer or not,
6404         * (genInline): convert all occurences of "\n" to LF in inline
6405         assembler blocks, this helps formatting the inline text,
6406         * (pic16_loadFSR0): modified prototype,
6407         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6408         removed some 8051 legacy code,
6409         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6410         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6411         before allocating temporary registers in functions,
6412
6413 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6414
6415         * support/regression/tests/bitvars.c: corrected the "fix"
6416
6417 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6418
6419         * support/regression/tests/bitvars.c,
6420         * support/regression/tests/bitwise.c,
6421         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6422
6423 2005-02-10 Raphael Neider <rneider AT web.de>
6424
6425         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6426           different size for Alpha
6427         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6428
6429 2005-02-09 Raphael Neider <rneider AT web.de>
6430
6431         * src/SDCC.lex(doPragma) : save and restore warning options as well
6432           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6433         * have #pragma less_pedantic set the errorlevel to WARNING
6434           (fixes #1117001)
6435         * (cloneOptimize) : fixed wrong malloc's size
6436         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6437           facilitate correct handling of #pragma (save|restore)
6438
6439 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6440
6441         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6442
6443 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6444
6445         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6446
6447 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6448
6449         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6450
6451 2005-02-02 Raphael Neider <rneider AT web.de>
6452
6453         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6454         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6455         * (pic16_storeForReturn): fixed to allow returning function pointers
6456         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6457         * device/include/pic16/{stddef.h,stdbool.h}: added
6458
6459 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6460
6461         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6462
6463 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6464
6465         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6466         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6467          appeared to be required
6468
6469 2005-01-31 Borut Razem <borut.razem AT siol.net>
6470
6471         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6472           include/mcs51 and include/z80 directories to the package
6473
6474 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6475
6476         * src/hc08/gen.c (genFunction): fixed bug #1112752
6477
6478 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6479
6480         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6481
6482 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6483
6484         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6485
6486 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6487
6488         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6489
6490 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6491
6492         * device/include/c8051fxxx.h: removed these 6 files
6493         * device/include/mcs51/c8051fxxx.h: added these 11 new files
6494
6495 2005-01-26 Raphael Neider <rneider AT web.de>
6496
6497         * src/pic16/gen.c (genAssign): fixed assignment from longs
6498           in codespace (were cut to three bytes)
6499         * (genDummyRead): implemented (except for CODESPACE...),
6500           fixed bug #1108575
6501         * src/pic16/glue.c (emitStatistics): beautified
6502         * device/lib/pic16/libm/Makefile: added include path
6503
6504 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6505
6506         * src/z80/gen.c (aopPut): fixed bug #1103902
6507
6508 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6509
6510         * device/lib/expf.c: fixed bug #1095792
6511
6512 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6513
6514         * device/lib/pic16/libm: added Math library sources
6515
6516 2005-01-24 Raphael Neider <rneider AT web.de>
6517
6518         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6519           to enable upcast to pCodeOpReg2 (there is no type tag to
6520           differenciate the two and pic16_popGet2p cast into PCOR2)
6521         * src/pic16/main.c (_process_pragma): fixed another malloc bug
6522           (sizeof(sectNames) changed to sizeof(sectName))
6523           Both patches fix segfaults under MinGW.
6524
6525 2005-01-23 Raphael Neider <rneider AT web.de>
6526
6527         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6528           Safe_[mc]?alloc()'ed variables
6529         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6530           of (byte sized) temporaries (assign them to WREG for now)
6531         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6532           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6533           this might fix SIGSEGVs on MinGW...
6534         * src/SDCCopt.c (killDeadCode): restored original behaviour
6535           (volatile operands might get thrown away though)
6536
6537 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6538
6539         * src/pic16/gen.c: fixed bug #1106975,
6540         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6541         pointer update, INTCON is saved, global interrupts are disabled and
6542         restored after updateing TOS.
6543         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6544         * added function attribute 'shadowregs' to take advantage of shadow
6545         registers,
6546         * added function attribute 'wparam' as an alternative to the wparam
6547         pragma,
6548         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6549         user declares a non-ISR function as 'shadowregs',
6550         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6551
6552 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6553
6554         * .version: bumped version number to 2.4.8
6555         * device/lib/pic16/pics.all: list of PIC18F devices supported by
6556         pic16 port,
6557         * device/lib/pic16/libio/i2c/: I2C module support library,
6558         * device/include/pic16/i2c.h: I2C support library header,
6559         * device/lib/pic16/libc/stdio/: standard IO support sources,
6560         * (printf_small.c): printf_small() source, supports float print,
6561         * (printf_tiny.c): printf_tiny() source, does not support floats,
6562         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6563         enable global optimizations for entire library source, other
6564         Makefiles in the source tree are also modified to reflect this,
6565         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6566         function,
6567         * doc/sdccman.lyx: updated to reflect new changes,
6568         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6569         sym->onStack if-case,
6570         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6571         sbit, idata, _idata, xdata, _xdata,
6572         * added pragma library, to link an external library, (see doc),
6573         * removed command line options, --pomit-config-words, --pomit-ivt,
6574         --pleave-reset-vector,
6575         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6576         when calling assembler to reflect memory model used, also define
6577         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6578         reflect stack model used,
6579         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6580         on stack return NULL,
6581
6582 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6583
6584         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6585           of the operands is volatile. Fixes #1020220
6586
6587 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6588
6589         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6590         * (OptimizeRegUsage): make sure that there is really no other flow where
6591           the first pCode is used
6592
6593 2005-01-22 Raphael Neider <rneider AT web.de>
6594
6595         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6596           to fix #1106967 (pCode->seq are not set up correctly)
6597
6598 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6599
6600         * src/SDCCglue.c (glue): make sure code area is declared before the
6601         static initialization area.
6602
6603 2005-01-21 Raphael Neider <rneider AT web.de>
6604
6605         * device/lib/Makefile.in: fixed test for pic16 install dir
6606         * device/lib/pic16/*/Makefile*: modified compile flags to enable
6607           optimizations
6608         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6609           added --optimize-goto compiler switch and pragma wparam documentation
6610         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6611         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6612           and PRODH closing bug #1071770 (peephole optimizer)
6613
6614 2005-01-19 Raphael Neider <rneider AT web.de>
6615
6616         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6617           cmdLine buffers (used when calling sdcpp...) are large enough
6618           (MAX_PATH=256 truncates arguments leading to system halts when
6619           used in MinGW...)
6620         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6621         * (genUminus): rewritten to for efficiency
6622         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6623           used uninitialized in some cases)
6624         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6625           copy the third byte from the int -- now assumes 0x80 (data memory)
6626         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6627           operands (genAddLit expects the iCode's operands to swapped as
6628           well), fixed leftover bytes (crashed for short left operands)
6629         * (pic16_genMinusDec): performance improvements, removed false
6630           PIC14 emitSKPNCs
6631         * (pic16_genMinus): fixed to cope with differently sized operands
6632         * src/pic16/glue.c (pic16_glue): added new banksel optimization
6633           for --obanksel > 1
6634         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6635         * src/pic16/graph.[ch]: implementation of directed graphs, used by
6636           new banksel optimization
6637         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6638           analysis for temporary registers (segfaults...)
6639         * src/pic16/peeph.def: added rule
6640
6641 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6642
6643         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6644         which converts a float number to its ASCII representation
6645         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6646         functions to convert the fractional and integer part of a float to ASCII,
6647         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6648         realloc.c): added _MALLOC_SPEC to explicit place variables in data
6649         ram
6650         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6651         _STATMEM macros,
6652         * device/include/pic16/adc.h: added GPL info,
6653         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6654         a pCodeOp as tested operand,
6655         * (genNearPointerGet): optimized bit testing, does not use
6656         intermediate register for bit value, test directly instead with
6657         BTFSS, BTFSC, works only for single bits,
6658         * (genpic16Code): dump the name of the iCode in the asm,
6659         * src/pic16/ralloc.c (decodeOp): removed static declaration and
6660         renamed to pic16_decodeOp,
6661         * (serialRegAssign): do not allocate a temporary register for iCode
6662         sequences that test a single bit for 1/0
6663
6664 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6665
6666         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6667         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6668         access stack and frame pointers. They are initially assigned to
6669         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6670         accessing SFRs. Updated all occurences of modification of stack or
6671         frame pointer in gen.c and pcode.c,
6672         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6673         assigning of a literal value to pointers,
6674         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6675         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6676         selected
6677
6678 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6679
6680         * doc/sdccman.lyx: update documentation about stack pragma, added
6681         some info for stack memory models
6682
6683 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6684
6685         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6686
6687 2005-01-08 Raphael Neider <rneider AT web.de>
6688
6689         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6690           udata sections to fix bug #1097823
6691
6692 2005-01-05 Raphael Neider <rneider AT web.de>
6693
6694         * src/pic16/gen.c (genGenericShift): added handling of differently
6695           sized left operand and result
6696
6697 2005-01-04 Raphael Neider <rneider AT web.de>
6698
6699         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
6700         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
6701           to hold the condition bit)
6702         * added new version of genCmp (old code available via #define)
6703         * added new version of genShiftLeft/genShiftRight in a generic
6704           way, now supports shifting by negative values
6705         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
6706           shiftCount (expected by genGenericShift)
6707         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
6708         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
6709           dump
6710         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
6711           is an invalid literal too...)
6712
6713 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
6714
6715         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
6716         from Raphael Neider,
6717         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
6718         for 8-bit literals. This fixes some literal operands which are sign
6719         extended to 16-bits ints when instruction needs only 8-bits.
6720
6721 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
6722
6723         * device/lib/logf.c: added mcs51 assembly version
6724         * device/lib/expf.c: added mcs51 assembly version
6725         * device/lib/_logexpf.c: new shared asm code for expf and logf
6726         * device/include/math.h: add defines for assembly math library
6727         * device/lib/Makefile.in: build new _logexpf.c
6728         * device/lib/libfloat.lib: use new _logexpf.c
6729
6730 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6731
6732         * src/pic/device.c
6733         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
6734           device types which have less than 0x7f registers.
6735
6736 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6737
6738         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
6739
6740 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6741
6742         * device/lib/printf_fast.c: only build on supported arch.
6743         * device/lib/printf_tiny.c: only build on supported arch.
6744         * device/lib/printf_fast_f.c: only build if asm float lib
6745         * device/lib/_fsget1arg.c: only build if asm float lib
6746         * device/lib/_fsget2args.c: only build if asm float lib
6747         * device/lib/_fsnormalize.c: only build if asm float lib
6748         * device/lib/_fsreturnval.c: only build if asm float lib
6749         * device/lib/_fsrshift.c: only build if asm float lib
6750         * device/lib/_fsswapargs.c: only build if asm float lib
6751         * device/include/stdio.h: don't provide print_fast,
6752           print_fast_f, print_tiny prototypes if --xstack used
6753
6754 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
6755
6756         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
6757         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
6758           to the SOURCES
6759
6760 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6761
6762         * device/lib/printf_fast_f.c: same as printf_fast, but
6763           with floating point enabled
6764         * device/lib/printf_fast.c: minor tweaks
6765         * device/include/stdio.h: add printf_fast_f
6766
6767 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6768
6769         * src/SDCCmain.c: make --float-reent default for mcs51
6770         * device/lib/_fsadd.c: added mcs51 assembly version
6771         * device/lib/_fssub.c: added mcs51 assembly version
6772         * device/lib/_fsmul.c: added mcs51 assembly version
6773         * device/lib/_fsdiv.c: added mcs51 assembly version
6774         * device/lib/_fseq.c: added mcs51 assembly version
6775         * device/lib/_fsneq.c: added mcs51 assembly version
6776         * device/lib/_fsgt.c: added mcs51 assembly version
6777         * device/lib/_fslt.c: added mcs51 assembly version
6778         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
6779         * device/lib/Makefile.in: add _fscmp to build
6780         * device/lib/libfloat.lib: add _fscmp to build
6781
6782 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6783
6784         * device/lib/_fs2slong.c: added mcs51 assembly version
6785         * device/lib/_fs2sint.c: added mcs51 assembly version
6786         * device/lib/_fs2schar.c: added mcs51 assembly version
6787         * device/lib/_fs2ulong.c: added mcs51 assembly version
6788         * device/lib/_fs2uint.c: added mcs51 assembly version
6789         * device/lib/_fs2uchar.c: added mcs51 assembly version
6790         * device/lib/_slong2fs.c: added mcs51 assembly version
6791         * device/lib/_sint2fs.c: added mcs51 assembly version
6792         * device/lib/_schar2fs.c: added mcs51 assembly version
6793         * device/lib/_ulong2fs.c: added mcs51 assembly version
6794         * device/lib/_uint2fs.c: added mcs51 assembly version
6795         * device/lib/_uchar2fs.c: added mcs51 assembly version
6796         * device/include/float.h: added #define to select asm vs c
6797
6798 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
6799
6800         * device/lib/printf_fast.c: improvements to float output
6801         * device/include/float.h: add defines for assembly float library
6802         * device/lib/_fsget1arg.c: receive 1 float arg
6803         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
6804         * device/lib/_fsnormalize.c: normalize a float
6805         * device/lib/_fsreturnval.c: return float, various helper routines
6806         * device/lib/_fsrshift.c: right shift a float's mantissa
6807         * device/lib/_fsswapargs.c: swap 2 floats
6808         * device/lib/Makefile.in: build these 6 new files for mcs51
6809         * device/lib/libfloat.lib: add these 6 files to the library
6810
6811 2004-12-26 Borut Razem <borut.razem AT siol.net>
6812
6813         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
6814           built by gcc 3.4.2
6815
6816 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
6817
6818         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
6819           and fully reentrant and register bank neutral.
6820         * device/lib/printf_fast.c: added float (not enabled by default),
6821           added compact/slower integer (also not enabled by default),
6822           improved size/speed of fast integer code, other minor changes
6823         * device/include/stdio.h, device/lib/Makefile.in,
6824           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
6825
6826 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
6827
6828         * src/pic16/pcode.c: declaring variables other than at the start of a
6829           block is not supported in C by VC6.
6830
6831 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
6832
6833         * applied a previous patch from Raphael Neider that wasn't included
6834         in the previous commits, which fixes infinite loops within jumptable
6835         improvements,
6836         * made some fixes that previous patches introduced
6837
6838 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
6839
6840         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
6841         that fixes an issue with AOP_PCODE asmop's offset,
6842         * (pic16_popCopyReg): update instance field too,
6843         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
6844         function of pic port,
6845         * (genCmp, genAnd, genAssign),
6846         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
6847
6848 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
6849
6850         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
6851         variables initial values to idata section,
6852         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
6853         variables in some functions. This utilizes parmBytes field of iCode
6854         structure to hold the offset of the variable in stack. (might be
6855         able to use the stack field too?)
6856         * applied patch from Raphael Neider # ### , # ###
6857         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
6858         variable initial values in idata section,
6859         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
6860         for static variables with initial value
6861         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
6862         applied fix in while loop from Raphael Neider.
6863
6864 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
6865
6866         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
6867         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
6868         * src/ds390/ralloc.c (serialRegAssign): spill bits
6869         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
6870         * support/Util/SDCCerr.c,
6871         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
6872         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
6873         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
6874
6875 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
6876
6877         * device/include/sdcc-lib.h: inserted LGPL, added includes
6878           asm/ds390/features.h and asm/mcs51/features.h
6879         * device/include/asm/default/features.h,
6880         * device/include/asm/gbz80/features.h,
6881         * device/include/asm/z80/features.h: added empty _AUTOMEM
6882           and _STATMEM
6883         * device/include/asm/ds390/features.h,
6884         * device/include/asm/mcs51/features.h: added files with defines for
6885           _AUTOMEM and _STATMEM indicating automatic and static storage class
6886         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
6887         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
6888         * src/SDCCicode.c (geniCodeCast),
6889         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
6890         * src/SDCCloop.c (loopInduction): removed unused variable lr
6891         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
6892           to convertToFcall to include char modulo (RFE 1065037), added check
6893           if left operand is unsigned and use abs of literal value
6894         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
6895           as it doesn't work after conversion from peephole.def to peephole.rul
6896         * src/mcs51/gen.c (toBoolean): added check for size,
6897           (genModOneByte): optimized code for signed char modulo a literal
6898           power of 2 (thanks to Hubert Sack),
6899           (genRRC): removed unnecessary "clr c",
6900           (genRLC): replaced "add a,acc" with cheaper "rlc a"
6901         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
6902           jump optimization,
6903           swapped rules 256.c and 256.d,
6904           extended 256.d by using new multiple checks (thanks Erik),
6905           added rules 256.e and 256.f,
6906           updated rule 261.a and 261.b to new generated code
6907         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
6908
6909 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6910
6911         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
6912           induction related bugs, including first part of bug #1074377
6913
6914 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
6915
6916         * applied patch from bug-report #1076292,
6917         * applied patches for genAnd and Goto-optimizations for Raphael
6918         Neider,
6919         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
6920         dump a less iCode information,
6921         * src/pic16/device.h (pic16_options_t): added field debgen,
6922         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
6923         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
6924         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
6925         puclic,
6926         * (various functions): added macros FENTRY and FENTRY2 to functions,
6927         to emit function prologue,
6928         * (various functions): fixed indentation,
6929         * (genNearPointerGet): fixed loading of FSR0,
6930         * (genPackBits): applied patch from Raphael Neider to fix updating
6931         of FSR0 and touching only the modified bits,
6932         * src/pic16/genarith.c (various functions): added macros FENTRY to
6933         emit function prologue in comments,
6934         * src/pic16/pcode.h: added functions debugf2, debugf3,
6935         * src/pic16/ralloc.c: partial fix for packForPush caused
6936         segmentation fault,
6937
6938 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6939
6940         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
6941           <stsp AT users.sourceforge.net> with reversed byte order
6942         * support/regression/tests/rotate.c: added (ds390 skips some tests)
6943
6944 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6945
6946         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
6947           bug #1074377
6948         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
6949         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
6950
6951 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
6952
6953         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
6954
6955 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6956
6957         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
6958           conditions,
6959           (setFromConditionArgs): friendly operand parser for peephole rules,
6960           (operandBaseName, operandsNotRelated): new peephole condition
6961           "operandsNotRelated" -- similar to "operandsNotSame", but takes
6962           architecture specific register naming into account, handles n-way
6963           comparisons, and supports quoted literals
6964         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
6965
6966 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6967
6968         * src/mcs51/peeph.def: fixed bug #1076940
6969
6970 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
6971
6972         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
6973
6974 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6975
6976         Adding support for replacing ljmps with sjmps in jumptables
6977         generated for switch statements. For now you need to set the
6978         environment variable SDCC_SJMP_JUMPTABLE to enable this.
6979         Now 4 algorithms for mcs51 jumptable generation are used:
6980         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
6981         addresses loaded pc-relative for up to 112 cases and stack-pushing
6982         target addresses loaded with offset from dptr for up to 256 cases.
6983
6984         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
6985         * src/mcs51/main.c: adapted constants for switch table generation
6986         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
6987
6988 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
6989
6990         * device/lib/printf_large.c (_print_format): fixed bug 1073386
6991         * support/regression/tests/bug1057979.c: added test for bug 1073386
6992
6993 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
6994
6995         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
6996         compilers
6997
6998 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
6999
7000         * src/pic16/device.h,
7001         * src/pic16/genarith.c,
7002         * src/pic16/glue.c,
7003         * src/pic16/main.c,
7004         * src/pic16/pcode.c: applied patches #1068154 and #1070213
7005
7006 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
7007
7008         Large cummulative patch for pic16 port.
7009         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
7010         to call when a stack overflow occurs,
7011         * (malloc.h): added CVS Id tag,
7012         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
7013         variable,
7014         * added libc directory. The current version of LibC contains string
7015         functions, ctype functions and macros and some functions of the
7016         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
7017         be extensively tested in the future. Standard disclaimer here.
7018         Library is not automatically build yet. But one can build it by
7019         invoking 'make' inside the libc directory.
7020         * added ADC library under libio. Preliminary version yet.
7021
7022         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
7023         * src/pic16/gen.c (aopForRemat): asmop size is filled by
7024         aopForRemat() now and not by pic16_aopOp(),
7025         * (pic16_popGetTempReg): removed warning messgae when allocating
7026         temporary registers, its a buggy feature and will be removed,
7027         * (pic16_popGet): set register instance field in AOP_CRY,
7028         * (pic16_outBitC): fixed for results in size greater than 1,
7029         * (genUminusFloat): fixed for pic16, ported code from mcs51,
7030         * (pic16_storeForReturn): optimized return of 0,
7031         * (genCmp): experimental code for new genCmp which uses PIC18's
7032         special compare&skip instructions. Initial tests fail some times
7033         with variables grater than 1 byte in size, so new code is disabled,
7034         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
7035         a single bit,
7036         * (genCast): began a fix to optimize the casting of a bit to another
7037         bit, now assigning a bitfield to another bitfield will fail, sorry,
7038         * src/pic16/main.c: disabled the use of lr-support feature,
7039         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
7040         * added some function prototypes, added function _debugf prototype,
7041         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
7042         bits with offset (case PO_GPR_BIT),
7043         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
7044         command line,
7045         * (isBankInstruction): modified to return 0 for no banking instruction,
7046         and 1 for banking instruction,
7047         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
7048         caused stop processing pCodes after a inline assembly block,
7049         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
7050         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
7051         registers when it shouldn't,
7052         * src/pic16/ralloc.c (allocReg): add preliminary support for
7053         supporting a limited set of temporary registers,
7054
7055 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7056
7057         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7058           genDataPointerSet): ensure assignments always copy in MSB to LSB
7059           order,
7060           (loadRegFromAop): recognize CLRH optimization,
7061           (genFunction): optimize RECEIVE iCodes in reentrant functions
7062
7063 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7064
7065         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7066           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7067           selected.
7068         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7069         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7070           contiguous with data
7071
7072 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7073
7074         * device/lib/_gptrget.c (_gptrget),
7075         * device/lib/_gptrgetc.c (_gptrgetc),
7076         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7077           instead of sjmp to ret
7078         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7079           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7080
7081 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7082
7083         * .version: bumped version to 2.4.7
7084         * device/lib/_gptrget.c (_gptrget): is now _naked
7085         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7086         * device/lib/_gptrput.c (_gptrput): is now _naked
7087         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7088           (createFunction): fixed xstack
7089         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7090         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7091           or bit either,
7092           (geniCodeCritical): store original interrupt state in an iTemp bit
7093           var unless stack-auto
7094         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7095         * src/SDCCmain.c (setIncludePath): added include/target to search path
7096         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7097         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7098           prototype,
7099           (processFuncArgs): put bit vars in bit area
7100         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7101           unsaveRBank): fixed xstack,
7102           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7103           (genFunction, genEndFunction): fixed xstack,
7104           (genAssign): optimization don't walk backwards through mem
7105         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7106         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7107         * support/regression/Makefile: also make library (for stack-auto) when
7108           making "all" and added "test-mcs51-xstack-auto"
7109         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7110         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7111         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7112         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7113         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7114           make-library by MAKE_LIBRARY
7115         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7116           regression tests for xstack
7117         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7118         * support/regression/tests/critical.c: test for critical on mcs51
7119
7120 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7121
7122         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7123           built version of sdcc instead of installed version
7124
7125 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7126
7127         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7128         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7129           vprintf.c now
7130         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7131         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7132           WARNING: remove device/lib/build/z80/printf.o by hand when
7133           updating from previous build!
7134         * device/lib/z80/printf.c: updated comment
7135         * support/regression/tests/bug1057979.c: test all ports now
7136         * support/regression/tests/bug1065458.c: file added
7137
7138 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7139
7140         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7141           *_start and *_end symbols for static functions
7142
7143 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7144
7145         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7146           and search crt0.o in all library paths,
7147           (setIncludePath): proper handling of --nostdinc,
7148           (setLibPath): proper handling of --nostdlib
7149         * support/regression/Makefile,
7150         * support/regression/ports/ds390/spec.mk,
7151         * support/regression/ports/gbz80/spec.mk,
7152         * support/regression/ports/hc08/spec.mk,
7153         * support/regression/ports/mcs51/spec.mk,
7154         * support/regression/ports/mcs51-large/spec.mk,
7155         * support/regression/ports/mcs51-stack-auto/spec.mk,
7156         * support/regression/ports/z80/spec.mk: use include and lib files from
7157           built version of sdcc instead of installed version
7158         * doc/sdccman.lyx: fixed typo in --nostdinc
7159
7160 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7161
7162         * src/pic/pcode.c,
7163         * src/pic/device.c,
7164         * src/pic/ralloc.c,
7165         * src/pic/gen.c : added support to generate code for struct bit fields.
7166
7167 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7168
7169         * as/xa51/xa_version.h,
7170         * device/include/errno.h,
7171         * device/include/regc515c.h,
7172         * device/lib/_itoa.c,
7173         * device/lib/_ltoa.c,
7174         * device/lib/ser_ir_cts_rts.c,
7175         * sim/ucsim/xa.src/glob.cc,
7176         * sim/ucsim/xa.src/inst_gen.cc,
7177         * sim/ucsim/xa.src/xa_bit.cc,
7178         * sim/ucsim/xa.src/xa_sfr.cc,
7179         * sim/ucsim/z80.src/inst_dd.cc,
7180         * sim/ucsim/z80.src/inst_fdcb.cc,
7181         * support/scripts/keil2sdcc.pl,
7182         * src/pic16/pic16.dsp,
7183         * src/pic16/pic16a.dsp: corrected cvs line endings
7184         * device/lib/printf_large.c: fixed bug 1057979
7185         * src/pic16/gen.c: fixed non-C standard code
7186         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7187         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7188         * support/regression/ports/mcs51/support.c: reload T1 asap
7189         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7190           pdata use and clear idata startup behaviour
7191         * support/regression/tests/bug1057979.c: added
7192
7193 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7194
7195         * device/examples/ds390/ow390/ad26.h,
7196         * device/examples/ds390/ow390/cnt1d.h,
7197         * device/examples/ds390/ow390/crcutil.c,
7198         * device/examples/ds390/ow390/ownet.h,
7199         * device/examples/ds390/ow390/owsesu.c,
7200         * device/examples/ds390/ow390/swt12.h,
7201         * device/examples/ds390/ow390/swtoper.c,
7202         * device/examples/ds390/ow390/temp10.h,
7203         * device/examples/ds390/ow390/thermodl.c,
7204         * device/examples/ds390/tinitalk/tinitalk.dsp,
7205         * device/examples/ds390/tinitalk/tinitalk.dsw,
7206         * device/examples/mcs51/clock/hw.h,
7207         * device/examples/mcs51/simple2/go.bat,
7208         * device/examples/serialcomm/windows/serial.h,
7209         * device/examples/xa51/dummy.c,
7210         * device/examples/xa51/hello.c,
7211         * device/include/80c51xa.h,
7212         * device/include/at89x051.h: corrected cvs line endings
7213
7214 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7215
7216         * src/pic16/main.c (options): added command line --gstack, to trace
7217         stack over/under flows,
7218         * added pragma 'wparam' to allow passing first byte of function
7219         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7220         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7221         call to __gstack_test function and sets up the symbol as extern,
7222         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7223         * popaop): added call to pic16_testStackOverflow,
7224         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7225         wparamList list,
7226         * (genCall, genPcall): now all parameters are passed via stack
7227         except in functions that are pass to wparam pragma in which WREG is
7228         used too,
7229         * (genPcall): REENTRANT flag is checked to see if variable prototype
7230         contains reentrant keyword, don't call a non-reentrant function, via
7231         a reentrant function pointer or vice versa, functions are never
7232         passed via WREG,
7233         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7234         D.Winkler,
7235         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7236         SIGSEGV when accessing a NULL register stucture,
7237         * (pic16_printGPointerType): modified to handle UPPER modifier for
7238         function initializers, changed prototype of function to simpler one,
7239         * (pic16_printIvalFuncPtr): check to see if function is already
7240         added in externs list,
7241         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7242         optimized a move from W to SFR with a move to the same register
7243         later after a CALL,
7244         * device/lib/pic16/debug: NEW directory, contains debug features
7245         which are enabled when linking with libdebug.lib, currently command
7246         line option --gstack enables stack pointer tracing for over/under
7247         flow, corresponding sources are in debug/gstack
7248
7249 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7250
7251         * doc/sdccman.lyx: updated SDCC version,
7252         * (PIC16 port): update list of command line options,
7253         * src/pic16/device.h (structure pic16_options_t): added field gstack
7254         to enable stack overflow tracing on push/pops,
7255         * src/pic16/device.c (statistics structure): added statistics
7256         structure,
7257         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7258         pic16_dump_int_registers): increase statistics counters for each
7259         * variable which is encountered
7260         * (pic16_dump_usection): emit each .udata variable to its own udata
7261         section,
7262         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7263         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7264         parameters via stack, otherwise use old scheme,
7265         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7266         assembler output file,
7267         * src/pic16/main.c: added command line options --gstack to enable
7268         push/pop tracing for stack overflow,
7269         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7270         instructions): added size of each instruction,
7271         * (pic16_countInstruction): estimate size of instructions in
7272         the_pFile list, inline assembly blocks are not counted,
7273         * (pic16_FixRegisterBanking): trace previous register usage, when
7274         banksel optimizations is greater than 0, don't emit a redudant
7275         banksel directive,
7276
7277 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7278
7279         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7280         * src/pic16/ralloc.c : applied same fix for pic16.
7281         * src/pic/gen.c : tidied it up a little.
7282
7283 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7284
7285         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7286         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7287
7288 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7289
7290         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7291
7292 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7293
7294         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7295         non-reentrant function __modsint in the interrupt function (thus
7296         corrupting math operations during serial I/O)
7297         * device/lib/ser_ir.c: as above, changed buffersize
7298         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7299         256.c,d for zeroing
7300         * doc/Makefile: added option -t for rsync
7301
7302 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7303
7304         * src/SDCCast.h (struct ast),
7305         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7306
7307 2004-10-20 Borut Razem <borut.razem AT siol.net>
7308
7309         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7310         package
7311
7312 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7313
7314         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7315         makefile targets,
7316         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7317         support functions to replace long sequences of MOVFF's from access
7318         bank registers to stack and vice versa,
7319         * src/pic16/device.h: added new field opt_flags, where optimization
7320         flags can be set to enable certain features,
7321         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7322         * pBlock, (genFunction, genEndFunction): surroung loop for
7323         saving/loading used registers in stack with PC_INFO pCodes,
7324         INF_LREGS. Code in between can then be optimized by pCode optimizer
7325         to support function calls,
7326         * (genDataPointerSet): fixed bug which loaded float fields in
7327         structures with corrupt data,
7328         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7329         in a standard way debug info on stderr. Feature used for developing
7330         and debugging only,
7331         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7332         obsolete chunks of code,
7333         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7334         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7335         * pic16/src/pcode.c (pic16_newpCodeInfo,
7336         * (pic16_newpCodeOpLocalRegs),
7337         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7338         feature,
7339         * (pic16_pCodeConstString): printing of the initial value of a
7340         symbol as a comment is inhibited since parsing was already done by
7341         copyStr and output is corrupt,
7342         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7343
7344 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7345
7346         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7347
7348 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7349
7350         * as/mcs51/lkarea.c: removed old K&R style,
7351           (lnksect): changed check on boundary error,
7352           (lnksect2): changed check on boundary error,
7353           (lnksect2): extend XSTK to end of page if size = 1
7354         * as/mcs51/lkmain.c: removed old K&R style,
7355           (Areas51): create l_IRAM symbol
7356         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7357         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7358           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7359         * device/lib/_mullong.c: added version to be compiled with xstack
7360         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7361         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7362         * device/lib/mcs51/crtxstack.asm: fixed comment
7363         * src/SDCCglue.c: maxInterrupts defaults to 0,
7364           (emitMaps): added pdata,
7365           (createInterruptVect): (re)moved default,
7366           (glue): added pdata,
7367           (glue): moved __start__xstack to XSTK with default size 1
7368         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7369           and options.float_rent when options.stackAuto is set,
7370           (linkEdit): only write XDATA_NAME if provided on command line
7371         * src/SDCCmem.h,
7372         * src/SDCCmem.c: added pdata
7373         * src/port.h: added pdata_name to PORT
7374         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7375           (saveRegisters, unsaveRegisters): removed usage of B,
7376           (genMinus): fixed accumulator clash,
7377           (genJumpTab): added comment, this needs another look
7378         * src/mcs51/gen.c: added check for "B in use" paranoia,
7379           added pushB() and popB()
7380         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7381           chance
7382         * src/avr/main.c,
7383         * src/ds390/main.c,
7384         * src/hc08/main.c,
7385         * src/mcs51/main.c,
7386         * src/pic/main.c,
7387         * src/pic16/main.c,
7388         * src/xa51/main.c,
7389         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7390           added PSEG (PAG,XDATA) or NULL to port specifier
7391         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7392         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7393           (_mcs51_genInitStartup): removed __start__xstack equ,
7394           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7395         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7396         * src/z80/gen.c (_rleAppend): fixed warnings
7397         * support/regression/tests/zeropad.c: added pdata test
7398         * .version: bumped to 2.4.6
7399
7400 2004-10-17 Borut Razem <borut.razem AT siol.net>
7401
7402         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7403         as a part of nightly build
7404
7405 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7406
7407         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7408         WREG holds the first byte function parameters,
7409         * (aopForSym): take special case for symbols which are in FARSPACE
7410         but in CODESPACE too,
7411         * (assignResultValue): modified to take into account _G.useWreg,
7412         * (genCall): don't use wreg for parameter passing when function is
7413         declared as reentrant, too, added optimization INCF to stack
7414         pointer when stack parameter count is 1,
7415         * (genFunction, genEndFunction): refurnished and fixed to not using
7416         wreg for passing parameters when function has varargs or is
7417         reentrant, fixed bug with symbol name compare for generating
7418         functions in absolute address,
7419         * (pic16_storeForReturn): refurnished,
7420         * (genCmp): began writing a new version of the function, not ready
7421         yet, therefore it is disabled,
7422         * (genAssign): do not read code memory when assigning a function to
7423         a pointer function,
7424         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7425         array of characters, not pointer,
7426         * (pic16initialComments): in debug mode emit an .ident directive for
7427         the assembler,
7428         * (_process_pragma): emit a new warning type (internal to pic16)
7429         when setting stack to default length, emit a similar warning when
7430         placing a function at absolute address and address is not word aligned
7431         * (_pic16_parseOptions): added 'return TRUE' statement,
7432         * (_pic16_linkEdit): if compiling a source, then add the source's
7433         file object, first in the list of objects to link,
7434
7435 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7436
7437         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7438         * src/pic/main.c : removed VC warning.
7439         * src/pic/gen.c : changed comment.
7440
7441 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7442
7443         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7444         reference to a deprecated symbol _GPTRREG was causing failure to
7445         link. Thanks G. M. Gallant for the info.
7446
7447 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7448
7449         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7450         comments for Bugs item #954788.
7451
7452 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7453
7454         * src/pic16/device.c (pic16_dump_gsection,
7455         * pic16_groupRegistersInSection): handle symbols declared to be in
7456         access bank differently,
7457         * src/pic16/gen.c (struct _G): added field resDirect,
7458         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7459         send values read from stack directly to result and don't allocate
7460         temporary values,
7461         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7462         same registers,
7463         * (pic16_sameRegsOfs): NEW,
7464         * (freeAsmop): if _G.resDirect is set then do not mark registers as
7465         free because they were not allocated from temporary pool,
7466         * pic16_popRegFromString): workaround to fix a problem with
7467         allocating variables twice or never,
7468         * (genGenPointerGet): using PRODL instead of FSR0H,
7469         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7470         instead of FSR0H,
7471         * (genAssign): take advantage of the _G.resDirect flag,
7472         * (genCast): around line 11844, use mov2f instead of directly
7473         MOVFF'ing between operands to account for literal values,
7474         * src/pic16/genutils.c: some new debug functions for gpsim have been
7475         added,
7476         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7477         float with integer part only,
7478         * src/pic16/main.c (_process_pragma): handle pragma udata access to
7479         place variables in access bank
7480         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7481         updated sources to reflect recent changes in gen.c
7482
7483 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7484
7485         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7486         sources that searched for headers in installation path, now the
7487         device/include/pic16 is used,
7488         * src/pic16/glue.c (pic16glue),
7489         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7490         .line directives if not in debug mode, this suppresses assembler's
7491         warnings for ignored directives
7492
7493 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7494
7495         * src/port.h: made reset_regparms prototype void parameter explicit.
7496         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7497         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7498         * doc/sdccman.lyx: documented warning disabling and how to use
7499           printf_large to make it print floats.
7500         * device/include/stdbool.h: NEW
7501         * device/lib/_atof.c,
7502         * device/lib/_divuint.c,
7503         * device/lib/_divulong.c,
7504         * device/lib/expf.c,
7505         * device/lib/printf_large.c,
7506         * device/lib/sincosf.c,
7507         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7508         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7509           a completely reentrant lib.
7510
7511 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7512
7513         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7514         * device/include/pic16/stdio.h: fixed bug with colon
7515
7516 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7517
7518         * device/include/pic16/stdio.h,
7519         * device/include/pic16/stdlib.h,
7520         * device/include/pic16/math.h: NEW
7521         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7522         declared as _naked to reduce overhead
7523         * device/lib/Makefile.in (target port-specific-objects-pic16):
7524         changed * to *.* so to ignore the CVS directory,
7525         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7526         stacked variables back in stack,
7527         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7528         corruption
7529
7530 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7531
7532         * .version: bumped version number to 2.4.5
7533         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7534         * support/Util/SDCCerr.c (messages structure): added entry for
7535         W_POSSBUG2
7536
7537         Large cumulative patch for pic16 port and libraries.
7538         * device/include/pic16/sdcc-lib.h,
7539         * device/include/pic16/stdarg.h,
7540         * device/include/asm/pic16/features.h,
7541         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7542         * device/include/pic16/float.h: changes reentrant keyword with
7543         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7544         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7545         updated target build-libraries to include objects from gptr,
7546         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7547         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7548         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7549         all function headings,
7550         * src/SDCCmain.c: added global parameter userIncDirsSet,
7551         * (parseCmdLine): when option -I is encountered add directory to
7552         userIncDirsSet too,
7553         * src/version.awk: added space between control and long,
7554         * src/pic16/NOTES: added some notes for the port,
7555         * src/pic16/gen.c: added prototype for mov2fp function,
7556         * (fReturnpic16[]): properly named return value registers,
7557         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7558         * (aopForSym): added code to handle symbols with onStack flag set,
7559         symbols onStack are allocated PTRSIZE bytes,
7560         * (aopFreeAsmop): handles special case where asmops are stack objects,
7561         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7562         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7563         added argument lock to trace flaws in allocating temporary registers
7564         when developing port,
7565         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7566         * (pic16_popRegFromString): reenabled allocating a direct register
7567         from string,
7568         * (assignResultValue): various beautifications,
7569         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7570         referenced function argument,
7571         * (genIpush): reenabled to allow stacked arguments, handles only
7572         ic->parmPush iCodes,
7573         * (genCall, genPcall): major changes to allow for variable argument
7574         functions, fixed a bug with falsely restoring stack pointer after
7575         returning from call,
7576         * (genFunction): pending code for critical function,
7577         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7578         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7579         * (genNearPointerGet): fixed bug with indirect reading, was always
7580         reading from INDF0
7581         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7582         pointers,
7583         * (genAddrOf): rewrote code to take address of a stacked function parameter
7584         * (genCast): fixed casting to generic pointer type,
7585         * src/pic16/gen.h: added AOP_STA,
7586         * (struct asmop): added field stk,
7587         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7588         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7589         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7590         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7591         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7592         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7593         generic pointers,
7594         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7595         and library paths,
7596         * (pic16_port structure): generic pointer size is set to 3,
7597         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7598         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7599         compiler warning,
7600         * src/pic16/ralloc.c (allocReg): prevent allocating register when
7601         operand is an iTemp,
7602
7603 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7604
7605         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7606         * debugger/mcs51/simi.c: addapt new syntax of s51
7607
7608 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7609
7610         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7611         * src/pic16/pcode.c: commented out some calls to free() in order to
7612         fix bug #989576,
7613
7614 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7615
7616         * src/SDCCicode.h,
7617         * src/SDCCicode.c (isiCodeInFunctionCall),
7618         * src/avr/ralloc.c (selectSpil),
7619         * src/pic/ralloc.c (selectSpil),
7620         * src/pic16/ralloc.c (selectSpil),
7621         * src/ds390/ralloc.c (selectSpil),
7622         * src/hc08/ralloc.c (selectSpil),
7623         * src/xa51/ralloc.c (selectSpil),
7624         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7625         stack in the middle of a function call sequence (fixes bug #1020268)
7626         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7627         costs associated with the minimum switch case.
7628
7629 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7630
7631         * src/SDCC.lex: fixed bug #1030549
7632
7633 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7634
7635         * src/SDCCcse.h (struct cseDef),
7636         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7637         over a function call if the CSE is derived from a symbol whose
7638         address has been taken (fixes bug #1029883)
7639         * support/regression/tests/bug-1029883: a new regression test for
7640         this bug
7641
7642 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7643
7644         * src/hc08/gen.c (emitinline): fixed bug #1029778
7645         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7646         to a cast object is no longer a syntax error ("fixes" bug #1030006,
7647         and starts toward RFE #905167)
7648
7649 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7650
7651         * src/pic16/gen.c (mov2f): New function to move an operand to
7652         another without considering if it is a literal or a register,
7653         * (pic16_sameRegs): don't check if they are both AOP_REG,
7654         * (AccRsh): removed andmask=0 lines,
7655         * (genLeftShift): duplicated to be improved in future versions,
7656         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7657         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7658         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7659         * (pic16initMnemonics): added initialization for POC_INFSNZW,
7660         * (insertBankSwitch): fixed inserting banksel directives algorithm
7661         for instructions that follow a skip instruction, this fixes a report
7662         for broken subtraction code generation,
7663         * src/pic16/ralloc.c (deassignLRs): do not free register if current
7664         iCode is a left op, just in case result and right share the same
7665         registers
7666
7667 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7668
7669         * src/hc08/main.c,
7670         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7671         preservation of HX
7672         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7673         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7674         on 2004-09-12; it was buggy
7675
7676 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7677
7678         * src/SDCCsymt.h: removed RESULT_CHECK
7679         * src/SDCCast.c,
7680         * src/SDCCglue.c,
7681         * src/SDCCval.c,
7682         * src/pic/glue.c,
7683         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7684
7685 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7686
7687         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7688         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7689         configuration values no more rejected by compiler, they are assigned
7690         to configuration registers with a warning message instead,
7691         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
7692         the for-loop so last conf register is emitted too,
7693         * (_pic16_initPaths): link library libsdcc.lib by default,
7694         * (_hasNativeMulFor): modified test for multiplication according to
7695         Raphael Neider's remarks. Integer multiplication is also done with
7696         support functions,
7697         * device/include/pic16/pic18fregs.h: corrected type error in while
7698         testing and including 18f6720 header file
7699
7700 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
7701
7702         * src/pic16/device.h (pic16_options): removed field use_crt,
7703         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
7704         until an optimization to handle single bits is added,
7705         * (pic16_loadFSR0): moved before genUnpackBits,
7706         * (genAnd): some white lines removed,
7707         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
7708         leave_reset flags in pic16_options when using crt modules,
7709
7710 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
7711
7712         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
7713           for bugs 898889 & 979599. Also used some safer print instructions.
7714
7715 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
7716
7717         * src/pic16/device.h (pic16_options_t): added field use_crt,
7718         crt_name, no_crt,
7719         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
7720         catch a probable future bug,
7721         * src/pic16/gen.c: aopIdx function commented out,
7722         * (genAssign): commented out old code which used aopIdx,
7723         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
7724         code, added if conditionals to take into account the --use-crt
7725         command line options,
7726         * src/pic16/main.c (pic16_optionsTable): added new command line
7727         options, --use-crt= and --no-crt,
7728         * (_pic16_linkEdit): now the proper crt object is added in the
7729         linker command line except than when --no-crt is specified,
7730         * src/pic16/pcode.c,
7731         * src/pic16/pcode.h: added some structures and functions for a new
7732         optimization scheme to compansate for instruction overhead between
7733         same iCodes, this scheme is currently under development and is not
7734         working in any way,
7735         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
7736         to && operator,
7737         * device/lib/pic16/startup/crt0i.c,
7738         * device/lib/pic16/startup/crt0iz.c: added global char variable
7739         __uflags to force the generation of an idata section
7740
7741 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
7742
7743         * doc/Makefile,
7744         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
7745         * doc/sdccman.lyx: updated sdcc version to 2.4.4
7746
7747 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7748
7749         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
7750         Frieder) and clarified the default code optimization mode
7751
7752 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7753
7754         * src/SDCC.lex (doPragma, process_pragma),
7755         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
7756         "opt_code_size", and "opt_code_balanced"
7757         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
7758         regrouped options by category, added support for category headers
7759         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
7760         and "--opt-code-size"
7761         * doc/sdccman.lyx: documented these new options and pragmas
7762         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
7763         preference into account
7764
7765 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7766
7767         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
7768           geniCodePreDec): Fixed bug 904237 by generating a warning
7769         * src/SDCCerr.h,
7770         * src/SDCCerr.c: added warning W_SIZEOF_VOID
7771
7772 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
7773
7774         * src/pic/device.c : When no max ram set validate full memory range.
7775         * src/pic/pcode.c,
7776         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
7777
7778 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7779
7780         * device/lib/_gptrget.c,
7781         * device/lib/_gptrput.c: updated comment
7782         * device/lib/calloc.c,
7783         * device/lib/free.c,
7784         * device/lib/malloc.c,
7785         * device/lib/realloc.c: added LGPL, made them reentrant-safe
7786         * src/SDCCcse.c (cseBBlock),
7787         * src/SDCCicode.c (printOperand, geniCodeArray),
7788         * src/SDCCicode.h (struct operand): fixed bug 868103
7789         * support/regression/tests/bug-868103.c: added
7790         * src/SDCCast.c (searchLitOp),
7791         * src/SDCCcse.h (struct cseDef),
7792         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
7793         * src/SDCCicode.h (struct operand),
7794         * src/SDCCsymt.h (struct sym_link),
7795         * src/avr/gen.c (hasInc),
7796         * src/ds390/gen.c (hasInc),
7797         * src/hc08/gen.c (genPlusIncr, hasInc),
7798         * src/mcs51/gen.c (hasInc),
7799         * src/pic16/glue.c (pic16_printIvalChar),
7800         * src/pic16/ralloc.c (regWithIdx),
7801         * src/xa51/gen.c (hasInc) : removed warnings
7802         * src/SDCCast.c (createBlock): added comment ???
7803         * src/hc08/ralloc.c: updated comments
7804
7805 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7806
7807         * doc/sdccman.lyx: updated section on switch statements, added
7808         section about semaphore locking
7809         * doc/Makefile: added option -info for latex2html
7810         * device/lib/_gptrget.c,
7811         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
7812
7813 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7814
7815         * src/pic/device.h,
7816         * src/pic/device.c,
7817         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
7818          maxram is less than 0x100.
7819
7820 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7821
7822         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
7823
7824 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7825
7826         * src/port.h,
7827         * src/mcs51/main.c,
7828         * src/ds390/main.c,
7829         * src/z80/main.c,
7830         * src/hc08/main.c,
7831         * src/pic/main.c,
7832         * src/pic16/main.c,
7833         * src/avr/main.c,
7834         * src/xa51/main.c
7835         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
7836         a jump table is the best form for a switch statement, including
7837         automatic insertion of missing cases to make the case range
7838         continuous. Developed in collaboration with Frieder Ferlemann.
7839
7840 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7841
7842         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
7843         accumulator result if it needs sign extension
7844
7845 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7846
7847         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
7848
7849 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7850
7851         * device/lib/gbz80/printf.c,
7852         * device/lib/z80/printf.c: removed define for NULL
7853
7854 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7855
7856         * as/xa51/xa_link.c,
7857         * device/examples/ds390/ow390/ad26.c,
7858         * device/examples/ds390/ow390/cnt1d.c,
7859         * device/examples/ds390/ow390/counter.c,
7860         * device/examples/ds390/ow390/ds2480.h,
7861         * device/examples/ds390/ow390/ds2480ut.c,
7862         * device/examples/ds390/ow390/findtype.c,
7863         * device/examples/ds390/ow390/gethumd.c,
7864         * device/examples/ds390/ow390/owllu.c,
7865         * device/examples/ds390/ow390/ownetu.c,
7866         * device/examples/ds390/ow390/swt12.c,
7867         * device/examples/ds390/ow390/swtloop.c,
7868         * device/examples/ds390/ow390/temp.c,
7869         * device/examples/ds390/ow390/temp10.c,
7870         * device/examples/ds390/ow390/thermo21.c,
7871         * device/examples/ds390/ow390/tinilnk.c,
7872         * device/examples/ds390/ow390/tstfind.c,
7873         * device/examples/serialcomm/windows/serial.cpp,
7874         * device/examples/serialcomm/windows/test_serialcomm.cpp,
7875         * device/include/reg51.h: fixed line endings for cvs
7876
7877 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7878
7879         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
7880         packRegsForAccUse, packRegisters): new accumulator register
7881         packing algorithm
7882         * support/regression/ports/hc08/support.c (_putchar): suppress
7883         warning of unused variable
7884         * src/SDCCicode.c: added SWAP entry to codeTable
7885
7886 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
7887
7888         * device/lib/sprintf.c: forgot to add this file before previous commit
7889
7890 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
7891
7892         * src/pic16/gen.c (genPackBits): added operand right in function
7893         parameters, load result directly if p_type is POINTER (that is
7894         called by genNearPointerSet)
7895         * (genUnPackBits): added operand left in function parameters,
7896         * (genNearPointerGet, genNearPointerSet): prevent the loading of
7897         FSR0 if accessing bitfields,
7898
7899 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
7900
7901         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
7902           _print_format; updated printf, sprintf, vsprintf
7903         * device/include/asm/default/features.h: corrected comment/define
7904         * device/lib/Makefile.in: added sprintf.c
7905         * device/lib/libsdcc.lib: added sprintf module
7906         * device/lib/printf_large.c,
7907         * device/lib/vprintf.c,
7908         * device/lib/sprintf.c: totally refactored printf_large and vprintf
7909           into these 3 files
7910         * support/regression/Makefile: changed ALL_PORTS into a usefull default
7911         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
7912         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
7913           hc08 test
7914         * support/regression/tests/zeropad.c: define idata as data for hc08
7915
7916 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7917
7918         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
7919         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
7920         labels are referenced at least once (even if a reference is not found)
7921         * src/hc08/gen.c (emitcode): set isComment flag for comments
7922         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
7923         loads), rules 6a..6b (optimize jumps to return)
7924
7925 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7926
7927         * device/lib/acosf.c (acosf),
7928         * device/lib/asinf.c (asinf),
7929         * device/lib/atanf.c (atanf),
7930         * device/lib/ceilf.c (ceilf),
7931         * device/lib/cosf.c (cosf),
7932         * device/lib/coshf.c (coshf),
7933         * device/lib/cotf.c (cotf),
7934         * device/lib/fabsf.c (fabsf),
7935         * device/lib/floorf.c (floorf),
7936         * device/lib/log10f.c (log10f),
7937         * device/lib/logf.c (logf),
7938         * device/lib/sinf.c (sinf),
7939         * device/lib/sinhf.c (sinhf),
7940         * device/lib/sqrtf.c (sqrtf),
7941         * device/lib/tanf.c (tanf),
7942         * device/lib/tanhf.c (tanhf),
7943         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
7944         replaced all instances of "reentrant" in the library functions
7945         defined in math.h with this macro.
7946         * support/regression/tests/float_trans.c: reenabled test for hc08
7947
7948 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
7949
7950         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
7951         erroneously deleted
7952
7953 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7954
7955         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
7956         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
7957         multi-byte volatile operands are used
7958         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
7959         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
7960         initialization to area GSINIT0 so that it would always precede
7961         any static initializers in GSINIT
7962         * support/regression/tests/zeropad.c: fixed idata define for hc08
7963         * support/regression/tests/bug-927659.c,
7964         * support/regression/tests/float_trans.c: disabled tests for hc08
7965         pending missing library routines
7966         * .version: increased version number to 2.4.4 - hc08 port now passes
7967         regression tests
7968
7969
7970 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
7971
7972         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
7973         * Makefile.common.in,
7974         * as/Makefile,
7975         * as/hc08/Makefile.in,
7976         * as/mcs51/Makefile.in,
7977         * as/z80/Makefile.in,
7978         * debugger/mcs51/Makefile.in,
7979         * device/include/Makefile.in,
7980         * device/lib/Makefile.in,
7981         * doc/Makefile,
7982         * link/Makefile,
7983         * link/z80/Makefile.in,
7984         * packihx/Makefile.in,
7985         * sim/ucsim/main_in.mk,
7986         * sim/ucsim/avr.src/Makefile.in,
7987         * sim/ucsim/doc/Makefile.in,
7988         * sim/ucsim/gui.src/serio.src/Makefile.in,
7989         * sim/ucsim/hc08.src/Makefile.in,
7990         * sim/ucsim/s51.src/Makefile.in,
7991         * sim/ucsim/xa.src/Makefile.in,
7992         * sim/ucsim/z80.src/Makefile.in,
7993         * src/Makefile.in,
7994         * support/cpp2/Makefile.in,
7995         * support/librarian/Makefile,
7996         * support/makebin/Makefile: added DESTDIR to the install path proposed
7997         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
7998         * doc/sdccman.lyx: added DESTDIR documentation
7999
8000 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
8001
8002         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
8003         instruction for interrupt handlers, use fast returns when returning
8004         from high priority interrupts
8005
8006 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8007
8008         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
8009         code generation
8010         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
8011         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
8012         bugs, ported much of Bernhard's code from mcs51
8013         * src/mcs51/gen.c (genSend),
8014         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
8015         than one when calling a reentrant function
8016         * device/lib/_mullong.c: defined an alternate struct layout for big
8017         endian ports (hc08)
8018
8019 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8020
8021         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
8022         test
8023
8024 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8025
8026         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
8027         are sane and complete before asking the port its prefered parameter
8028         passing method (fixes bug #1017633)
8029         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
8030         and _ret3
8031
8032 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8033
8034         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
8035         problem in bitfields >= 8 bits.
8036
8037 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8038
8039         * src/SDCCsymt.c: undid changes that were not meant to be committed
8040
8041 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8042
8043         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
8044
8045 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
8046
8047         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
8048           copied and wrong bit got inverted
8049
8050 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8051
8052         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8053         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8054         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8055         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8056         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8057         assignments to bitfields at known addresses
8058         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8059         reads from bitfields at known addresses
8060         * src/hc08/ralloc.c (packRegisters),
8061         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8062         genhc08Code): optimize pointer get values used as conditionals
8063         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8064         and branch
8065
8066 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8067
8068         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8069         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8070         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8071         as conditionals
8072
8073 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8074
8075         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8076
8077 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8078
8079         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8080         related problems
8081
8082 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8083
8084         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8085
8086 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8087
8088         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8089         mcs51 port
8090
8091 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8092
8093         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8094
8095 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8096
8097         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8098         cases use more compact code.
8099
8100 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8101
8102         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8103
8104 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8105
8106         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8107
8108 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8109
8110         * src/SDCCsymt.h,
8111         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8112         parameter of changePointer() from symbol* to sym_link*
8113         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8114         * src/SDCCsymt.c (compareType): void* type is castable to other
8115         pointers, but not necesarily an exact match.
8116         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8117         is no longer blindly treated as an exact match.
8118         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8119
8120 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8121
8122         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8123
8124 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8125
8126         * src/pic/gen.c,
8127         * src/pic/pcode.c,
8128         * src/pic/ralloc.h,
8129         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8130
8131 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8132
8133         * src/pic/device.c,
8134         * src/pic/device.h,
8135         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8136
8137 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8138
8139         * src/mcs51/gen.c (emitcode): fixed bug #992819
8140
8141 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8142
8143         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8144           there's no need to make it worse
8145
8146 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8147
8148         * src/mcs51/ralloc.c (deassignLR),
8149         * src/ds390/ralloc.c (deassignLR),
8150         * src/hc08/ralloc.c (deassignLR),
8151         * src/z80/ralloc.c (deassignLR),
8152         * src/pic/ralloc.c (deassignLR),
8153         * src/pic16/ralloc.c (deassignLR),
8154         * src/avr/ralloc.c (deassignLR),
8155         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8156         rlivePoint): fixed another part of bug #971834
8157
8158 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8159
8160         * src/z80/main.c: enabled "critical" keyword
8161         * src/z80/mappings.i,
8162         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8163         functions (fixes bug #979646)
8164         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8165
8166 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8167
8168         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8169           such as c:\mydir.
8170
8171 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8172
8173         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8174           doesn't disable too much optimizations
8175
8176 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8177
8178         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8179
8180 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8181
8182         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8183
8184 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8185
8186         * src/pic/gen.c tidied up tabs
8187         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8188         * src/pic/main.c tidied up tabs
8189         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8190         * src/pic/pcoderegs.c tidied up tabs
8191         * src/pic/ralloc.c tidied up tabs
8192
8193 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8194
8195         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8196         to S_FIXED for pic16 port and when symbol is not in level 0,
8197         allocate for S_REGISTER storage class and pic16 port, too,
8198         * src/pic16/device.h: prototype for checkSym,
8199         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8200         * (pic16_assignConfigWordValue): test the value and the mask to
8201         validate that the value is suitable for the configuration word,
8202         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8203         collect extern declared symbols, don't emit symbol twice, check
8204         first if symbol is in publics set first,
8205         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8206         * added command line '--fstack' which enables an experimental
8207         feature for stack access, too buggy to be used yet...
8208         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8209         * (pic16_allocDirReg): when register has storage class S_REGISTER
8210         allocate in pic16_dynAccessRegs,
8211         * device/include/pic16/pic18f????.h: modified configuration word
8212         naming convention, words started as CONFIG0H but should be CONFIG1H
8213
8214 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8215
8216         * device/include/mcs51reg.h: fixed bug 970993
8217
8218 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8219
8220         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8221         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8222         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8223         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8224         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8225         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8226           error/warning numbers,
8227           added function setWarningDisabled()
8228         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8229         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8230           _memcmp.c _memmove.c calloc.c realloc.c free.c
8231         * support/regression/tests/malloc.c: added tests for new functionality
8232         * support/regression/tests/zeropad.c: added tests for truncated initializers
8233           and initialized char arrays starting with '\x0'
8234         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8235
8236 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8237
8238         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8239
8240 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8241
8242         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8243         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8244         peephole 177.e. Thanks to anonymous
8245
8246 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8247
8248         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8249         function isn't used in the source but referenced as a
8250         variable initializer then declare it as extern in .asm file
8251
8252 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8253
8254         * .version: increased version number to 2.4.3
8255
8256         Adding version extension according to ChangeLog CVS revision
8257         * src/Makefile.in (target all): added dependency 'version.h'
8258         * (rule version.h): added rule to create version.h from ChangeLog,
8259         * (rule dep): added dependency version.h,
8260         * src/version.awk: AWK script to create version.h
8261         * src/SDCCdwarf2.c (dwWriteModule),
8262         * src/SDCCglue.c (initialComments),
8263         * src/SDCCmain.c (printVersionInfo): modified to write after
8264         version string the version extension number,
8265         * src/SDCCutil.c: included "version.h"
8266         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8267         number,
8268         * src/SDCCutil.h: added prototype for getBuildNumber
8269
8270         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8271         includeDirsSet, too,
8272         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8273         const char [] is found in function prototype...
8274
8275         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8276         moving to WREG with source is already in WREG,
8277         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8278         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8279         * (aopForSym): stack'ed symbols are partially supported, added
8280         if-clause to support symbols in FARSPACE,
8281         * (sameRegs): added test for AOP_ACC to see if registers are same,
8282         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8283         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8284         * (pic16_popRegFromString): will not allocate a new register if it
8285         doesn't find one by name, bug may have introduced...
8286         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8287         * (genIpush): revived to use pic16 port's stack,
8288         * (genAddrOf): added incomplete case for stack'ed operand,
8289         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8290         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8291         can handle multibyte operands,
8292         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8293         * (pic16initialComments): added message for MPLAB compatibility
8294         mode enabled,
8295         * src/pic16/main.h: prototype for pic16_mplab_comp,
8296         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8297         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8298         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8299         because of increased complexity of procedure,
8300         * (_process_pragma): stack pragma changed to format 'stack pos len',
8301         emit symbol '_stack_end' to conform with gplink,
8302         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8303         to search for register,
8304         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8305         PO_GPR_REGISTER,
8306         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8307         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8308         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8309         case for PO_GPR_REGISTER,
8310         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8311         dies, the new era is ahead !...
8312         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8313         pic16_dynInternalRegs,
8314         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8315         * (pic16_allocDirReg): minor optimizations and bug fixes,
8316         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8317
8318         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8319         load stack and frame pointer with address of 'stack_end' symbol
8320
8321 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8322
8323         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8324         without source code but only variable initializers
8325
8326 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8327
8328         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8329         external are not declared as extern to reduce overhead while linking
8330
8331 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8332
8333         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8334
8335 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8336
8337         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8338           Yee Keat for the patch
8339         * src/SDCCast.c (decorateType): fixed bug #979599
8340         * src/ds390/gen.h: removed local fReturnSizeDS390
8341         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8342         * src/ds390/gen.c (genAnd, genOr, genXor),
8343         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8344
8345 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8346
8347         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8348         add relFilesSet to $3, manipulate $2 to handle linking of object
8349         files without source files in command line,
8350         * device/include/pic16 (all headers): added ID location macros,
8351         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8352         entries for ID location bytes,
8353         * (pic16_assignIdByteValue): NEW,
8354         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8355         added field dumpcalltree to pic16_options_t,
8356         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8357         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8358         emitting rFalseIfx label after check_carry label,
8359         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8360         pic16_emitDIRegs), NEW
8361         * (pic16glue): dump .calltree file when option --calltree found,
8362         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8363         * (_pic16_genAssemblerPreamble): emit ID locations after
8364         configuration registers,
8365         * (pic16_linkCmd): modifications of the link command,
8366         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8367         * (pic16_pCodeInitRegisters): don't init stack registers,
8368         * (pic16_findPrevInstruction): fixed bug,
8369         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8370         bug with immediate registers,
8371         * (buildCallTree): traces stack push and pop,
8372         * (pct2): dump also stack usage for each function,
8373         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8374         * (pic16_allocDirReg): various modifications,
8375         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8376         fixed to 1,
8377
8378 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8379
8380         * src/pic16/pcode.c: removed buggy double colon
8381
8382 2004-07-01 Borut Razem <borut.razem AT siol.net>
8383
8384         * support/scripts/sdcc.nsi: added include/pic16 to setup
8385
8386 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8387
8388         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8389         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8390         target 'clean',
8391         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8392         specific command line arguments. Also added sample lkr script
8393         for placing a variable at a specific memory bank.
8394         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8395         at a specific memory bank,
8396         * (pic16_dump_isection): fixed bug which caused string literals to
8397         be omitted when dumping idata section,
8398         * (pic16_groupRegistersInSection): added code to handle registers
8399         in specific memory banks,
8400         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8401         public, all references are renamed too,
8402         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8403         AOP_DPTR2,
8404         * (pic16_storeForReturn): added case to handle when dest is WREG,
8405         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8406         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8407         pic16_rel_udata, check to see if that register is marked as being
8408         a member of a specific memory bank,
8409         * (pic16_printIvalCharPtr): added code to add string literals either
8410         to code or the idata sections,
8411         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8412         also accept the 'udata' pragma,
8413         * src/pic16/main.h: new structure types sectName and sectSym
8414         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8415         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8416         * (pic16_findPrevInstruction): fixed, it returned nothing,
8417         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8418         instruction combinations,
8419         * (pic16_FixRegisterBanking): heavily reorganised,
8420         * (pic16_AnalyzeBanking): if generating banksel directives is
8421         disabled, then don't call FixRegisterBanking at all,
8422         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8423         completely removed,
8424         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8425
8426 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8427
8428         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8429         Phuah Yee Keat <yk.phuah AT nestac.com>
8430
8431 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8432
8433         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8434         correctly the IVT even if it is relocated to some other location
8435
8436 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8437
8438         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8439         * device/include/pic16/pic18f2220.h: NEW,
8440         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8441         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8442         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8443         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8444         nodefaultlibs, ivt_loc is the location of the interrupt vector
8445         table, and nodefaultlibs signs that default libraries should not be
8446         linked in link stage,
8447         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8448         according to --ivt-loc argument,
8449         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8450         when pragma stack is found,
8451
8452 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8453
8454         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8455         256 (range check), 257 (do while), 258.a-f (bit banging
8456         f.e. on 3-wire SPI bus)
8457
8458 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8459
8460         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8461         variables used exclusively within a loop
8462
8463 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8464
8465         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8466
8467 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8468
8469         * src/SDCClrange.c (computeClash): fixed bug #971834
8470
8471 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8472
8473         * src/mcs51/gen.c (genCmp): fixed bug #975903
8474         * src/hc08/gen.c (operandsEqu),
8475         * src/ds390/gen.c (operandsEqu),
8476         * src/z80/gen.c (operandsEqu),
8477         * src/pic/gen.c (operandsEqu),
8478         * src/pic16/gen.c (operandsEqu),
8479         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8480         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8481
8482 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8483
8484         * src/SDCCcse.c (cseBBlock): fixed bug #966963
8485
8486 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8487
8488         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8489         default case in switch statement,
8490         * glue.c (pic16_initPointer): expr is initialised via decoarteType
8491         to eliminate problem with initialisation of pointers, but problem
8492         still exists,
8493         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8494         * (emitStaticSegment): removed various lines emitting debug info,
8495         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8496         added processor registers for utilizing EEPROM,
8497         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8498         configurable and set 8
8499
8500 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8501
8502         * .version: increased version number to 2.4.2,
8503
8504         Cumulative patch for pic16 port
8505         * src/pic16/device.c: changed scheme to dump initial values for
8506         variables in idata segment, all print_idata* functions were removed,
8507         now the pic16_printIval* will be called,
8508         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8509         * _pic16_printPointerType, pic16_printPointerType,
8510         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8511         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8512         NEW, similar to the respective functions in SDCCglue.c,
8513         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8514         way, emitting hex bytes,
8515         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8516
8517 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8518
8519         * src/avr/ralloc.c (serialRegAssign),
8520         * src/xa51/ralloc.c (serialRegAssign),
8521         * src/pic/ralloc.c (serialRegAssign),
8522         * src/pic16/ralloc.c (serialRegAssign),
8523         * src/hc08/ralloc.c (serialRegAssign),
8524         * src/z80/ralloc.c (serialRegAssign),
8525         * src/ds390/ralloc.c (serialRegAssign),
8526         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8527
8528 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8529
8530         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8531         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8532
8533 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8534
8535         Cumulative patch for pic16 port:
8536         * src/pic16/device.h (typedef PIC16_device) modified fields for
8537         defining microcontrollers,
8538         * src/pic16/device.c: added new info for all devices in Pics16 array,
8539         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8540         to be optimised out by the pCode optimiser,
8541         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8542         specially, bug reported by G.M. Gallant,
8543         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8544         as force'd so that cannot be optimised out by pCode optimiser,
8545         * src/pic16/pcode.c,
8546         * src/pic16/pcodepeeph.c,
8547         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8548         they are disabled by default, but can be enabled explicit with
8549         command argument --denable-peeps, for testing,
8550         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8551         --pomit-ivt in COMPILE_FLAGS
8552
8553 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8554
8555         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8556           compilation on MSVC
8557
8558 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8559
8560         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8561
8562 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8563
8564         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8565         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8566
8567 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8568
8569         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8570         would only assign 0x300001 register.
8571
8572 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8573
8574         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8575         in COMPILE_FLAGS. Thanks to G. Gallant for report.
8576
8577 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8578
8579         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8580         for ds80c400
8581         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8582         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8583         added peephole 254 (left shift), 255 (jump table)
8584
8585 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8586
8587         * device/lib/Makefile.in: removed comment line with model-pic16,
8588         * (target port-specific-objects-pic16): the libraries and objects
8589         are copied to the build directory form the device/lib/pic16/bin
8590         directory
8591
8592         Cumulative patch concerning pic16 port:
8593         * library directory has been re-organized,
8594         * added support for PIC18F1220,
8595         * added headers and library sources for chips 18f1220,18f6520,
8596         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8597
8598         * configuration registers setting has changed, now each supported
8599         device has a complete description of the registers it uses,
8600         * all initialisations are moved to idata sections, these section
8601         can be absolute or relocatable,
8602         * fixed initialisation of codespace variables,
8603         * fixed warning about PCLATU and gpsim,
8604         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8605         * (genAssign): use table reads when assigning from variables in codespace,
8606         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8607         char/int variables placed in codespace,
8608         * (pic16_emitConfigRegs): NEW, emits a list with configuration
8609         registers set in .asm file, no need for --pomit-config-words anymore,
8610         * (pic16glue): some 8051 legacy segments are commented out
8611         (to be removed completely),
8612         * added support for alternative assembler and linker with --asm=
8613         and --link= command line arguments,
8614         * peepholes are disabled automatically in the port, no need to
8615         specify on command line,
8616         * port supports natively char/int/long multiplication, but converts
8617         all divisions to support functions,
8618         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8619         to the file set in variable $2,
8620         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8621         strings in ASCII format and not in hex,
8622         * ralloc.c (serialRegAssign): added a triplet of conditional calls
8623         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8624         allocate proper register if iCodes aren't temporary,
8625
8626 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8627
8628         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8629
8630 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8631
8632         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8633         is commented out
8634
8635 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8636
8637         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8638         computed address is reused
8639         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8640         multi-byte bitfields
8641
8642 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8643
8644         * src/z80/gen.c: (genArrayInit): must check for pointers too
8645
8646 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8647
8648         * support/regression/tests/zeropad.c: never meant to commit the
8649           nestedstruct test: removed, added check for GCC version
8650
8651 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8652
8653         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8654         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8655         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8656           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8657           bugs 928906 and 954082 half-empty initializers
8658         * src/SDCCsymt.h,
8659         * src/SDCCsymt.c (getAllocSize): added for above fix
8660         * src/z80/gen.c (genArrayInit): fixed bug 741044
8661         * support/regression/tests/zeropad.c: added tests
8662
8663 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8664
8665         * src/pic16/device.c (pic16_dump_section): corrected bug which
8666         caused some symbols of the libraries to be misplaced
8667
8668 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8669
8670         * src/pic16/glue.c,
8671         * src/pic16/ralloc.h,
8672         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8673         to fix conflict with pic port
8674
8675 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8676
8677         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8678         externs configuration variables,
8679         * src/pic16/ralloc.h,
8680         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8681         prototype in header, commented out some debug messages
8682
8683 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8684
8685         * src/pic16/glue.c,
8686         * src/pic16/main.c,
8687         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8688         for gpasm COFF object generation. Thanks to D. Hawkins for
8689         his patch info
8690
8691 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8692
8693         * src/ds390/main.c,
8694         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
8695         Brock for spotting this)
8696         * src/ds390/gen.c (genEndFunction),
8697         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
8698         interrupt handler and critical. Disable push/pop optimizations when
8699         peephole optimizations disabled.
8700
8701 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8702
8703         Updated pic16 library sources and headers.
8704         * device/lib/pic16/pic18f*/ ,
8705         * device/include/pic16/*.h: modified to handle structured SFR
8706         definitions
8707
8708 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8709
8710         * src/port.h (PORT structure): added hook initPaths, now each
8711         port can declare its own default search paths,
8712         which can been seen with the --print-search-dirs option,
8713         see pic16 port for example,
8714         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
8715         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
8716         * (doPrintSearchDirs): NEW, replaces in a central manner the
8717         printing of search dirs which was split in set*Paths functions,
8718         * (main): added call to port->initPaths and doPrintSearchDirs,
8719         * src/avr/main.c,
8720         * src/ds390/main.c,
8721         * src/hc08/main.c,
8722         * src/izt/i186.c,
8723         * src/izt/tlcs900h.c,
8724         * src/mcs51/main.c,
8725         * src/pic/main.c,
8726         * src/pic16/main.c: modified port structures to reflect addition of
8727         initPaths hook,
8728
8729         * src/pic16/device.c (regCompare): registers are finally sorted by name,
8730         * (pic16_dump_section): for registers in same address reserve memory once,
8731         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
8732         to no_banksel,
8733         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
8734         result is greater in size than right or left,
8735         * (pic16_genUMult8X8_8): there are some cases where the result can
8736         be 16 bits size, so handle these,
8737         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
8738         * (pic16_outBitC): modified to emit pcodes,
8739         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
8740         or not,
8741         * (genDivOneByte): implemented algorithm to divide 8-bits,
8742         * (genCmp): uncommented goto, but issues still exist,
8743         * (genAnd): fixed a bug with variables >8bits,
8744         * (genPackBits): optimization added that uses BCF/BSF to change a
8745         single bit,
8746         * (genAssign): fixed bug when assigning floating point literals,
8747         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
8748         __sdcc_gsinit_startup label,
8749         * src/pic16/main.c (_pic16_init): removed search directory
8750         initialisations,
8751         * (_pic16_initPaths): NEW, used to initialise search directories,
8752         * (_hasNativeMulFor): support functions for all except char/int
8753         multiplication, and char division,
8754         * (PIC16_port struct): modified entry for native mul support,
8755         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
8756         no_banksel option,
8757         * (buildCallTree): call to register_usage is ifdef'ed out,
8758
8759 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8760
8761         * device/include/string.h: applied Stas Sergeev's patch to make this
8762         header file compatible with the preprocessor -Wundef option
8763         * src/SDCCmain.c (main): abort compilation if preprocessor reports
8764         failure (fixes bug #941458)
8765
8766 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8767
8768         * src/SDCCopt.c (killDeadCode): fixed bug #907733
8769         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
8770         that the variable, not the function, should be static
8771         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
8772         to be consistent with non-literal case
8773
8774 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8775
8776         * src/SDCCast.c (isConformingBody): fixed bug #949967
8777         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
8778         convilong): fixed bug #952086
8779
8780 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8781
8782         * src/SDCCmem.c (allocVariables): fixed bug #955321
8783
8784 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8785
8786         * src/hc08/main.c (_hc08_genAssemblerEnd),
8787         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
8788         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
8789         completely eliminated the use of a temporary file
8790         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
8791         when more than one file linked
8792         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
8793
8794 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8795
8796         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
8797         which fixes bug #543481
8798         * support/regression/tests/bug-751703.c: fixed comments left from a
8799         cut and paste error
8800         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
8801         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
8802         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
8803         scopes
8804         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
8805         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
8806         are now changed to underscores in moduleName
8807
8808 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8809
8810         * as/mcs51/lkmem.c: better fix for bug #954173
8811
8812 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8813         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8814
8815         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
8816         * device/include/c8051f000.h,
8817         * device/include/c8051f120.h,
8818         * device/include/c8051f300.h,
8819         * device/include/c8051f310.h,
8820         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
8821         PWM16) and detab'ed
8822
8823 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8824
8825         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
8826         and mailing lists, doc'ed --no-peep-comments, removed reference
8827         to knoppix (newest version has no LyX/LaTeX), other minor changes
8828         * src/SDCCglue.c (glue): save 2 bytes stack space with
8829         option --main-return. The ljmp could probably be avoided too
8830
8831 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8832
8833         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
8834
8835 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8836
8837         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
8838         * src/SDCCopt.c (isLocalWithoutDef),
8839         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
8840         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
8841         (credit to Maarten Brock for patch #949363, on which this is based)
8842         * support/regression/tests/bug-751703.c: some test cases of extern used
8843         within inner scopes.
8844
8845 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8846
8847         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
8848         SPEC_STRUCT
8849         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
8850         struct definitions
8851         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
8852         dwWriteLabel): fix to create valid debugger symbols even when
8853         the module name has non-alphanumeric symbols in it
8854         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
8855         when a variable's allocation has been optimized away
8856
8857
8858 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8859
8860         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
8861         * src/hc08/main.c,
8862         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
8863         * src/mcs51/main.c,
8864         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
8865         * src/ds390/main.c,
8866         * src/z80/gen.c (z80_emitDebuggerSymbol),
8867         * src/z80/main.c,
8868         * src/pic/gen.c (pic14_emitDebuggerSymbol),
8869         * src/pic/main.c,
8870         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
8871         * src/pic16/main.c,
8872         * src/avr/gen.c (avr_emitDebuggerSymbol),
8873         * src/avr/main.c,
8874         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
8875         * src/xa51/main.c,
8876         * src/SDCCdebug.c (emitDebuggerSymbol),
8877         * src/SDCCdebug.h,
8878         * src/port.h: added a debugger struct to the port struct. Added a
8879         callback for defining debugger symbols
8880
8881         * src/SDCCast.c (createLabel),
8882         * src/SDCC.y (labeled_statement): mark all compiler generated labels
8883         with isitmp = 1
8884         * src/SDCCicode.h,
8885         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
8886         iCode back to the ast for the function
8887
8888         * src/hc08/ralloc.c (hc08_assignRegisters),
8889         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
8890         unneeded fields from the regs struct.
8891         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
8892         pushReg() & pullReg() functions instead of emitcode()
8893
8894         * src/hc08/gen.c (genLabel, genhc08Code),
8895         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
8896
8897         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
8898         debugger hooks
8899
8900         * src/hc08/gen.c (genEndFunction, genhc08Code),
8901         * src/hc08/gen.h,
8902         * src/mcs51/gen.c (genEndFunction, gen51Code),
8903         * src/mcs51/gen.h,
8904         * src/ds390/gen.c (genEndFunction, gen390Code),
8905         * src/ds390/gen.h,
8906         * src/z80/gen.c (genEndFunction, genZ80Code),
8907         * src/z80/gen.h,
8908         * src/z80/z80.h,
8909         * src/pic/gen.c (genEndFunction, genpic14Code),
8910         * src/pic/gen.h,
8911         * src/pic16/gen.c (genEndFunction, genpic16Code),
8912         * src/pic16/gen.h,
8913         * src/avr/gen.c (genEndFunction, genAVRCode),
8914         * src/avr/gen.h,
8915         * src/xa51/gen.c (genEndFunction, genXA51Code),
8916         * src/xa51/gen.h,
8917         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
8918         specific code to cdbFile.c and out of the backend code generators
8919
8920         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
8921         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
8922         starting address is now 0
8923
8924         * as/hc08/asm.h,
8925         * as/hc08/m08pst.c,
8926         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
8927         assembler directive for DWARF support
8928         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
8929
8930         * src/src.dsp,
8931         * src/Makefile.in,
8932         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
8933
8934 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8935
8936         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
8937         and inappropriate peephole optimization in jump tables
8938
8939 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8940
8941         * as/hc08/m08pst.c,
8942         * src/SDCCglue.c: sdccopt works for the hc08 port now
8943
8944 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
8945
8946         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
8947
8948 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8949
8950         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
8951
8952 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8953
8954         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
8955         rules
8956         * src/SDCCmain.c,
8957         * src/SDCCglobl.h,
8958         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
8959         comments from the peephole optimizer replacement rules
8960         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
8961         symbols
8962         * src/SDCCcse.c (updateSpillLocation),
8963         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
8964         equivalents
8965         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
8966         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
8967         objects far pointers
8968
8969 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8970
8971         * src/SDCCsymt.h: a missing part of my last change
8972         * src/pic/ralloc.c (regTypeNum),
8973         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
8974
8975 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8976
8977         * src/SDCCicode.h,
8978         * src/SDCCicode.c (aggrToPtrDclType),
8979         * src/SDCCptropt.h,
8980         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
8981         ptrPseudoSymConvert),
8982         * src/pic/ralloc.c (regTypeNum),
8983         * src/pic16/ralloc.c (regTypeNum),
8984         * src/hc08/ralloc.c (regTypeNum),
8985         * src/ds390/ralloc.c (regTypeNum),
8986         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
8987         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
8988
8989 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8990
8991         * link/z80/lkmain.c (afile),
8992         * as/hc08/lkmain.c (afile),
8993         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
8994         prevent a pointer problem when a filename has no directory and
8995         no extension specified.
8996
8997 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8998
8999         * link/z80/lkmain.c (afile): allow periods in directory names
9000         * link/z80/lkmain.c (afile),
9001         * as/mcs51/lkmain.c (afile),
9002         * as/hc08/lkmain.c (afile): allow linker script file to have an
9003         extension other than ".lnk"
9004         * link/z80/lklex.c (getfid),
9005         * link/z80/lkmain.c (parse),
9006         * as/mcs51/lklex.c (getfid),
9007         * as/mcs51/lkmain.c (parse),
9008         * as/hc08/lklex.c (getfid),
9009         * as/hc08/lkmain.c (parse): Support comments in the linker script
9010         file on lines by themselves and after filenames
9011
9012 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9013
9014         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
9015
9016 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9017
9018         * src/z80/peeph-z80.def: removed some peephole rules that don't
9019         work with multibyte arithmetic (fixed bug #937126)
9020         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
9021         to registers and not global variables
9022         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
9023         geniCodePreInc, geniCodePostDec, geniCodePreDec,
9024         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
9025         checking for assignments not internally generated (fixed bug #931895)
9026         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
9027         structure member (fixed bug #930072)
9028
9029 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9030
9031         * src/SDCCmain.c (linkEdit),
9032         * src/hc08/main.c (_hc08_parseOptions),
9033         * as/hc08/Makefile.in,
9034         * as/hc08/aslink.h,
9035         * as/hc08/asm.h,
9036         * as/hc08/m08pst.c,
9037         * as/hc08/lkrloc.c (relr, rele),
9038         * as/hc08/lkarea.c (lnkarea)
9039         * as/hc08/lkmain.c (afile, parse),
9040         * as/hc08/lkelf.c: support for ELF output
9041         * as/hc08/lks19.c (s19),
9042         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
9043
9044 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9045
9046         * as/mcs51/lkihx.c: Fixed bug #899105.
9047
9048 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9049
9050         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
9051         .dsp files from Unix to DOS.
9052
9053 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9054
9055         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9056         function pointers; we have been compliant for several months now.
9057         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9058         change that was accidently commented out
9059         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9060         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9061         bug #922319
9062
9063 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9064
9065         * src/hc08/gen.c: output of all of the internal debugging information
9066         is now controlled by the D() macro; it is disabled by default
9067
9068 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9069
9070         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9071         harder to keep the same registers during a CAST iCode
9072         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9073         long via int can be done in a single cast, if the signedness is
9074         correct.
9075         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9076         putchar() in tinibios.c in ds390's library
9077
9078 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9079
9080         * src/SDCCast.c (decorateType): fixed bug #898889,
9081         cast result of a literal complement too
9082         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9083         fixed check for bitfields
9084
9085 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9086
9087         * src/SDCCicode.c (geniCodeLogic): made it static,
9088         (geniCodeLogicAndOr): added in order to fix bug #905492,
9089         (ast2iCode): fixed bug #905492
9090         * support/regression/tests/bug-905492.c: added
9091         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9092         (processParms): fixed bug #927659: don't copy parms, this will clear
9093         decorated flag
9094         * support/regression/tests/bug-927659.c: added
9095
9096 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9097
9098         * src/SDCCast.c (addCast): don't cast float to char
9099         * device/lib/libsdcc.lib: added _memmove
9100
9101 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9102
9103         * device/lib/large/Makefile: fixed parallel execution by
9104         replacing `make` by `$(MAKE)`
9105
9106 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9107
9108         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9109         offsets (fixes bug #923936)
9110
9111 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9112
9113         * device/lib/small/Makefile: fixed parallel execution by
9114         replacing `make` by `$(MAKE)`
9115
9116 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9117
9118         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9119
9120 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9121
9122         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9123         * src/regression/Makefile: Regression test was not running.
9124
9125 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9126
9127         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9128         complement if possible
9129         * src/SDCCval.c (valComplement),
9130         * src/SDCCicode.c (operandOperation): fixed complement of literal
9131         * support/regression/tests/onebyte.c (testComplement): added
9132
9133 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9134
9135         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9136         return an optimized tree; actually replace actParm with the new tree
9137         * src/SDCCast.h: added some parantheses to remove side effects
9138         * support/regression/tests/bug-920866.c
9139
9140 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9141         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9142         Bit operands were not being handled properly in the pic14 port.
9143         (now src/regression/add.c passes again).
9144
9145 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9146
9147         * src/SDCC.y (labeled_statement): case and default no longer require
9148         a following statement (RFE #893037)
9149
9150 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9151
9152         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9153         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9154         disabled (fixes bug #916294)
9155         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9156         "mov a,acc"; patch provided by Lenny Story
9157         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9158
9159 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9160
9161         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9162         functions
9163         * src/ds390/gen.c (genFunction, genEndFunction),
9164         * src/ds390/ralloc.c (ds390_assignRegisters),
9165         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9166         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9167         pushed if there are parameters passed on the stack. Also, a cleaner
9168         way to decide if r0/r1 should be pushed/popped. (Together they fix
9169         bug #918693)
9170
9171 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9172
9173         * doc/sdccman.lyx,
9174         * device/lib/mcs51/crtpagesfr.asm,
9175         * device/lib/mcs51/crtxinit.asm,
9176         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9177         to avoid confusion with Si Lab's SFRPAGE register.
9178
9179 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9180
9181         * src/SDCCglue.c (emitMaps): allow public sfr variables
9182         * src/SDCCglue.c (initialComments): include compiler build date
9183         with compiler version and put the timestamp of the generated
9184         assembly file on a serperate line to be less confusing.
9185         * src/port.h: added genInitStartup hook
9186         * src/avr/main.c,
9187         * src/ds390/main.c,
9188         * src/hc08/main.c,
9189         * src/pic/main.c,
9190         * src/pic16/main.c,
9191         * src/xa51/main.c,
9192         * src/z80/main.c: genInitStartup initialize as NULL (default to
9193         historical behaviour)
9194         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9195         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9196         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9197         library instead of hard coding it into the compiler.
9198         * support/regression/ports/mcs51-stack-auto/spec.mk,
9199         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9200         * device/lib/mcs51/Makefile,
9201         * device/lib/small/Makefile,
9202         * device/lib/large/Makefile,
9203         * device/lib/mcs51/crtpagesfr.asm,
9204         * device/lib/mcs51/crtstart.asm,
9205         * device/lib/mcs51/crtxclear.asm,
9206         * device/lib/mcs51/crtxinit.asm,
9207         * device/lib/mcs51/crtclear.asm,
9208         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9209         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9210         and into user configurable files.
9211         * device/lib/clean.mk: clean mcs51 directory too
9212         * support/regression/tests/longlit.c: added static to T1 declaration
9213         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9214         accesses in the initialization code
9215
9216 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9217
9218         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9219         OSCTRIMVAL as noted in bug #916008
9220
9221 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9222
9223         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9224         in loops with multiple exits (reported as incorrect registers
9225         used by Martin Helmling in Sdcc-user list)
9226
9227 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9228
9229         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9230         made ds390 register extensions look less like error messages
9231
9232 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9233
9234         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9235         reported by Adam Wozniak in Sdcc-user list
9236
9237 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9238
9239         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9240         arithmetic optimizations, added debug output
9241
9242 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9243
9244         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9245         * sdcc.spec: updated and split sdcc into 3 rpms
9246         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9247         needed for literals of LEFT_OP and '+'
9248         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9249         introduced RESULT_TYPE_NOPROM
9250         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9251         left shift
9252         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9253         limited promotion to int only for '*'
9254         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9255
9256 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9257
9258         * src/pic16/gen.c (genSkip),
9259         (genc16bit2lit), (gencjneshort): commented out
9260         (is_LitOp): new helper function, checks operand type
9261         (genCmpEq): rewritten
9262
9263 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9264
9265         * support/regression/tests/bug-908454.c: added
9266
9267 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9268
9269         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9270         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9271         (geniCodeCast): cosmetic, don't preserve bit storage class
9272         (geniCodeLeftShift): added promotion
9273         (geniCodeLogic): fixed regression
9274         * src/SDCCsymt.c (computeTypeOr): accept bits too
9275         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9276
9277 2004-03-07  Borut Razem <borut.razem AT siol.net>
9278
9279         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9280
9281 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9282
9283         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9284         version of pic16_genPackRegisters which does not check if ic is a
9285         CAST operator,
9286         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9287         function cause string1.c regression test fails
9288
9289 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9290
9291         * sim/ucsim/configure.in,
9292         * sim/ucsim/configure,
9293         * sim/ucsim/doc/Makefile.in: use docdir
9294         * src/SDCC.y: fixed sbit atrributes
9295         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9296         * src/SDCCast.c (decorateType): |^& need special promotion handling
9297         * src/SDCCast.h,
9298         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9299         * src/SDCCsymt.h (computeType),
9300         * src/SDCCicode.c: computeType() needs op
9301         * src/SDCCsymt.c (checkTypeSanity),
9302         * doc/sddman.lyx: "plain" bitfields are unsigned
9303         * src/SDCCsymt.c (computeTypeOr): added
9304         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9305         |^& ops
9306         * src/SDCCval.c (val*): computeType() needs op
9307         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9308         * support/regression/tests/onebyte.c: added tests for |^&
9309
9310 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9311
9312         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9313         for writing icode into asm output.
9314
9315 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9316
9317         * src/pic16/device.c: added some debug lines enabled
9318         with macro DEBUG_CHECK,
9319         * src/pic16/genarith.c: more debug in genPlus,
9320         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9321         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9322         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9323         * (aopForSym): onStack symbols are re-placed in data memspace,
9324         and onStack flag is cleared,
9325         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9326         copy temporary pcodeop,
9327         * (genPcall): added warning for not updating PCLATU,
9328         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9329         always true for pic16 port,
9330         * (genMultOneWord): NEW, supports integer multiplication,
9331         * (genMult): modified to call genMultOneWord,
9332         * (ifxForOp): added warning when return NULL,
9333         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9334         flag is set before call to operandFromSymbol for implicit
9335         added structures,
9336         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9337         options.intlong_rent are set by default,
9338         * (_hasNativeMulFor): modified to allow port generation of integer
9339         multiplication,
9340         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9341         set regtype to REG_SFR for all registers, restricting seting the
9342         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9343
9344 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9345
9346         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9347         more than 500 times in the regression tests
9348
9349 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9350
9351         * support/Util/SDCCerr.h,
9352         * support/Util/SDCCerr.c,
9353         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9354         enumerator_list),
9355         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9356         for symbol conflicts.
9357         * support/valdiags/tests/enum.c,
9358         * support/valdiags/tests/tentdecl.c,
9359         * support/valdiags/tests/struct.c: expect possible error messages
9360         referring to original symbol definitions.
9361         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9362         * src/SDCCsymt.h,
9363         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9364
9365 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9366
9367         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9368
9369 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9370
9371         * src/pic16/ralloc.c (newReg): fixed bug #908929
9372
9373 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9374
9375         * src/ds390/gen.c: added missing #include "main.h"
9376
9377 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9378
9379         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9380         checking if symbol is already in set,
9381         * src/pic16/device.h: prototype for checkAddSym,
9382         * src/pic16/gen.c: (_G): added entry interruptvector,
9383         * (assignResultValue): removed some commented out lines,
9384         * (genFunction): check for ISR via sym->type, absolute section for
9385         interrupt code is created via a new pBlock, the goto instruction is
9386         placed now correctly at the interrupt vector position, changed all
9387         references from ivec to _G.interruptvector,
9388         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9389         is the interrupt is a high priority one, same for return from ISR,
9390         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9391         externs to calls of checkAddSym,
9392         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9393         pic16_pcode_verbose flag is set,
9394         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9395         * src/pic16/pcoderegs.c: message about how many registers are saved
9396         will only be emitted if pic16_pcode_verbose flag is set,
9397
9398 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9399
9400         * src/ds390/ralloc.h,
9401         * src/ds390/ralloc.c (ds390_regWithIdx),
9402         * src/ds390/gen.c (emitcode),
9403         * src/ds390/main.h,
9404         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9405         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9406         ds390operandCompare, getRegsRead, getRegsWritten,
9407         initializeAsmLineNode): customized instruction size calculation for
9408         ds390, started basis for some register optimizations
9409         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9410         corresponding assembly output
9411         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9412         missing push/pop of r0/r1. Optimized push/pops
9413
9414 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9415
9416         * src/mcs51/main.c (instructionSize): fixed ACALL size
9417         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9418
9419 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9420
9421         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9422         the sorting of rlist with NULL elements
9423         * (print_idataType, print_idata): NEW to create idata sections
9424         * src/pic16/device.h: idataSymSet new variable
9425         * src/pic16/gen.c (genFunction): fixed some bugs in string
9426         comparing, improved the absolute section creation for ISRs,
9427         added FSR0L/FSR0H in registers that are saved in an ISR,
9428         * (genInline): fixed the processing of inline snippets,
9429         now they undergo no process by the peephole optimizer
9430         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9431         are placed in idataSymSet,
9432         * (pic16emitStaticSeg): extern symbols are added in externs,
9433         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9434         switching when aboslute variables are placed in access bank memory
9435         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9436         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9437         commented out with #if,
9438         * (pic16_packRegisters): reintroduce the check for CAST because some
9439         symbols are not correctly handled,
9440         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9441         pCodeInstruction instead of pCode,
9442         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9443         pCodeAsmDir definition,
9444         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9445         directive, then the argument directive is emitted without the leading
9446         tab, hack for inline labels which must be in the first column,
9447         * (compareLabel,pic16_findNextInstruction),
9448         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9449         * (insertBankSwitch): modified for the new pCodeAsmDir,
9450
9451 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9452         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9453
9454         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9455         instance,
9456         * (pushSide): commented out with #if,
9457         * (assignResultValue): fixed some typos in saving
9458         registers,
9459         * (genPcall): FIXED and sync'ed with genCall,
9460         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9461         * (genNearPointerGet): fixed to handle some more cases,
9462         implementation scheme via table reads,
9463         * (genConstPointerGet): modified to access code memory correct,
9464         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9465         and improved to handle some cases
9466         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9467         instead of "RETLW" for init data
9468         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9469         not IN_DIRSPACE, work around to reduce bank switching when aboslute
9470         variables are placed in access bank memory (<0x80 and >=0xf80),
9471         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9472         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9473         TBLWT_POSTDEC,TBLWT_PREINC
9474         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9475         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9476         directives
9477         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9478         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9479         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9480         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9481
9482 2004-02-29  Borut Razem <borut.razem AT siol.net>
9483
9484         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9485         support/Util/findme.h, support/Util/system.h: enhance binary relative
9486         search for lib and include by using findProgramPath()
9487
9488 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9489
9490         * src/SDCCpeeph.h,
9491         * src/SDCCpeeph.c (pcDistance),
9492         * src/port.h,
9493         * src/mcs51/ralloc.h,
9494         * src/mcs51/ralloc.c (mcs51_regWithIdx),
9495         * src/mcs51/main.h,
9496         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9497         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9498         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9499         size calculation port specific, started basis for some register
9500         optimizations
9501         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9502         missing push/pop of r0/r1. Optimized push/pops
9503         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9504         * device/lib/_modsint.c (_modsint),
9505         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9506         and stack version so regression tests pass
9507
9508 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9509
9510         * src/Makefile.in (dep): include SLIBOBJS in dependency check
9511         * src/SDCCast.c (decorateType): catch another small optimization
9512         with '?' operator
9513         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9514         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9515         modified to finally use computeType() all over SDCC,
9516         see Feature Request #877103
9517         * src/SDCCval.h: cosmetic
9518         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9519         valCompare(); regression tested in muldiv.c
9520         * support/regression/tests/muldiv.c (testMod): mod sign follows
9521         dividend only
9522
9523 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9524
9525         * src/SDCCast.c (decorateType): fixed bug #902362
9526         * doc/INSTALL.txt: fixed install instructions for win32
9527
9528 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9529
9530         * device/include/Makefile.in (install): fixed by replacing spaces
9531         by tabs
9532         * doc/README.txt,
9533         * doc/INSTALL.txt: updated for release
9534         * doc/sdccman.lyx: added warning for --xstack being buggy
9535
9536 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9537
9538         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
9539         to eliminate build warnings.
9540         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9541
9542 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9543            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9544
9545         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9546         removed -penable-stack, added comment for stack pragma, added
9547         warning for not initializing the stack/frame registers, removed
9548         comment at interrupts section
9549
9550         Stack is made permanent, there is no ability to disable stack usage.
9551         * src/pic16/device.h,
9552         * src/pic16/device.c: removed all references to USE_STACK macro,
9553         * src/pic16/device.c (pic16_dump_section): when no elements in
9554         rlist, free rlist before return,
9555         * (pic16_dump_int_registers): NEW, internal registers are a new set
9556         of general purpose registers reused by each function,
9557         * (checkAddReg): returns 1 if registers is added to set,
9558         * (pic16_groupRegistersInSection): when a registers is of type
9559         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9560         * src/pic16/device.h: memRange and Assigned Memory are deleted,
9561         SRCASECMP macro is moved here from device.c
9562         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9563         PO_PCLATU, PO_PRODL, PO_PRODH,
9564         * (pic16_pCodeOpType, genMinus,
9565         changed compares to "a" register, with AOP_ACC,
9566         * (pic16_genPlus): fixed some bugs and indented properly,
9567         * (pic16_addSign): changed size to size+offset in the MOVWF
9568         instruction,
9569         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9570         multiply 8-bit operand by literal, result is 8-bit,
9571         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9572         multiply 2 8-bit operand, result is 8-bit,
9573         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9574         genUMult8X*_16,
9575         * src/pic16/gen.c: changed accUse to contain WREG only,
9576         * (pic16_emitcomment): renamed to pic16_emitpcomment,
9577         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9578         true, do not use immediate addressing any more unless sym is a
9579         pointer in codespace,
9580         * (aopForRemat): do not use immediate addressing when symbol not in
9581         codespace and when symbol's address is requested,
9582         * (aopOp): for-loop in if(sym->accUse) is modified for the new
9583         accUse size (= 1),
9584         * (aopGet): added case for AOP_ACC and don't return "accumulator
9585         bug" but WREG instead,
9586         * (popGetTempReg): pushes contents of temporary register in stack,
9587         * (popReleaseTempReg): pops contents of temporary register from
9588         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9589         * (pic16_popGet): separated case AOP_ACC to return register WREG
9590         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9591         or PO_IMMEDIATE and initializes their instance/offset appropriately,
9592         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9593         the use of immediate pointers to certain cases only.
9594
9595         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9596         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9597         * (assignResultValue, genCall, genRet): modified to use the new
9598         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9599         genPcall is still broken,
9600         * (genFunction): added code to create 'A' type pBlocks when
9601         interrupt functions are generated, code not extensively tested yet,
9602         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9603         * (genEndFunction): modified so ISRs pop stored registers from stack,
9604         * (genMultOneByte): cleanup,
9605         * (AccRsh): added flag andmask, to and result with appropriate mask,
9606         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9607         * (genDataPointerGet): fixed and reenabled its use,
9608         * (genNearDataPointerGet): bugs fixed,
9609         * (genDataPointerSet): bugs fixed,
9610         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9611         pic16_DumpSymbol, pic16_DumpOp,
9612         * src/pic16/genutils.h: function prototypes for the above functions,
9613         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9614         pointers,
9615         * (pic16emitRegularMap): many many many improvements, but needs a
9616         major cleanup,
9617         * src/pic16/main.c: enable_stack in pic16_options is removed,
9618         * (_pic16_parseOptions): removed command line options -penable-stack,
9619         * (_process_pragma): emit stack symbol only when stack pragma is
9620         processed,
9621         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9622         redirected to FSR0L/FSR0H pair,
9623         * (pic16_get_op, pic16_get_op2): modifications and improvements,
9624         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9625         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9626         for immediates,
9627         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9628         * (dumpPicOptype): NEW,
9629         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9630         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9631         with movff instruction,
9632         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9633         added pic16_int_regs, some packRegsFor* functions are commented out,
9634         because produce errors,
9635         * src/pic16/NOTES: minor modifications
9636
9637 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9638
9639         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9640         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9641         --pack-iram.
9642         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9643         * as/mcs51/lkaomf51.c: fixed bug #895763
9644
9645 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9646
9647         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9648
9649 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9650
9651         * doc/sdccman.lyx: added details about the HC08 storage classes and
9652         interrupts, fixed the register usage info for z80 & gbz80
9653
9654 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9655
9656         * doc/sdccman.lyx: added more pic16 port documentation
9657         * device/include/pic16/: added header pic18fregs.h
9658
9659 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9660
9661         * doc/sdccman.lyx: added Vangelis' contribution
9662
9663 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9664
9665         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9666         extend to the next CALL or PCALL, not just to the next CALL.
9667
9668 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9669
9670         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9671
9672 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9673
9674         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9675         bug #895752 and a better fix for bug #716790
9676
9677 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9678
9679         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9680
9681 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9682
9683         * doc/sdccman.lyx: minor changes, minor changed
9684
9685 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9686
9687         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9688         which can't handle SDCC_NEWONEBYTEOPS,
9689         (geniCodeMultiply): removed conversion from mult to shift for pic14
9690         and pic16
9691
9692 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9693
9694         * src/hc08/gen.h,
9695         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
9696         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
9697         thus fixing bug #895406
9698
9699 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
9700
9701         * device/lib/_modsint.c,
9702         * device/lib/_modslong.c: sign follows divisor only
9703         * src/hc08/gen.c (genMultOneByte): if result size is 1,
9704         signs or signedness can be ignored
9705         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
9706         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
9707         added optimization for IFX,
9708         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
9709         arguments;
9710         reenabled optimization for IFX, which was removed on 2004-01-11
9711         * src/SDCCast.h: added return type IFX
9712         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
9713         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
9714         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
9715         SDCC_OLDONEBYTEOPS selects the old behaviour
9716         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
9717         changed again and commented promotion rule
9718         * src/SDCCval.c (valDiv): promotion no longer necessary
9719         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
9720         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
9721         rewritten
9722         * support/regression/tests/onebyte.c: added
9723
9724 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
9725
9726         * gen.c (genInline): reverted to old code for assemnling inline
9727         code because of bug reported James Chadd
9728
9729 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
9730
9731         * ralloc.h: missing declarations from previous patch,
9732         seems that patch for ralloc.h was never applied, fixed
9733
9734 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9735            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9736
9737         * pcode.c,
9738         * pcode.h,
9739         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
9740         indirect addressing. Marked FSR0 as deprecated
9741         * gen.c (pointerCode): commented out, not needed now
9742         (pic16_popGet2p): new MOVFF helper function
9743         (genGenPointerGet),
9744         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
9745         (shiftRLong): removed duplicate debugging info
9746
9747 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9748
9749         * src/ds390/gen.c (genNearPointerGet),
9750         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
9751         optimization with bits, but not bitfields.
9752         * src/ds390/ralloc.c (packRegisters),
9753         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
9754
9755 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9756
9757         * src/SDCCcse.c (algebraicOpts): copy operands before modification
9758
9759 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9760
9761         * src/SDCCsymt.h,
9762         * src/SDCCicode.c (operandFromSymbol),
9763         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
9764         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
9765         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
9766         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
9767         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
9768         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
9769         bug #892038
9770         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
9771         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
9772         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
9773         * src/SDCCsymt.c (newSymbol),
9774         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9775         enumerator_list),
9776         * src/SDCCval.h,
9777         * src/SDCCval.c (newiList): fixed bug #885705
9778
9779 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9780
9781         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
9782         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
9783
9784 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9785
9786         * device/include/c8051f120.h,
9787         * device/include/c8051f300.h,
9788         * device/include/c8051f310.h: added/updated header files for Silicon
9789         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9790         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
9791         in new section Submitting patches
9792
9793 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9794
9795         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
9796         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9797         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9798         genGenPointerSet),
9799         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
9800         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9801         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9802         genGenPointerSet),
9803         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
9804         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9805         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9806         genGenPointerSet),
9807         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
9808         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9809         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9810         genGenPointerSet): fixed bug #892400
9811         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
9812         to eliminate build warnings.
9813         * src/SDCCast.c (processParms),
9814         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
9815         fixed bug 751859
9816         * support/valdiag/valdiag.py: added GCC to the list of defines active
9817         when compiling with gcc
9818
9819 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9820
9821         * support/Util/SDCCerr.h,
9822         * support/Util/SDCCerr.c,
9823         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
9824         with an incomplete type (fixed bug #883734)
9825         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
9826
9827 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9828
9829         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
9830
9831 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9832
9833         * src/SDCCast.c (decorateType),
9834         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
9835         function pointer implementation
9836         * support/regression/tests/funptrs.c: added tests to verify both forms
9837         of function pointers work correctly. Added tests to verify parameters
9838         are passed in the correct order.
9839
9840 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
9841
9842         * device.c (regCompare): registers are sorted by ascending
9843         address and increasing size,
9844         * main.c (_pic16_finaliseOptions): removed the declaration
9845         of compiler macro MCU. Now a macro of the format pic18fxxxx
9846         will be defined from the command line
9847
9848 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9849             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9850
9851         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
9852         PCOP_RLCF was overwritten!
9853         * gen.c (genSkip): commented out calls to pic16_emitcode,
9854         * (genCmpEQ): fixed "long" compares, only high word did get compared,
9855         * (genlshTwo),
9856         * (genRRC): added debugging info,
9857         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
9858         overwritten while shifting,
9859         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
9860         overwritten while shifting,
9861         * (AccLsh),
9862         * (AccRsh),
9863         * (shiftLLeftOrResult),
9864         * (shiftRLeftOrResult),
9865         * (shiftRLong),
9866         * (shiftLLong): Implemented with pic16_emitpcode
9867         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
9868         * (genLeftShift): Fixed bug, operand for shift by variable always
9869         was "and"ed with 0x0f,
9870         * (genLeftShiftLiteral),
9871         * (genrshTwo),
9872         * (genRightShiftLiteral): added debugging info,
9873         * (genrshFour): added comment,
9874         * (genRightShift): determined signedness from operand "left"
9875         instead of "result"
9876
9877 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9878
9879         * src/SDCCicode.c (geniCodeParms),
9880         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
9881         function pointers, fixed function pointer bugs #861242 and #861896
9882
9883 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9884
9885         * device/include/c8051f000.h,
9886         * device/include/c8051f120.h,
9887         * device/include/c8051f300.h: added header files for Silicon
9888         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9889
9890 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
9891
9892         * src/SDCCast.c (processParams): added new type flow and restructured
9893         (gatherAutoInit): added new type flow
9894         (addCast): cosmetic changes
9895         (getLeftResultType): added new type flow for array indices, patch
9896         provided by Stas, see FR #877103
9897         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
9898         array index patch by Stas
9899         * src/SDCCast.h: added prototype getResultTypeFromType()
9900         * src/SDCCval.h,
9901         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
9902         * src/pic/glue.c (pic14emitStaticSeg),
9903         * src/pic16/glue.c (pic16emitStaticSeg),
9904         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
9905         for initialization of symbols
9906         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
9907         * support/Util/SDCCerr.h:
9908         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
9909         * .version: bumped version number to 2.3.8
9910         * device/include/Makefile.in (install),
9911         * doc/Makefile (install): changed to 'rm `find ...`' construct to
9912         avoid warnings
9913
9914 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
9915
9916         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
9917         Slade Rich fixed an optimization bug
9918         * src/pic/pcodepeep.c,
9919         * src/pic/pcoderegs.c
9920         * doc/Makefile (install): added test for directory
9921
9922 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9923
9924         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
9925         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
9926         * src/pic/ralloc.c (getRegPtr, getRegGpr),
9927         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
9928         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
9929         * as/mcs51/asexpr.c (term),
9930         * as/hc08/asexpr.c (term): fixed bug #887146
9931
9932 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9933
9934         * src/z80/gen.c (genMult): handle single byte result product
9935         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
9936         DUMMY_READ_VOLATILE (fixed bug #886367)
9937
9938 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
9939
9940         * support/regression/tests/libmullong.c: fixed logic, on little endian
9941         hosts we ended without a mullong_wrapper()
9942
9943 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9944
9945         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
9946         virus/worm forged address usage.
9947
9948 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
9949
9950         Fixed promotion, it should be done on AST level:
9951         * src/SDCCast.c (addCast): added promotion to int
9952         (decorateType): updated call to upCast()
9953         * src/SDCCicode.c (geniCodeLeftShift): removed call to
9954         usualUnaryConversions()
9955
9956 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
9957
9958         * support/regression/tests/literalop.c (mulWrapper): Added a
9959         wrapper to remove integer overflow warnings.
9960
9961         * support/regression/tests/float_trans.c: Made work on host.
9962
9963         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
9964         location of sz80.
9965
9966         * support/regression/generate-cases.py (main): Changed from inline
9967         to a main method.
9968
9969         * doc/Makefile (install): Changed to depth first to get rid of
9970         missing directory install warning.
9971
9972         * as/Makefile (install-doc): Made work on Mac.
9973
9974 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
9975
9976         * src/SDCCast.c: added an additional type flow in decorateType() of
9977         opposite direction, see feature request #860006; it's enabled at runtime
9978         by setting the environment variable SDCC_NEWTYPEFLOW
9979         * src/SDCCast.h: changed prototype of decorateType()
9980         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
9981         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
9982         'char' to 'int' can be omitted, if both operands are 'unsigned char';
9983         see feature request #877103
9984         * src/SDCCval.c: updated call of decorateType()
9985         (valBitwise): fixed bug #882876
9986         (valMinus): added promotion
9987         (valLogicAndOr): result is unsigned
9988         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
9989         * src/SDCCsymt.c (computeType),
9990         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
9991         must not cause an unsigned operation
9992         * src/pic/glue (pic14emitRegularMap),
9993         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
9994
9995 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
9996
9997         * src/pic/pcode.c (PCodeID): commented out left over debug code
9998
9999 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
10000
10001         * support/valdiag/tests/overflow.c: added shift tests
10002         * src/pic/device.c,
10003         * src/pic/gen.c,
10004         * src/pic/gen.h,
10005         * src/pic/glue.c,
10006         * src/pic/main.c,
10007         * src/pic/pcode.c,
10008         * src/pic/pcode.h,
10009         * src/pic/pcodepeep.c,
10010         * src/pic/pcoderegs.c,
10011         * src/pic/ralloc.c,
10012         * src/pic/ralloc.h: applied patch from Slade Rich;
10013         added support for multiple code pages and multiple RAM banks on the
10014         PIC 14 port. The ASM files now no longer simply assume all the
10015         code / RAM are in the same page / bank. This means the linker can
10016         safely allocate code/RAM of separate ASM files to different pages/banks.
10017         * doc/sdccman.lyx: added Slade's tips
10018         * src/mcs51/peeph.def: fixed bug #880768
10019
10020 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10021
10022         * src/hc08/ralloc.c (rematStr): fixed bug #879282
10023         * src/SDCCast.c (decorateType): fixed bug #880197
10024
10025 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
10026
10027         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
10028         getopt.h.
10029
10030         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
10031         strtof is not part of C89 and isn't included with Mac OS X.
10032
10033 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10034
10035         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
10036         shiftL2Left2Result): fixed bug #879326
10037         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
10038         (genMultOneByte): fixed bug in signed vs unsigned multiplication
10039         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
10040         address fetch for clr instruction
10041         * device/lib/hc08/_mulint.c: created optimized assembly version
10042         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
10043
10044 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
10045
10046         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
10047         proposed in FR #877103
10048
10049 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
10050
10051         * src/SDCCval.c (cheapestVal): added missing checks
10052         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10053         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10054
10055 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10056
10057         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10058         equal operands
10059
10060 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10061
10062         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10063         loaded with the linker search paths (-L arguments) and the libraries
10064         to be linked with the current source (-l arguments). Changes
10065         currently will affect only the pic16 port.
10066         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10067         include path the port specific paths and port specific libraries,
10068         * gplink command now contains the $3 argument,
10069         * src/pic16/device.h,
10070         * src/pic16/device.c,: structure PIC_device is made public and
10071         renamed to PIC16_device, the same for variable Pics which is renamed
10072         to Pics16. Updated all references to them.
10073         * src/pic16/glue.c (pic16glue): corrected bug with code
10074         initialization which bypassed the variable initializations block.
10075
10076         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10077         COMPILE_FLAGS and added the --nostdinc option
10078
10079 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10080
10081         * device/include/mc68hc908jb8.h: Register defs for another member
10082         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10083
10084 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10085
10086         Documenting changes from previous commits.
10087         * configure.in (version 1.56),
10088         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10089         when generating output files to configure the pic16 library,
10090         but now I've commented it out, since gputils aren't installed in the
10091         SF compile farm, so library won't compile
10092
10093         * device/lib/Makefile.in (version 1.56): initially I've added in
10094         target 'all' the prerequestive 'model-pic16' so it compiled the
10095         pic16 library, but now I've commented it out for the same reasons
10096         above,
10097         * added targets 'model-pic16' and 'objects-pic16' to compile the
10098         library
10099         * added target 'port-specific-objects-pic16' to handle the
10100         generated libraries and copy them into the build/ directory
10101         * added target 'clean-intermediate-pic16' to clean intermediate
10102         files into pic16 directory
10103         * in target 'installdirs' added line to create directory pic16 in
10104         the installation path
10105
10106         * device/include/Makefile.in (version 1.11): in target 'install'
10107         added lines to copy all header files to installation path,
10108         * in target 'installdirs' added line create directory for pic16
10109         headers in the installation path
10110
10111 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10112
10113         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10114          a function call
10115
10116 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10117
10118         * configure,
10119         * device/lib/configure.in,
10120         * device/lib/configure: fixed for autoconf 2.57
10121
10122 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10123
10124         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10125         option so that it actually works. Made it specific to the z80, since
10126         the gbz80 doesn't have these kinds of I/O ports.
10127
10128 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10129
10130         * device/include/z180.h,
10131         * device/lib/_memcpy.c,
10132         * device/lib/_memmove.c,
10133         * device/lib/_mulint.c,
10134         * device/lib/ser_ir.c,
10135         * device/lib/ser_ir_cts_rts.c,
10136         * device/lib/_strcmp.c,
10137         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10138         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10139         portmode; added deprecation warning for bank= and protmode= forms.
10140         Also, guard against buffer overflow.
10141         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10142
10143 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10144
10145         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10146         changed interrupt vector table generation to only emit declared vectors.
10147         * device/include/Makefile.in: added missing backslash
10148         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10149
10150 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10151
10152         Mainly changes to support compilation of the device libraries
10153         * src/pic16/device.c: stack is allocated via symbol and not
10154         via literal number. The symbol is placed in the corresponding
10155         position of the data ram
10156         * (pic16_dump_section): relocatable and absolute uninitialized
10157         data are now emitted in sorted order to reduce section naming,
10158         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10159         weren't marked as being in the access bank,
10160
10161 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10162
10163         Added portion of GNU PIC Library under the directory
10164         device/include/pic16 and device/lib/pic16. These files
10165         contain the declarations of SFRs for the PIC18Fxx2 devices.
10166         The directory is initialized via configure from toplevel.
10167
10168 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10169
10170         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10171         the spilllocations to be compared correctly
10172
10173 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10174
10175         * src/SDCCast.c (decorateType): fixed bug introduced today
10176
10177 2004-01-12  Borut Razem <borut.razem AT siol.net>
10178
10179         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10180         doc/sdccman.lyx: upper case pragmas are deprecated
10181
10182 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10183
10184         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10185         in simpler and even better code
10186
10187 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10188
10189         * src/SDCCicode.c (operandOperation): fixed bug #874819
10190         * src/SDCCast.c (decorateType): fixed
10191         char foo (unsigned long ul) { return ul > 0; }
10192
10193 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10194
10195         * doc/sdccman.lyx: Moved and added some sections, small changes
10196         all over. Telling LaTeX to be less strict with word spacing
10197         to better keep the right margin. Changed some notes about
10198         maintainance of the ports in section 3.2.1 - is it OK like this?
10199
10200 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10201
10202         SDCC source changes:
10203         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10204         convilong): modified to inform the pic16 port that builtin functions
10205         are external
10206
10207         PIC16 PORT specific changes:
10208         * src/pic16/device.c pic16_dump_equates() added,
10209         processor registers declared internally by the port are emitted in
10210         the translation as equates,
10211         * src/pic16/gen.c: inline code is passed unprocessed to the
10212         translation,
10213         * (pic16_popGetLit2): fnuction modified to take second operand as
10214         pCodeOp pointer and not as literal,
10215         * (popRegFromIdx): prefixed with pic16_,
10216         * (pic16_popCombine2): modified to receive already allocated pCode
10217         operands,
10218         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10219         * (genFunction): initializes local stack frame and pushes on stack
10220         all the registers used by this function,
10221         * (genEndFunction): restores all registers from stack and restores
10222         stack frame,
10223         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10224         improvements,
10225         * (pic16glue): changed the program startup sequence,
10226         * added new dbName code 'A' for functions placed in absolute section
10227         * src/pic16/main.c: added function attribute _naked,
10228         * added pragma 'code' to place a fnuction at an absolute address,
10229         * added command line arguments --debug-ralloc and --pcode-verbose,
10230         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10231         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10232         * (pic16_newpCodeOpLit2): modified to take the second operand as
10233         pCodeOp pointer,
10234         * (pic16_printpBlock): modified to emit each function in a separate
10235         section,
10236         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10237         UPPER for immediate operands,
10238         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10239         instruction,
10240         * src/pic16/peeph.def: all peepholes with movff are commented out,
10241         because there is a problem in the pcode peep optimizer,
10242         * src/pic16/ralloc.c: the register allocator can now reuse local
10243         function symbols for another function. This saves register usage.
10244         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10245
10246         Added file src/pic16/NOTES with information about program writing on
10247         the current port version.
10248
10249 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10250
10251         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10252         and peephole 252 (array access)
10253
10254 2004-01-09  Borut Razem <borut.razem AT siol.net>
10255
10256         * src/SDCCmain.c : fixed #872250: -l command line defined library
10257           files are scanned before standard library files
10258
10259 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10260
10261         * src/SDCCast.c (decorateType): fixed bug #874046
10262
10263 2004-01-09  Borut Razem <borut.razem AT siol.net>
10264
10265         * support/scripts/sdcc.nsi: remove previous installation
10266
10267 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10268
10269         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10270         bytes for last interrupt vector (mcs51)
10271         * sdcc.spec: fixed typo
10272
10273 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10274
10275         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10276         gen51Code): more efficient parameter receive for --model-large
10277         ("bug" #845294)
10278
10279 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10280
10281         * src/ds390/main.c,
10282         * src/z80/main.c: added missed needLinkerScript flags (more than
10283         one port structure defined in these file)
10284         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10285         bug #795325
10286
10287 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10288
10289         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10290         * src/port.h: added flag needLinkerScript in port->linker
10291         structure to inform whether to create a .lnk file or not,
10292         * src/avr/main.c,
10293         * src/ds390/main.c,
10294         * src/hc08/main.c,
10295         * src/mcs51/main.c,
10296         * src/pic/main.c,
10297         * src/pic16/main.c,
10298         * src/xa51/main.c,
10299         * src/z80/main.c: changed appropriately to configure
10300         needLinkerScript flag
10301         * src/pic/gen.c,
10302         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10303         * src/pic/glue.c: added variable udata_section_name to
10304         override default uninitialized data segment definition for
10305         devices only with SHAREBANK memory (reported from Erik Epetrich)
10306         * (pic14emitOverlay): modified to emit a commented overlay segment
10307         directive when no overlay data exist
10308         * (picglue): modified to emit uninitialized data segment
10309         according to udata_section_name
10310         * src/pic/main.c (_pic14_parseOptions): added command line
10311         options --udata-section-name=[name] to override default
10312         udata definition name
10313         * modified _linkCmd and _asmCmd to include compiler passed
10314         arguments via -W option
10315         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10316         object file from '.rel' to '.o' in port->linker structure,
10317         changed size of fptr from 2 to 3 in port structure
10318
10319 2004-01-07  Borut Razem <borut.razem AT siol.net>
10320
10321         * support/scripts/sdcc.nsi: update PATH
10322         * support/scripts/sdcc.ico: craeted
10323
10324 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10325
10326         * device/include/Makefile.in: fix install
10327         * doc/Makefile: fix install
10328
10329 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10330
10331         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10332         in bug #860505
10333         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10334         how the function variable allocation summary is displayed; also
10335         include information about variables allocated to the overlay
10336         segment
10337
10338 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10339
10340         * as/mcs51/lkmain.c: Help about -Y option
10341         * as/mcs51/lkarea.c: Fixed gcc warnings
10342
10343 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10344
10345         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10346         fixed warning
10347         * support/valdiag/tests/overflow.c: added
10348         * src/SDCCast.c (decorateType),
10349         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10350         LEFT_OP (left shift)
10351
10352 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10353
10354         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10355         (default behaviour).
10356
10357 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10358
10359         A python script to validate compiler diagnostic messages. It can be
10360         used to verify that sdcc complains about bad c source code and
10361         gives a good location of the error.
10362         * support/valdiag/Makefile,
10363         * support/valdiag/valdiag.py,
10364         * support/valdiag/tests/*
10365
10366 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10367
10368         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10369         * src/SDCCsymt.c (newEnumType),
10370         * src/SDCCsymt.h
10371         * support/Util/SDCCerr.c,
10372         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10373         enum related bugs.
10374         * support/regression/tests/enum.c: added test for enum values that
10375         require at least 2 bytes of storage.
10376
10377 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10378
10379         * src/common.h: added ifndef/define/endif macros
10380         around the header file.
10381         Bug reported from Jesus Calvino-Fraga
10382
10383 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10384
10385         * sdcc.spec: updated
10386         * device/include/Makefile.in: don't install CVS directories
10387         * device/lib/Makefile.in: added removal of CVS directories after install
10388         * doc/Makefile: fixed install, added local_icons
10389         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10390         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10391         * src/ds390/gen.c (genRightShift): fixed bug #870788
10392         * src/SDCCast.c (decorateType): fixed bug #870781
10393
10394 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10395
10396         PIC16 port related changes:
10397         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10398         added variable stackPos,
10399
10400         * gen.c: genCall, assignResultValue: added support for
10401         pushing/retrieving function parameters to/from stack,
10402         genFunction,genEndFunction: setup stack frame for the
10403         generated function,
10404         genAddrOf: will be changed according to bug 863624
10405
10406         * added files genutils.c and genutils.h which contain gen*
10407         debugged and optimised functions extracted from gen.c
10408
10409         * glue.c: added variable 'externs' which holds extern symbols,
10410         pic16emitRegularMap: is modified to properly handle relocatable
10411          symbols under the new scheme,
10412         pic16createInterruptVect: is modified
10413         pic16printPublics: is modified to emit 'global' assembler directives,
10414         added pic16_printExterns to print extern symbols,
10415         pic16glue: initializes stack/frame pointer in the beginning of
10416         the assembly output. Temporary hack, will be corrected later,
10417         because gplink yet does not support stack and SDCC does not
10418         yet support a type of crt0.o object to create the final binary.
10419
10420         * Removed many lines that contain 8051 legacy code.
10421         * The code is finally placed under a 'code' directive.
10422         * Added port specific options.
10423
10424         * _process_pragma: simplified since now we do not need *special*
10425         include file to define SFR registers. But a separate header
10426         will be needed. This will be developed later.
10427         * _pic16_parseOptions: added, parses port specific options:
10428         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10429         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10430         --preplace-udata-with=
10431
10432         * _pic16_setDefaultOptions: modified to initialize section names,
10433         but hack is temporarly out of order since it needs improvement.
10434         * _pic16_genAssemblerPreamble: configuration words are emitted by
10435         their address instead of their name. This part is incomplete and
10436         supports only the 18Fxx2 devices. Other devices will emit an error
10437         during assembly since they do not contain the same set of config
10438         registers
10439         * _pic16_genIVT: is modified,
10440
10441         * pcode.c: added definitions for some hardware registers that are needed
10442         for stack support
10443         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10444         All PCI entries are updated. Now LFSR is supported.
10445         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10446         * added pic16_newpCodeOpLit2 to support instructions with
10447         two literal arguments
10448         * pic16_pCode2str: corrected code that emits assembler instructions
10449         with two literal operands and those that have an access bit modifier
10450         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10451         this fixes a bug which caused some labels to be lost, when an
10452         assembler directive was added, i.e. banksel,
10453         * pic16_FixRegisterBanking: improved logic that causes the insertion
10454         of bank switching,
10455         * InlineFunction: functions that are called once, are not any more
10456         inlined. This can be a port option in the future,
10457
10458         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10459
10460         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10461         hold the corresponding uninitialized symbols,
10462         * pic16_allocProcessorRegister: registers have explicit marked the
10463         accessBank field,
10464         * pic16_allocInternalRegister: registers are explicit marked as
10465         not used,
10466         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10467         processing list, so bit registers were lost,
10468         *
10469
10470         * ralloc.h: added field 'accessBank' and original symbol operand
10471         in register definition,
10472         * removed the field isMapped from register definition,
10473
10474         ** Several functions have been removed from various sources:
10475         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10476         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10477         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10478         pic16_assignRelocatableRegisters
10479
10480         ** others have been introduced:
10481         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10482         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10483
10484 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10485
10486         * support/scripts/inc2h.pl: changed definition of BIT_AT
10487         to emit 'sbit at' instead of 'bit at'. This was a request.
10488
10489         PIC16 port related preliminary changes:
10490         * gen.c: prefixed function popRegFromString with
10491         pic16_ and all references to it corrected
10492         * pcode.c: all pic16_pc_* hardware registers prefixed
10493         with underscore (_),
10494         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10495         * ralloc.c: newReg(): when register is REG_SFR then
10496         set address to rIdx,
10497         pic16_allocProcessorRegister(): marks register wasUsed=0
10498         pic16_writeUsedRegs(): added a call to assign processor
10499         registers via pic16_assignFixedRegisters
10500
10501 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10502
10503         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10504         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10505         variables in unused register banks.  Also the SSEG is placed
10506         wherever there is enough space for it, and IDATA can be anywhere
10507         in internal RAM.  For now compile using -Wl-Y[stack_size].
10508         The mem file is different for this option as well, since it
10509         makes no sense of talking about DSEG lenght.
10510
10511 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10512
10513         * src/SDCClrange.c: fixed bug 869095 that caused segfault
10514         in certain cases, e.g. when ROM assignment, patch provided
10515         from Albert den Haan.
10516
10517 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10518
10519         Many signedness and type propagation fixes:
10520         * src/SDCCicode.c: made geniCodeCast() static
10521         replaced SPEC_ by IS_ (cosmetic)
10522         (operandOperation): fixed div and mod operation
10523         (usualBinaryConversions): added support for promotion of char
10524         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10525         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10526         (geniCodeAdd): an array index will stay unsigned, even if promoted
10527         from char to int
10528         (geniCodeArray): ditto
10529         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10530         * src/SDCCsymt.c (computeType): added more support for char;
10531         promotion of char is selectable by promoteCharToInt, fixed signedness
10532         for all cases
10533         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10534         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10535         * src/SDCCval (val*): replaced signedness calculation by
10536         computeType()
10537         rearranged if-branches (cosmetic)
10538         (valShift): added warning W_SHIFT_CHANGED
10539         (valCompare): fixed problem with different types
10540         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10541         * support/regression/tests/literalop.c: added many cases
10542         * support/regression/tests/ast_constant_folding.c: changed finally to
10543         'unsigned int'
10544         * .version: new year, new version: 2.3.7
10545         * src/SDCCmain.c (main): applied patch #866468
10546         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10547         provided by Scott Bronson
10548         * doc/sdccman.lyx: updated documentation for sdcdb
10549         updated and added chapter tips
10550
10551 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10552
10553         * src/SDCCsymt.h: missing from yesterday's commits
10554
10555 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10556
10557         * src/SDCC.y (struct_or_union_specifier),
10558         * support/Util/SDCCerr.c,
10559         * support/Util/SDCCerr.h: verify that struct & union tags are used
10560         as declared.
10561
10562 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10563
10564         * src/SDCCglobl.h: missing from yesterday's commits
10565
10566 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10567
10568         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10569         sft_attributes, struct_declaration, parameter_declaration,
10570         type_name, start_block, declaration_list),
10571         * src/SDCC.lex (check_type): support redefinition of typedef names
10572
10573 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10574
10575         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10576         aligned xdata arrays. Erik helped me with the if clause.
10577
10578 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10579
10580         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10581         warning
10582
10583 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10584
10585         * src/SDCCast.h,
10586         * src/SDCCast.c (newAst_),
10587         * src/SDCCicode.h,
10588         * src/SDCCicode.c (ast2iCode, newiCode),
10589         * src/SDCCglobl.h,
10590         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10591         expr, statement, expression_statement, selection_statement,
10592         iteration_statement, expr_opt, jump_statement): foundation for tracking
10593         sequence points
10594         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10595         point code too)
10596
10597 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10598
10599         * support/Util/SDCCerr.c,
10600         * src/SDCCast.h,
10601         * src/SDCCast.c (createCase, createDefault, decorateType),
10602         * src/SDCClabel.c (labelUnreach),
10603         * src/SDCC.y (labeled_statement, jump_statement): More improvements
10604         to error messages.
10605         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10606         (with thanks to Stas Sergeev)
10607         * device/include/time.h,
10608         * device/lib/time.c (CheckTime): suppress unreachable code warning
10609
10610 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10611
10612         * src/SDCCast.c (createIvalCharPtr),
10613         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10614         bug #753752)
10615         * support/regression/tests/nullstring.c: tests for these two bugs
10616
10617 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10618
10619         * support/Util/SDCCerr.h,
10620         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10621         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10622         about storage class and 'at' used inside struct or union
10623         * src/SDCCBBlock.c (iCodeFromeBBlock),
10624         * src/SDCCcse.c (ifxOptimize),
10625         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10626         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10627         printIval, emitStaticSeg, emitOverlay),
10628         * src/SDCClabel.c (deleteIfx),
10629         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10630         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10631         gatherAutoInit, processParms),
10632         * support/Util/SDCCerr.h,
10633         * support/Util/SDCCerr.c (werrorfl): Support for better error location
10634         reporting for post-parse errors.
10635
10636 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10637
10638         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10639         implicit casts via union; they don't work on big endian systems
10640         (possible fix for bug #861138)
10641
10642 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10643
10644         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10645         * src/mcs51/main.c: fixed the fix for bug #737001
10646
10647 2003-12-15  Borut Razem <borut.razem AT siol.net>
10648
10649         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10650
10651 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10652
10653         * support/makebin/makebin.c: put output in binary mode
10654
10655 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10656
10657         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10658         xdata and data memory on startup. Set the environment variable
10659         SDCC_NOGENRAMCLEAR to disable this.
10660         * src/mcs51/peephole.def,
10661         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10662         (allows non-interrupt and interrupt code to safely compete for a resource
10663         without the non-interrupt code having to disable interrupts)
10664
10665 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10666
10667         * src/SDCCicode.c (geniCodeAdd),
10668         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10669         with valFromType if type might be a pointer and host is big endian).
10670         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10671         types, not just integer types.
10672         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10673         multiply defined with mismatching "at" address.
10674
10675 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10676
10677         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10678         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10679         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10680         with embedded nulls (fixed bug #753752)
10681
10682 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10683
10684         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10685         Apparently this did not see much testing (endless loop)
10686
10687 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10688
10689         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10690
10691 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10692
10693         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
10694         gracefully handle NULL memmap pointers
10695
10696 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10697
10698         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
10699         instead of deleting the iCode when an operand is volatile
10700         * src/z80/gen.c (genDummyRead),
10701         * src/mcs51/gen.c (genDummyRead),
10702         * src/ds390/gen.c (genDummyRead),
10703         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
10704         not just IC_RIGHT
10705         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
10706         * src/SDCC.y: fixed bug #850420
10707
10708 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10709
10710         Applied z80 i/o port patch from Peter Townson and fixed some operators
10711         to better handle operands in A register.
10712         * device/include/z180.h
10713         * src/SDCC.y
10714         * src/SDCCglue.c
10715         * src/z80/gen.c
10716         * src/z80/gen.h
10717         * src/z80/main.c
10718         * src/z80/peeph-z80.def
10719         * src/z80/peeph.def
10720         * src/z80/z80.h
10721
10722 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10723
10724         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
10725
10726 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10727
10728         * device/lib/hc08/_mullong.c: Removed extra #endif
10729
10730 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10731
10732         * sim/ucsim/hc08.src/inst.cc,
10733         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
10734         carries from x to h
10735         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
10736         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
10737         * device/include/stdarg.h: fixed varargs for hc08
10738         * device/lib/Makefile.in,
10739         * device/lib/hc08/Makefile,
10740         * device/lib/hc08/_mulint.c,
10741         * device/lib/hc08/_mullong.c: fixed some endian problems
10742
10743 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10744
10745         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
10746         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
10747         * device/lib/_gptrget.c,
10748         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
10749
10750 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10751
10752         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
10753         * src/SDCCast.c (astErrors): fixed bug #846007
10754         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
10755
10756 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10757
10758         * src/SDCCast.c (decorateType): disabled a transformation I added in
10759         revision 1.188 (access to fields of a structure at an absolute address);
10760         it breaks with bitfields, extern declarations, and gcse analysis.
10761         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
10762         could be assigned through a pointer, so don't complain.
10763         * src/SDCCast.c (astErrors),
10764         * src/SDCCast.h,
10765         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
10766
10767 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
10768
10769         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
10770         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
10771         output of __config directives, since gpasm now supports them
10772         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
10773         pre-processor macro, i.e. -DMCU=p18f452
10774         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
10775         and modified to handle 'cast' icode similarly to '=' icode
10776         * src/pic16/device.h (typedef struct PIC_device): added field
10777         'extMIface' to indicate that chip has external memory interface
10778         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
10779         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
10780         18F8720
10781
10782 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10783
10784         * src/SDCC.y (pointer): fixed bug #846006
10785         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
10786         * src/SDCCast.c (decorateType): fixed bug #846009
10787         * src/ds390/peeph.def,
10788         * src/ds390/gen.c (genAnd, genOr),
10789         * src/mcs51/peeph.def,
10790         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
10791
10792 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10793
10794         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
10795         * src/SDCCdflow.c
10796         * src/SDCCcse.c
10797         * src/SDCCcse.h
10798         * src/SDCCBBlock.h
10799         * src/SDCCBBlock.c
10800
10801 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
10802
10803         fixed bug #845089
10804         * src/SDCCbitv.h,
10805         * src/SDCCbitv.c: added function to free a bitvector
10806         * src/SDCClrange.h,
10807         * src/SDCClrange.c: added function to recompute the liveranges
10808         * src/avr/ralloc.c,
10809         * src/ds390/ralloc.c,
10810         * src/hc08/ralloc.c,
10811         * src/mcs51/ralloc.c,
10812         * src/pic/ralloc.c,
10813         * src/pic16/ralloc.c,
10814         * src/xa51/ralloc.c,
10815         * src/z80/ralloc.c: recompute the liveranges after register packing
10816
10817 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
10818
10819         * src/SDCCloop.c (newInduction): fixed bug #845630
10820
10821 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10822
10823         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
10824         inadvertantly left behind from my 2003-11-12 change
10825
10826 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10827
10828         Updated headers I neglected to commit yesterday.
10829         * src/SDCClrange.h,
10830         * src/SDCCicode.h
10831
10832 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10833
10834         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
10835         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
10836         * src/SDCCopt.c (eBBlockFromiCode),
10837         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
10838         the creation of the key hash table from the sequencing so it can be used
10839         earlier (for some GCSE bug fixes still pending)
10840
10841 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10842
10843         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
10844         * support/regression/tests/addsub.c: testing genPlus shortcut
10845
10846 2003-11-15  Borut Razem <borut.razem AT siol.net>
10847
10848         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
10849
10850 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10851
10852         * src/SDCCcse.c (cseBBlock): fixed bug #527779
10853         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
10854         ordering is immaterial.
10855         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
10856
10857 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10858
10859         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
10860         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
10861         (SIGSEV) of bug #840381
10862         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
10863         unlink new file before rename if new and old filenames are the same)
10864
10865 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10866
10867         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
10868         uninitialized variables) for the mcs51. Set environment variable
10869         SDCC_GENRAMCLEAR to test.
10870         xdata initialization slightly shorter
10871
10872 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10873
10874         * src/SDCCsymt.h,
10875         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
10876         #838241 & 780691 (basicly the same bug)
10877         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
10878         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
10879
10880 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
10881
10882         * src/SDCCmain.c (linkEdit): "fix" #834252
10883
10884 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10885
10886         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
10887         * src/SDCCast.h,
10888         * src/SDCC.y: fixed bug #819403
10889
10890 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10891
10892         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
10893         the reentrant attribute.
10894         * src/hc08/gen.c (genPackBits): added missing stack readjustment
10895         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
10896         simulation
10897         * src/SDCCast.c (decorateType): fixed bug with storage class not being
10898         updated during pointer dereference; f.e. ~(((char *)1)*) was being
10899         erroneously reduced to a literal.
10900         * src/hc08/ralloc.c (packRegisters, rematStr),
10901         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
10902         some cases
10903
10904 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10905
10906         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
10907         * doc/sdccman.lyx: changed from 'article' to 'book'
10908         * doc/Makefile: readded test_suite_spec and cdbfileformat
10909
10910 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
10911
10912         * device/include/stdlib.h: include malloc.h to comply with ANSI
10913         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
10914
10915 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10916
10917         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
10918         * doc/clean.mk: also remove *.out files
10919         * doc/sdccman.lyx: some additions, larger top/bottom margins
10920
10921 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10922
10923         * src/SDCC.y: fixed bug #837365
10924         * support/regression/tests/bitopcse.c
10925         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
10926         a symbol (might be valop instead)
10927         * device/lib/Makefile.in: added errno.c to HC08SOURCES
10928         * device/lib/clean.mk: added hc08 to the cleaning list
10929
10930 2003-11-04  Borut Razem <borut.razem AT siol.net>
10931
10932         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
10933           made 2003-11-04
10934         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
10935           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
10936           malloc is declared in standard stdlib.h
10937
10938 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10939
10940         * device/lib/hc08/Makefile: need to clean .rel not .o files
10941         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
10942
10943 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10944
10945         * src/port.h,
10946         * src/hc08/main.c,
10947         * src/mcs51/main.c,
10948         * src/ds390/main.c,
10949         * src/z80/main.c,
10950         * src/avr/main.c,
10951         * src/pic/main.c,
10952         * src/pic16/main.c,
10953         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
10954         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
10955         tests (which uses the port's oclsExpense function)
10956         * src/SDCC.y,
10957         * src/SDCCast.c,
10958         * src/SDCCicode.c,
10959         * src/hc08/gen.c,
10960         * src/ds390/gen.c,
10961         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
10962
10963 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10964
10965         * src/SDCCcse.c (ifxOptimize),
10966         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
10967         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
10968         deleting the IFX iCode.
10969         * src/hc08/ralloc.c: reduced unneeded slocs
10970         * src/hc08/gen.c: fixed bug in asmopToBoolean
10971
10972 2003-11-04  Borut Razem <borut.razem AT siol.net>
10973
10974         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
10975           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
10976           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
10977           transferred to configure
10978
10979 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
10980
10981         Use headers defined in the C[++] standards:
10982         * sim/ucsim/gui.src/serio.src/fileio.cc
10983         * sim/ucsim/gui.src/serio.src/frontend.cc
10984         * sim/ucsim/gui.src/serio.src/main.cc
10985         * sim/ucsim/gui.src/serio.src/posix_signal.cc
10986         * support/Util/NewAlloc.c
10987         * as/hc08/lklibr.c
10988         * as/mcs51/lklibr.c
10989         * as/z80/aslist.c
10990         * as/z80/assym.c
10991
10992 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10993
10994         * Added MSVC projects for hc08 assembler and linker:
10995         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
10996         /as/hc08/link_hc08.dsp
10997
10998 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
10999
11000         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
11001
11002 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
11003
11004         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
11005
11006 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11007
11008         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
11009
11010 2003-10-31  Borut Razem <borut.razem AT siol.net>
11011
11012         * support/cpp2/cpplib.h,
11013           support/cpp2/cpplib.c,
11014           support/cpp2/cpplex.c,
11015           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
11016           to switch _asm block preprocessing on / off. Default is
11017           #pragma preproc_asm +
11018
11019 2003-10-31  Borut Razem <borut.razem AT siol.net>
11020
11021         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
11022           when outputting comment blocks (when executed with -C option) and
11023           _asm (SDCPP specific) blocks
11024
11025 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11026
11027         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
11028
11029 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
11030
11031         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
11032
11033 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
11034
11035         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
11036         * src/SDCCast.c (decorateType): fixed bug #832664
11037
11038 2003-10-31  Borut Razem <borut.razem AT siol.net>
11039
11040         * support/cpp2/cpplex.c: fixed for SDCPP:
11041           comments(when executed with -C option) and _asm blocks
11042           were included even if they where in skipped #if block.
11043           Applied solution from GCC cpp 3.3.2
11044
11045 2003-10-31  Borut Razem <borut.razem AT siol.net>
11046
11047         * src/SDCC.lex: sdcc now understands both formats:
11048           '# <line_number> <file_name>' and
11049           '#line <line_number> <file_name>'
11050         * support/cpp2/cppmain.c: sdcpp now generates the standard
11051           '# <line_number> <file_name>' instead of former
11052           '#line <line_number> <file_name>'
11053
11054 2003-10-30  Borut Razem <borut.razem AT siol.net>
11055
11056         * support/cpp2/cpphash.h,
11057         * support/cpp2/cpplib.h
11058         * support/cpp2/cpplex.c,
11059         * support/cpp2/cppmain.c,
11060         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11061
11062 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11063
11064         Fixed a number of problems revealed by bug #827883.
11065         * src/SDCCloop.c (loopInvariants): Spill location of the
11066         result operand should be recomputed if extracted from
11067         a loop. Also, don't extract assignments of an iTemp
11068         from a literal.
11069         * src/SDCCast.c (isConformingBody): loop reversal should
11070         not occur if the control variable is involved with a
11071         relational operator.
11072
11073 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11074
11075         * .version: bumped to 2.3.6 to reflect the big improvements
11076         made by Erik and Klaus. Thanks!
11077
11078 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11079
11080         Replaced the livrange code.
11081         * src/SDCClrange.c: added new LR code
11082         * src/SDCCloop.c,
11083         * src/SDCCBBlock.h: removed remainig parts from old LR code
11084         * src/ds390/ralloc.c,
11085         * src/ds390/gen.c: minor fixes to make it work with new code
11086
11087 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11088
11089         * as/hc08/asm.h,
11090         * as/hc08/lkrloc.c,
11091         * src/hc08/gen.c,
11092         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11093         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11094         (tweaked fix for bug #818696)
11095
11096 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11097
11098         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11099
11100 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11101
11102         * src/SDCCmain.c,
11103         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11104         * src/mcs51/gen.c (gencjneshort),
11105         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11106         more efficient (per Scott Bronson's suggestion)
11107
11108 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11109
11110         Extended the semantics of the critical keyword to include
11111         individual statements. See RFE #827755 and #799831
11112         * src/SDCC.y
11113         * src/SDCCicode.c
11114         * src/SDCCopt.c
11115         * src/SDCCast.c
11116         * support/Util/SDCCerr.c
11117         * support/Util/SDCCerr.h
11118         * src/mcs51/gen.c
11119         * src/ds390/gen.c
11120         * src/hc08/gen.c
11121
11122 2003-10-19  Borut Razem <borut.razem AT siol.net>
11123
11124         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11125
11126 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11127
11128         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11129         Fixed bug #818696
11130         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11131         and predecrement operand is displayed
11132
11133 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11134
11135         * src/SDCCval.c (valMinus): fixed bug #826041
11136
11137 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11138
11139         Some hc08 related updates that I missed earlier
11140         * sim/ucsim/stypes.h
11141         * support/regression/ports/hc08/spec.mk
11142
11143 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11144
11145         New target "hc08" for the Motorola 68hc08 family of micros
11146
11147         * configure
11148         * configure.in
11149         * Makefile
11150         * src/hc08/*
11151         * src/SDCCmain.c
11152         * src/port.h
11153         * sim/ucsim/hc08.src/*
11154         * sim/ucsim/configure.in
11155         * src/ucsim/configure
11156         * sim/ucsim/packages_in.mk
11157         * as/hc08/*
11158         * as/Makefile
11159         * device/include/mc68hc908qy.h
11160         * device/lib/hc08/*
11161         * device/lib/Makefile.in
11162         * support/regression/ports/hc08/*
11163         * support/regression/Makefile
11164
11165 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11166
11167         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11168         regression test
11169         * src/ds390/gen.c (genCast): fixed bug #821957
11170
11171 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11172
11173         * device/lib/logf.c: "fixed" overlay bug
11174         * support/regression/ports/host/spec.mk: added m library
11175         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11176         * support/regression/tests/float_trans: added (for Eric)
11177
11178 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11179
11180         * src/mcs51/gen.c (genCpl): fixed bug
11181         http://sf.net/mailarchive/message.php?msg_id=6263915
11182
11183 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11184
11185         * src/SDCCast.c (decorateType): added extended constant folding
11186         * src/SDCCsymt.c (computeType): cleanup
11187         * src/SDCCval.c (valShift): minor optimization
11188         * support/regression/tests/ast_constant_folding.c: added
11189
11190 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11191
11192         * src/SDCCmain.c: removed some unintended changes
11193
11194 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11195
11196         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11197         * src/z80/gen.c: fixed part of bug #817589
11198         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11199
11200 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11201
11202         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11203         * src/SDCCcflow.c
11204         * src/SDCCcse.c
11205         * src/SDCCdflow.c
11206         * src/SDCClabel.c
11207         * src/SDCClrange.c
11208         * src/SDCCmem.c
11209         * src/SDCCopt.c
11210         * src/SDCCpeeph.c
11211         * src/SDCCset.c
11212         * src/avr/ralloc.c
11213         * src/ds390/ralloc.c
11214         * src/izt/ralloc.c
11215         * src/mcs51/ralloc.c
11216         * src/pic/ralloc.c
11217         * src/pic16/ralloc.c
11218         * src/xa51/ralloc.c
11219         * src/z80/ralloc.c
11220         * src/z80/gen.c: removed unused label "release:"
11221
11222 2003-10-06  Borut Razem <borut.razem AT siol.net>
11223
11224         * src/SDCC.lex: removed definition of unused variables
11225           save_optimize and save_options
11226
11227 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11228
11229         * clean.mk: removed '=' in "-maxdepth=1"
11230         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11231         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11232
11233 2003-10-06  Borut Razem <borut.razem AT siol.net>
11234
11235         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11236           my_unput() replaced by unput()
11237
11238 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11239
11240         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11241         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11242         type-punned pointer will break strict-aliasing rules"
11243         Old LR behaviour is again default; Klaus' LR can be choosen by
11244         defining the environment variable LRKLAUS
11245         * src/SDCCBBlock.h
11246         * src/SDCCloop.c
11247         * src/SDCClrange.c
11248         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11249         * clean.mk: fixed removal of files in bin/CVS/
11250         * device/lib/clean.mk: fixed removal of directories small and large
11251         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11252         * src/SDCCicode.c,
11253         * src/SDCCval.c: removed superflous test for pedantic
11254
11255 2003-10-05  Borut Razem <borut.razem AT siol.net>
11256
11257         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11258           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11259           message "unmatched #pragma SAVE and #pragma RESTORE"
11260
11261 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11262
11263         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11264           assembly, critical functions, atomic, nojtbound)
11265
11266 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11267
11268         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11269         * src/SDCCBBlock.h
11270         * src/SDCCloop.c
11271         * src/SDCCloop.h
11272         * src/SDCClrange.c
11273
11274 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11275
11276         * src/z80/gen.h,
11277         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11278         * src/mcs51/gen.h
11279         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11280         * src/ds390/gen.h
11281         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11282         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11283         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11284
11285 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11286
11287         * src/z80/gen.c (genRet): fixed bug #524753
11288         * src/z80/gen.c (genCast): fixed internal error on cast from
11289         pointer to long
11290         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11291         fix for bug #477835 to the z80
11292         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11293         for tracking iCodes in the peephole optimizer for z80
11294
11295 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11296
11297         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11298         the other part of bug #814548
11299         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11300
11301 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11302
11303         * src/SDCCcse.c: fixed part of bug #814548
11304
11305 2003-09-28  Borut Razem <borut.razem AT siol.net>
11306
11307         * src/asm.c: rewrite of printILine() to use temporary file instead
11308           a pipe
11309         * src/xa51/main.c: commented out declaration of int rewinds
11310
11311 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11312
11313         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11314
11315 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11316
11317         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11318         * src/asm.c (printILine): Fixed bug #811015
11319
11320 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11321
11322         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11323         freeing.
11324
11325 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11326
11327         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11328         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11329         to correctly handle general case of AOP_PAIRPTR
11330         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11331
11332 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11333
11334         * src/mcs51/ralloc.c (fillGaps),
11335         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11336         register positioning bug)
11337
11338 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11339
11340         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11341
11342 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11343
11344         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11345         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11346         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11347         (ralloc doesn't intentionally do this now, but perhaps later)
11348         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11349         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11350         register positioning bugs (Fixed bug #762602 and #795325)
11351         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11352         (Fixed bug #808779)
11353         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11354         lines that --i-code-in-asm generates
11355
11356 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11357
11358         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11359         trying to fclose a FILE* that was already closed.
11360
11361 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11362
11363         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11364         of const struct should be treated as if const themselves)
11365
11366 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11367
11368         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11369
11370 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11371
11372         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11373         Unix (/n) and DOS (/r/n) line terminations.
11374
11375 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11376
11377         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11378         bug #613775
11379
11380 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11381
11382         * src/mcs51/gen.c (genFunction, genEndFunction),
11383         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11384         and restore of EA so that stack offsets to parameters are
11385         correct when using both critical and reentrant/stack-auto.
11386         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11387         size (can be triggered in error if sloc is shared between
11388         different sized objects)
11389         * device/include/float.h: fixed macros to explicitly use
11390         unsigned long where needed
11391
11392 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11393
11394         Feature req. 799831: added code to allow nesting of critical functions
11395         * src/mcs51/gen.c (genFunction, genEndFunction)
11396         * src/ds390/gen.c (genFunction, genEndFunction)
11397
11398 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11399
11400         * src/SDCCsymt.c (sclsFromPtr),
11401         * src/SDCCsymt.h,
11402         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11403         support for standard C idiom of memory mapped variables; for
11404         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11405         to xdata int at 0x1234 tempvar = 1.
11406         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11407         provided by Akiya ISHIDA
11408
11409 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11410
11411         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11412         * src/SDCCval.c (constVal): added reduction from int to char
11413         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11414         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11415         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11416         to ignore the sign
11417         * support/regression/tests/shifts.c: fixed
11418
11419 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11420
11421         * src/z80/gen.c (genXor): Fixed bug #805445
11422
11423 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11424
11425         Fixed bug #621531 (const & volatile confusion in the type chain).
11426         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11427         refer to the const or volatile state of the pointer itself.
11428
11429         * src/SDCCast.c
11430         * src/SDCCglue.c
11431         * src/SDCCicode.c
11432         * src/SDCCsymt.c
11433         * src/SDCCval.c
11434         * src/SDCC.y
11435         * src/SDCCsymt.h
11436         * src/pic/gen.c
11437         * src/pic/ralloc.c
11438         * src/pic16/gen.c
11439         * src/pic16/ralloc.c
11440         * support/regression/tests/const.c
11441
11442 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11443
11444         When checking for duplicated modules, use absolute paths
11445         instead of relative paths.  Files changed:
11446
11447         * as/mcs51/lklib.c
11448         * link/z80/lklib.c
11449
11450 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11451
11452         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11453
11454 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11455
11456         * device/include/string.h: added size_t typedef, changed
11457         prototypes to use size_t, eliminated separate reentrant and
11458         non-reentrant declarations, added _memmove declaration
11459         * device/lib/_memcpy.c: changed to use size_t instead of int,
11460         changed /4 to >>2 to avoid division library call
11461         * device/lib/_memcmp.c,
11462         * device/lib/_memset.c,
11463         * device/lib/_strncat.c,
11464         * device/lib/_strncpy.c,
11465         * device/lib/_strncmp.c: changed to use size_t instead of int
11466         * device/lib/_memmove.c: new file (fixed bug #772294)
11467         * device/lib/Makefile.in: added _memmove.c
11468         * device/lib/z80/asm_strings.s: fixed bug #772290
11469         * support/regression/tests/bitfields.c: attempt to fix host assertion
11470         failure on amd64-unknown-linux2.2
11471
11472 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11473
11474         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11475         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11476         * as/z80/asmain.c (main): fixed bug #801766
11477
11478 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
11479
11480         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11481         compilers
11482
11483 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11484
11485         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11486         reported in bug #800609
11487
11488 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
11489
11490         * Top header beautifications in src/pic16 directory:
11491           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11492           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11493           pcoderegs.h, ralloc.c, ralloc.h
11494         * main.c: added top header and GPL license notice
11495         * pcode.c: fixed the if-conditional warning
11496
11497 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
11498
11499         * device/lib/_mullong.c: replaced int by short for gcc
11500
11501 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11502
11503         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11504         and JUMPTABLE iCodes properly now (worked by accident before)
11505         * src/mcs51/gen.c (leftRightUseAcc),
11506         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11507         iCode properly now. Use getSize instead of nRegs since a & b
11508         aren't part of the nRegs tally.
11509
11510 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
11511
11512         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11513         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11514           before instructions that use the _STATUS register
11515
11516 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
11517
11518         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11519         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11520         fetching of the pointer
11521         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11522         copied from genNearPointerSet()
11523         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11524         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11525         If they pop r0/r1 they must be called in the opposite order than aopOp().
11526         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11527         (resp. --stack-auto), prepared for --xstack
11528
11529 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11530
11531         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11532
11533 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11534
11535         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11536         these ports have their own __sdcc_external_start()
11537
11538 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
11539
11540         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11541         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11542         type for bits was changed. It resulted in bit variables becoming
11543         global, which is not permitted in PIC 14 assembly output.
11544
11545 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11546
11547         * doc/sdccman.lyx: various additions and updates. Rearranged sections
11548
11549 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11550
11551         Z80 and MCS51 linkers complaint if a public symbol is defined
11552         in more than one library module:
11553
11554         * as/mcs51/lklib.c
11555         * link/z80/lklib.c
11556         * as/mcs51/Makefile.in
11557
11558 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11559
11560         A few small changes that speed up the peephole optimizer.
11561
11562         * src/SDCCpeeph.c
11563
11564 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11565
11566         Try to make the peephole optimizer smarter by maintaining
11567         an association between the assembly source code and the
11568         iCodes that originated them. Put this information to use
11569         with a new peephole rule condition "notVolatile" so that
11570         the rules can be aggressive yet still safe.
11571
11572         * src/SDCCpeeph.c
11573         * src/SDCCpeeph.h
11574         * src/mcs51/gen.c
11575         * src/mcs51/peeph.def
11576
11577 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11578
11579         Fixed bug #741761
11580
11581         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11582         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11583         if the left or right operand symbols have the accuse flag set.
11584
11585 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11586
11587         Changed the type of the result of the ! (NOT) operator to char;
11588         previously it returned the same type as the source. This allows
11589         us to eliminate all the genFloatNot functions (all of its target
11590         implementations were very buggy) since !float can use the same
11591         code as !long now.
11592
11593         * src/SDCCicode.c (ast2iCode): ! returns char
11594         * src/mcs51/gen.c (genNot, genNotFloat),
11595         * src/ds390/gen.c (genNot, genNotFloat),
11596         * src/z80/gen.c (genNot, genNotFloat),
11597         * src/pic/gen.c (genNot, genNotFloat),
11598         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11599
11600 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
11601
11602         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11603         1. Interrupt would not compile properly. Ensure PCLATH register is saved
11604            during interrupts. Ensure WSAVE is located at a shared bank address.
11605         2. Fixed page selection in some places
11606         3. Fixed BTFSS/C to where necessary use registers directly and not simply
11607            the registers name strings.
11608         4. Fixed "signed / unsigned compare" compiler warnings.
11609         5. The PIC port manages its own allocation of the general purpose
11610            registers, but makes no attempt to reuse them. As a result when
11611            compiling it soon runs out of general purpose registers. Some
11612            additional code was added to the files pcode.c and device.c to walk
11613            through the function call tree and rename the registers so that they
11614            get reused.
11615
11616         * src/pic/device.c
11617         * src/pic/gen.c
11618         * src/pic/glue.c
11619         * src/pic/pcode.c
11620         * src/pic/pcode.h
11621         * src/pic/ralloc.c
11622         * src/pic/ralloc.h
11623         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11624         genPlus() & genMinus() when the result is the same as left or right
11625
11626 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11627
11628         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11629
11630 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11631
11632         Made bitfield a distinct type from bit so that bitfields
11633         convert as per ANSI C and bits retain their traditional
11634         boolean style behaviour. Implemented bitfield support in
11635         the z80 port.
11636
11637         * src/SDCCsymt.h,
11638         * src/SDCCsymt.c,
11639         * src/SDCCast.c,
11640         * src/cdbFile.c,
11641         * src/mcs51/gen.c,
11642         * src/ds390/gen.c: bit v bitfield split
11643         * src/z80/gen.c: New support for bitfields
11644         * support/regression/tests/bitfields.c: reenabled z80,
11645         added more tests
11646
11647 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11648
11649         Rules 246.x, 247.x relate to bitfields, the others speed up
11650         access to xdata mapped I/O devices.
11651
11652         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11653
11654 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11655
11656         Cleaned up genPackBits and genUnpackBits and added two helper
11657         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11658         for literal assignments in genPackBits (thanks to Frieder for
11659         reminding me).
11660
11661         * src/mcs51/gen.c
11662         * src/ds390/gen.c
11663
11664 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11665
11666         Fixed bug #748310 (pointer to function type mishandled when the
11667         function name is omitted). Also fixed a SIGSEGV when a function
11668         attribute (reentrant, etc) is used on a non-function or on a
11669         function but misplaced before the parameter list.
11670
11671         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11672         bug #748310
11673         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11674         * support/Util/SDCCerr.h,
11675         * support/Util/SDCCerr.c: Added func attr misuse error msg
11676
11677 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11678
11679         Fixed bug #787649 by anonymous
11680         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11681         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11682
11683 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11684
11685         Fixed numerous bitfield problems.
11686
11687         * src/SDCC.y: More bitfield related error checking
11688         * src/SDCCsymt.h,
11689         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11690         * support/Util/SDCCerr.h,
11691         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
11692         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11693         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11694         * support/regression/tests/bitfields.c: tests added
11695
11696 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11697
11698         Made the constant following the "interrupt" keyword optional. If
11699         omitted, the function will not automatically be given an entry
11700         in the interrupt vector table (similar to #pragma NOIV, but
11701         less syntacticly kludgy). The interrupt number is also now
11702         range checked. Also fixed a bug in the high order bit example
11703         in the manual.
11704
11705         * src/SDCC.y
11706         * src/SDCCmem.c
11707         * src/SDCCglue.c
11708         * src/SDCCsymt.h
11709         * support/Util/SDCCerr.c
11710         * support/Util/SDCCerr.h
11711         * doc/sdccman.lyx
11712
11713 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11714
11715         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
11716         * src/SDCCicode.c (operandOperation): rewritten some ops
11717         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
11718         * src/SDCCsymt.c (computeType): literals are handled the same way as any
11719         other type
11720         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
11721         be re-activated by defining REDUCE_LITERALS)
11722         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
11723         unsigned, but are signed by default
11724         * src/SDCCval.c (constVal): rearranged
11725         * src/SDCCval.c (valMod): preliminary fix
11726         * src/SDCCval.c (valCastLiteral): use TYPE_* types
11727         * support/regression/literalop.c: added, work in progress
11728
11729 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11730
11731         Generate warnings for useless declarations like "char data;"
11732         that don't do what new users expect.
11733
11734         * src/SDCC.y
11735         * support/Util/SDCCerr.h
11736         * support/Util/SDCCerr.c
11737
11738 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
11739
11740         * src/SDCCval.c (valMult): fix overflow detection of negative int
11741
11742 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11743
11744         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
11745
11746         Changes to support big endian targets:
11747
11748         * src/ports.h
11749         * src/SDCCglue.c
11750         * src/avr/main.c
11751         * src/ds390/main.c
11752         * src/izt/i186.c
11753         * src/mcs51/main.c
11754         * src/pic/main.c
11755         * src/pic16/main.c
11756         * src/xa51/main.c
11757         * src/z80/main.c
11758
11759 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
11760
11761         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
11762         * device/lib/time.c: fixed warning "integer overflow in expression"
11763
11764 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
11765
11766         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
11767         * src/SDCCval.c (constVal): changed default to signed; hex and octal
11768         constants are unsigned; added recognition of "u" flag for unsigned
11769         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
11770         * src/SDCCval.c (valDiv, valMod): fixed signdness
11771         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
11772         signedness of modulo, left and right shift
11773         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
11774         * support/Util/SDCCerr.h: added warning W_INT_OVL
11775         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
11776         * src/SDCCast.c (ast_print): improved output of constants
11777
11778 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11779
11780         Fixed some warnings when building with MSVC:
11781
11782         * as/mcs51/asdata.c
11783         * as/z80/asdata.c
11784         * as/mcs51/asm.h
11785         * as/z80/asm.h
11786         * link/z80/aslink.h
11787         * link/z80/lkdata.c
11788         * link/z80/lkeval.c
11789         * link/z80/lkgb.c
11790         * link/z80/lkihx.c
11791         * link/z80/lks19.c
11792         * link/z80/lksym.c
11793         * support/cpp2/cpplib.c
11794         * src/ds390/gen.c
11795         * src/mcs51/gen.c
11796
11797 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
11798
11799         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
11800
11801 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11802
11803         * support/librarian/clean.mk: Do not remove Makefile.
11804         * support/librarian/Makefile: added.
11805
11806 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11807
11808         Added librarian to MSVC build:
11809         * all.dsp
11810         * sdcc.dsw
11811         * support/librarian/librarian.dsp
11812
11813         'configure' not needed for librarian, removed:
11814         * support/librarian/configure
11815         * support/librarian/configure.in
11816         * support/librarian/config_in.h
11817         * support/librarian/Makefile.in
11818
11819         Hopefully these ones built the librarian and the rest of sdcc properly:
11820         * Makefile
11821         * Makefile.common.in
11822
11823         Messed up 'configure', so revert to previous version:
11824         * configure
11825         * configure.in
11826
11827 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
11828
11829         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
11830         there, while the mantissa of a double is "only" 53 bits wide.
11831
11832 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11833
11834         Adding sdcclib to the build.  MSVC project coming soon.
11835         Files added/changed:
11836
11837         * support/librarian/clean.mk
11838         * support/librarian/configure
11839         * support/librarian/configure.in
11840         * support/librarian/config_in.h
11841         * support/librarian/Makefile.bcc
11842         * support/librarian/Makefile.in
11843         * support/librarian/sdcclib.c
11844         * Makefile.bcc
11845         * Makefile
11846         * Makefile.common.in
11847         * configure
11848         * configure.in
11849
11850 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11851
11852         Linker now complaints if linked modules have conflicting options, for
11853         example, one compiled using --model-large and another one compiled with
11854         --model-small.  The following files were modified:
11855
11856         * as/mcs51/asdata.c
11857         * as/mcs51/aslink.h
11858         * as/mcs51/asm.h
11859         * as/mcs51/asmain.c
11860         * as/mcs51/asout.c
11861         * as/mcs51/i51pst.c
11862         * as/mcs51/lkdata.c
11863         * as/mcs51/lklibr.c
11864         * as/mcs51/lkmain.c
11865         * as/z80/asdata.c
11866         * as/z80/asm.h
11867         * as/z80/asmain.c
11868         * as/z80/asout.c
11869         * as/z80/z80pst.c
11870         * link/z80/aslink.h
11871         * link/z80/lkdata.c
11872         * link/z80/lklibr.c
11873         * link/z80/lkmain.c
11874         * src/SDCCglue.c
11875
11876 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11877
11878         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
11879         as/mcs51/lklibr.c: Generate a warning when a library is not found.
11880
11881 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
11882
11883         * src/z80/mappings.i: fix _mul[us][int,long] entries
11884
11885 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11886
11887         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
11888
11889 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
11890
11891         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
11892         * support/regression/tests/bitopcse.c: added
11893         fixed warning:
11894         * src/avr/gen.c:
11895         * src/pic/gen.c:
11896         * src/pic16/gen.c:
11897         * src/z80/gen.c:
11898         * src/xa51/gen.c:
11899
11900 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11901
11902         added support for new library format to z80, gbz80 linkers:
11903         *link/z80/aslink.h
11904         *link/z80/lklex.c
11905         *link/z80/lklib.c
11906         *link/z80/lklist.c
11907
11908 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
11909
11910         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
11911         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
11912
11913 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
11914
11915         added DUMMY_READ_VOLATILE:
11916         * src/SDCC.y:
11917         * src/avr/gen.c:
11918         * src/xa51/gen.c:
11919         * src/z80/gen.c:
11920         * src/pic/gen.c:
11921         * src/pic16/gen.c:
11922         * src/mcs51/gen.c:
11923         * src/ds390/gen.c:
11924         * src/SDCCcse.c (algebraicOpts): many improvements
11925         * src/SDCCcse.h: removed algebraicOpts()
11926         * src/SDCCicode.c (picDummyRead): added
11927
11928 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11929
11930         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
11931         "Insufficient space in data memory".
11932
11933 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11934
11935         * src/mcs51/gen.c: fixed bug #771358
11936         * src/z80/gen.c: fixed bug #759087
11937
11938 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
11939
11940         * src/pic16/glue.c: minor cleanup by Vangelis
11941
11942 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11943
11944         * device/include/regc515c.h: fixed #758477
11945         * device/lib/_gptrget.c: saving some cycles in generic pointer get
11946         * device/lib/_gptrput.c: saved a few bytes
11947         * my tab spacing is 8, yours too?)
11948         * device/lib/_ser.c: process RX bytes earlier than TX bytes
11949         * device/lib/serial.c: process RX bytes earlier than TX bytes
11950         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
11951
11952 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11953
11954         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
11955
11956 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11957
11958     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
11959
11960 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
11961
11962         * device/lib/Makefile.in: bad fix, reverted to 1.43
11963
11964 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
11965
11966         * device/lib/Makefile.in: added missing z80 object files
11967
11968 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
11969
11970         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
11971         pic16 progress by Vangelis:
11972         * src/SDCCglobl.h:
11973         * src/SDCCmain.c:
11974         * src/pic/Makefile:
11975         * src/pic:
11976         * pic/Makefile:
11977         * pic16/device.c:
11978         * pic16/device.h:
11979         * pic16/gen.c:
11980         * pic16/gen.h:
11981         * pic16/genarith.c:
11982         * pic16/glue.c:
11983         * pic16/main.c:
11984         * pic16/pcode.c:
11985         * pic16/pcode.h:
11986         * pic16/pcodepeep.c:
11987         * pic16/peeph.def:
11988
11989 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11990
11991     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
11992
11993 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11994
11995     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
11996     added gbz80 build to MSVC project.
11997     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
11998     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
11999     from 8051 stuff and setup so it links using a .lnk file.
12000
12001 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12002
12003     * support/librarian/sdcclib.c: sdcc librarian.
12004     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
12005     with sdcclib.
12006
12007 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12008
12009     * as/mcs51/lkmain.c: properly handle extensions in function afile.
12010
12011 2003-07-02  Borut Razem <borut.razem AT siol.net>
12012
12013         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
12014         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
12015         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
12016         src/xa51/main.c, src/z80/main.c:
12017         virtualization of glue() function: each port has it's own glue function,
12018         which is accessed by do_glue function pointer in PORT.general structure
12019
12020 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
12021
12022         * DS800C400 fun, improved ROM interface and tinibios.
12023
12024 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
12025
12026         * More support for DS80C400. Now includes beginning of interface to ROM.
12027
12028 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
12029
12030         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
12031
12032 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12033
12034         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
12035
12036 2003-06-19  Borut Razem <borut.razem AT siol.net>
12037
12038         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
12039
12040 2003-06-19  Borut Razem <borut.razem AT siol.net>
12041
12042         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
12043         fixed Z80 port - crt0.o: cannot open.
12044
12045 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
12046
12047         * support/Util/MySystem.c (merge_command): revert bad fix
12048
12049 2003-06-18  Borut Razem <borut.razem AT siol.net>
12050
12051         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12052
12053 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12054
12055         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12056         option --use-stdout sends errors to stdout instead of stderr.
12057
12058 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12059
12060         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12061
12062 2003-06-15  Borut Razem <borut.razem AT siol.net>
12063
12064         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12065         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12066         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12067         fixed width array of pointers replaced with sets;
12068         multiple include and lib paths ared transferred to preprocessor and linker
12069         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12070         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12071         fixed width array of pointers
12072         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12073         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12074         fixupPath(), getPathDifference()
12075         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12076         fixed width array of pointers
12077
12078 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12079
12080         * src/pic16/ralloc.c: fix warnings
12081         * src/pic16/pcode.c: fix warning
12082
12083 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12084
12085          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12086         know all the details, but essentially this set of changes enable
12087         the pic16 port to generate movff instructions and generate assembler
12088         directives,
12089         * src/SDCCmain.c:
12090         * src/pic16/gen.c:
12091         * src/pic16/glue.c:
12092         * src/pic16/pcode.c:
12093         * src/pic16/device.c:
12094         * src/pic16/main.c:
12095         * src/pic16/pcode.h:
12096         * src/pic16/pcoderegs.c:
12097         * src/pic16/ralloc.c:
12098         * src/pic16/ralloc.h:
12099
12100 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12101
12102         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12103         added option --vc, so sdcc errors and warnings are compatible with
12104         Microsoft Visual Studio.
12105
12106 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12107
12108         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12109           device/lib/libfloat.lib: added atof function.
12110
12111 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12112
12113         * doc/sdccman.lyx: updated to Lyx 1.3
12114         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12115         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12116         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12117
12118 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12119
12120         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12121
12122 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12123
12124         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12125           additions to the "related tools/documentation" section
12126
12127 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12128
12129         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12130
12131 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12132
12133         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12134         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12135
12136 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12137
12138         * doc/sdccman.lyx: fix double dash and other minor things
12139         * doc/Makefile: fix double dash
12140
12141 2003-05-28  Karl Bongers(patches from Martin Helmling)
12142         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12143           condition and ignore commands.
12144
12145 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12146
12147         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12148           is in parts still quite out of date, I did changes as far as I felt makes sense
12149           for a non-native english speaker.
12150           Please feel free to add to the manual or to correct my changes.
12151         * doc/Makefile: undid touching the date of intermediate tex files.
12152
12153 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12154
12155         * doc/sdccman.lyx: Manual has an index now
12156
12157 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12158
12159         Finalize muluint/mulsint and mululong/mulslong merging:
12160         * device/lib/_mulint.c
12161         * device/lib/_mullong.c
12162         * device/lib/gbz80/mul.s
12163         * device/lib/gbz80/stubs.s
12164         * device/lib/z80/mul.s
12165         * device/lib/z80/stubs.s
12166         * src/SDCCsymt.c (initCSupport)
12167
12168 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12169
12170         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12171         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12172           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12173           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12174           instead of /Zm500.
12175
12176 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12177
12178         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12179           the regression tests I'm not brave enough to enable 245.b, 245.c
12180         * doc/sdccman.lyx: added latex preamble for hyperref package.
12181           Using pdflatex this will give you a hyperlinked pdf file with
12182           bookmarks. (prepend '%' before /usepackage if this breaks something)
12183
12184 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12185
12186          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12187
12188 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12189
12190         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12191
12192 2003-05-21    <johan AT balder>
12193
12194         * src/SDCCglue.c (printIval): fixed bug #739934
12195
12196 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12197
12198         Applied patch from bug 737905 (renamed yylineo to mylineno):
12199         * src/altlex.c
12200         * src/SDCCast.c
12201         * src/SDCglobl.h
12202         * src/SDCC.lex
12203         * src/SDCCsymt.c
12204         * src/SDCCval.c
12205         * src/pic16/pcode.c: Cleaned warnings
12206         * src/pic16/pcodeflow.c: Cleaned warnings
12207         * src/pic16/pcoderegs.c: Cleaned warnings
12208
12209 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12210
12211         * src/pic16/pcode.c: Cleaned warnings
12212         * src/pic16/pcodepeep.c: Cleaned warnings
12213         * src/pic16/ralloc.c: Cleaned warnings
12214
12215 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12216
12217         * doc/sdccman.lyx: fixed bug 739745
12218         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12219
12220 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12221
12222         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12223         it can be defined with CFLAGS when running configure
12224         * src/SDCCmain.c: fixed compiling + linking with object files
12225
12226 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12227
12228         * configure.in: configure for pic16 port,
12229             added --disable-pic16-port
12230         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12231         * src/SDCCmain.c: linkOptions is changed to set *,
12232             added if/endif conditional macros to remove options help
12233             messages from optionsTable when a port is not configured, added
12234             support for the PIc16 port in the ports table, when executing
12235             the compiler with no port specified on command line, a default
12236             port is selected with the new macro DEFAULT_PORT which is
12237             defined in port.h, in setDefaultOptions() linkOptions is removed
12238             from initialization assignment, since now it is a set,
12239             parseCmdLine uses setParseWithComma for linkOptions, in
12240             linkEdit() linkOptions are accessed with new function indexSet()
12241             which returns the i'th item of a set variable. See SDCCset.c, in
12242             linkEdit() when calling buildCmdLine(), added linkOptions as
12243             last argument. Now users can pass arguments to gplink via the
12244             -Wl option, main() uses pic16glue() to glue up pic16 programs
12245         * src/SDCCpeeph.c: various changes to support pic16
12246         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12247             return the i'th item of the set
12248         * src/SDCCset.h: added function prototype for indexSet()
12249         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12250         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12251         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12252             added macro DEFAULT_PORT
12253         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12254         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12255             generated
12256         * src/pic16/glue.c: commented out some error producing lines
12257         * src/pic16/main.c: __config directives are commented out to stop
12258             gpasm complaining and test the linkage with gplink, _linkCmd and
12259             _asmCmd changed to be more gplink and gpasm friendly
12260         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12261             produced an error when parsed, peep rule 12 is added to utilize
12262             movff, but it is commented out since the pCode does not support
12263             yet a command with 2 address arguments
12264
12265 2003-05-18    <johan AT balder>
12266
12267         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12268         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12269 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12270
12271         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12272   Added feature to script commands from file.
12273
12274 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12275
12276         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12277         * src/SDCCutil.c: include ctype.h for win32
12278
12279 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12280
12281         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12282
12283 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12284
12285         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12286   Fixed so you can set breakpoints prior to run, run does not stop
12287   on entry now.  Add tbreak.  Other enhancements and fixes for use
12288   with ddd.
12289
12290 2003-05-12  Borut Razem <borut.razem AT siol.net>
12291
12292         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12293
12294 2003-05-11  Borut Razem <borut.razem AT siol.net>
12295
12296         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12297         the path of bin directory, so that PATH is the only env. variable, which has to be set
12298         in case of standard installation.
12299         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12300         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12301         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12302
12303 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12304
12305         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12306         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12307         temp files are in the port dir; clean the gen/test directory when
12308         generating new test.c
12309         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12310         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12311         * support/regression/tests/zeropad.c: added
12312
12313 2003-05-09    <johan AT balder>
12314
12315         * src/SDCCglue.c: fixed bug #597940
12316
12317 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12318
12319         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12320   cache sfr, optimize next,step, fix off by one sourceline,
12321   support ddd list function.
12322         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12323
12324 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12325
12326         * support/regression/HTMLgen.py: added compare_s2f()
12327         * support/regression/Makefile: redo 1.27
12328         * support/regression/generate-cases.py: redo 1.5
12329
12330 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12331
12332         * support/regression/tests/float.c: workaround 33 bit hex constant
12333         * support/regression/tests/simplefloat.c: fix division for host
12334
12335 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12336
12337         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12338         that tame's the PIC's over-aggressive optimizer.
12339
12340 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12341
12342          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12343          support for MSVC.
12344
12345 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12346
12347         Initial support for DS80C400. "Hello world" runs on TINIm400
12348         (with polled I/O).
12349
12350 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12351
12352          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12353          * Some notes on ddd usage added in debugger/README
12354          Martin Helmling adding more features and fixes for ddd GUI debugger.
12355          Code added for nexti, stepi, up, down, and other adjustments.
12356
12357 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12358
12359         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12360         * src/pic/peeph.def Added two rules to optimize carry manipulation
12361         * src/pic/* removed debug printfs
12362
12363 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12364
12365         * debugger/mcs51/cmd.c: added header newalloc.h
12366
12367 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12368
12369         * as/Makefile: new EXEEXT
12370         * as/z80/Makefile: remove trailing slash of BUILDIR
12371         * as/z80/clean.mk: new EXEEXT
12372         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12373         * support/cpp2/Makefile.in: new EXEEXT
12374         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12375
12376 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12377
12378         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12379         EXEEXT was introduced to fix all related problems with targets
12380         "clean", "install" and "uninstall"; a couple of further flaws
12381         especially with "clean" have been fixed too
12382         * as/mcs51/Makefile.in
12383         * as/mcs51/clean.mk
12384         * as/z80/Makefile
12385         * Makefile
12386         * clean.mk
12387         * debugger/mcs51/Makefile.in
12388         * debugger/mcs51/clean.mk
12389         * link/z80/Makefile
12390         * link/z80/Makefile.in
12391         * link/z80/clean.mk
12392         * link/Makefile
12393         * packihx/Makefile.in
12394         * packihx/clean.mk
12395         * sim/ucsim/Makefile
12396         * sim/ucsim/clean.mk
12397         * sim/ucsim/avr.src/Makefile.in
12398         * sim/ucsim/avr.src/clean.mk
12399         * sim/ucsim/s51.src/Makefile.in
12400         * sim/ucsim/s51.src/clean.mk
12401         * sim/ucsim/xa.src/Makefile.in
12402         * sim/ucsim/xa.src/clean.mk
12403         * sim/ucsim/z80.src/Makefile.in
12404         * sim/ucsim/z80.src/clean.mk
12405         * sim/ucsim/main_in.mk
12406         * sim/ucsim/packages_in.mk
12407         * sim/ucsim/gui.src/Makefile.in
12408         * sim/ucsim/gui.src/serio.src/Makefile.in
12409         * sim/ucsim/gui.src/serio.src/clean.mk
12410         * src/Makefile.in
12411         * src/clean.mk
12412         * support/cpp2/Makefile.in
12413         * support/cpp2/clean.mk
12414         * support/makebin/Makefile
12415         * support/makebin/clean.mk
12416         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12417         * doc/sdccman.lyx: --program-suffix no longer needed
12418
12419 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12420
12421          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12422          Martin Helmling added support for ddd GUI debugger.
12423          Code added to display assembly, set variables, and other commands
12424          to interface to ddd.
12425
12426 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12427
12428         * as/Makefile: fix target clean
12429         * as/clean.mk: fix target clean
12430         * as/z80/clean.mk: fix target clean
12431
12432 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12433
12434         * Makefile.common.in: added  AT EXEEXT AT
12435         * configure.in: removed all mingw32 stuff
12436         * configure: rebuilt from configure.in
12437         * doc/sdccman.lyx: updated section "installation"
12438         * support/scripts/sdcc_mingw32: adapted to configure
12439         * support/scripts/sdcc_cygwin_mingw32: added
12440
12441 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12442
12443         * src/pic Added object file support for the PIC port
12444         * src/pic Applied patch from Craig Franklin (this started the object file support)
12445         * src/regression Updated the PIC regression tests for object files
12446
12447 2003-04-20  Borut Razem <borut.razem AT siol.net>
12448
12449         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12450           lklex.c: In function `getfid':
12451           lklex.c:203: warning: array subscript has type `char'
12452         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12453           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12454         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12455           stack handling macros
12456
12457 2003-04-19  Borut Razem <borut.razem AT siol.net>
12458
12459         * "handling space characters in file path" task:
12460         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12461         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12462         * support/Util/MySystem.h: make it self-sufficient
12463         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12464           src/z80/main.c, sdcc/as/mcs51/lklex.c:
12465           handling space characters in file path
12466         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12467           (it will be used by assemblers, which have their own includes, e.g. gpasm)
12468         * support/Util/MySystem.c: handling space characters in executable's path
12469
12470 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
12471
12472         * as/z80/Makefile: fix permanent rebuild of z80
12473         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12474         * support/regression/tests/bitfields.c: added Johan's bitfields.c
12475
12476 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
12477
12478         * src/SDCCopt.c: add special case optimization to replace modulo by
12479           a power of two with a bitwise AND.
12480
12481 2003-04-18    <johan AT balder>
12482
12483         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12484
12485 2003-04-17    <johan AT balder>
12486
12487         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12488         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12489
12490 2003-04-13  Borut Razem <borut.razem AT siol.net>
12491
12492         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12493         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12494           fixed mingw problem in adl_NORMALIZE_PATH
12495
12496 2003-04-12  Borut Razem <borut.razem AT siol.net>
12497
12498         * fixed "#pragma SAVE/RESTORE can not be nested":
12499         * src/SDCC.lex: reworked pragma handling functions
12500         * sdcc/src/SDCCglobl.h: reworked stack handling macros
12501         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12502
12503 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12504
12505         * src/SDCCutil.c (pathEquivalent): defined but not used
12506         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12507         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12508         * configure: rebuilt from configure.in
12509         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12510         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12511         * device/include/Makefile.in: replace sdcc_datadir
12512         * device/lib/Makefile.in: replace sdcc_datadir
12513         * Makefile.common.in: add LDFLAGS from configure
12514         * packihx/Makefile.in: use LDFLAGS
12515         * src/Makefile.in: use LDFLAGS
12516         * support/cpp2/Makefile.in: add LDFLAGS from configure
12517         * support/makebin/Makefile: use LDFLAGS
12518         * .version: bumped version number to 2.3.5
12519
12520 2003-04-12  Borut Razem <borut.razem AT siol.net>
12521
12522         * completed "different paths" task:
12523         * src/SDCCmacro.c: fixed bug in handling quotes
12524         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12525         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12526
12527 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12528
12529         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12530
12531 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12532
12533         * ds390/gen.c ds390/peeph.def: fix bug 706781
12534
12535 2003-04-11  Borut Razem <borut.razem AT siol.net>
12536
12537         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12538
12539 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
12540
12541         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12542         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12543          set - this bit used to not be set...).
12544         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12545           bad code in PIC Port
12546         * src/regression/and2.c added to test bug 609268
12547         * src/regression/Makefile added and2.c to regression test
12548
12549
12550 2003-04-08    <johan AT CP255758-A>
12551
12552         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12553         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12554         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12555
12556 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
12557
12558         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12559         fix bug #487815
12560         * support/cpp2/Makefile.in: fix bug #487815
12561         * configure: rebuilt from configure.in
12562         * Makefile.common.in: docdir changed, new path suffixes
12563         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12564         * sdcc_vc_in.h: reflect changes from sdccconf.h
12565         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12566         * src/SDCCutil.h: remove BINDIR hack
12567         * doc/sdccman.lyx: update new path hierarchy
12568
12569 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12570
12571         * src/SDCCpeeph.c: added okToRemoveSLOC test
12572
12573 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12574
12575         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12576
12577 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12578
12579         * src/SDCCpeeph.c: added labelIsReturnOnly test
12580         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12581
12582 2003-04-05    <johan AT balder>
12583
12584         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12585         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12586         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12587         * src/SDCCast.c: fixed a warning
12588         * src/SDCCast.h: fixed a warning
12589         * src/SDCCicode.c (operandFromAst): fixed a warning
12590
12591 2003-04-04    <johan AT balder>
12592
12593         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12594         * src/SDCCast.c (decorateType): fixed bug #715076
12595         * src/SDCC.y: fixed bug #702907
12596
12597 2003-04-03    <johan AT balder>
12598
12599         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12600         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12601         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12602         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12603         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12604
12605 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
12606
12607         * _decdptr.c: fix return values
12608         * _gptrget.c: fix return values
12609         * _gptrgetc.c: fix return values
12610         * _gptrput.c: fix return values
12611         * _mulint.c: fix return values
12612         * as/z80/Makefile: fix 'make -j' problem
12613
12614 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
12615
12616         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12617         * configure.in: big cleanup, updated to autoconf 2.5x
12618         * configure: rebuilt from configure.in
12619         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12620         * sdcc_vc_in.h: reflect changes from sdccconf.h
12621         * doc/Makefile: fixed a flaw in "make install"
12622
12623 2003-04-02    <johan AT balder>
12624
12625         * src/ds390/gen.c (genCmp): no comments
12626         * src/mcs51/gen.c (genCmp): no comments
12627         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12628         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12629
12630 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
12631
12632         * support/regression/generate-cases.py: place generated file in given sub directory
12633         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12634         * support/regression/Makefile: improvements for 'make -j';
12635         side effect: it's simpler and faster now
12636
12637 2003-03-31  Borut Razem <borut.razem AT siol.net>
12638
12639         * src/z80/main.c: link-{port} and as-{port} defined without path
12640         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12641
12642 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
12643
12644         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12645
12646 2003-03-30  Borut Razem <borut.razem AT siol.net>
12647
12648         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12649           changed type of list parameter to set
12650         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12651         * src/port.h: changed type of do_assemble() parameter to set
12652         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12653           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12654           definition of "cppoutfilename" macro with NULL value in preProcess()
12655         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12656         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12657         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12658           replaced with set *binPathSet
12659         * shash_add() deallocates the item, if allready exsists, before adding the new one
12660         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12661
12662 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
12663
12664         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12665           a nested for loop bug in the PIC port
12666         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12667           for loops
12668
12669 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
12670
12671         * support/Util/dbuf.h: remove C++ stuff to make it portable
12672
12673 2003-03-28  Borut Razem <borut.razem AT siol.net>
12674
12675         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12676           literal strings in stringLiteral()
12677         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12678         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12679           to the project
12680
12681 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
12682
12683         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12684
12685 2003-03-26    <johan AT balder>
12686
12687         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12688         * src/ds390/gen.c (saveRegisters): catched symbol abuse
12689         * src/SDCCast.c (decorateType): fixed " -v < 3"
12690
12691 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
12692
12693         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
12694         Added Lenny Story's debug infrastructure changes:
12695         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
12696         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
12697         * src/cdbFile.c: added
12698         * src/SDCCdebug.c: added
12699         * src/SDCCdebug.h: added
12700         * src/SDCCast.c (createFunction)
12701         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
12702         * src/SDCCmain.c (parseCmdLine, main)
12703         * src/SDCCmem.c (redoStackOffsets)
12704         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
12705         * src/SDCCsymt.h
12706         * src/common.h
12707         * src/avr/gen.c (genAVRCode)
12708         * src/ds390/gen.c (gen390Code)
12709         * src/mcs51/gen.c (gen51Code)
12710         * src/pic/gen.c (genpic14Code)
12711         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
12712         * src/xa51/gen.c (genXA51Code)
12713         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
12714
12715 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12716
12717         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
12718         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
12719
12720 2003-03-22    <johan AT balder>
12721
12722         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
12723
12724 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
12725
12726         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
12727         * doc/cdbfileformat.lyx: added, written by Lenny Story
12728         * doc/Makefile: added cdbfileformat.lyx
12729         * doc/clean.mk: added cdbfileformat.lyx
12730
12731 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
12732
12733         * src/mcs51/peeph.def: fix bug #705773
12734
12735 2003-03-20    <johan AT balder>
12736
12737         An sfr/sbit can have an "at #" AND an initializer
12738         * src/SDCCsymt.c (checkSClass):
12739         * src/SDCCmem.c (allocGlobal):
12740         * src/SDCCmem.c (allocLocal):
12741         * src/SDCCast.c (createBlock):
12742
12743 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
12744
12745         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
12746
12747 2003-03-16    <johan AT balder>
12748
12749         Undid the hackup of const and volatile, the problem is much bigger
12750         * src/SDCC.y:1.65
12751         * src/SDCCast.c:1.171
12752         * src/SDCCglue.c:1.138
12753         * src/SDCCicode.c:1.146
12754         * src/SDCCsymt.c:1.150
12755         * src/SDCCval.c:1.65
12756
12757 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
12758
12759         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
12760         * src/ds390/gen.c (genAddrOf): fixed bug #704087
12761
12762 2003-03-13    <johan AT balder>
12763
12764         Hackup const and volatile modifiers in type chains a bit:
12765         * src/SDCC.y:1.63
12766         * src/SDCCast.c:1.169
12767         * src/SDCCglue.c:1.136
12768         * src/SDCCicode.c:1.143
12769         * src/SDCCsymt.c1.146
12770         * src/SDCCsymt.h1.59
12771         * src/SDCCval.c:1.63
12772
12773 2003-03-12    <johan AT balder>
12774
12775         * src/SDCCBBlock.h: more LRH debugging junk
12776         * src/SDCCcflow.h: more LRH debugging junk
12777         * src/SDCCloop.c: more LRH debugging junk
12778         * src/SDCC.y (struct_declaration): fixed bug #697590
12779         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
12780         * src/ds390/gen.c (aopForRemat): fixed bug #700031
12781         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
12782
12783 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12784         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
12785         test function names must now match exactly).
12786         * src/SDCCcse.c: added special case in findCheaperOp to allow
12787         extending a short integer. Makes less awful code for bug 700121 test case.
12788
12789 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12790
12791         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
12792         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
12793
12794 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12795
12796         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
12797         actually called (operandsNotEqual() was called for all
12798         operandsNotEqualX tests).
12799
12800 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12801
12802         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
12803         with shorter literals. Fixes bug 700121.
12804
12805 2003-03-11    <johan AT balder>
12806
12807         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
12808
12809 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
12810
12811         * src/SDCCloop.c (mergeRegions): an evil beast is dead
12812         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
12813
12814 2003-03-10  Borut Razem <borut.razem AT siol.net>
12815
12816         * src/SDCCmain.c: pipe preprocessor's output
12817         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12818         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12819         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12820         which closes all pipes in pipeSet set
12821         * src/SDCCset.c: free deleted item in function deleteSetItem()
12822         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12823         moved from z80 to src subproject
12824         * .version: increased version number to 2.3.4
12825
12826 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
12827
12828         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
12829         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
12830         * support/regression/ports/xa51/spec.mk: fix typo
12831
12832 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
12833
12834         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
12835
12836 2003-03-09  Borut Razem <borut.razem AT siol.net>
12837
12838         * src/SDCCmain.c: pipe preprocessor's output
12839         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12840         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12841         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12842         which closes all pipes in pipeSet set
12843         * src/SDCCset.c: free deleted item in function deleteSetItem()
12844         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12845         moved from z80 to src subproject
12846
12847 2003-03-09  Borut Razem <borut.razem AT siol.net>
12848
12849         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
12850         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
12851         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
12852         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
12853         * src/SDCCglobl.h: unification of WIN32 native definitions
12854
12855 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12856
12857         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
12858
12859 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12860
12861         * src/configure.in:   check for endianess (even while cross-compiling)
12862         * src/configure:      check for endianess (even while cross-compiling)
12863         * src/configure_in.h: check for endianess (even while cross-compiling)
12864         * src/avr/gen.c:        remove old endianess stuff
12865         * src/mcs51/gen.c:      remove old endianess stuff
12866         * src/ds390/gen.c:      remove old endianess stuff
12867         * src/pic/gen.c:        remove old endianess stuff
12868         * src/pic/genarith.c:   remove old endianess stuff
12869         * src/pic/glue.c:       fix endianess check
12870         * src/pic16/gen.c:      remove old endianess stuff
12871         * src/pic16/genarith.c: remove old endianess stuff
12872         * src/pic16/glue.c:     fix endianess check
12873         * src/xa51/gen.c:       remove old endianess stuff
12874         * src/z80/gen.c:        fix endianess check
12875         * src/SDCCglue.c:       fix endianess check
12876         * src/ds390/peeph.def: fix bug 700036
12877
12878 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12879
12880         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
12881         * src/configure: find appropriate data-types on host for SDCC's int and long
12882         * src/configure.in: find appropriate data-types on host for SDCC's int and long
12883         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
12884         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
12885
12886 2003-03-07    <johan AT balder>
12887
12888         Just a big NOOP:
12889                 some minor cleanups before the big shot
12890                 OP_DEFS and OP_USES now use Kevin's protection
12891                 new option --nolabelopt
12892
12893         * src/SDCCBBlock.c:
12894         * src/SDCCast.c,:
12895         * src/SDCCcflow.c:
12896         * src/SDCCcse.c:
12897         * src/SDCCicode.c:
12898         * src/SDCCicode.h:
12899         * src/SDCClabel.c:
12900         * src/SDCCloop.c:
12901         * src/SDCCmain.c:
12902         * src/ds390/ralloc.c:
12903         * src/mcs51/ralloc.c:
12904         * src/pic/ralloc.c:
12905         * src/xa51/ralloc.c:
12906         * src/z80/ralloc.c:
12907
12908 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
12909
12910         * src/pic/pcode.c (get_op): fix 64 bit warnings
12911         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
12912         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
12913         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
12914         * support/regression/tests/malloc.c: fix 64 bit warnings
12915
12916 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
12917
12918         * src/mcs51/gen.c (genMinus): fixed bug 696436
12919
12920 2003-03-02  Borut Razem <borut.razem AT siol.net>
12921
12922         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
12923
12924 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
12925
12926         * configure.in: test for mkstemp
12927         * sdccconf_in.h: add HAVE_MKSTEMP
12928
12929 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
12930
12931         * device/include/ctype.h: removed warning while using --stack-auto
12932         * device/include/malloc.h: removed warning while using --stack-auto
12933         * device/include/string.h: removed warning while using --stack-auto
12934
12935 2003-02-23  Borut Razem <borut.razem AT siol.net>
12936
12937         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
12938         because NDEBUG is defined (see man assert)
12939         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
12940
12941 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12942
12943         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
12944         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
12945
12946 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12947
12948         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
12949         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
12950
12951 2003-02-18    <johan AT balder>
12952
12953         * as/mcs51/asmain.c (asmbl): module can start with a digit
12954         * as/z80/asmain.c (asmbl): module can start with a digit
12955
12956 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
12957
12958         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
12959         * src/asm.c: fix pipe() for Mingw32
12960
12961 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
12962
12963         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
12964         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
12965         make -V work again; --c1mode reads now from stdin
12966         * doc/sdccman.lyx: added --c1mode
12967         * support/Util/SDCCerr.c: new messages for c1 mode
12968         * support/Util/SDCCerr.h: new messages for c1 mode
12969         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
12970
12971 2003-02-15    <johan AT balder>
12972
12973         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
12974
12975 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
12976
12977         * doc/sdccman.lyx: Environment variables, -o and other minor things
12978
12979 2003-02-14    <johan AT balder>
12980
12981         * src/xa51/main.c: before anyone really tries to use it :)
12982
12983         * Install doc's in share/sdcc/doc
12984         * removed some obsolete files
12985         * Do a proper make distclean and uninstall
12986         M Makefile.common.in
12987         R sdccbuild.sh
12988         M as/Makefile
12989         M device/include/Makefile.in
12990         M device/lib/Makefile.in
12991         M doc/sdccman.lyx
12992         M link/Makefile
12993         M sim/ucsim/doc/Makefile.in
12994         M src/clean.mk
12995         R src/avr/peeph.rul
12996         R src/xa51/peeph.rul
12997         M support/cpp2/Makefile.in
12998         M support/makebin/Makefile
12999
13000
13001 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
13002
13003         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
13004
13005 2003-02-10  Borut Razem <borut.razem AT siol.net>
13006
13007         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
13008         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
13009         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
13010         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
13011         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
13012         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
13013         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
13014         src/z80/Makefile.bcc: Borland Makefile cleanup
13015         * as/z80/Makefile.bcc: Added Borland Makefile
13016         * support/cpp2/borland.h: Removed
13017
13018 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
13019
13020         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
13021         * src/SDCC.lex: new pragma NOIV
13022         * src/SDCCglobl.h: new pragma NOIV
13023         * src/SDCCmem.c: new pragma NOIV
13024
13025 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13026
13027         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
13028
13029 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
13030
13031         * src/SDCCmain.c: signal handling is switched off by --debug
13032         * doc/Makefile: small fix for install; use clean.mk again
13033         * doc/clean.mk: clean *.pdf and *.html too
13034
13035 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
13036
13037         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
13038         * device/lib/printfl.c: fix a ds390 bug by making it portable
13039         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
13040         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
13041         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
13042         * debugger/mcs51/cmd.c: converted multi-line string literals
13043         * sim/ucsim/globals.cc: converted multi-line string literals
13044         * src/SDCCmain.c: introduced signal handler to remove temp files
13045         * doc/Makefile: small tweaks, implement clean
13046         * doc: removed generated files
13047
13048 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13049
13050         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
13051         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13052         Address Record is not correctly generated for DS390."
13053
13054 2003-02-02  Borut Razem <borut.razem AT siol.net>
13055
13056         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13057         * as/mcs51/asm.h: fixed compilation with Borland C
13058         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13059         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13060         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13061         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13062         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13063         src/z80/Makefile.bcc: delete $(LIB) only if exist
13064         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13065
13066 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13067
13068         * device/include/malloc.h: introduced NULL
13069         * device/include/string.h: introduced NULL
13070         * device/include/stdlib.h: introduced NULL
13071         * device/lib/_memcpy.c: removed NULL
13072         * device/lib/_strcat.c: removed NULL
13073         * device/lib/_strchr.c: removed NULL
13074         * device/lib/_strcmp.c: removed NULL
13075         * device/lib/_strcpy.c: removed NULL
13076         * device/lib/_strcspn.c: removed NULL
13077         * device/lib/_strlen.c: removed NULL
13078         * device/lib/_strncat.c: removed NULL
13079         * device/lib/_strncmp.c: removed NULL
13080         * device/lib/_strncpy.c: removed NULL
13081         * device/lib/_strpbrk.c: removed NULL
13082         * device/lib/_strrchr.c: removed NULL
13083         * device/lib/_strspn.c: removed NULL
13084         * device/lib/_strstr.c: removed NULL
13085         * device/lib/_strtok.c: removed NULL
13086         * device/lib/malloc.c: removed NULL, include own header
13087
13088 2003-02-02    <johan AT balder>
13089
13090         * 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
13091         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13092         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13093         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13094         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13095         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13096
13097 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13098
13099         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13100         area 'DATA'"
13101
13102 2003-02-01    <johan AT balder>
13103
13104         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13105
13106 2003-01-31    <johan AT CP255758-A>
13107
13108         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13109
13110 2003-01-30    <johan AT balder>
13111
13112         * src/SDCCBBlock.c: automatic bug detection
13113         * src/SDCCicode.c: automatic bug detection
13114
13115 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13116
13117         * src/SDCCglobl.h:   now --xram-size 0 works
13118         * src/SDCCmain.c:    now --xram-size 0 works
13119
13120 2003-01-29    <johan AT balder>
13121
13122         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13123
13124 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13125
13126         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13127         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13128         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13129         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13130         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13131         * src/SDCCmain.c:    Added options --xram-size and --code-size
13132
13133 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13134
13135         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13136         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13137
13138 2003-01-27    <johan AT balder>
13139
13140         * src/SDCC.y: fixed bug #613764
13141
13142 2003-01-26    <johan AT balder>
13143
13144         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13145         * src/SDCCsymt.h: fixed bug #673374
13146         * src/SDCCglue.c: fixed bug #661910
13147         * src/SDCCast.c: fixed bug #458099 and 673374
13148
13149 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13150
13151         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13152         * as/mcs51/strcmpi.h: added
13153         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13154         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13155         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13156         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13157         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13158         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13159         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13160         * as/mcs51/Makefile.aslink: new module strcmpi
13161         * as/mcs51/Makefile.asx8051: new module strcmpi
13162         * as/mcs51/Makefil.bcc: new module strcmpi
13163         * as/mcs51/Makefile.in: new module strcmpi
13164         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13165
13166 2003-01-26    <johan AT balder>
13167
13168         * src/SDCCglue.c: reverted back to 1.124
13169         * src/SDCCast.c: reverted back to 1.156
13170         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13171
13172 2003-01-25    <johan AT balder>
13173
13174         * src/SDCCglue.c: A better fix for bug #661910
13175         * src/SDCCast.c: A better fix for bug #661910
13176         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13177
13178 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13179
13180         * src/Makefile.in: remove spawn.o
13181         * src/SDCCmain.c: remove spawn.h
13182         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13183         * src/spawn.c: removed
13184         * src/spawn.h: removed
13185         * support/regression/ports/ds390/spec.mk: link with -r
13186
13187 2003-01-24    <johan AT CP255758-A>
13188
13189         * src/ds390/gen.c (aopOp): fixed bug #667458
13190         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13191         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13192         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13193
13194 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13195
13196         * src/mcs51/peeph.def: better assembler identation by Frieder
13197         * src/mcs51/gen.c: better assembler identation by Frieder
13198
13199 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13200
13201         * as/z80/string.h: removed for gcc 3.2
13202         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13203         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13204
13205 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13206
13207         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13208         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13209         * support/regression/Makefile: separate temp files for ports
13210         * support/regression/generate-cases.py: separate temp files for ports
13211         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13212         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13213
13214 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13215
13216         * moved tinitalk to device/examples/ds390
13217
13218 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13219
13220         * as/mcs51/lkmem.c: rflag is for DS390
13221         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13222         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13223                          (linkEdit): move mem- and map-files the same way as ihx-files
13224         * src/z80/main.c (_setDefaultOptions): removed --generic
13225         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13226         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13227         * src/pic/glue.c (picglue): --c1mode works again
13228         * src/pic16/glue.c (pic16glue): --c1mode works again
13229         * src/asm.c (printCLine): fix #660034
13230
13231 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13232
13233         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13234         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13235         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13236         * as/mcs51/lkmem (summary): better fix for sp problem
13237         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13238         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13239         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13240                                               remove --stack-after-data
13241
13242 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13243
13244         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13245         * src/SDCCutil.c (join): ugly bug: missing '\0'
13246         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13247
13248 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13249
13250         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13251         * src/port.h: typo
13252         * src/pic/main.c (_asmCmd): gpasm supports -o
13253         * src/z80/main.c: more general macros
13254         * device/lib/Makefile.in: remove intermediate files
13255
13256 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13257
13258         * .version: Bumped version number to 2.3.3
13259         * src/SDCCBBlock.c: new option -o
13260         * src/SDCCglobl.h: new option -o
13261         * src/SDCCglue.c: new option -o
13262         * src/SDCCmain.c: new option -o
13263         * src/asm.c: new option -o
13264         * src/ds390/main.c: new option -o
13265         * src/pic/glue.c: new option -o
13266         * src/pic/pcode.c: new option -o
13267         * src/pic/ralloc.c: new option -o
13268         * src/pic16/glue.c: new option -o
13269         * src/pic16/pcode.c: new option -o
13270         * src/pic16/ralloc.c: new option -o
13271         * src/z80/main.c: new option -o
13272         * device/lib/Makefile.in: use -o
13273         * support/regression/ports/ds390/spec.mk: use -o
13274         * support/regression/ports/gbz80/spec.mk: use -o
13275         * support/regression/ports/mcs51/spec.mk: use -o
13276         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13277         * support/regression/ports/z80/spec.mk: use -o
13278         * support/regression/ports/ucz80/spec.mk: use -o
13279         * support/regression/ports/xa51/spec.mk: use -o
13280         * support/regression/fwk/lib/timeout.c: fix usage string
13281
13282 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13283         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13284
13285 2003-01-07    <johan AT balder>
13286
13287         * src/SDCCast.c (decorateType): fixed bug #600035
13288
13289 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13290         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13291         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13292         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13293         * src/pic/pcode.c: outcommented unused variable to remove warnings
13294         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13295
13296 2003-01-06    <karl AT turbobit.com>
13297         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13298    regression tests.
13299
13300 2003-01-06    <johan AT balder>
13301
13302         * src/SDCCicode.c: fixed array add
13303
13304 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13305         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13306         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13307
13308 2003-01-04    <johan AT balder>
13309
13310         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13311
13312 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13313         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13314
13315 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13316         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13317         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13318
13319 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13320         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13321
13322 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13323         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13324
13325 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13326         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13327
13328 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13329
13330     * in /sdcc/as/mcs51/ changed these files in order to create an
13331     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13332     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13333     following files to include the previous two files: aslink.dsp,
13334     Makefile.aslink, Makefile.bcc, and Makefile.in.
13335
13336     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13337     .adb instead of .cdb
13338
13339 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13340
13341         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13342         value from option --iram-size.
13343
13344 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13345
13346         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13347         dram[] array.
13348
13349 2002-09-18    <wiml AT hhhh.org>
13350
13351         * SDCClrange.h: exposed setFromRange() and setToRange()
13352         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13353           packRegsForAccUse() (bug 542397)
13354         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13355           multiple times and emitting the fetch operations more than once
13356           added aopGetUsesAcc() function to allow binary operators to
13357           fetch their operands in the correct order; made genMinus() emit
13358           compact code for X = LITERAL - Y
13359
13360 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13361         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13362         sprintf() in line 1267.
13363
13364 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13365         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13366         like ports.
13367
13368 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13369         Changes to aslink (All the changes are marked with 'JCF'):
13370
13371         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13372         summary().
13373
13374         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13375         area BSEG.  Also moves, if possible, the DATA area down into the internal
13376         ram so more space is available.
13377
13378         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13379         sflag.
13380
13381         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13382         not bytes.  Function summary() which creates a memory usage summary
13383         file with extension .mem.  Reports of overlaping stack and small stack
13384         size.  If the space for the stack is less than 16 bytes aslink trows a
13385         warning.
13386
13387         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13388         the 8051.  Option 'y' for memory summary output file.
13389
13390         Changes to sdcc (All the changes are marked with 'JCF'):
13391
13392         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13393
13394         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13395         overlaying area for it (uses RegBankUsed[4]).
13396
13397         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13398         bank zero as used by default.  By default aslink locates the stack
13399         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13400         the creation of the .mem file.  Delegates the allocation of data area
13401         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13402         the begining of the stack area to aslink.
13403
13404         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13405         glue() in SDCCglue.c creates an area for it.
13406
13407 2002-09-03  Borut Razem <borut.razem AT siol.net>
13408         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13409         sdcc/src/pic/glue.c:
13410         introduced atexit() handler for teporay files removal in case of
13411         errors, assertions, ...
13412
13413 2002-08-29  Borut Razem <borut.razem AT siol.net>
13414         * sdcc/support/cpp2/auto-host_vc_in.h:
13415         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13416         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13417         Maybe there is a similar problem with BORLANDC? It should be checked!
13418
13419         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13420         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13421         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13422         was not executed, and the compiler (cl) launched a warning:
13423         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13424
13425 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13426         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13427
13428 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13429         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13430
13431         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13432           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13433           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13434           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13435           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13436           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13437           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13438         - added Release configuration in VS projects
13439         - review of compiler an linker options
13440         - VC .exe files are generated in bin_vc directory, not to interfere
13441           with binaries generated from other projects (cygwin, mingw, bcc ...)
13442
13443         * sdcc/src/yacc.dsp: added
13444
13445         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13446         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13447         and insert the version number definitions from .version
13448
13449         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13450
13451         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13452         added - genarate auto-host.h using auto-host_vc_in.h as template
13453
13454         * sdcc/sdcc_vc.h,
13455         removed from CVS, generated automatically
13456
13457 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13458         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13459
13460 2002-08-11  Borut Razem <borut.razem AT siol.net>
13461         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13462
13463 2002-08-10  Borut Razem <borut.razem AT siol.net>
13464         * src/SDCCmain.c (main):
13465         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13466         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13467         The consequence was that some temporary files were not removed.
13468
13469         * src/SDCCglue.c:
13470         unification of code in functions tempfilename() and tempfile():
13471         function tempnam() is defined in Visual Studio 6.0 and .NET
13472
13473         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13474
13475         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13476           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13477         - removed compiler command line option /WX: Treats all warnings as errors
13478         - update a list of source files, included into the project
13479
13480         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13481           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13482         changed project type to Generic Project so that can be correcly converted to VS.NET project
13483
13484         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13485
13486         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13487
13488         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13489
13490         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13491         added return 0 statements after assert() to make compiler happy
13492
13493         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13494         added newline in the def file to keep MSC compiler satisfied
13495
13496         * sdcc/src/z80/gen.c:
13497         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13498           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13499         - solved MSC error in function aopDump()
13500
13501         * sdcc_vc.h: define PREFIX as "\\sdcc"
13502
13503 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
13504         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13505
13506 2002-06-22  Scott Dattalo <scott AT dattalo.com>
13507         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13508         - Rewrote the register banking algorithm.
13509         - Added pCode live-range analysis to registers (for now, only non-used and
13510         singly-used registers optimized away)
13511
13512         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13513
13514         * 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.
13515
13516 2002-05-10  Scott Dattalo <scott AT dattalo.com>
13517         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13518
13519 2002-04-22  Michael Hope  <michaelh AT vroom>
13520
13521         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13522
13523         * configure.in (DD_COPT): Added include support required for gbdk.
13524
13525         * .version: Bumped version number just to increase it.
13526
13527         * src/SDCCmain.c: Added -nostdinc to the default options.
13528
13529 2002-04-15  Michael Hope  <michaelh AT vroom>
13530
13531         * device/lib/z80/printf.c (sprintf): Added.
13532
13533         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13534
13535         * src/z80/peeph.def: Added transpose redundent load rule.
13536
13537         * src/z80/main.c: Added force callee saves for jaune.
13538
13539         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13540
13541         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13542
13543 2002-03-28  Johan Knol  <johan AT balder>
13544
13545         * src/SDCCval.c: fixed bug #532436
13546
13547 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13548         * /src/port.h:
13549         Added "char *Processor" field to the port structure.
13550
13551         * /src/SDCCmain.c:
13552         Added -p option. Allows port dependent processor to be specified.
13553
13554         * all ports:
13555         Initialized the new field char *Processor field to NULL in all ports
13556
13557         * /src/pic/*:
13558         Compiler generated registers for interrupt context saving
13559         were not getting allocated.
13560
13561 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
13562
13563         * /src/SDCCast.c:
13564         Fixed left shift. Will promote the left side of a left shift
13565         if a) left shifting more than size of operand or b) when assigned
13566         to something size > size of left side
13567
13568 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13569         * src/pic/*
13570         tons of changes. Register allocation has been
13571         rewritten. Added customization for the various PICs. Flow
13572         analysis is restructured. ...
13573
13574         * src/pic/device.h:
13575         Added
13576
13577         * src/pic/device.c:
13578         Added. device.c is a PIC port hack to accomodate variations
13579         in PIC devices.
13580
13581 2002-03-13  Michael Hope  <michaelh AT vroom>
13582
13583         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
13584
13585 2002-03-04  johanknol  <johanknol AT manik>
13586
13587         * /src/SDCCval.c: fixed
13588
13589         const unsigned char arr[][2] = { { 0, 1 } };
13590         t18.c:1: error: Initializer element is not constant
13591
13592 2002-03-04  bela  <bela AT manik>
13593
13594         * /device/include/mcs51reg.h:
13595         ds89c420 register definition update
13596
13597 2002-03-03    <johan AT FRIJA>
13598
13599         * support/Util/SDCCerr.c: did something, but don't no why anymore
13600
13601         * support/regression/tests/bug-524691.c: made it a little less shy
13602
13603         * src/SDCCast.c (decorateType): fixed bug #524697
13604
13605         * src/SDCCast.c: made some lineno improvements
13606
13607         * src/SDCCval.c (getNelements): changed warning to error
13608
13609         * src/SDCCglue.c (printIvalArray): changed warning to error
13610
13611         * src/SDCCicode.c: fixed a warning for mingw
13612
13613         * src/SDCCast.c (decorateType): fixed the << promotion for ops
13614
13615         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13616
13617 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
13618
13619         * src/ds390/peeph.def:
13620         Added some more peephole rules
13621
13622         * src/ds390/gen.c: Various fixes & enhancements
13623
13624         * src/SDCClrange.c, src/SDCClrange.h:
13625         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13626
13627         * src/ds390/ralloc.c:
13628         various fixes & enhancements (ds390) specific
13629
13630         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13631         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13632         from rallocs.
13633
13634         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13635
13636 2002-03-02    <johan AT FRIJA>
13637
13638         * src/SDCCast.c (decorateType): fixed bug #524708
13639
13640         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13641
13642         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13643
13644 2002-03-01  Michael Hope  <michaelh AT vroom>
13645
13646         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13647
13648         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13649
13650 2002-03-01    <johan AT FRIJA>
13651
13652         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13653
13654         * src/SDCCast.c (decorateType): fixed bug #524209
13655
13656         * src/SDCCval.c (valNot): fixed bug #524195
13657
13658 2002-02-26    <johan AT balder>
13659
13660         * src/xa51/gen.c: fixed a warning
13661
13662         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13663
13664         * src/SDCCast.c (decorateType): fixed bug #522534
13665
13666 2002-02-23    <johan AT balder>
13667
13668         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13669
13670 2002-02-22    <johan AT balder>
13671
13672         * src/SDCCast.c: fixed bug #514865
13673
13674         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13675
13676 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
13677
13678         * sdcc/src/SDCCloop.c:
13679         Previous fix was not good. basic blocks that have "break" or "return" are
13680         not really partof a loop , but live ranges used in these blocks should
13681         be live thru the entire loop, so set partOfLoop but don't add them to
13682         loop region
13683
13684 2002-02-21    <johan AT FRIJA>
13685
13686         * src/SDCCcse.c: fixed bug #514308
13687
13688 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
13689
13690         * src/SDCCloop.c:
13691         Fixed BUG #519583. If a conditional block ended in a return/break
13692         statement inside a loop, it was not being considered part of the loop.
13693
13694         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
13695
13696 2002-02-10  Karl Bongers <karl AT turbobit.com>
13697
13698         * debugger/*:
13699         Fixed up SDCDB debugger somewhat.  Updated debugger/README
13700         with lots of comments and notes.
13701
13702         * device/examples/test2.c:
13703         Fix bug, "red" variable not being initialized(compiler complained).
13704
13705         * device/examples/Makefile, examples/test3.c:
13706         Add Makefile in device/examples folder, compiles test3.c
13707         for use as a multiple module SDCDB test case.
13708
13709         * sim/ucsim/cmd.src/cmdset.cc:
13710         Took out debug printfs in ucsim "next" command.
13711
13712         * sim/ucsim/xa.src:
13713         Karl and Johan start ucsim XA support.  Most dissassembly working,
13714         about 75% emulation done(plenty of work remaining).
13715
13716         * sim/ucsim/z80.src:
13717         Add Z80 support to ucsim, add test-ucz80 regression test,
13718         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
13719         Notice z80 compiler fails on examples/test3.c/crc code.
13720
13721 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
13722
13723         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
13724         Added support for --parms-in-bank1
13725
13726         * src/ds390/peeph.def:
13727         added a few more peephole optimzations
13728
13729         * src/ds390/main.c:
13730         1) added __builtin_inp & __builtin_outp used to read in data of given length
13731            from a memory mapped port
13732         2) added __builtin_memcmp
13733         3) added __builtin_swapw swap bytes of a short
13734
13735         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
13736         1) handle multiple send & receives from register bank1
13737         2) ralloc can now allocate DPTR1 to some liveRanges
13738
13739         * src/SDCCsymt.c, src/SDCCsymt.h:
13740         changes to handle multiple sends & receives
13741
13742         * src/SDCCptropt.h:
13743         added some pointer arithmetic optimization
13744
13745         * src/SDCCptropt.c:
13746         added some pointer arithmetic optimizations but not stable yet so not
13747         called from anywhere (will get this working shortly)
13748
13749         * src/SDCCopt.c: fixed for multiple sends & receives
13750
13751         * src/SDCCmain.c:
13752         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
13753         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
13754            set preprocessor defines (depending on options)
13755
13756         * src/SDCCicode.c, src/SDCCicode.h:
13757         changes made to handle multiple sends & receives
13758
13759         * src/SDCCglobl.h:
13760         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
13761
13762         * src/SDCCcse.c, src/SDCCcse.h:
13763         added function findbackward def (to be used in upcoming optimization)
13764
13765         * src/SDCCcflow.c, src/SDCCcflow.h:
13766         added function returnAtEnd - to determine if a basic block terminates with
13767         a RETURN iCode
13768
13769         * src/SDCCast.c, src/SDCCast.h:
13770         added option parms-in-bank1
13771
13772         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
13773         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
13774         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
13775         adjusted for --parms-in-bank1 option
13776
13777         * device/include/string.h:
13778         donot redefine "reentrant" keyword
13779
13780         * device/include/ds80c390.h: Added some more SFRs
13781
13782 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
13783
13784         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
13785
13786 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
13787
13788         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
13789
13790 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
13791
13792         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
13793
13794 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
13795
13796         * Added --xram-movc option
13797
13798 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
13799
13800         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
13801
13802 2002-01-11  Johan Knol
13803
13804         * Added math lib of Jesus Calvino-Fraga
13805
13806 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
13807
13808         * src/SDCCmain.c (processFile): fix processing of ../../src.c
13809         * support/regression/Makefile: new target test-mcs51-stack-auto
13810         * support/regression/ports/mcs51-stack-auto/spec.mk: added
13811
13812 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13813
13814         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
13815
13816 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13817
13818         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
13819
13820 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
13821
13822         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
13823
13824         * src/SDCCglue.h: add definition for printIvalChar()
13825
13826 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13827
13828         * src/SDCCast.c: fix #498138 by Johan
13829
13830         * src/SDCCglue.c: fix #498138 by Johan
13831
13832 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13833
13834         * support/regression/Makefile: fix clean
13835
13836         * support/regression/ports/ds390/support.c: fix transmission of last character
13837
13838 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
13839
13840         * /sdcc/src/ds390/gen.c:
13841         a) improved computing address of stack variable
13842         b) took out some #if 0 code
13843         c) improved parmBytes adjustment
13844         d) improved genPlusIncr & genMinusIncr
13845         e) genCmp could generate bad code (when left assigned to DPTR)
13846         f) Fixed bug in hasInc
13847
13848         * /sdcc/src/ds390/ralloc.c:
13849         a) packRegsForSupport could mess up live information (Fixed)
13850         b) packRegsDPTRuse could be incorrect for left & right shift
13851
13852         * /sdcc/src/mcs51/ralloc.c:
13853         packRegsForSupport could mess up the live information (Fixed)
13854
13855         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
13856
13857         * /sdcc/src/SDCCast.c:
13858         can reverse a loop even if function call is present as long
13859         as the loop control variable is local & is not passed as parameter
13860
13861 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13862
13863         * /sdcc/ChangeLog: *** empty log message ***
13864
13865         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
13866         More builtin function additions for TININative
13867
13868         * /sdcc/src/ds390/ralloc.c:
13869         Had broken the regression testsuite
13870
13871         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
13872
13873         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
13874         Added funcattr hasStackParms will be set for reentrant functions when there
13875         are paramteres on the stack, this helps in minimizing frame pointer generation
13876         typeFromStr can handle function pointers now
13877
13878         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
13879         *** empty log message ***
13880
13881 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13882
13883         * /src/ds390/gen.c, /src/ds390/main.c:
13884         More builtin function additions for TININative
13885
13886         * /src/ds390/ralloc.c:
13887         Had broken the regression testsuite
13888
13889         * /src/SDCCast.c: Fixed a bug in dumptree
13890
13891         * /src/SDCCsymt.c, /src/SDCCsymt.h:
13892         Added funcattr hasStackParms will be set for reentrant functions when there
13893         are paramteres on the stack, this helps in minimizing frame pointer generation
13894         typeFromStr can handle function pointers now
13895
13896         * /doc/builtins.txt, /doc/TININative.txt:
13897         *** empty log message ***
13898
13899
13900 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13901
13902         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
13903         ALPHA version for -mTININative
13904
13905         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
13906         updated to reflect changes in the port structure
13907
13908         * /src/port.h:
13909         added function do_assemble (similar to do_link) if non-null this function
13910         will be called to do assembly (-mTININative) requires a multi command
13911         assembly
13912         added function genAssemblerEnd will be called to generate assembler Epilogue
13913
13914         * /src/SDCCsymt.c:
13915         added _JavaNative to debug info printing
13916
13917         * /src/SDCCmain.c: added option --tini-libid
13918         added port->do_assemble function (-mTININative) has a multi command assemble
13919
13920         * /src/SDCCglue.c: Disabled "constExpr" check
13921         added port->genAssemblerEnd function
13922
13923         * /src/SDCCglobl.h: Added option --tini-libid value
13924
13925         * /src/SDCCast.h:
13926         tookout optimizeCompare from the header (has no external references)
13927
13928         * /src/SDCCast.c: made one more function "static"
13929
13930 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
13931
13932         * src/z80/mappings.i: Added z80asm support.
13933
13934         * src/z80/main.c: Added z80asm support on --asm=z80asm
13935
13936         * src/z80/gen.c: Fixed asm portability issues.
13937
13938         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
13939
13940         * src/SDCCglue.c (printExterns): Added global/extern split.
13941
13942 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
13943
13944         * support/regression/Makefile: added test for mcs51 model large
13945
13946         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
13947
13948         * support/regression/ports/gbz80/spec.mk: added -mgbz80
13949
13950 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
13951
13952         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
13953
13954 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
13955
13956         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
13957
13958         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
13959
13960 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
13961
13962         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
13963
13964         * support/regression/tests/simplefloat.c: Port to mcs51.
13965
13966 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
13967         * support/regression/tests/bug-485362.c: Added.
13968
13969         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
13970
13971         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
13972
13973         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
13974
13975         * src/z80/gen.c (aopDump): Added a dump function.
13976
13977 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
13978         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
13979
13980         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
13981
13982         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
13983
13984         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
13985
13986         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
13987
13988         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
13989
13990         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
13991
13992         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
13993
13994         * support/regression/ports/ds390/support.c: Use tinibios.
13995
13996         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
13997
13998 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
13999
14000         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
14001         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
14002
14003         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
14004
14005         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
14006
14007 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
14008
14009         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
14010
14011         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
14012         (packRegsForIYUse): Created and optimised.
14013
14014 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14015
14016         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
14017 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
14018
14019         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
14020
14021         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
14022
14023         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
14024
14025 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14026
14027         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
14028
14029         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
14030
14031 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14032
14033         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
14034
14035         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
14036
14037         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
14038
14039 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
14040
14041         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
14042         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
14043         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
14044
14045         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
14046
14047         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
14048         (genNotFloat): Added.
14049         (genUminusFloat): Added.
14050
14051         * device/lib/z80/Makefile: Added floating pt stubs.
14052
14053         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14054
14055         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14056
14057         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14058
14059 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14060
14061         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14062
14063         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14064
14065         * sdcc/support/regression/Makefile: Add port ds390.
14066
14067         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14068
14069         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14070
14071         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14072
14073         * sdcc/support/regression/ports/ds390/support.c: Added.
14074
14075         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14076
14077         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14078
14079         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14080
14081 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14082
14083         * device/include/malloc.h: Added z80 and gbz80 support.
14084
14085         * device/lib/gbz80/heap.s: Added.
14086
14087         * device/lib/z80/heap.s: Added.
14088
14089         * device/lib/malloc.c: Added z80 and gbz80 support.
14090
14091         * support/regression/tests/malloc.c (testMalloc): Added.
14092
14093         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14094
14095         * support/regression/tests/bug-478094.c: Added.
14096
14097         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14098
14099 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14100
14101         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14102
14103         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14104
14105         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14106
14107         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14108
14109         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14110
14111 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14112
14113         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14114
14115 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14116
14117         * support/regression/tests/bug-477927.c: Added.
14118
14119         * src/z80/peeph.def: Added minor rules.
14120
14121         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14122
14123         * src/z80/peeph.def: Added jump optimisation modification.
14124
14125 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14126
14127         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14128
14129 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14130
14131         * support/regression/tests/funptrs.c: Added.
14132
14133 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14134
14135         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14136
14137 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14138
14139         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14140
14141         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14142
14143         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14144         (movLeft2ResultLong): Created.
14145
14146         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14147         (joinPushes): Added.  Joins two char pushes into a word push.
14148
14149 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14150
14151         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14152
14153         * support/makebin/Makefile (install): Added creation of dest dir.
14154
14155 2001-10-24 Karl Bongers <karl AT turbobit.com>
14156
14157         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14158
14159 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14160
14161         * src/z80/ralloc.c: Turned off faulty pack for one use.
14162
14163         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14164
14165         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14166
14167 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14168
14169         * support/regression/Makefile: Improved clean
14170
14171         * support/regression/ports/gbz80/spec.mk: Added clean
14172
14173         * support/regression/ports/host/spec.mk: Added clean
14174
14175         * support/regression/ports/z80/spec.mk: Added clean
14176
14177         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14178
14179         * support/regression/ports/mcs51/timeout.c: little improvements
14180
14181 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14182
14183         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14184
14185         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14186
14187         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14188
14189 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14190
14191         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14192
14193         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14194
14195 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14196         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14197
14198         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14199
14200         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14201
14202         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14203
14204         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14205
14206         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14207
14208         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14209
14210         * support/regression/tests/longor.c: Added.
14211
14212 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14213
14214         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14215
14216         * as/mcs51/aslink.h: define PATH_MAX
14217
14218         * as/mcs51/asm.h: define PATH_MAX
14219
14220         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14221
14222         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14223
14224         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14225
14226         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14227
14228         * src/SDCCglobl.h: define PATH_MAX
14229
14230         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14231
14232         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14233
14234 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14235
14236         * src/z80/gen.c (gencjneshort): Fixed
14237
14238         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14239
14240 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14241
14242         * support/regression/tests/bug-469671.c: Added.
14243
14244         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14245
14246 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14247
14248         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14249
14250         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14251
14252 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14253
14254         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14255
14256         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14257
14258         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14259
14260         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14261
14262         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14263
14264         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14265
14266         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14267
14268 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14269
14270         * 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.
14271
14272         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14273
14274         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14275
14276 2001-10-07    <johan AT FRIJA>
14277
14278         * device/lib/gets.c (gets): fixed the return value.
14279
14280 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14281         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14282
14283         * 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.
14284
14285         * 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.
14286
14287         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14288
14289         * src/pic/gen.c: Removed Safe_strdup.
14290
14291         * configure.in: Added option to enable libgc support.
14292
14293         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14294         (bitVectUnion): Optimised.
14295         (bitVectIntersect): Optimised.
14296         (bitVectBitsInCommon): Optimised.
14297         (bitVectCplAnd): Optimised.
14298
14299         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14300
14301 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14302
14303         * src/SDCCmain.c: distinguish between assembler debug and plain options
14304
14305         * src/avr/main.c:   remove standard assembler options
14306
14307         * src/ds390/main.c: remove standard assembler options
14308
14309         * src/mcs51/main.c: remove standard assembler options
14310
14311         * src/port.h: removed "PENDING" comment
14312
14313 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14314
14315         * src/device/lib/_mulint.c  : new, with assember functions
14316
14317         * src/device/lib/_mullong.c : new, with assember functions
14318
14319         * src/device/lib/_divuint.c : with assember functions
14320
14321         * src/device/lib/_divsint.c : with assember functions
14322
14323         * src/device/lib/_divulong.c: with assember functions
14324
14325         * src/device/lib/_divslong.c: with assember functions
14326
14327         * src/device/lib/_moduint.c : with assember functions
14328
14329         * src/device/lib/_modsint.c : with assember functions
14330
14331         * src/device/lib/_modulong.c: with assember functions
14332
14333         * src/device/lib/_modslong.c: with assember functions
14334
14335         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14336
14337         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14338
14339         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14340                                       replaced _mululong.c and _mulslong.c by _mullong.c
14341
14342 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14343
14344         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14345
14346 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14347
14348         * src/SDCCglue.c: test, if win32api is available for MINGW
14349
14350 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14351
14352         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14353         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14354         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14355         * support/regression/ports/host/spec.mk: removed GENERIC
14356         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14357         * support/regression/ports/z80/spec.mk: removed GENERIC
14358
14359 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14360
14361         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14362
14363         * support/regression/tests/bug-467035.c: Created.
14364
14365 2001-10-01    <johan AT FRIJA>
14366
14367         * src/SDCC.y: fixed bug #466586 part 1
14368
14369 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14370
14371         * SDCCicode.c: z80 has no generic pointers
14372         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14373
14374 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14375
14376         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14377
14378 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14379
14380         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14381
14382         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14383
14384 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14385
14386         * configure.in: Fixed up so that ucsim is only configured once.
14387
14388         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14389
14390         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14391         (getPathDifference): As above.
14392
14393         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14394
14395         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14396
14397 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14398         * .version: Updated to 2.3.1
14399
14400         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14401         Added copyright header.
14402
14403         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14404         (assemble): Added support for macro based assembler commands.
14405         (linkEdit): Added support for macro based linker commands.
14406         (preProcess): Changed the pre-processor to use macros.
14407         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14408         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14409
14410         * device/lib/z80/crt0.s: Added module name for debugging.
14411
14412 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14413
14414         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14415
14416         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14417
14418         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14419
14420         * src/Makefile.in: Added SDCCmacro and SDCCutil
14421
14422 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14423
14424         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14425
14426 2001-09-16    <johan AT FRIJA>
14427
14428         * 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.
14429
14430 2001-09-15    <johan AT FRIJA>
14431
14432         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14433         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14434
14435 2001-09-11    <johan AT FRIJA>
14436
14437         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14438
14439 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14440
14441         * support/regression/tests/bug-460444.c: Added test case.
14442
14443         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14444         (genCast): Added justification for all of the asserts.
14445
14446 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14447
14448         * support/regression/support.c: _xdata replaced by xdata
14449
14450         * support/regression/spec.mk: removed _generic
14451
14452 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14453
14454         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14455
14456         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14457         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14458
14459         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14460
14461         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14462
14463         * support/regression/tests/bug-460010.c: Added test case.
14464
14465         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14466
14467 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
14468
14469         * support/regression/Makefile: inter-port-clean adjusted for mcs51
14470
14471         * support/regression/testfwk.c: removed workaround for bug #436344
14472
14473         * support/regression/tests/bp.c: use less memory with mcs51
14474
14475         * support/regression/tests/bug-441448.c: use less memory
14476
14477         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14478
14479         * support/regression/collate-results.py: typo
14480
14481 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
14482
14483         * support/regression/tests/fetchoverlap.c: Added new test case.
14484
14485         * support/regression/tests/bp.c: Added new test case.
14486
14487         * support/regression/tests/bug-448984.c: Added new test case.
14488
14489         * support/regression/tests/pow2shifts.c: Added new test case.
14490
14491         * src/z80/gen.c: Turned off the noise it normally generates for the release.
14492         (genlshTwo): Fixed right shift for count > 8.
14493
14494         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14495
14496 2001-09-08    <johan AT FRIJA>
14497
14498         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14499
14500 2001-09-07    <johan AT FRIJA>
14501
14502         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14503
14504         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14505
14506 2001-09-06    <johan AT FRIJA>
14507
14508         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14509         * bernhard noted me at this: "() equals to (void)" (1.38)
14510
14511 2001-09-05    <johan AT FRIJA>
14512
14513         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14514
14515 2001-09-04    <johan AT FRIJA>
14516
14517         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14518
14519
14520 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
14521
14522         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
14523
14524 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
14525
14526         * link/z80/aslink.h: Fixed path for PATH_MAX
14527
14528 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
14529
14530         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14531
14532         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14533
14534         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14535
14536         * 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.
14537
14538 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
14539
14540         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14541         (genCmp): Fixed up genCmp for the GB with longs.
14542
14543         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14544
14545         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14546
14547         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14548
14549         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14550
14551 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
14552
14553         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
14554
14555 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
14556
14557         * 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.
14558
14559         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14560
14561 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
14562
14563         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
14564
14565         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14566
14567 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
14568
14569   * sim/ucsim/configure:    little improvement of Cygwin-detection
14570   * sim/ucsim/configure.in: little improvement of Cygwin-detection
14571   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14572   * support/regression/tests/bug-221100.c: small changes for mcs51
14573   * support/regression/tests/bug-221168.c: small changes for mcs51
14574   * support/regression/tests/bug-227710.c: small changes for mcs51
14575   * support/regression/tests/staticinit.c: small changes for mcs51
14576   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14577   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14578   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14579
14580 $Revision$