* src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
[fw/sdcc] / ChangeLog
1 2007-04-27 Raphael Neider <rneider AT web.de>
2
3         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
4           createReachingDefinitions,assignValnums,pic16_destructDF,
5           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
6           prevent NULL pointer dereferences
7         * device/lib/pic/libdev/pic16f886.c,
8         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
9           prevent building them, gputils do not really support them yet
10
11 2007-03-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12
13         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
14           helps printf_small. 32 bytes more __idata mem.
15
16 2007-04-27 Raphael Neider <rneider AT web.de>
17
18         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
19           return early when pb or pb->pcHead is NULL (patch #1708427)
20         * src/regression/empty.c,
21         * src/regression/Makefile: added test with empty functions
22         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
23
24 2007-04-27 Borut Razem <borut.razem AT siol.net>
25
26         * src/SDCCast.c: fixed feature request
27           #1547512: Redundant strings linked when using sizeof("abc")
28
29 2007-04-23 Borut Razem <borut.razem AT siol.net>
30
31         * doc/sdccman.lyx, src/SDCCmain.c:
32           peep-hole comments are generated only if --fverbose-asm option is
33           specified and --no-peep-comments is not, as proposed by Frieder.
34         * support/regression/Makefile.in: compile regression tests with
35           --fverbose-asm option so one can "grep" whether a new (or an old)
36           peephole is (still) applied; requested by Frieder.
37
38 2007-04-23 Kevin Buettner <kevin AT buettner.to>
39
40         * device/include/pic/pic16f886.h,
41         * device/include/pic/pic16f887.h,
42         * device/lib/pic/libdev/pic16f886.c,
43         * device/lib/pic/libdev/pic16f887.c,
44         * device/include/pic/pic14devices.txt,
45         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
46
47 2007-04-23 Kevin Buettner <kevin AT buettner.to>
48
49         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
50           fixes #1704666
51
52 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
53
54         * device/lib/_memset.c: assembler version for mcs51
55
56 2007-04-22 Borut Razem <borut.razem AT siol.net>
57
58         * support/scripts/listerr.c: program to create the list of errors and
59           warnings list from - added
60         * doc/sdccman.lyx: removed the note
61           "For list of warnings and corresponding codes, see err_warn.txt"
62         * src/SDCCsymt.c: fixed bug #1699804:
63           Bug with some uses of sizeof(static local array) (MCS51)
64         * support/regression/tests/bug-1699804.c: added
65
66 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
67
68         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
69           (main): added option -i,
70           (asmbl, case S_INCL): use search_path_fopen,
71           mostly from patch 1579668 by Peter Miller, thanks
72         * src/z80/main.c: fixed typo --callee-saves-bc
73         * device/include/mcs51/compiler.h: added sfrword for Tasking
74
75 2007-04-20 Borut Razem <borut.razem AT siol.net>
76
77         * src/z80/main.c: replaced reserved keyword asm with asmblr
78
79 2007-04-19 Borut Razem <borut.razem AT siol.net>
80
81         * src/port.h: use const poiters to strings
82         * src/SDCCargs.h: declared getStringArg() and getIntArg()
83         * src/pic16/main.c: include SDCCargs.h
84         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
85           const char, since the strings are dynamically allocated
86         * src/SDCCmain.c: options.code_seg and options.const_seg are
87           dynamically allocated; check port specific command line options
88           before the general ones
89         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
90
91 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
92
93         * device/include/ds400rom.h,
94         * device/lib/ds390/lcd390.c,
95         * device/lib/ds390/memcpyx.c,
96         * device/lib/ds390/rtc390.c,
97         * device/lib/ds400/ds400rom.c,
98         * device/lib/ds400/memcpyx.c,
99         * device/lib/hc08/_ret.c: more replacements of keywords with their
100           double underscore equivalents
101         * device/lib/ds390/Makefile.in,
102         * device/lib/ds400/Makefile.in,
103         * device/lib/gbz80/Makefile.in,
104         * device/lib/hc08/Makefile.in,
105         * device/lib/mcs51/Makefile.in,
106         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
107
108 2007-04-17 Borut Razem <borut.razem AT siol.net>
109
110         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
111           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
112           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
113           to --fverbose-asm, to be gcc'ish
114
115 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
116
117         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
118
119 2007-04-17 Borut Razem <borut.razem AT siol.net>
120
121         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
122         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
123           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
124           with their double underscore equivalent
125
126 2007-04-14 Borut Razem <borut.razem AT siol.net>
127
128         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
129           source"
130
131 2007-04-13 Borut Razem <borut.razem AT siol.net>
132
133         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
134           C99 standard
135         * device/examples/serialcomm/windows/serial.[ch],
136           device/examples/serialcomm/windows/test_serialcomm.cpp:
137           updated by Bela Torok
138         * device/examples/serialcomm/windows/serialcomm.dsw,
139           device/examples/serialcomm/windows/serialcomm.dsp: added
140
141 2007-04-13 Jan Waclawek <wek AT efton.sk>
142
143         * doc/sdccman.lyx: additions and changes at various places
144           (submitted as #1697136).
145           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
146
147 2007-04-10 Borut Razem <borut.razem AT siol.net>
148
149         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
150           LyX file format changed to 245
151         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
152           "FreeWare" replaced with "free open source"
153
154 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
155
156         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
157
158 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
159
160         * device/include/pic16/pic18fregs.h,
161         * device/lib/_bp.c,
162         * device/lib/_decdptr.c,
163         * device/lib/_divsint.c,
164         * device/lib/_divslong.c,
165         * device/lib/_divuint.c,
166         * device/lib/_divulong.c,
167         * device/lib/_fs2schar.c,
168         * device/lib/_fs2sint.c,
169         * device/lib/_fs2slong.c,
170         * device/lib/_fs2uchar.c,
171         * device/lib/_fs2uint.c,
172         * device/lib/_fs2ulong.c,
173         * device/lib/_fsadd.c,
174         * device/lib/_fscmp.c,
175         * device/lib/_fsdiv.c,
176         * device/lib/_fseq.c,
177         * device/lib/_fsget1arg.c,
178         * device/lib/_fsget2args.c,
179         * device/lib/_fsgt.c,
180         * device/lib/_fslt.c,
181         * device/lib/_fsmul.c,
182         * device/lib/_fsneq.c,
183         * device/lib/_fsnormalize.c,
184         * device/lib/_fsreturnval.c,
185         * device/lib/_fsrshift.c,
186         * device/lib/_fssub.c,
187         * device/lib/_fsswapargs.c,
188         * device/lib/_gptrget.c,
189         * device/lib/_gptrgetc.c,
190         * device/lib/_gptrput.c,
191         * device/lib/_logexpf.c,
192         * device/lib/_modsint.c,
193         * device/lib/_modslong.c,
194         * device/lib/_moduint.c,
195         * device/lib/_modulong.c,
196         * device/lib/_mulint.c,
197         * device/lib/_mullong.c,
198         * device/lib/_schar2fs.c,
199         * device/lib/_ser.c,
200         * device/lib/_setjmp.c,
201         * device/lib/_sint2fs.c,
202         * device/lib/_slong2fs.c,
203         * device/lib/_spx.c,
204         * device/lib/_uchar2fs.c,
205         * device/lib/_uint2fs.c,
206         * device/lib/_ulong2fs.c,
207         * device/lib/asincosf.c,
208         * device/lib/atanf.c,
209         * device/lib/calloc.c,
210         * device/lib/ds390/tinibios.c,
211         * device/lib/ds400/tinibios.c,
212         * device/lib/expf.c,
213         * device/lib/free.c,
214         * device/lib/hc08/_mulint.c,
215         * device/lib/logf.c,
216         * device/lib/malloc.c,
217         * device/lib/printf_fast.c,
218         * device/lib/printf_tiny.c,
219         * device/lib/printfl.c,
220         * device/lib/realloc.c,
221         * device/lib/ser_ir.c,
222         * device/lib/serial.c,
223         * support/regression/tests/libmullong.c: replaced all special keywords
224           with their double underscore equivalent
225         * support/regression/ports/mcs51-xstack-auto/spec.mk,
226         * device/lib/Makefile.in: compile libs with --std-c99 instead of
227           --std-sdcc99
228         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
229           (genRet): if the bit-symbol is ruonly it already is in the carry
230         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
231         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
232         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
233           type UCHAR if dest is not bit
234
235 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
236
237         * device/include/math.h,
238         * device/lib/cotf.c,
239         * device/lib/expf.c,
240         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
241
242 2007-04-01 Borut Razem <borut.razem AT siol.net>
243
244         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
245           fixed bug #1692042: input buffer overflow...scanner uses REJECT
246         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
247           gcc_unreachable() called internal_error()...
248
249 2007-03-30 Raphael Neider <rneider AT web.de>
250
251         * src/pic/ralloc.c (isData): suppress garbage debug output
252
253 2007-03-28 Borut Razem <borut.razem AT siol.net>
254
255         * doc/sdccman.lyx:
256           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
257           is developed, built and used worldwide, and the word "night" doesn't
258           make any sense.
259
260 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
261
262         * device/include/mcs51/C8051F360.h: new, added
263         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
264
265 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
266
267         * src/SDCC.y (declaration_specifiers, function_specifier),
268         * support/Util/SDCCerr.c,
269         * support/Util/SDCCerr.h,
270         * src/SDCCsymt.h,
271         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
272           inline keyword
273         * src/SDCCmem.c (deallocParms),
274         * src/SDCCast.c: support for function inlining, not quite complete
275         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
276           'restrict' qualifier
277
278 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
279
280         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
281           (saveRBank, unsaveRBank): don't save bits,
282           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
283         * support/regression/tests/bug1535242.c: new, added
284         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
285           thanks Alexey Shamrin <shamrin AT gmail.com>,
286           made assert.h header ANSI compliant (added a check for NDEBUG macro,
287           removed header guard)
288         * .version,
289         * sdcc.spec: bumped version to 2.6.5
290         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
291
292 2007-03-22 Borut Razem <borut.razem AT siol.net>
293
294         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
295           fixed bug #1653671: sdcdb integration into ddd is broken
296
297 2007-03-22 Raphael Neider <rneider AT web.de>
298
299         * src/pic/gen.c (popGetExternal): augmented to also create references
300           to external variables (not only labels),
301           (genCall): comment on plan to reduce PAGESEL overhead,
302           (genFunction, genEndFunction): also save/restore FSR around interrupt
303           handling code, removed lots of unused code
304           (genDivOneByte): release acquired temp register
305         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
306           of popGetExternal
307         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
308           for registers that need to be saved during interrupts (FSR, STATUS,
309           PCLATH; W needs special handling), currently only FSR is used
310
311 2007-03-22 Raphael Neider <rneider AT web.de>
312
313         * device/include/pic/pic14devices.txt: 16f688 has only one config word
314
315 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
316
317         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
318
319 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
320
321         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
322
323 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
324
325         * as/link/aslink.h: added LKOBJEXT
326         * as/link/hc08/link_hc08.dsp,
327         * as/link/hc08/Makefile.bcc,
328         * as/link/hc08/Makefile.in,
329         * as/link/mcs51/aslink.dsp,
330         * as/link/mcs51/Makefile.bcc,
331         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
332         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
333         * as/link/lkaomf51.c: merged and moved
334         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
335         * as/link/z80/lkdata.c,
336         * as/link/lkdata.c: merged and moved
337         * as/link/hc08/lkmain.c,
338         * as/link/mcs51/lkmain.c: cosmetic changes
339         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
340         * as/link/lklex.c: use LKOBJEXT
341         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
342           ANSI-fied functions, removed bubble-sorts
343         * as/link/z80/lksym.c           as/link/lksym.c: merged,
344           ANSI-fied functions
345         * as/link/z80/linkgbz80.dsp,
346         * as/link/z80/linkz80.dsp,
347         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
348           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
349         * as/link/z80/lkhead.c,
350         * as/link/z80/lklex.c: deleted
351         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
352         * as/link/z80/lkmain.c: added copyfile()
353
354 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
355
356         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
357
358 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
359
360         * device/lib/_strlen.c: assembler version for mcs51
361
362 2007-03-13 Raphael Neider <rneider AT web.de>
363
364         * device/include/pic16/pic18f2221.h,
365         * device/include/pic16/pic18f2321.h,
366         * device/include/pic16/pic18f2331.h,
367         * device/include/pic16/pic18f4221.h,
368         * device/include/pic16/pic18f4321.h,
369         * device/include/pic16/pic18f4331.h: fixed config byte location names
370         * support/scripts/inc2h-pic16.pl: removed debug output, emit
371           consistently named config byte locations
372
373 2007-03-13 Borut Razem <borut.razem AT siol.net>
374
375         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
376           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
377           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
378           as/link/z80/Makefile.in, as/z80/Makefile.in:
379           introduced LDFLAGS
380
381 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
382
383         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
384         * device/lib/printf_large.c: pointer was converted to generic
385         pointer for mcs51 models other than model-small (Maarten noticed)
386
387 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
388
389         * device/include/mcs51/ADuC84x.h: Added.
390
391 2007-03-10 Borut Razem <borut.razem AT siol.net>
392
393         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
394           fixed RFE #1624219: double backslashes in filenames;
395           functions hexEscape(), octalEscape() and copyStr() moved from
396           SDCCval.c to SDCCutil.c and made them glovbally available
397
398 2007-03-09 Borut Razem <borut.razem AT siol.net>
399
400         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
401           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
402           1673361: Missaligned comments in output files
403
404 2007-03-09 Raphael Neider <rneider AT web.de>
405
406         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
407
408 2007-03-09 Raphael Neider <rneider AT web.de>
409
410         * src/pic/gen.c,
411         * src/pic/glue.c,
412         * src/pic/ralloc.c: suppress undesired debug output
413         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
414
415 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
416
417         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
418
419 2007-03-07 Borut Razem <borut.razem AT siol.net>
420
421         * device/lib/pic16/libdev/pic18f[24][34]31.c:
422           search include files in the current directory
423
424 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
425
426         * src/SDCCglue.c (emitMaps, glue),
427         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
428           absolute xdata
429         * support/regression/tests/absolute.c: added xdata test
430
431 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
432
433         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
434           added condition to macro, fixes bug 1666080
435
436 2007-03-02 Raphael Neider <rneider AT web.de>
437
438         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
439
440 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
441
442         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
443         be cleared. Unconditionally set __XPAGE
444         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
445
446 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
447
448         * src/SDCCglobl.h,
449         * src/SDCCmain.c,
450         * src/mcs51/gen.c,
451         * src/mcs51/rtrack.c,
452         * src/ds390/gen.c,
453         * doc/sdccman.lyx: added --no-gen-comments
454         * src/mcs51/peeph.def: added 192.b, disabled 185
455
456 2007-02-25 Raphael Neider <rneider AT web.de>
457
458         * src/pic16/gen.c (genCast): fixed typo
459         * device/lib/pic16/Makefile.subdir: only install existing files
460         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
461
462 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
463
464         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
465         * device/lib/mcs51/crtclear.asm,
466         * device/lib/mcs51/crtxclear.asm: renumbered labels
467         * device/lib/mcs51/Makefile.in: added crtcall.asm
468         * doc/sdccman.lyx: documented mcs51 crt* library startup code
469         * src/mcs51/gen.c (movc): removed,
470           (aopGet, genPlusBits): clear a after loading the carry (possibly from
471             acc.x or psw.x),
472           (toCarry, genSend, genRet): added function toCarry,
473           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
474           (assignBit, genAssign, genCast): added function assignBit
475         * src/mcs51/Makefile.bcc: added rtrack.c
476         * src/mcs51/ralloc.h: made valueKnown a bitfield
477         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
478           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
479           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
480         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
481         * src/z80/gen.c: added AOP_IS_PAIRPTR,
482           (_pop): only pop valid pairs, see gencjneshort,
483           (gencjneshort): return pair that still needs to be popped, restructured,
484           (gencjne, genCmpEq): call _pop
485
486 2007-02-23 Raphael Neider <rneider AT web.de>
487
488         * device/include/pic/pic14devices.txt: 16f684 has only one config word
489
490 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
491
492         * device/include/mcs51/P89LPC925.h: Added.
493
494 2007-02-18 Raphael Neider <rneider AT web.de>
495
496         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
497
498 2007-02-17 Borut Razem <borut.razem AT siol.net>
499
500         * support/cpp2/directives.c, support/cpp2/version.c:
501           synchronized with GCC CPP 4.1.2
502
503 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
504
505         * src/mcs51/rtrack.h,
506         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
507           by checking the strings passed by emitcode() to the assembler.
508           Feel free to change. This in part addresses RFE #482179.
509           Set environment variable SDCC_RTRACK to enable.
510         * src/mcs51/gen.c: inserted hooks
511         * src/mcs51/ralloc.h: added two members to struct regs
512         * support/regression/tests/regtrack.c: added
513
514 2007-02-14 Borut Razem <borut.razem AT siol.net>
515
516         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
517         * Makefile.in: applied patch from Makefile related part of
518           #1469393: Compiler does not initialize static data
519
520 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
521
522         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
523           for better fix of bug 1273984, compiles pic16 rand.c
524
525 2007-02-12 Borut Razem <borut.razem AT siol.net>
526
527         * src/pic16/main.c: fixed pic16 standard library directory bug
528
529 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
530
531         * src/hc08/gen.c (genSwap): fix swap regression test
532
533 2007-02-10 Borut Razem <borut.razem AT siol.net>
534
535         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
536           with same scope
537         * support/regression/tests/bug-1654060.c: added regression test for
538           #1654060
539
540 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
541
542         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
543         bit moves in return statement
544
545 2007-02-09 Borut Razem <borut.razem AT siol.net>
546
547         * src/SDCC.y: fixed bug #1654060 typedef within function causes
548           syntax error
549
550 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
551
552         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
553         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
554
555 2007-02-07 Raphael Neider <rneider AT web.de>
556
557         * src/pic16/devices.inc,
558         * device/include/pic16/pic18fregs.h,
559         * device/include/pic16/pic18f[24][34]31.h,
560         * device/lib/pic16/libdev/pic18f[24][34]31.c,
561         * device/lib/pic16/pics.all: added 18f[24][34]31 family
562         * device/lib/pic16/libio/i2c.ignore: do not build i2c
563
564 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
565
566         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
567           can this have lived here for so many years?
568         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
569           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
570         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
571
572 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
573
574         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
575         appended by loop induction must be at the very end of the eBBlock
576
577 2007-02-05 Kevin Vigor
578
579         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
580
581 2007-02-05 Borut Razem <borut.razem AT siol.net>
582
583         * support/regression/fwk/lib/timeout.c: native WIN32 port,
584           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
585
586 2007-02-03 Borut Razem <borut.razem AT siol.net>
587
588         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
589           applied patch #1646602 option to set default signedness of char to
590           unsigned, added -funsigned-char command line option,
591           thanks to Gunther Jehle
592         * device/lib/Makefile.in: added the -f option to rm so it doesn't
593           prompt for file deletion a few hundred times (especially the
594           subversion files, which have ro permissions so it asks for
595           confirmation), thanks to Simon McAuliffe;
596           added {} + option to find in order to remove multiple files from a
597           single rm commad
598
599 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
600
601         * device/include/mcs51/SST89x5xRDx.h: Added.
602
603 2007-02-02 Raphael Neider <rneider AT web.de>
604
605         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
606         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
607
608 2007-02-01 Raphael Neider <rneider AT web.de>
609
610         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
611           config words again
612
613 2007-01-31 Borut Razem <borut.razem AT siol.net>
614
615         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
616           if compiled with GCC. Thanks to Raphael Neider
617
618 2007-01-31 Raphael Neider <rneider AT web.de>
619
620         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
621             operand names, handles name and (name + n) for all n,
622           (sameBank): restructured, also check bank allocation policy,
623         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
624           (pic14_operandsAllocatedInSameBank): check whether to operands
625             will be allocated into the same bank (i.e., section) to reduce
626             BANKSEL overhead, queried from pcode.c:sameBank,
627           (pic14printLocals): reintroduced clustering registers into a single
628             section: all compiler generated symbols will now reside in one
629             bank (per file), reducing BANKSEL overhead and code size,
630           (showAllMemmaps): use local dbuf where possible
631
632 2007-01-29 Raphael Neider <rneider AT web.de>
633
634         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
635           (call_libraryfunc): retrieve/create symbol and mark as used,
636           (genFunction): mark defined functions as non-extern and add again
637            to code memmap for later output
638         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
639           (pic14printLocals): reworked for new symbol emission,
640           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
641           showAllMemmaps): reworked symbol output using dbufs, added handling
642             of string literals (still incomplete),
643           (picglue): removed symbol emission, moved into showAllMemmaps,
644           (emitSymbolSet): new workhorse for symbol output,
645           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
646
647 2007-01-29 Borut Razem <borut.razem AT siol.net>
648
649         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
650           component contains the extension separator.
651
652 2007-01-28 Borut Razem <borut.razem AT siol.net>
653
654         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
655           on WIN32
656         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
657           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
658           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
659           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
660           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
661           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
662           src/z80/gen.c, support/Util/MySystem.c:
663           accept slash and backslash as directory separator on WIN32 and
664           Cygwin ports
665
666 2007-01-28 Raphael Neider <rneider AT web.de>
667
668         * src/pic16/devices.inc,
669         * device/include/pic16/pic18f[24][23]21.h,
670         * device/include/pic16/pic18fregs.h,
671         * device/lib/pic16/libdev/pic18f[24][23]21.c,
672         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
673         * device/lib/pic16/libio/adc.ignore,
674         * device/lib/pic16/libio/i2c.ignore,
675         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
676           family, as gputils do not yet support the devices
677         * device/lib/pic16/Makefile.subdir: ignore errors on install
678         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
679           headers and libraries from gputils .inc files
680
681 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
682
683         * doc/sdccman.lyx: add printf_fast_f precision limitation note
684
685 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
686
687         * doc/sdccman.lyx: add printf benchmarks
688
689 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
690
691         * device/lib/printf_fast.c: fix %c, char promoted to int
692         * device/lib/printf_tiny.c: fix %c, char promoted to int
693
694 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
695
696         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
697
698 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
699
700         * support/regression/tests/swap.c: 64 bit hosts failed
701         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
702
703 2007-01-25 Raphael Neider <rneider AT web.de>
704
705         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
706           based on absolute register address, patch by Alex Blond
707
708 2007-01-22 Raphael Neider <rneider AT web.de>
709
710         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
711           emitted, do not emit them again...
712
713 2007-01-22 Raphael Neider <rneider AT web.de>
714
715         * src/regression/bank1.c, src/regression/compare6.c,
716           src/regression/add.c: cosmetic changes
717         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
718         * src/pic/gen.c: fixed global zero and one,
719           (aopForSym): removed unued code,
720           (aopGet): assert aop is defined, check and use `index' of
721             pCodeImmd operands (fixes #1630908),
722         * src/pic/pcode.c (get_op): added output of generic pointer tag,
723           (register_reassign): prevent accidental register unification,
724           (ReuseReg): cosmetic changes (also above)
725         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
726           pic14emitStaticSeg): do not emit initialized data,
727           (printIval*): replaced with working versions,
728           (pic14createInterruptVect,picglue): use idata for initialized data,
729             now init data should work in all modules (not only main()),
730         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
731
732 2007-01-21 Borut Razem <borut.razem AT siol.net>
733
734         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
735           use -fPIC or -fpic if they are supported and not ignored
736         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
737         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
738
739 2007-01-20 Borut Razem <borut.razem AT siol.net>
740
741         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
742           implemented RFE #1470316: allow "$" in variable names
743
744 2007-01-20 Raphael Neider <rneider AT web.de>
745
746         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
747
748 2007-01-20 Raphael Neider <rneider AT web.de>
749
750         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
751         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
752         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
753         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
754           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
755         * device/lib/pic/libdev/pic*.c,
756         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
757         * device/lib/pic/libdev/Makefile.in: show progress
758
759 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
760
761         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
762         * support/scripts/sdcc_cygwin_mingw32,
763         * support/scripts/sdcc_mingw32,
764         * support/scripts/build.mak: replaced --datadir by --datarootdir for
765         conformance with autoconf 2.6
766
767 2007-01-19 Raphael Neider <rneider AT web.de>
768
769         * src/pic/device.c (register_map): fixed list construction
770         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
771           (genMod): removed case for genModbits,
772           (genModbits): removed as now unused/unimplemented
773         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
774
775 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
776
777         * support/regression/tests/swap.c: added in response to #1638622
778         * doc/sdccman.lyx: synced version, minor changes
779
780 2007-01-18 Borut Razem <borut.razem AT siol.net>
781
782         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
783           thanks to Gunther Jehle
784         * src/asm.c: don't die if the file drfined in #line couldn't be opened
785         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
786           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
787           use filename in lineno instead.
788         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
789           print the file name in ast_print()
790
791 2007-01-18 Borut Razem <borut.razem AT siol.net>
792
793         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
794           defined in MSVC
795         * src/SDCC.lex: stringLiteral() returns const char pointer,
796           EOF detection in stringLiteral(), fixed asmbuf memory leak,
797           fixed column counting
798         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
799           accept const char pointer as parameter
800         * src/SDCCdwarf2.c: corrected buffer size
801
802 2007-01-17 Borut Razem <borut.razem AT siol.net>
803
804         * support/Util/dbuf_string.c: fixed for amd64
805
806 2007-01-15 Borut Razem <borut.razem AT siol.net>
807
808         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
809           removed terminal symbol ELIPSIS, since it was never generated by the
810           lexer and it was wrongly used in parameter_identifier_list rule
811
812 2007-01-15 Raphael Neider <rneider AT web.de>
813
814         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
815             code page and data banking description
816         * src/pic/genarith.c,
817         * src/pic/gen.h: removed bit arithmetic functions,
818             updated exit(1) to exit(EXIT_FAILURE)
819         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
820         * device/include/pic16/pic18f2455.h,
821         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
822             TRISD and TRISE, fixed/added some bit names
823         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
824         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
825             updated pic18f2455.{c,h} instead of duplicating them
826
827 2007-01-14 Borut Razem <borut.razem AT siol.net>
828
829         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
830           Cannot debug files that contain spaces in the path name
831           by converting spaces in asm file name to underscores
832
833 2007-01-13 Borut Razem <borut.razem AT siol.net>
834
835         * doc/sdccman.lyx: fixed format errors
836
837 2007-01-10 Borut Razem <borut.razem AT siol.net>
838
839         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
840           codeseg/constseg #pragma fail
841         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
842         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
843           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
844           suppoprt/cpp2/sdcpp.[ch]: house cleaning
845
846 2007-01-09 Borut Razem <borut.razem AT siol.net>
847
848         * get rid of diagnistic.[ch], pretty-print.[ch],
849           c-pretty-print.[ch], ... used just for error, warning, ...
850           message formatting
851         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
852           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
853           suppoprt/cpp2/pretty-print.[ch]:
854           removed
855         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
856           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
857           suppoprt/cpp2/sdcpp.dsp:
858           changed
859
860 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
861
862         * device/lib/printf_large.c (output_float): removed recursion,
863           use smaller buffer on stack for mcs51,
864           fixed bug printing 1.96
865         * support/regression/tests/snprintf.c: added test
866
867 2007-01-07 Borut Razem <borut.razem AT siol.net>
868
869         * use dynamic memory buffers instead temporary files
870         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
871           added
872         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
873           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
874           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
875           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
876           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
877           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
878           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
879           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
880           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
881           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
882           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
883           support/Util/dbuf.c, support/Util/dbuf.h:
884           modified
885         * .version, sdcc.spec: bumped version to 2.6.4
886
887 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
888
889         * src/port.h: added TARGET_Z80_LIKE macro
890         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
891           output PSEG location if --xram-loc or --xstack-loc was used
892         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
893
894 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
895
896         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
897         * as/as_z80.dsp,   as/z80/as_z80.dsp,
898         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
899         * sdcc.dsw: moved project files into subdir
900         * as/hc08/as_hc08.dsp,
901         * as/hc08/Makefile.bcc,
902         * as/hc08/Makefile.in,
903         * as/mcs51/Makefile.bcc,
904         * as/mcs51/Makefile.in,
905         * as/z80/Makefile.bcc,
906         * as/z80/Makefile.in,
907         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
908         * as/hc08/asm.h,
909         * as/mcs51/asm.h,
910         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
911         * as/hc08/asmain.c,
912         * as/hc08/assym.c,
913         * as/mcs51/asmain.c,
914         * as/mcs51/assym.c,
915         * as/z80/assym.c: removed include "strcmpi.h"
916         * as/hc08/strcmpi.c,
917         * as/hc08/strcmpi.h,
918         * as/mcs51/strcmpi.c,
919         * as/mcs51/strcmpi.h,
920         * support/Util/strcmpi.c,
921         * support/Util/strcmpi.h: removed files
922         * as/strcmpi.c: added as_strncmpi()
923
924 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
925
926         * sdcc.dsw: Added some dependencies on project config.dsp
927
928 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
929
930         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
931           with [di]ram_start to fix a regresion
932
933 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
934
935         * configure.in: added missing mcs51 in status output
936         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
937         directory
938         * debugger/mcs51/clean.mk (distclean): remove config.h
939         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
940         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
941         options.h, s-options-h and options.c
942         * support/cpp2/clean.mk: unused, removed
943         * Makefile.common.in,
944         * main_in.mk,
945         * as/Makefile.in,
946         * as/hc08/Makefile.in,
947         * as/hc08/clean.mk,
948         * as/mcs51/Makefile.in,
949         * as/mcs51/clean.mk,
950         * as/z80/clean.mk,
951         * as/z80/conf.mk,
952         * as/z80/Makefile.in,
953         * as/z80/clean.mk,
954         * as/link/Makefile.in,
955         * as/link/hc08/Makefile.in,
956         * as/link/hc08/clean.mk,
957         * as/link/mcs51/Makefile.in,
958         * as/link/mcs51/clean.mk,
959         * as/link/z80/Makefile.in,
960         * as/link/z80/clean.mk,
961         * as/link/z80/conf.mk,
962         * debugger/mcs51/Makefile.in,
963         * debugger/mcs51/clean.mk,
964         * device/include/Makefile.in,
965         * device/lib/Makefile.in,
966         * device/lib/mcs51/Makefile.in,
967         * device/lib/pic/Makefile.in,
968         * device/lib/pic/Makefile.common.in,
969         * device/lib/pic/Makefile.subdir,
970         * device/lib/pic/Makefile.rules,
971         * device/lib/pic16/libio/Makefile.in,
972         * device/lib/pic16/Makefile.subdir,
973         * device/lib/pic16/libdev/Makefile.in,
974         * device/lib/pic16/Makefile.rules,
975         * device/lib/pic16/Makefile.common.in,
976         * sim/ucsim/avr.src/Makefile.in,
977         * sim/ucsim/main_in.mk,
978         * sim/ucsim/cmd.src/Makefile.in,
979         * sim/ucsim/doc/Makefile.in,
980         * sim/ucsim/gui.src/Makefile.in,
981         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
982         * sim/ucsim/gui.src/serio.src/Makefile.in,
983         * sim/ucsim/hc08.src/Makefile.in,
984         * sim/ucsim/libltdl/Makefile.in,
985         * sim/ucsim/s51.src/Makefile.in,
986         * sim/ucsim/sim.src/Makefile.in,
987         * sim/ucsim/sim.src/conf.mk,
988         * sim/ucsim/xa.src/Makefile.in,
989         * sim/ucsim/z80.src/Makefile.in,
990         * src/Makefile.in,
991         * src/clean.mk,
992         * src/port.mk,
993         * support/cpp2/Makefile.in,
994         * support/librarian/Makefile.in,
995         * support/librarian/clean.mk,
996         * support/makebin/Makefile.in,
997         * support/makebin/clean.mk,
998         * support/packihx/Makefile.in,
999         * support/regression/Makefile.in,
1000         * support/regression/ports/ds390/spec.mk,
1001         * support/regression/ports/gbz80/spec.mk,
1002         * support/regression/ports/hc08/spec.mk,
1003         * support/regression/ports/mcs51/spec.mk,
1004         * support/regression/ports/mcs51-large/spec.mk,
1005         * support/regression/ports/mcs51-medium/spec.mk,
1006         * support/regression/ports/mcs51-xstack-auto/spec.mk,
1007         * support/regression/ports/pic14/spec.mk,
1008         * support/regression/ports/pic16/spec.mk,
1009         * support/regression/ports/mcs51-stack-auto/spec.mk,
1010         * support/regression/ports/ucz80/spec.mk,
1011         * support/regression/ports/xa51/spec.mk,
1012         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
1013         adding a slash after $(top_builddir) and/or adding @datarootdir@
1014         * configure.in,
1015         * debugger/mcs51/configure.in,
1016         * device/lib/pic/configure.in,
1017         * device/lib/pic16/configure.in,
1018         * sim/ucsim/configure.in,
1019         * support/cpp2/configure.in,
1020         * support/packihx/configure.in: changed AC_PREREQ to 2.60
1021         * configure,
1022         * debugger/mcs51/configure,
1023         * device/lib/pic/configure,
1024         * device/lib/pic16/configure,
1025         * sim/ucsim/configure,
1026         * support/cpp2/configure,
1027         * support/packihx/configure: generated with autoconf 2.60
1028
1029 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
1030
1031         * as/link/hc08/lkihx.c (newArea),
1032         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
1033
1034 2007-01-02 Borut Razem <borut.razem AT siol.net>
1035
1036         * doc/sdccman.lyx: documented #pragma sdcc_hash
1037         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
1038           initialized to 0
1039         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
1040
1041 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
1042
1043         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
1044         empty 'while'-loop to work correctly, see regression test 'while.c'
1045         * support/regression/tests/while.c: added
1046
1047 2007-01-01 Borut Razem <borut.razem AT siol.net>
1048
1049         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
1050           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
1051           support/cpp2/libcpp/sdcpp.c:
1052           sdcpp specific pragma/directive/option handling moved to sdcpp.c
1053         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
1054         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
1055
1056 2006-12-31 Borut Razem <borut.razem AT siol.net>
1057
1058         * SDCPP synchronized with GCC CPP release version 4.1.1,
1059           currently the latest release:
1060         * support/cpp2/libcpp, support/cpp2/libcpp/include,
1061           support/cpp2/libcpp/include/cpp-id-data.h
1062           support/cpp2/libiberty/fopen_unlocked.c
1063           support/cpp2/libiberty/md5.c
1064           support/cpp2/md5.h
1065           support/cpp2/opt-functions.awk
1066           support/cpp2/opt-gather.awk
1067           support/cpp2/optc-gen.awk
1068           support/cpp2/opth-gen.awk:
1069           added
1070         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
1071           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1072           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1073           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
1074           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
1075           support/cpp2/diagnostic.h, support/cpp2/except.h,
1076           support/cpp2/hwint.h, support/cpp2/input.h,
1077           support/cpp2/intl.h, support/cpp2/move-if-change,
1078           support/cpp2/opts.c, support/cpp2/opts.h,
1079           support/cpp2/output.h, support/cpp2/prefix.c,
1080           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
1081           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
1082           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
1083           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
1084           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
1085           support/cpp2/version.c:
1086           modified
1087         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
1088           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
1089           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
1090           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
1091           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
1092           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1093           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
1094           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
1095           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
1096           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
1097           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
1098           moved
1099         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
1100           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
1101           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
1102           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
1103           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1104           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
1105           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
1106           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
1107           support/cpp2/hashtable.h, support/cpp2/line-map.c,
1108           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
1109           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
1110           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
1111           support/cpp2/system.h:
1112           deleted / moved
1113
1114 2006-12-31 Borut Razem <borut.razem AT siol.net>
1115
1116         * configure.in, configure: fixed bug #1538756: configure dies if bison
1117           and flex are not installed, 2nd try
1118
1119 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1120
1121         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
1122         400.x for better code in RFE 899102
1123
1124 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
1125
1126         * src/SDCCpeeph.c (deadMove),
1127         * src/port.h,
1128         * src/mcs51/peep.h: renamed 'op' by 'reg'
1129         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
1130         (scan4op): small change for removeDeadMove(), added support for
1131         'callee saves' and/or PACLL function calls,
1132         (removeDeadMove): added, removes superflous 'mov r%1,%2',
1133         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
1134         left in new dispatcher mcs51DeadMove()
1135         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
1136         removeDeadMove()
1137         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
1138
1139 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1140
1141         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
1142           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
1143
1144 2006-12-30 Borut Razem <borut.razem AT siol.net>
1145
1146         * support/cpp2/spacs.h: deleted from svn
1147         * configure.in, configure: fixed bug #1538756: configure dies if bison
1148           and flex are not installed
1149
1150 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
1151
1152         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
1153           with this z80 passes printf float test when enabled
1154         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
1155
1156 2006-12-28 Borut Razem <borut.razem AT siol.net>
1157
1158         * support/cpp2/config.in, support/cpp2/configure.in,
1159           support/cpp2/configure, support/cpp2/Makefile.in:
1160           fix for the solaris build
1161
1162 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1163
1164         * src/SDCC.y (type_specifier2, pointer),
1165         * src/SDCCsymt.h,
1166         * src/SDCCsymt.c (mergeSpec, checkSClass),
1167         * support/Util/SDCCerr.c,
1168         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
1169         * support/valdiag/valdiag.py: Allow test cases to specify
1170           required language standard
1171         * support/valdiag/tests/restrict.c: New file to test restrict keyword
1172         * support/valdiag/tests/tentdecl.c: Supress empty source file error
1173
1174 2006-12-27 Borut Razem <borut.razem AT siol.net>
1175
1176         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
1177         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
1178           mbchar removed
1179         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
1180           fixed for borland C
1181         * support/cpp2/libiberty/Makefile.bcc: updated
1182         * src/pic16/main.c: fixed #pragma udata handling
1183         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
1184
1185 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
1186
1187         * src/SDCCpeeph.c: made labelHashEntry global,
1188         made pcDistance, FBYNAME static,
1189         (pcDistance): made static, use isComment and isLabel,
1190         (deadMove): added,
1191         (getLabelRef): added, extracted from labelRefCount(),
1192         (labelRefCount): use new getLabelRef(),
1193         (callFuncByName): made static, added deadMove,
1194         use isComment and isLabel,
1195         (newPeepRule): made static, set isLabel,
1196         (isLabelDefinition): added parameter isPeepRule to allow '%' in
1197         labels from peephole rules,
1198         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
1199         when isComment or isLabel is set
1200         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
1201         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
1202         to make them global
1203         * src/mcs51/peep.h: added
1204         * src/mcs51/peep.c: added, implements mcs51DeadMove()
1205         * src/port.h: added peep->deadMove to port structure
1206         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
1207         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
1208         deadMove, finally removed no. 1 and 2
1209         * src/mcs51/gen.c,
1210         * src/pic/gen.c,
1211         * src/z80/gen.c,
1212         * src/z80/ralloc.c,
1213         * src/pic16/gen.c,
1214         * src/ds390/gen.c,
1215         * src/hc08/gen.c: mark lines with isComment or isLabel
1216         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
1217         * .version,
1218         * sdcc.spec: bumped version to 2.6.3
1219
1220 2006-12-26 Borut Razem <borut.razem AT siol.net>
1221
1222         * support/cpp2/Makefile.in: added dependency on options.h
1223         * configure: regenerated
1224         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
1225         * support/cpp2/Makefile.in: added vasprintf.c
1226
1227 2006-12-25 Borut Razem <borut.razem AT siol.net>
1228
1229         * SDCPP synchronized with GCC CPP release version 3.4.6,
1230           the latest release before 4.x:
1231         * support/cpp2/Makefile.in, support/cpp2/config.h,
1232           support/cpp2/configure, support/cpp2/configure.in,
1233           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
1234           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
1235           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
1236           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
1237           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
1238           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
1239           support/cpp2/cpptrad.c, support/cpp2/except.h,
1240           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
1241           support/cpp2/hwint.h, support/cpp2/intl.h,
1242           support/cpp2/line-map.c, support/cpp2/line-map.h,
1243           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
1244           support/cpp2/output.h, support/cpp2/prefix.c,
1245           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
1246           support/cpp2/system.h, support/cpp2/version.c:
1247           modified
1248         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1249           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
1250           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
1251           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
1252           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
1253           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
1254           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
1255           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
1256           support/cpp2/move-if-change, support/cpp2/opts.c,
1257           support/cpp2/opts.h, support/cpp2/opts.sh,
1258           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
1259           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
1260           support/cpp2/win32, support/cpp2/win32/dirent.c,
1261           support/cpp2/win32/dirent.h:
1262           added
1263         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
1264         * support/cpp2/sdcpp.h: renamed from sdcc.h
1265         * sdcppinit.c: deleted
1266
1267 2006-12-23 Borut Razem <borut.razem AT siol.net>
1268
1269         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1270           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
1271           preproc.c: an other try to fix bug #982435: introduced
1272           -pedantic-parse-number command line option and pedantic_parse_number
1273           pragma
1274
1275 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
1276
1277         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
1278            BSEG handling,
1279           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
1280            corrected overlayed areax addresses, warn about memory overlaps
1281         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
1282         * src/avr/main.c,
1283         * src/ds390/main.c,
1284         * src/hc08/main.c,
1285         * src/mcs51/main.c,
1286         * src/pic16/main.c,
1287         * src/pic/main.c,
1288         * src/xa51/main.c,
1289         * src/z80/main.c,
1290         * src/port.h: added xabs_name and iabs_name
1291         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
1292           (glue, emitMaps): create and emit maps d_abs and i_abs
1293         * src/SDCCglue.h: cosmetic changes
1294         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
1295         * src/SDCCmem.h,
1296         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
1297           (allocDefault): put absolute, initialized globals in them
1298         * support/regression/tests/absolute.c: added absolute bdata test
1299         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
1300
1301 2006-12-20 Borut Razem <borut.razem AT siol.net>
1302
1303         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
1304         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
1305           added regression test for bug #982435
1306
1307 2006-12-18 Borut Razem <borut.razem AT siol.net>
1308
1309         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
1310         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
1311           small cosmetic changes
1312         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
1313         * support/regression/tests/bug-1351710.c: added regression test
1314
1315 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1316
1317         * doc/sdccman.lyx: added the long missed iCode table
1318           "<where is figure II?>", added links to wiki
1319
1320 2006-12-17 Borut Razem <borut.razem AT siol.net>
1321
1322         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
1323           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
1324           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
1325           unified table driven pragma handling, pragma argument type checking
1326         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
1327           current one - version 1.1.3
1328         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
1329
1330 2006-12-13 Raphael Neider <rneider AT web.de>
1331
1332         * src/pic/device.h: removed AssignedMemory structure and macros
1333         * src/pic/device.c: removed global finalMapping (linker assigns
1334             memory locations),
1335           (register_map): add SFRs to remembered memRanges
1336           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
1337           assignFixedRegisters,assignRelocatableRegisters): removed,
1338           (setMaxRAM,validAddress): adapted accordingly,
1339           (pic14_hasSharebank,pic14_getSharedStack): only report and use
1340             reasonably sized sharebanks,
1341         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
1342           (allDefsOutOfRange): removed unused code,
1343         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
1344             handling
1345         * src/pic/pcode.c (register_reassign): removed recursion warning,
1346             fired far too often,
1347         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
1348             to use existing pic14_stringInSet() to avoid duplicate symbols,
1349             tidied up the code a bit,
1350           (pic14printLocals): added in symmetry to printExterns, replaces
1351             writeUsedRegs more or less,
1352           (picglue): call new pic14_printLocals(),
1353         * device/include/pic/pic*.h: removed #pragma memmap directives,
1354             information gathered from include/pic/pic14devices.txt
1355         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
1356
1357 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1358
1359         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
1360
1361 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1362
1363         * device/include/mcs51/cc2430.h: fixed missing ';'
1364
1365 2006-12-10 Raphael Neider <rneider AT web.de>
1366
1367         * device/lib/pic16/libc/stdio/vfprintf.c,
1368         * device/lib/pic16/libc/stdio/printf_small.c,
1369         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
1370           char arguments, as char varargs are cast to int by the caller,
1371           hopefully fixes #1604915 (other device libraries are still affected)
1372
1373 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1374
1375         * src/mcs51/ralloc.c (packRegsForAssign),
1376         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
1377
1378 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
1379
1380         * device/include/malloc.h: removed init_dynamic_memory
1381         * device/lib/malloc.c: made init_dynamic_memory static and automatically
1382           call it once from malloc. Also use _sdcc_heap[] from _heap.c
1383         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
1384         * device/lib/libsdcc.lib,
1385         * device/lib/Makefile.in,
1386         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
1387         * doc/sdccman.lyx: documented use of new _heap.c
1388         * support/regression/tests/malloc.c: removed init_dynamic_memory
1389         * src/cdbFile.c(spacesToUnderscores): new function,
1390           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
1391           1068030
1392         * device/include/tinibios.h: removed defines for putchar and getchar
1393         * device/lib/ds390/Makefile.in: added putchar.c
1394         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
1395
1396 2006-12-09 Borut Razem <borut.razem AT siol.net>
1397
1398         * support/cpp2/sdcc.h: prevent multiple inclusion
1399         * support/cpp2/options.h: deleted
1400
1401 2006-12-08 Borut Razem <borut.razem AT siol.net>
1402
1403         * support/cpp2/sdcc.h: removed x*alloc() macros
1404         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
1405         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
1406           support/cpp2/sdcpp.sdc: x*alloc files added to the project
1407         * support/cpp2/system.h: moved #include "sdcc.h"
1408         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
1409           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
1410           added
1411         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
1412           -funsigned-char options
1413         * support/cpp2/sdcppmain.c: fixed bug 1611411
1414
1415 2006-12-07 Borut Razem <borut.razem AT siol.net>
1416
1417         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
1418           directive
1419
1420 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1421
1422         * src/SDCCsymt.c (addDecl): fixed bug 1609244
1423         * src/SDCCmain.c (linkEdit): fixed bug 1609279
1424         * doc/sdccman.lyx,
1425         * .version: bumped to 2.6.2 because a) it's been a while
1426           b) the linker sources have moved c) the preprocessor is upgraded
1427
1428 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1429
1430         * support/regression/tests/snprintf.c: some checks
1431         * lib/src/printf_large.c: %bc: read char instead of int from stack
1432
1433 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
1434
1435         * device/include/mcs51/cc2430.h: inserted _XPAGE
1436
1437 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1438
1439         * device/include/mcs51/cc2430.h: added
1440
1441 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
1442
1443         * device/include/asm/default/features.h,
1444         * device/include/asm/ds390/features.h,
1445         * device/include/mcs51/at89s53.h,
1446         * device/include/ser.h,
1447         * device/include/ser_ir.h,
1448         * device/include/serial.h: changed keywords to double underscore variants,
1449           fixes bug 1590261 some more, thanks Steven Borley
1450
1451 2006-12-01 Raphael Neider <rneider AT web.de>
1452
1453         * src/pic/pcode.c (register_reassign): do not crash on recursive code
1454           but emit warning (recursion is not supported for pic14)
1455
1456 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1457
1458         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
1459         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
1460
1461 2006-11-30 Raphael Neider <rneider AT web.de>
1462
1463         * src/pic/device.c (dump_sfr): always emit symbols
1464         * src/pic/glue.c (pic14printPublics): fixed typo
1465
1466 2006-11-30 Raphael Neider <rneider AT web.de>
1467
1468         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
1469           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
1470           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
1471            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
1472            a sharebank, use a non-shared bank for the stack if none available
1473         * src/pic/device.h (struct memRange): added linked list next field,
1474           added prototypes for above functions
1475         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
1476           (typeRegWithIdx): accept fixed and unfixed stack registers
1477         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
1478           the stack, handle shared and banked stack (except for WSAVE),
1479           (insertBankSel): removed useless optimization (will never fire),
1480           (FixRegisterBanking): added optimization for devices with only one
1481           possibly aliased bank of memory, like 16f84
1482         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
1483           devices have no SHAREBANK in the linker script
1484         * device/include/pic/pic14devices.txt: documented memmap
1485         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
1486
1487 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1488
1489         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
1490           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
1491           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
1492           genhc08Code): switched most of the D (debug) macros to DD (detailed
1493           debug) macros to better control clutter in the generated .asm file.
1494         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
1495           genRightShift): fixed bug with non-constant bit shift stored to
1496           a volatile result (SF Open Discussion forum thread #1616749).
1497           Single byte case is not yet optimized.
1498
1499 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
1500
1501         * device/include/asm/mcs51/features.h,
1502         * device/include/malloc.h,
1503         * device/include/stdio.h: changed keywords to double underscore variants,
1504           fixes bug 1590261
1505
1506 2006-11-27 Borut Razem <borut.razem AT siol.net>
1507
1508         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1509           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
1510           support/cpp2/output.h, support/cpp2/cppinit.c,
1511           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
1512           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1513           support/cpp2/cppdefault.c, support/cpp2/system.h,
1514           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
1515           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
1516           support/cpp2/prefix.c, support/cpp2/except.h,
1517           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
1518           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
1519           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1520           support/cpp2/version.c, support/cpp2/cppmain.c,
1521           support/cpp2/version.h, support/cpp2/hashtable.c,
1522           support/cpp2/cpperror.c:
1523           synchronized with GCC CPP release version 3.3.6,
1524           the latest where cppmain.c still exists.
1525         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
1526           support/cpp2/sdcppinit.c: added
1527
1528 2006-11-27 Borut Razem <borut.razem AT siol.net>
1529
1530         * support/cpp2/cpplex.c:
1531           fixed _asm ... _endasm handling bug, introduce with GCC CPP
1532           synchronization
1533         * support/cpp2/cpplib.c: removed definitions of unused variables
1534
1535 2006-11-26 Borut Razem <borut.razem AT siol.net>
1536
1537         * support/cpp2/libiberty.h: commented out x*alloc() declarations
1538           since they are redefined by macros in support/cpp2/sdcc.h
1539         * support/cpp2/sdcc.h: x*alloc macro redefinition
1540
1541 2006-11-25 Borut Razem <borut.razem AT siol.net>
1542
1543         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
1544           support/cpp2/configure, support/cpp2/Makefile.in,
1545           support/cpp2/cppfiles.c, support/cpp2/output.h,
1546           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
1547           support/cpp2/config.h, support/cpp2/cpplib.h,
1548           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
1549           support/cpp2/cppdefault.c, support/cpp2/config.in,
1550           support/cpp2/system.h, support/cpp2/cpplex.c,
1551           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
1552           support/cpp2/cppdefault.h, support/cpp2/prefix.c
1553           support/cpp2/hwint.h, support/cpp2/mbchar.h,
1554           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
1555           support/cpp2/configure.in, support/cpp2/intl.h,
1556           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
1557           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
1558           support/cpp2/version.c, support/cpp2/cppmain.c,
1559           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
1560           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
1561           support/cpp2/cpperror.c,
1562           support/cpp2/libiberty/safe-ctype.c,
1563           support/cpp2/libiberty/safe-ctype.h,
1564           support/cpp2/libiberty/splay-tree.c,
1565           support/cpp2/libiberty/obstack.c,
1566           support/cpp2/libiberty/lbasename.c,
1567           support/cpp2/libiberty/splay-tree.h,
1568           support/cpp2/libiberty/obstack.h:
1569           synchronized with GCC CPP release version 3.2.3,
1570           the latest before integration of cpp into gcc
1571         * support/cpp2/except.h, support/cpp2/line-map.c,
1572           support/cpp2/line-map.h,
1573           support/cpp2/libiberty/hex.c,
1574           support/cpp2/libiberty/concat.c,
1575           support/cpp2/libiberty/filenames.h: added
1576         * support/cpp2/intl.c: deleted
1577
1578 2006-11-24 Borut Razem <borut.razem AT siol.net>
1579
1580         * src/SDCC.y: enabled compilation of empty source file
1581         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
1582           "ISO C forbids an empty source file"
1583         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
1584           if all the code is ifdefed out.
1585
1586 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1587
1588         * src/hc08/gen.c (genPcall): fix for bug #1601032
1589
1590 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1591
1592         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
1593         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
1594         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
1595         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
1596         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
1597         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
1598         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
1599         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
1600         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
1601         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
1602         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
1603         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
1604         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
1605         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
1606         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
1607           Renamed to all upper case as per the standard set by SiLabs
1608
1609 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
1610
1611         * device/include/mcs51/C8051F520.h: new, added
1612         * device/include/mcs51/compiler.h: added link about predefined macros
1613
1614 2006-11-23 Raphael Neider <rneider AT web.de>
1615
1616         * src/regression/Makefile: add -L path to fresh library
1617         * src/regression/simulate: emphasize FAILED output
1618         * src/regression/create_stc: output _failures from gpsim
1619         * src/regression/compare4.c,
1620         * src/regression/rotate6.c: fixed char literals,
1621           all compile, all run =8-D
1622
1623         * src/pic/pcode.h: added isPCASMDIR macro
1624         * src/pic/gen.c (genAnd): fixed bit offset
1625         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
1626           packBits): unified register numbering schemes,
1627           (newReg): do not insert stack registers into hash table,
1628           (initStack): unpinned pseudo stack, simplified,
1629           (typeRegWithIdx): fixed retrieval of stack registers,
1630         * src/pic/pcode.c (addpCodeComment,sameBank): added,
1631           (pCodeReplace): removed invalid assertion,
1632           (insertPCodeInstruction): fixed newly added labels,
1633           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
1634           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
1635           DumpFlow): removed unsed (broken?) code,
1636           (insertBankSel): prevent STATUS from being BANKSELed,
1637           (FixRegisterBanking): rewritten from scratch, implemented generic
1638             optimizations (suppress BANKSELs to same register and to registers
1639             present in all banks),
1640           (AnalyzeBanking): update flow after BANKSELection
1641
1642         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
1643             sharebank, let linker place it, mark STKxx symbols as emitted
1644
1645 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1646
1647         * src/regression/arrays.c,
1648         * src/regression/bank1.c,
1649         * src/regression/bool2.c,
1650         * src/regression/compare7.c,
1651         * src/regression/compare8.c,
1652         * src/regression/compare9.c,
1653         * src/regression/compare10.c,
1654         * src/regression/configword.c,
1655         * src/regression/for.c,
1656         * src/regression/mult1.c,
1657         * src/regression/pointer1.c,
1658         * src/regression/rotate6.c,
1659         * src/regression/string1.c,
1660         * src/regression/struct1.c,
1661         * src/regression/Makefile: make PIC14 regression tests run again
1662           (3 fail, 6 won't compile)
1663
1664 2006-11-21 Raphael Neider <rneider AT web.de>
1665
1666         * device/include/pic16/pic18f4550.h,
1667         * device/include/pic16/pic18f4455.h,
1668         * device/lib/pic16/libdev/pic18f4550.c,
1669         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
1670         * configure.in: removed superfluous closing bracket
1671
1672 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1673
1674         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
1675           always positive.
1676
1677 2006-11-21 Raphael Neider <rneider AT web.de>
1678
1679         * src/pic/device.{c,h}: added pic14_getPIC()
1680         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
1681           (genAnd): added PIC code for one case, fixes #1597044
1682         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
1683           SFRs that are present in all banks (e.g., STATUS)
1684
1685 2006-11-20 Raphael Neider <rneider AT web.de>
1686
1687         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
1688           INCFSZ/INCFSZW and declared them as changing Z bit,
1689           (insertPCodeInstruction): correctly invert the above instructions,
1690           fixes #1599333,
1691           (DoBankSelect): don't panic on po_immediates
1692
1693 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1694
1695         * as/link/aslink.h,
1696         * as/link/mcs51/lkihx.c (newArea),
1697         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
1698         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
1699
1700 2006-11-11 Raphael Neider <rneider AT web.de>
1701
1702         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
1703           bitfield symbols, fixes #1579535 (once more...).
1704
1705 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1706
1707         * support/regression/generate-cases.py,
1708         * support/regression/fwk/include/testfwk.h,
1709         * support/regression/fwk/lib/testfwk.c: used code pointers,
1710           (about 50kByte less code generated for mcs51)
1711
1712 2006-11-06 Borut Razem <borut.razem AT siol.net>
1713
1714         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1715           debugger/mcs51/configure: fixed failed check because the function
1716           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
1717           who submitted the patch for gpsim.
1718         * debugger/mcs51/configure.in: removed the result message
1719         * debugger/mcs51/Makefile.in: fixed the config.status warning
1720           "... seems to ignore the --datarootdir setting"
1721
1722 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1723
1724         * device/include/mcs51/c8051f020.h,
1725         * device/include/mcs51/c8051f040.h,
1726         * device/include/mcs51/c8051f060.h,
1727         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
1728         * src/z80/gen.c (gencjneshort),
1729         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
1730
1731 2006-10-31 Borut Razem <borut.razem AT siol.net>
1732
1733         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1734           debugger/mcs51/configure: get readline version
1735
1736 2006-10-30 Borut Razem <borut.razem AT siol.net>
1737
1738         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
1739         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
1740           debugger/mcs51/configure: locate readline even when cross compiling
1741         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
1742
1743 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1744
1745         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
1746           serial port.
1747
1748 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1749
1750         * device/include/malloc.h,
1751         * device/lib/calloc.c,
1752         * device/lib/free.c,
1753         * device/lib/malloc.c,
1754         * device/lib/realloc.c: moved definition of struct into sources
1755         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
1756
1757 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1758
1759         * as/asx8051.dsp: corrected output directories
1760         * as/link/hc08: new directory for hc08 linker
1761         * as/hc08/aslink.h,             as/link/aslink.h,
1762         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
1763         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
1764         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
1765         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
1766         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
1767         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
1768         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
1769         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
1770         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
1771         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
1772         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
1773         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
1774         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
1775         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
1776         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
1777         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
1778         * as/link/hc08/conf.mk,
1779         * configure,
1780         * configure.in,
1781         * Makefile.in,
1782         * sdcc.dsw: moved hc08 linker to as/link/hc08
1783         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
1784         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
1785         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
1786         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
1787         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
1788         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
1789         * as/link/mcs51/aslink.dsp,
1790         * as/link/mcs51/Makefile.in: factored out the common files
1791         * as/hc08/lkstore.c: deleted, use the one already in as/link/
1792         * as/clean.mk: extra cleaning common files
1793         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
1794         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
1795         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
1796
1797 2006-10-29 Raphael Neider <rneider AT web.de>
1798
1799         * src/pic/ralloc.c (newReg): create aliases for registers with
1800           multiple names to fix #1579535 and #1584001,
1801           (regWithIdx,dirregWithName): resolve aliases on lookup
1802         * src/pic/pcode.c (DoBankSelect): die with error message on failing
1803           bankselect
1804         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
1805           to prevent build errors on small devices
1806
1807 2006-10-28 Raphael Neider <rneider AT web.de>
1808
1809         * src/pic/gen.c (genFunction,genCall): drop "same code page"
1810           assumption within interrupt handlers, fixes #1584940
1811         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
1812           "emitted" to avoid emitting them again in udata
1813
1814 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1815
1816         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1817         Removed.
1818
1819 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1820
1821         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
1822         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
1823         on/off CR to CRLF conversion.
1824
1825 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1826
1827         * doc/sdccman.lyx: updated IRQ section
1828
1829 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1830
1831         * device/lib/serial_io.c: removed
1832         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
1833         replacements for serial_io.c
1834
1835 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
1836
1837         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
1838
1839 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1840
1841         * device/lib/serial_io.c: Default putchar() and getchar() for
1842           mcs51 uses serial port.
1843
1844 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
1845
1846         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
1847
1848 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1849
1850         * support/regression/ports/mcs51/support.c: smaller
1851         _sdcc_external_startup()
1852         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
1853
1854 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
1855
1856         * device/lib/gbz80/crt0.s,
1857         * device/lib/gbz80/crt0_rle.s,
1858         * device/lib/gbz80/div.s,
1859         * device/lib/gbz80/fstubs.s,
1860         * device/lib/gbz80/heap.s,
1861         * device/lib/gbz80/mul.s,
1862         * device/lib/gbz80/putchar.s,
1863         * device/lib/gbz80/stubs.s,
1864         * device/lib/z80/crt0.s,
1865         * device/lib/z80/crt0_rle.s,
1866         * device/lib/z80/div.s,
1867         * device/lib/z80/fstubs.s,
1868         * device/lib/z80/heap.s,
1869         * device/lib/z80/mul.s,
1870         * device/lib/z80/putchar.s,
1871         * device/lib/z80/stubs.s: reverted, I was mistaken
1872
1873 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1874
1875         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
1876         * support/regression/ports/mcs51/support.c: removed race
1877         condition on TI in _putchar allowing to use serial port mode 0
1878
1879 2006-10-20 Borut Razem <borut.razem AT siol.net>
1880
1881         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
1882
1883 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
1884
1885         * device/lib/gbz80/crt0.s,
1886         * device/lib/gbz80/crt0_rle.s,
1887         * device/lib/gbz80/div.s,
1888         * device/lib/gbz80/fstubs.s,
1889         * device/lib/gbz80/heap.s,
1890         * device/lib/gbz80/mul.s,
1891         * device/lib/gbz80/putchar.s,
1892         * device/lib/gbz80/stubs.s,
1893         * device/lib/z80/crt0.s,
1894         * device/lib/z80/crt0_rle.s,
1895         * device/lib/z80/div.s,
1896         * device/lib/z80/fstubs.s,
1897         * device/lib/z80/heap.s,
1898         * device/lib/z80/mul.s,
1899         * device/lib/z80/putchar.s,
1900         * device/lib/z80/stubs.s: removed all leading underscores from area names
1901
1902 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
1903
1904         * support/regression/ports/mcs51/support.c: use highest baudrate so the
1905           regression tests are not waiting in the simulator for simulated
1906           transmission of debug output
1907
1908 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1909
1910         * device/lib/printf_large.c: slightly smaller
1911         * doc/sdccman.lyx: do not use spaces within html links
1912
1913 2006-10-16 Borut Razem <borut.razem AT siol.net>
1914
1915         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
1916           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
1917           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
1918           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
1919           debugger/mcs51/configure:
1920           [ 1185668 ] add gnu readline support to sdcdb - enabled
1921
1922 2006-10-16 Raphael Neider <rneider AT web.de>
1923
1924         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
1925           fixes #1577882, removes close to all banking optimizations
1926
1927 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
1928
1929         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
1930           variables in code memory
1931         * support/regression/tests/absolute.c: added test for this
1932
1933 2006-10-15 Raphael Neider <rneider AT web.de>
1934
1935         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
1936           devices,
1937           (BankSelect): emit BANKSEL before touching linker-placed regs,
1938           fixes #1570934
1939
1940 2006-10-10 Raphael Neider <rneider AT web.de>
1941
1942         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
1943         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
1944         * src/pic/main.c (_pic14_parseOptions),
1945         * src/pic/main.h: mostly reverted to previous state, now use results
1946             from SDCCmain.c's argument parsing
1947
1948 2006-10-10 Borut Razem <borut.razem AT siol.net>
1949
1950         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
1951           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
1952           [ 1185668 ] add gnu readline support to sdcdb -
1953           prepared for READLINE, not enabled yet,
1954           thanks to <tal.bav AT gmail.com>
1955
1956 2006-10-10 Raphael Neider <rneider AT web.de>
1957
1958         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
1959         * src/pic16/devices.inc,
1960         * device/include/pic16 (pic18f[24]620.h),
1961         * device/include/pic18fregs.h,
1962         * device/lib/pic16/pics.all,
1963         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
1964             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
1965             Gary Plumbridge and Anton Strobl
1966
1967 2006-10-10 Raphael Neider <rneider AT web.de>
1968
1969         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
1970           --stack-siz=NUM options to configure the argument passing stack
1971         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
1972         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
1973           (pic14_getSharebankSize): obey --stack-siz=NUM,
1974           (pic14_getSharebankAddress): obey --stack-loc=NUM
1975
1976 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1977
1978         * doc/sdccman.lyx: added to the manual
1979         * doc/figures/ddd_example.png: added (neither pdflatex nor
1980         most browsers seem to like the .eps file)
1981
1982 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
1983
1984         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
1985         to /tmp and /var/tmp acc. LSB
1986         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
1987         RESULT_TYPE_IFX
1988         * support/regression/tests/onebyte.c: added test
1989
1990 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1991
1992         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
1993
1994 2006-10-05 Borut Razem <borut.razem AT siol.net>
1995
1996         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
1997           thanks to dfulab:
1998           - sdcc.dsw: changed property eol-style to CRLF
1999           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
2000
2001 2006-10-04 Raphael Neider <rneider AT web.de>
2002
2003         * device/include/pic/{pic16f84.h,pic16f84a.h},
2004         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
2005           from patch #1522504, thanks to Robas Teodor
2006
2007 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
2008
2009         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
2010           fixes bug 1566015
2011
2012 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
2013
2014         * src/pic16/glue.c (pic16emitMaps),
2015         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
2016         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
2017         * device/lib/pic16/libc/string/memcpypgm2ram.c,
2018         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
2019           Philipp Krause
2020         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
2021         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
2022
2023 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2024
2025         * support/librarian/sdcclib.c: Added option -l.
2026         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
2027           usage totals.
2028         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
2029           using Windows command prompt.
2030
2031 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2032
2033         * device/lib/libsdcc.lib: added module rand
2034         * src/ds390/ralloc.c (rematStr),
2035         * src/hc08/ralloc.c (rematStr),
2036         * src/mcs51/ralloc.c (rematStr),
2037         * src/z80/ralloc.c (rematStr): made output more consistent
2038         * src/mcs51/gen.c: cosmetic changes
2039
2040 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
2041
2042         * src/port.h: added mem.cabs_name to PORT
2043         * src/ds390/main.c,
2044         * src/hc08/main.c,
2045         * src/mcs51/main.c,
2046         * src/pic16/main.c,
2047         * src/pic/main.c,
2048         * src/xa51/main.c,
2049         * src/z80/main.c: added cabs_name initializers
2050         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
2051           constants
2052           (emitMaps): emit absolutes in code memory into cabs_name
2053         * src/SDCCmem.c,
2054         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
2055         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
2056         * support/regression/fwk/include/testfwk.h: added define for at
2057         * support/regression/tests/absolute.c: added, new
2058
2059 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
2060
2061         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
2062           optimizations, see also patch 887161 by Stas Sergeev
2063         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
2064           to be necessary anymore,
2065           (102, 103, 104, 127): renamed all occurances of bp to _bp
2066
2067 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
2068
2069         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
2070           thanks Weston T. Schmidt for patch 1555221
2071         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
2072         * src/SDCCicode.c(geniCodeMultiply): small optimization
2073
2074 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2075
2076         * device/include/stdlib.h: added rand prototypes
2077         * device/lib/rand.c: new, added
2078         * device/lib/Makefile.in: added rand.c
2079         * src/z80/peeph.def,
2080         * src/z80/peeph-gbz80.def,
2081         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
2082
2083 2006-09-20 Raphael Neider <rneider AT web.de>
2084
2085         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
2086
2087 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
2088
2089         * as/link/aslink.h: cosmetic changes
2090         * as/link/mcs51/Makefile.in,
2091         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
2092
2093 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
2094
2095         * as/link/aslink.h,
2096         * as/link/mcs51/aslink.h,
2097         * as/link/z80/aslink.h: merged and moved to as/link/
2098         * as/link/lkstore.c,
2099         * as/link/mcs51/lkstore.c: moved to as/link/
2100         * as/link/clean.mk: remove *.o
2101         * as/link/mcs51/alloc.h: deleted
2102         * as/link/mcs51/lkarea.c: added lnksect prototype
2103         * as/link/mcs51/lkdata.c,
2104         * as/link/mcs51/lklex.c,
2105         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
2106         * as/link/mcs51/lkmem.c,
2107         * as/link/mcs51/lknoice.c: removed include strcmpi.h
2108         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
2109         * as/link/mcs51/aslink.dsp,
2110         * as/link/mcs51/Makefile.aslink,
2111         * as/link/mcs51/Makefile.bcc,
2112         * as/link/mcs51/Makefile.in: updated for moved files
2113         * as/link/z80/lkarea.c,
2114         * as/link/z80/lkhead.c,
2115         * as/link/z80/lklex.c,
2116         * as/link/z80/lklibr.c,
2117         * as/link/z80/lklist.c,
2118         * as/link/z80/lkmain.c,
2119         * as/link/z80/lkrloc.c,
2120         * as/link/z80/lksym.c: synced with mcs51
2121         * as/link/z80/lkdata.c,
2122         * as/link/z80/lkeval.c,
2123         * as/link/z80/lkihx.c,
2124         * as/link/z80/lks19.c: cosmetic changes
2125         * as/link/z80/Makefile.in,
2126         * as/link/z80/linkgbz80.dsp,
2127         * as/link/z80/linkz80.dsp: updated for moved files
2128
2129 2006-09-16 Borut Razem <borut.razem AT siol.net>
2130
2131         * debugger/mcs51/sdcdb.c: partially fixed
2132           [ 1203664 ] sdcdb fails to open files w. two "." periods
2133         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
2134           debugger/mcs51/symtab.h: fixed indenting
2135         * configure.in, configure: up to date with latest Maarten's changes
2136
2137 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
2138
2139         as/link/mcs51
2140         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
2141         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
2142         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
2143         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
2144         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
2145         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
2146         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
2147         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
2148         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
2149         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
2150         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
2151         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
2152         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
2153         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
2154         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
2155         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
2156         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
2157         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
2158         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
2159         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
2160         as/link/mcs51/alloc.h,
2161         as/link/mcs51/clean.mk,
2162         as/link/mcs51/conf.mk,
2163         as/link/mcs51/Makefile.bcc,
2164         as/link/mcs51/Makefile.in,
2165         as/link/mcs51/readme.390,
2166         as/link/mcs51/strcmpi.c,
2167         as/link/mcs51/strcmpi.h,
2168         as/mcs51/clean.mk,
2169         as/mcs51/Makefile.bcc,
2170         as/mcs51/Makefile.in,
2171         configure,
2172         Makefile.in,
2173         sdcc.dsw: moved mcs51 linker to as/link/mcs51
2174
2175 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
2176
2177         * as/link,
2178         * as/link/Makefile.in,
2179         * as/link/z80/linkgbz80.dsp,
2180         * as/link/z80/linkz80.dsp,
2181         * configure,
2182         * link,
2183         * link/clean.mk,
2184         * link/Makefile.in,
2185         * link/README,
2186         * link/z80,
2187         * link/z80/aslink.h,
2188         * link/z80/clean.mk,
2189         * link/z80/conf.mk,
2190         * link/z80/linkgbz80.dsp,
2191         * link/z80/linkz80.dsp,
2192         * link/z80/lkarea.c,
2193         * link/z80/lkdata.c,
2194         * link/z80/lkeval.c,
2195         * link/z80/lkgb.c,
2196         * link/z80/lkgg.c,
2197         * link/z80/lkhead.c,
2198         * link/z80/lkihx.c,
2199         * link/z80/lklex.c,
2200         * link/z80/lklibr.c,
2201         * link/z80/lklist.c,
2202         * link/z80/lkmain.c,
2203         * link/z80/lkrloc.c,
2204         * link/z80/lks19.c,
2205         * link/z80/lksym.c,
2206         * link/z80/Makefile.in,
2207         * Makefile.in,
2208         * sdcc.dsw: moved link/ to as/link/
2209
2210 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
2211
2212         * as/mcs51/i51mch.c (machine): fixed warning
2213
2214 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2215
2216         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
2217
2218 2006-09-09 Borut Razem <borut.razem AT siol.net>
2219
2220         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
2221           sdcdb WIN32 native port
2222         * src/clean.mk: fixed
2223
2224 2006-09-08 Borut Razem <borut.razem AT siol.net>
2225
2226         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
2227
2228 2006-09-08 Raphael Neider <rneider AT web.de>
2229
2230         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
2231         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
2232             to gplink to disable processor mismatch warning and to allow
2233             the use of devices with only aliased (shared) memory banks,
2234           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
2235
2236 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2237
2238         * doc/sdccman.lyx: Some re-formating plus example on using
2239           #pragma preproc_asm +/-
2240
2241 2006-09-07 Borut Razem <borut.razem AT siol.net>
2242
2243         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
2244           section
2245
2246 2006-09-06 Borut Razem <borut.razem AT siol.net>
2247
2248         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
2249           line at sdcc.nsi:153
2250         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
2251
2252 2006-09-05 Borut Razem <borut.razem AT siol.net>
2253
2254         * configure.in, configure: support for winsock2
2255         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
2256           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
2257           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
2258           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
2259           debugger/mcs51/symtab.h: sdcdb WIN32 native port
2260
2261 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
2262
2263         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
2264           and OP_DEFS
2265         * support/regression/tests/bug1551947.c: new, added
2266         * src/SDCCsymt.h: strings are char* not byte*
2267
2268 2006-09-05 Raphael Neider <rneider AT web.de>
2269
2270         * device/lib/pic16/libdev/pic18f4550.c,
2271           device/include/pic16/pic18f4550.h: added PORTD/TRISD
2272             declarations/definitions from patch #1520949
2273
2274 2006-09-05 Raphael Neider <rneider AT web.de>
2275
2276         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
2277           byte-aligned bitfields, fixes #1539278
2278
2279 2006-09-05 Raphael Neider <rneider AT web.de>
2280
2281         * src/pic/gen.c (genReceive): skip unreferenced arguments,
2282           fixes #1544120
2283
2284 2006-09-04 Borut Razem <borut.razem AT siol.net>
2285
2286         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
2287         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
2288           -mno-cygwin is a part of the compiler name
2289         * support/scripts/sdcc_mingw32: don't disable ucsim
2290
2291 2006-09-03 Borut Razem <borut.razem AT siol.net>
2292
2293         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
2294         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
2295
2296 2006-09-03 Raphael Neider <rneider AT web.de>
2297
2298         * src/pic/ralloc.c,
2299         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
2300           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
2301           fixes #1550049
2302
2303 2006-09-01 Borut Razem <borut.razem AT siol.net>
2304
2305         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
2306           to make ppc-osx happy
2307
2308 2006-08-31 Borut Razem <borut.razem AT siol.net>
2309
2310         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
2311         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2312         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
2313         * support/regression/ports/ds390/spec.mk,
2314           support/regression/ports/mcs51/spec.mk,
2315           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
2316           To run regression tests in mingw environment:
2317           make DEV_NULL=NUL CC=gcc
2318
2319 2006-08-30 Borut Razem <borut.razem AT siol.net>
2320
2321         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
2322           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
2323           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
2324           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
2325           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
2326           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
2327           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
2328           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
2329           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
2330           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
2331           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
2332           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
2333           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2334           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
2335           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
2336           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
2337           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
2338           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
2339           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
2340           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
2341           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
2342           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
2343           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
2344           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
2345           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
2346           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
2347           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
2348           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
2349           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
2350           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
2351           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
2352           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
2353           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
2354           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
2355           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
2356           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
2357           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2358           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
2359           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
2360           ucsim WIN32 native port
2361
2362 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2363
2364         * doc/sdccman.lyx: added note on dynamic memory heap initialization
2365
2366 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
2367
2368         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2369         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
2370
2371 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
2372
2373         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
2374         * support/regression/tests/bug1546986.c: new, added
2375         * as/mcs51/.cvsignore,
2376         * debugger/mcs51/.cvsignore,
2377         * src/.cvsignore: deleted
2378
2379 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2380
2381         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
2382           definitions)
2383
2384 2006-08-20 Borut Razem <borut.razem AT siol.net>
2385
2386         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
2387           removed cl_listen_console::match(), cl_console::match(),
2388           restructured cl_commander::proc_input()
2389
2390 2006-08-16 Borut Razem <borut.razem AT siol.net>
2391
2392         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
2393           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
2394           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
2395
2396 2006-08-14 Borut Razem <borut.razem AT siol.net>
2397
2398         * support/regression/Makefile.in,
2399           support/regression/ports/pic14/gpsim.cmd,
2400           support/regression/ports/pic14/spec.mk,
2401           support/regression/ports/pic14/support.c:
2402           added pic14 regression test
2403
2404 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
2405
2406         * as/doc/asxhtm.html: documented changed ABS behaviour
2407         * as/doc/README: fixed some typos
2408
2409 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
2410
2411         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
2412           not defined on host
2413
2414 2006-08-12 Borut Razem <borut.razem AT siol.net>
2415
2416         * support/regression/fwk/include/testfwk.h,
2417           support/regression/fwk/lib/testfwk.c,
2418           support/regression/generate-cases.py,
2419           support/regression/Makefile.in:
2420           regression test framework does not depend on function pointers and
2421           variable arguments
2422
2423 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2424
2425         * device/include/stddef.h: c temporary hack to fix bug 1518273
2426
2427 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2428
2429         * device/include/mcs51/cc2510fx.h: added
2430         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
2431           to projects.
2432
2433 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
2434
2435         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
2436         * as/z80/Makefile.in: added strcmpi.c
2437         * as/z80/z80adr.c: added upper case registers and lower case conditionals
2438         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
2439
2440 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
2441
2442         * device/lib/gbz80/asm_strings.s,
2443         * device/lib/gbz80/crt0_rle.s,
2444         * device/lib/gbz80/div.s,
2445         * device/lib/gbz80/mul.s,
2446         * device/lib/gbz80/shift.s,
2447         * device/lib/z80/asm_strings.s,
2448         * device/lib/z80/crt0_rle.s,
2449         * device/lib/z80/div.s,
2450         * device/lib/z80/mul.s,
2451         * device/lib/z80/shift.s: changed to all lower case menmonics except the
2452           flags which are all upper case
2453
2454 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2455
2456         * as/z80/asm.h: made CASE_SENSITIVE 1
2457         * link/z80/aslink.h: made CASE_SENSITIVE 1
2458         * src/z80/gen.c (throughout): made all conditionals upper case
2459         * support/regression/tests/bug1503067.c: new
2460
2461 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
2462
2463         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
2464           (shiftIntoPair): added case 2 for PAIR_IY,
2465           (setupToPreserveCarry): replaced parameters with iCode and check if
2466            PAIR_DE is in use to fix bug 1399290,
2467           (genPlus, genMinus): updated call to setupToPreserveCarry
2468         * support/regression/tests/bug1399290.c: new
2469
2470 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
2471
2472         * device/lib/Makefile.in (Z80SOURCES): enabled float support
2473         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
2474         * src/ds390/gen.c (shiftRLong),
2475         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
2476         * src/mcs51/gen.c (sameReg): changed to sameByte,
2477           (xch_a_aopGet): new,
2478           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
2479            shiftRLong): fixed bug 1533966
2480         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
2481           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
2482         * support/regression/Makefile.in: disabled z80, enabled ucz80
2483         * support/regression/tests/float_trans.c: enabled test for z80 and host
2484         * support/regression/tests/shifts2.c: new, for testing bug 1533966
2485
2486 2006-08-01 Borut Razem <borut.razem AT siol.net>
2487
2488         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
2489           comparison is always false due to limited range of data type
2490           on PPC64 machine (openpower-linux1) where "char = unsigned char"
2491
2492 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
2493
2494         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
2495         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
2496         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
2497         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
2498
2499 2006-07-31 Borut Razem <borut.razem AT siol.net>
2500
2501         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
2502           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
2503           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
2504           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
2505           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
2506           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
2507           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
2508           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
2509           enable ucsim mingw compilation. Serial port is disabled,
2510           since it uses termios.h API, which is not available on native
2511           WIN32
2512
2513 2006-07-31 Borut Razem <borut.razem AT siol.net>
2514
2515         * Small Device C Compiler 2.6.0 released
2516         * support/scripts/sdcc.nsi: added FULL_DOC option
2517         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
2518
2519 2006-07-28 Borut Razem <borut.razem AT siol.net>
2520
2521         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
2522         * doc/INSTALL.txt: updated
2523
2524 2006-07-27 Borut Razem <borut.razem AT siol.net>
2525
2526         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
2527           device/lib/pic/libdev/Makefile.in: fixed bug
2528           [ 1438354 ] pic libsdcc: distclean doesn't work
2529         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
2530           device/lib/pic16/libio/Makefile.in: fixed bug
2531           [ 1438344 ] pic16 lib: clean doesn't work properly
2532         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
2533
2534 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
2535
2536         * device/lib/pic/libsdcc/fsdiv.c,
2537         * device/lib/pic/libsdcc/fsmul.c,
2538         * device/lib/pic16/libsdcc/float/fsdiv.c,
2539         * device/lib/pic16/libsdcc/float/fsmul.c,
2540         * device/lib/_fsdiv.c,
2541         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
2542         * support/regression/tests/bug1520966.c: added
2543         * doc/knownbugs.html: removed [ 1520966 ] from the list
2544
2545 2006-07-25 Borut Razem <borut.razem AT siol.net>
2546
2547         * configure.in, configure, sdccconf_in.h: fixed bug
2548           [ 1519095 ] regression test onebyte.c fails on ppc64 host
2549         * doc/knownbugs.html: removed [ 1519095 ] from the list
2550
2551 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
2552
2553         * doc/knownbugs.html: added, contains list of known bugs at release
2554         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
2555
2556 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2557
2558         * device/include/mcs51/compiler.h: added SFRX for xdata based special
2559           function registers and corrected defaults with additional warning
2560         * device/lib/malloc.c: cosmetic changes
2561         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
2562         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
2563           (fillGaps): and used it
2564
2565 2006-07-20 Raphael Neider <rneider AT web.de>
2566
2567         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
2568           output unless SDCCPICDEBUG is set
2569         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
2570           output if SILENT is set
2571
2572 2006-07-11 Borut Razem <borut.razem AT siol.net>
2573
2574         * doc/README.txt: updated
2575
2576 2006-07-10 Borut Razem <borut.razem AT siol.net>
2577
2578         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
2579           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
2580           in WIN32 installation
2581         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
2582           release candidate 1
2583
2584 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
2585
2586         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
2587         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
2588
2589 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
2590
2591         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
2592
2593 2006-07-06 Borut Razem <borut.razem AT siol.net>
2594
2595         * support/regression/tests/bitfields.c:
2596           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
2597         * support/regression/tests/constantRange.c:
2598           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
2599
2600 2006-07-04 Borut Razem <borut.razem AT siol.net>
2601
2602         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
2603           src/port.mk,
2604           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2605           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2606           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2607           reverted changes from 2006-07-03
2608         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
2609         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
2610           added CPPFLAGS, used by the host port
2611
2612 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
2613
2614         * support/regression/valdiag/tests/switch.c,
2615         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
2616         * support/regression/tests/libmullong.c: fixed for host
2617         * support/regression/ports/host/spec.mk: disable all warnings for host,
2618         SDCC runs with --less-pedantic too
2619
2620 2006-07-03 Borut Razem <borut.razem AT siol.net>
2621
2622         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
2623           defined CPPFLAGS
2624         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
2625         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
2626           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
2627           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
2628           include ../port.mk
2629         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
2630           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2631           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
2632           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
2633
2634 2006-07-02 Raphael Neider <rneider AT web.de>
2635
2636         * src/pic16/devices.inc,
2637         * device/include/pic16/pic18fregs.h,
2638         * device/include/pic16/pic18f4550.h,
2639         * device/lib/pic16/pics.all,
2640         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
2641
2642 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
2643
2644         * as/hc08/lkaomf51.c (OutputName),
2645         * as/mcs51/lkaomf51.c (OutputName),
2646         * as/z80/asmain.c (asmbl),
2647         * src/ds390/main.c (asmLineNodeFromLineNode),
2648         * src/hc08/ralloc.c (hc08_assignRegisters),
2649         * src/mcs51/main.c (asmLineNodeFromLineNode),
2650         * src/xa51/ralloc.c (checkRegMask),
2651         * src/xa51/gen.c (emitcode),
2652         * src/z80/gen.c (_emit2),
2653         * src/SDCCast.c (searchLitOp),
2654         * src/SDCCglobl.h,
2655         * support/packihx/packihx.c,
2656         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
2657         * src/ds390/gen.c (aopPutUsesAcc),
2658         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
2659         * support/regression/tests/libmullong.c (mullong_wrapper),
2660         * src/SDCCsymt.c (powof2),
2661         * src/SDCCast.c,
2662         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
2663         * src/SDCCsymt.h: added TYPE_TARGET_*
2664         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
2665         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
2666         SDCCast because 1) header problems 2) this is the right place
2667         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
2668         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
2669         prototype
2670
2671 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
2672
2673         * src/SDCCicode.h: removed buggy semicolon in unused macro
2674         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
2675         search for previous definiton of auto symbols too,
2676         (findPrevUse): fixed logic of emitWarnings
2677
2678 2006-06-26 Raphael Neider <rneider AT web.de>
2679
2680         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
2681           PCLATH and PCLATU on interrupts, potentially fixes #1505141
2682
2683 2006-06-25 Raphael Neider <rneider AT web.de>
2684
2685         * device/lib/pic/libm: NEW, added math library functions
2686         * device/lib/pic/libsdcc: NEW; added float support functions
2687         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
2688         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
2689           NEW, added math related headers
2690         * device/include/asm/pic/features.h: NEW
2691         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
2692           (popGet): allow larger offsets for AOP_PCODE,
2693           (genDataPointerSet): handle literals explicitly, more debug output,
2694           (genAssign): fixed for float using aopLiteral ;-)
2695         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
2696           GOTO initialisation routine
2697         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
2698           flag on registers, fixes #1469043 (local variables do not work)
2699         * src/pic/main.c (_pic14_do_link),
2700         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
2701           available
2702
2703 2006-06-25 Borut Razem <borut.razem AT siol.net>
2704
2705         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
2706           characters printed (not including the trailing '\0' used to end
2707           output to strings). Problem detected in regression test bug-927659.c.
2708           NOTE: printf() family functions should return int instead
2709           unsigned int!
2710         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
2711           specifier are printed as themselves
2712         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
2713           support flags, width and precision specifiers
2714
2715 2006-06-24 Borut Razem <borut.razem AT siol.net>
2716
2717         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
2718           to the list of sdcc tagrets not supporting bit type
2719         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
2720           testfor pic16 due to bug:
2721           [ 1511794 ] pic16: regression test bug-895992.c fails
2722
2723 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
2724
2725         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
2726         * src/SDCCglue.c (initPointer), fixed bug 1496419
2727         * support/regression/tests/bug1496419.c: new, added
2728
2729 2006-06-22 Borut Razem <borut.razem AT siol.net>
2730
2731         * support/regression/ports/pic16/support.c: use gpsim usart module from
2732           libgpsim_modules library
2733
2734 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2735
2736         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
2737         IP0H to IPH0.
2738
2739 2006-06-19 Raphael Neider <rneider AT web.de>
2740
2741         * src/pic/glue.h,src/pic16/glue.h: added prototypes
2742         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
2743           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
2744           (pic14printExterns,pic14printPublics,pic16printPublics,
2745           pic16_printExterns): use new functions to emit symbols
2746           (picglue,pic16glue): emit publics before emitting externs
2747         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
2748           locally defined functions to avoid bug #1443651
2749         * support/regression/tests/bug-716242.c: removed pic16 workaround
2750         * support/regression/ports/pic16/spec.mk: ignore errors during build
2751
2752 2006-06-19 Raphael Neider <rneider AT web.de>
2753
2754         * src/pic/glue.h: added pic14aopLiteral prototype
2755         * src/pic/glue.c (pic14aopLiteral): return unsigned int
2756         * src/pic/gen.c: removed stdint.h dependency
2757           (aopGet): use Safe_strdup()
2758           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
2759           (genDataPointerSet): use pic14aopLiteral()
2760         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
2761           for pic16; thanks to Bernhard and Maarten
2762
2763 2006-06-18 Borut Razem <borut.razem AT siol.net>
2764
2765         * support/regression/tests/structflexarray.c: flexible array members
2766           not supported by gcc < 3
2767         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
2768           GUI tool by default
2769         * src/pic/gen.c: don't include [p]strdin.h on solaris
2770         * support/Util/pstdint.h: addad svn attributes
2771         * support/regression/tests/constantRange.c,
2772           support/regression/tests/rotate.c: include inttypes.h instead
2773           stdint.h on solaris, addad svn attributes
2774
2775 2006-06-18 Raphael Neider <rneider AT web.de>
2776
2777         * src/SDCCsymt.c (initCSupport): change return type of divschar to
2778           int for PIC16
2779         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
2780           (pic16_genMinusBits): simplified sign-extension
2781           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
2782             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
2783             adjusted to correctly handle mixed-signed operands, disabled
2784             now unused multiplciation routines
2785         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
2786           (assignResultValue): added argument denoting the size of the result
2787             as returned by the function (fixes upcasts in assigning from
2788             function calls: char foo(); int i = foo();)
2789           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
2790             function result to assignResultValue
2791           (genMult): disabled inlined multiplication code
2792           (genDiv): augmented to also handle the modulus operator, fixed to
2793             handle mixed-signed operands correctly
2794           (genMod): simply call genDiv, disabled unused code
2795           (genAssign): fixed missing (sign-)extension on result
2796         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
2797             valid char operands, allow signed operands for native code, added
2798             division and modulo operator handling
2799         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
2800
2801         As a consequence, onebyte.c (if split into two files) and muldiv.c
2802         pass regression tests.
2803
2804 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2805
2806         * doc/Makefile.in: two runs of makeindex seem needed to get
2807         correct page references in the index of sdccman.pdf
2808         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
2809
2810 2006-06-17 Borut Razem <borut.razem AT siol.net>
2811
2812         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
2813
2814 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2815
2816         * doc/sdccman.lyx: updated, added (porting source code, debugging),
2817         mentioned ec2drv and paulmon
2818
2819 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2820
2821         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
2822           consecutive abs areas
2823           (find_empty_space, allocate_space): added map to handle codemap or
2824            xdatamap,
2825           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
2826            absolute idata and xdata
2827         * as/mcs51/lkmem.c (summary2): updated legend
2828
2829 2006-06-16 Raphael Neider <rneider AT web.de>
2830
2831         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
2832
2833 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
2834
2835         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
2836           1208515
2837         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
2838
2839 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
2840
2841         * src/port.h (struct PORT): added field gp_tags, to hold the tag
2842         value of generic pointers,
2843         * src/avr/main.c,
2844           src/ds390/main.c,
2845           src/hc08/main.c,
2846           src/izt/i186.c,
2847           src/izt/tlcs900h.c,
2848           src/mcs51/main.c,
2849           src/pic/main.c,
2850           src/pic16/main.c,
2851           src/xa51/main.c,
2852           src/z80/main.c: PORT structure, added elements for gp_tags field,
2853         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
2854         fields in the PORT structure of each port,
2855         * src/SDCCast.c (decorateType): allow processing of generic pointers
2856         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
2857         S_FIXED symbols
2858
2859 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
2860
2861         * link/z80/lkgb.c,
2862         * link/z80/lkgg.c,
2863         * src/pic16/gen.c,
2864         * src/pic16/main.c,
2865         * src/pic16/pcode.c,
2866         * src/pic/main.c,
2867         * src/pic/pcoderegs.c,
2868         * src/SDCCicode.c,
2869         * src/SDCCmain.c,
2870         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
2871           bug 1504689 on minGW
2872
2873 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2874
2875         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
2876
2877 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
2878
2879         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
2880
2881 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
2882
2883         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
2884           for optimization
2885
2886 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
2887
2888         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
2889         to a char variable. Fixed bug #1504211
2890         * device/include/pic16/adc.h,
2891         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
2892         and fixed bug #1364390
2893
2894 2006-06-10 Borut Razem <borut.razem AT siol.net>
2895
2896         * CVSROOT: removed the CVS left-over
2897
2898 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2899
2900         * as/hc08/asmain.c (asexit),
2901         * as/hc08/lkmain.c (lkexit),
2902         * as/mcs51/asmain.c (asexit),
2903         * as/mcs51/lkmain.c (lkexit),
2904         * src/SDCCglue.c (DEFSETFUNC),
2905         * src/SDCCmain.c (linkEdit, assemble),
2906         * support/librarian/sdcclib.c (AddRel),
2907           replaced unlink() by standard C remove()
2908         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
2909         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
2910           gatherImplicitVariables): new, added to fix bug 608752,
2911           (createFunction): added gatherImplicitVariables()
2912         * src/SDCCast.h: added createRMW prototype
2913         * src/SDCCsymt.h (struct symbol): added infertype
2914         * support/regression/tests/bug608752.c: new, added
2915
2916 2006-06-10 Raphael Neider <rneider AT web.de>
2917
2918         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
2919           multibyte dummy reads (fixes #1503234)
2920
2921 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2922
2923         * device/include/mcs51/compiler.h: new, added header file to enable
2924           creating common sfr definition header files for different compilers
2925
2926 2006-06-05 Raphael Neider <rneider AT web.de>
2927
2928         * src/pic16/{pcode.h,genarith.c}:
2929           introduced pCodeOp combining any two pCodeOps (previously only
2930           two register operands could be combined), removed pcop2 from
2931           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
2932         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
2933         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
2934           rewritten to use new PO_TWO_OPS
2935         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
2936         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
2937           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
2938           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
2939           (pic16_get_op): embraced return arg to allow #define return(x),
2940             added new case for combined opcodes
2941           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
2942           (pic16_pCode2str,pic16_getRegFrompCodeOp,
2943            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
2944
2945 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
2946
2947         * src/SDCCval.c (checkConstantRange): added
2948         * src/SDCCval.h: added checkConstantRange
2949         * support/Util/SDCCerr.c,
2950         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
2951         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
2952         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
2953         * src/SDCCast.c (decorateType): added checkConstantRange,
2954         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
2955         can be emitted with the correct always true/false warning,
2956         added optimization for double '!';
2957         result of decorateType() must be assigned back to the tree, because
2958         decorateType() can change the tree
2959         * src/SDCCicode.c (geniCodeLogic),
2960         (geniCodeAssign): replaced new checkConstantRange, added warnings,
2961         (checkConstantRange): removed, it was only a fragment which never
2962         emitted a warning
2963         * src/SDCCsymt.c (computeType): fixed promotion for
2964         "-1 < (unsigned bit) b"
2965         * src/pic/ralloc.c (packRegsForAssign),
2966         * src/pic16/ralloc.c (packRegsForAssign),
2967         * src/hc08/ralloc.c (packRegsForAssign),
2968         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
2969         from mcs51
2970         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
2971         * support/regression/tests/constantRange.c: added
2972         * support/valdiag/tests/constantRange.c: added
2973         * support/valdiag/valdiag.py: added -DPORT_HOST=1
2974
2975 2006-06-02 Borut Razem <borut.razem AT siol.net>
2976
2977         * support/regression/ports/pic16/support.c: increase stack size
2978           to 255 bytes
2979         * support/regression/Makefile.in: sort tests by name so that the
2980           resutlts can be compared on different machines / platforms
2981
2982 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2983
2984         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
2985         * src/ds390/gen.c (emitLabel): new, added,
2986           (genDjnz): fixed stack overflow bug,
2987           (throughout): cosmetic changes to sync with mcs51/gen.c,
2988           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
2989         * src/mcs51/gen.c (genEndFunction): small optimization,
2990           (throughout): cosmetic changes to sync with ds390/gen.c
2991
2992 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2993
2994         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
2995           (_print_format): fixed printing pointers
2996         * src/mcs51/gen.c (emitLabel, movb): new, added,
2997           (genAssign): small optimization,
2998           (genDjnz): fixed stack overflow bug,
2999           (throughout): replaced sprintf with SNPRINTF,
3000           replaced mcs51_regWithIdx with REG_WITH_INDEX,
3001           replaced emitcode("mov", "b,...") with MOVB(...),
3002           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
3003           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3004         * src/mcs51/peeph.def: added rules 140 and 264
3005         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
3006           so they may get optimized into registers
3007
3008 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
3009
3010         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
3011           immediately when encountered,
3012           (printUsage): always use stderr even on windows
3013
3014 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
3015
3016         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
3017         (processParms): fixed bug #1247551
3018         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
3019         parseCmdLine, main): print '--version' to stdout,
3020         print 'help' to stdout if --help is given,
3021         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
3022         arguments are given; fixed --help
3023
3024 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
3025
3026         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
3027         * support/regression/tests/bug-1493710.c: added
3028
3029 2006-05-27 Borut Razem <borut.razem AT siol.net>
3030
3031         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
3032           static instead auto
3033         * support/regression/ports/pic16/support.c: increase stack size
3034           from default 64 bytes to 128 bytes
3035         * support/regression/tests/staticinit.c,
3036           support/regression/tests/float.c: regression tests fully enabled
3037           for pic16 port by putting the initialized data arrays into the code
3038           section
3039         * support/regression/ports/pic16/spec.mk: don't link default libraries.
3040           This was changed by mistake in the previous version.
3041
3042 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
3043
3044         * src/pic16/gen.c (genFunction, genEndFunction): some
3045         beautifications, fixed bug with falsely restoring FSR2 in large
3046         stack model, thanks to Beau E. Cox for reporting the bug
3047
3048 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3049
3050         * debugger/mcs51/break.c,
3051         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
3052           use %p to print pointers, made address variables unsigned
3053         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
3054         * debugger/mcs51/symtab.c (parseSymbol): must return something
3055         * src/mcs51/gen.c (aopForSym): small optimization,
3056            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
3057           (freeAsmop): added missing break,
3058           (aopPut): removed parameter bvolatile, determine it inside the function,
3059           (saveRegisters, unsaveRegisters): small optimization,
3060           (genIpush): removed pointless check,
3061           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
3062           replaced sprintf with SNPRINTF,
3063           replaced strcpy with strncpyz,
3064           updated aopPut calls,
3065           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
3066         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
3067
3068 2006-05-24 Borut Razem <borut.razem AT siol.net>
3069
3070         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
3071           modification of test for the pic16 port, put the array to the code
3072           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
3073
3074 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3075
3076         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
3077         * support/Util/pstdint.h: added
3078
3079 2006-05-22 Borut Razem <borut.razem AT siol.net>
3080
3081         * src/regression/Makefile: removed bool2.c test, added -q linker option
3082         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
3083           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
3084           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
3085           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
3086           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
3087           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
3088           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
3089           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
3090           define SUPPORT_BIT_TYPES 0, removed unused bit variables
3091
3092 2006-05-22 Raphael Neider <rneider AT web.de>
3093
3094         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
3095           bug #1492360 (problematic due to generic pointers, see code)
3096
3097 2006-05-22 Borut Razem <borut.razem AT siol.net>
3098
3099         * support/regression/ports/pic16/specs.mk: removed stack size linker
3100           directive
3101         * support/regression/tests/array.c,
3102           support/regression/tests/bitopcse.c,
3103           support/regression/tests/bug-908454.c,
3104           support/regression/tests/malloc.c: modified for pic16 regression test
3105         * support/regression/tests/bitfields.c:
3106           pic16 - excluded bitfileds of size > 8
3107         * support/regression/tests/bp.c: pic16 - reduced data size
3108         * support/regression/tests/bug-221100.c: pic16 - reduced data size
3109         * support/regression/tests/bug-460010.c:
3110           pic16 - used the absolute address the fits in memory
3111         * support/regression/tests/bug-716242.c:
3112           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
3113         * support/regression/tests/float.c:
3114           pic16 - excluded - data size too big
3115         * support/regression/tests/onebyte.c:
3116           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
3117         * support/regression/tests/shifts.c:
3118           pic16 - function names probably have to differ in first X characters
3119           (gpasm limitation?)
3120         * support/regression/tests/staticinit.c:
3121           pic16 - excluded some tests due error: no target memory available for
3122           section ".idata"
3123
3124 2006-05-22 Borut Razem <borut.razem AT siol.net>
3125
3126         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3127           second try. Thanks Stas Sergeev once more.
3128
3129 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3130
3131         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
3132           (genLeftShift, genRightShift): fixed bug 1491627
3133         * src/hc08/peeph.def (rules 7, 8.x): added
3134         * support/regression/tests/shifts.c (ShiftLeftByParam,
3135           ShiftRightByParam, testShiftByParam): added to test variable shifting
3136
3137 2006-05-20 Raphael Neider <rneider AT web.de>
3138
3139         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
3140         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
3141           (allocReg): add only new registers to dynAllocRegs,
3142           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
3143             #1489055, #1445850, and probably #1483693
3144
3145 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
3146
3147         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
3148         bug in for-loop that didn't emit the last of CONFIG and ID registers
3149
3150 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
3151
3152         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
3153           with offset
3154         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
3155           1489016, 1434401 and 1490124
3156         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
3157           1489016, 1434401 and 1490124
3158
3159 2006-05-17 Borut Razem <borut.razem AT siol.net>
3160
3161         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
3162           thanks Stas Sergeev
3163
3164 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3165
3166         * device/include/mcs51/P89c51RD2.h,
3167         * device/include/mcs51/P89LPC901.h,
3168         * device/include/mcs51/P89LPC922.h,
3169         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
3170
3171 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3172
3173         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
3174         to fix missing stack pragma in compiled binary object file,
3175
3176 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
3177
3178         * support/packihx/configure.in,
3179         * support/packihx/configure: removed warning, autoconf >= 2.5x can
3180         determine sizeof basic types even while cross compiling
3181
3182 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
3183
3184         * src/avr/gen.c (aopop),
3185         * src/ds390/gen.c (aopOp),
3186         * src/hc08/gen.c (aopOp),
3187         * src/mcs51/gen.c (aopop),
3188         * src/pic16/gen.c (pic16_aopOp),
3189         * src/pic/gen.c (aopOp),
3190         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
3191         if size of operand is smaller than spill location
3192
3193 2006-05-12 Borut Razem <borut.razem AT siol.net>
3194
3195         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
3196           have to have CR/LF line endings even if they are checked out on *nix
3197           or on WIN32 in cygwin binmode
3198
3199 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
3200
3201         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
3202         * device/include/ds80c390.h: added sfr16 definitions
3203         * src/ds390/gen.c,
3204         * src/ds390/gen.h,
3205         * src/ds390/main.c,
3206         * src/ds390/ralloc.c,
3207         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
3208           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
3209           bit returning functions
3210         * support/regression/tests/sfr16.c: enabled test on ds390
3211
3212 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3213
3214         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
3215         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
3216
3217 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
3218
3219         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
3220         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
3221           (cl_address_space constructor): removed expensive initialization,
3222           (cl_address_space::get_cell): extended for late initialization,
3223           (cl_address_space::*): use late initialization,
3224           (cl_address_decoder::activate): removed expensive initialization,
3225           This reduced regression test running time by 25%
3226
3227 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
3228
3229         * packihx/,
3230         * configure.in,
3231         * configure,
3232         * sdcc.dsw,
3233         * Makefile.bcc,
3234         * Makefile.in,
3235         * support/packihx/Makefile.in,
3236         * support/packihx/clean.mk,
3237         * support/packihx/Makefile.bcc,
3238         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
3239
3240 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3241
3242         * src/SDCCval.c (valNot): fix for regression test failure
3243           of not.c on big endian hosts
3244
3245 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3246
3247         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
3248
3249 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3250
3251         * device/lib/mcs51/Makefile.in: changed string comparison operator
3252           to = for POSIX compliance; == is bash extension
3253
3254 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
3255
3256         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
3257           kosmonaut_pirx
3258
3259 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
3260
3261         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
3262         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
3263         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
3264         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
3265         bug report #1478657,
3266
3267 2006-05-05 Borut Razem <borut.razem AT siol.net>
3268
3269         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
3270           making the html
3271
3272 2006-05-02 Borut Razem <borut.razem AT siol.net>
3273
3274         * doc/Makefile.in: removed *.ind dependency since there is no rule to
3275           create *.ind, which made make to fail if invoked with -j 2
3276
3277 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
3278
3279         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
3280           Hubert Sack for patch 1479782
3281
3282 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
3283
3284         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
3285
3286 2006-05-01 Raphael Neider <rneider AT web.de>
3287
3288         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
3289           (create_pic): store only prefix-free device name,
3290           (init_pic): check for device names with "16" prefix,
3291           (list_valid_pics),
3292         * src/pic/device.h (struct PIC_device),
3293         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
3294             stored device name,
3295         * device/include/pic/pic12f{635,675,629,683}.h,
3296         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
3297         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
3298         * device/include/pic/pic16f505.h,
3299         * device/lib/pic/libdev/pic16f505.c: removed
3300         * device/include/pic/pic14devices.txt: added support for pic12f
3301             devices, removed unsupported non 16-bit devices
3302             [above changes provided by patch from Zik Saleeba]
3303         * src/pic/*, src/pic16/*, device/include/pic16/*,
3304           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
3305
3306 2006-05-01 Borut Razem <borut.razem AT siol.net>
3307
3308         * configure.in, configure, doc/Makefile.in:
3309           sync with nightly build makefile - latex, dvipdf and dvips
3310           not needed any more
3311
3312 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
3313
3314         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
3315         in the library source
3316
3317 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
3318
3319         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
3320
3321 2006-04-28 Raphael Neider <rneider AT web.de>
3322
3323         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
3324         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
3325           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
3326         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
3327
3328 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
3329
3330         * device/lib/pic/libdev/Makefile.in,
3331         * device/lib/hc08/Makefile.in,
3332         * device/lib/gbz80/Makefile.in,
3333         * device/lib/z80/Makefile.in,
3334         * device/lib/ds390/Makefile.in,
3335         * device/lib/ds400/Makefile.in: added srcdir to include search path,
3336         thanks to Borut for the bug report
3337         * configure.in,
3338         * configure: always create doc/Makefile independent from --enable-doc
3339         * Makefile.in: always install from directory doc independent from
3340         --enable-doc
3341         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
3342         removed
3343         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
3344         * doc/Makefile.in: install *.txt if present
3345         * device/include/Makefile.in (install): added installation of pic/*.inc
3346         and pic/*.txt files again, they were erroneously removed
3347
3348 2006-04-28 Raphael Neider <rneider AT web.de>
3349
3350         * src/pic/{gen.c,main.h,pcode.c},
3351         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
3352             concerning signedness with casts
3353
3354 2006-04-28 Raphael Neider <rneider AT web.de>
3355
3356         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
3357             definition of an interrupt handler,
3358         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
3359             interrupt handler stuff from picglue() to separate routine,
3360           (picglue): enabled definition of intr handlers in files w/o main()
3361
3362 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3363
3364         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
3365           compilation with MSVC 2005 Express Edition (VC8)
3366
3367 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
3368
3369         * device/lib/Makefile: fixed build of gbz80 lib
3370
3371 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3372
3373         * support/regression/tests/bug-460010.c,
3374         * support/regression/tests/bug-524691.c,
3375         * support/regression/tests/bug-716242.c: removed conditional defines
3376           that are already in testfwk.h
3377
3378 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3379
3380         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
3381           (AccAXRsh1): added, shift right by 1,
3382           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
3383            AccAXLrl1
3384         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
3385
3386 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
3387
3388         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
3389         remove cast to same type
3390         * src/SDCCast.c (decorateType): fix for RFE 1475742,
3391         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
3392         * as/z80/Makefile,
3393         * link/z80/Makefile: removed, they have moved to
3394         Makefile.in files
3395         * configure,
3396         * configure.in: replaced duplicate message about ucsim by missing sdcpp
3397         * install-sh: fix bug #1204398 by setting umask 0022
3398         * device/lib/Makefile: separate build of z80 and gbz80 lib
3399
3400 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
3401
3402         Enabled VPATH feature: changed nearly all Makefiles (149 files).
3403         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
3404
3405         One basic decision: e.g. src/clean.mk includes further files. In order
3406         to make this work there are two solutions:
3407         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
3408           run configure on them. This way they can use
3409           'include $(srcdir)/port-clean.mk'
3410         - always include clean.mk by the Makefile at the same level. To avoid
3411           that `make clean` tries to include and build Makefile.dep the
3412           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
3413           implemented, because now even `make uninstall` doesn't create
3414           Makefile.in. clean.mk could be eliminated by pasting it in
3415           Makefile.in.
3416
3417         * debugger/mcs51/Makefile.in: build own objects from library sources
3418         (SLIB, SDCC) in current directory
3419
3420         * configure, configure.in: renamed --disable-device-lib-build in
3421         --disable-device-lib; added --enable-doc, the required tools are
3422         searched by configure; added result message; the toolchain for the
3423         belonging ports are now only built, if the port is enabled.
3424
3425         * support/regression/*: all output is written in directory gen, because
3426         the fwk and ports directories don't livet in the build tree using vpath
3427
3428         * doc/sdccman.lyx: renamed --disable-device-lib-build to
3429         --disable-device-lib, added --enable-doc, added section VPATH
3430
3431         * sim/ucsim/configure.in,
3432         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
3433         z80 are enabled by default
3434
3435 2006-04-24 Raphael Neider <rneider AT web.de>
3436
3437         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
3438             to config word, "pic14_"-prefixed some extern functions
3439           (pic14_emitConfigWord): emit __config directive(s) if assignment to
3440             config word has been found
3441         * src/pic/device.h: added prototypes
3442         * src/pic/pcode.c: added "pic14_"-prefix where needed
3443         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
3444             fixup
3445         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
3446             words,
3447           (pic14emitRegularMap): ignore config words,
3448           (pic14createInterruptVect): moved generating __config directives away
3449           (picglue): have __config directives emitted
3450
3451 2006-04-24 Borut Razem <borut.razem AT siol.net>
3452
3453         * doc/Makefile: sync with nightly build makefile
3454
3455 2006-04-24 Raphael Neider <rneider AT web.de>
3456
3457         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
3458             registers that have not been assigned proper liveranges,
3459             fixes #1469504 and #1474602,
3460           (pCodeRegOptimizeRegUsage): fixed typo in comment
3461
3462 2006-04-24 Borut Razem <borut.razem AT siol.net>
3463
3464         * device/examples/main8051.c: deleted - it was removed from CVS
3465           24.mar.2000 and after that modified 18.feb.2001, so it reappered
3466           after the transition to Subversion
3467         * src/SDCCalloc.h: deleted - it was removed  from CVS
3468           3.feb.2001 and after that modified 18.feb.2001, so it reappered
3469           after the transition to Subversion
3470         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
3471           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
3472           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
3473           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
3474
3475 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
3476
3477         * as/asx8051.dsp: added mcs51/strcmpi.h
3478         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
3479         * as/hc08/aslink.h: updated lnksect prototype
3480         * as/hc08/asm.h,
3481         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
3482         * as/hc08/asmain.c,
3483         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
3484           (newdot): handle A_ABS
3485         * as/hc08/asout.c,
3486         * as/mcs51/asout.c (outarea): output address
3487         * as/hc08/lkaomf51.c,
3488         * as/mcs51/lkaomf51.c: disabled unused array UsageType
3489         * as/hc08/m08pst.c,
3490         * as/mcs51/i51pst.c,
3491         * as/z80/z80pst.c: "ABS" is not A_OVR
3492         * as/hc08/lkarea.c (newarea): read a_addr,
3493           (lnkarea): added codemap array, sort absolute areas to the front,
3494            combine all GSINITx/GSFINAL,
3495           (find_empty_space, allocate_space): new functions,
3496           (lnksect): return next address, handle absolute sections
3497         * as/mcs51/lkarea.c (newarea): read a_addr,
3498           lnksect2 prototype changed,
3499           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
3500           (find_empty_space, allocate_space): new, factored out of lnksect2,
3501           (lnksect2): return next address, handle absolute sections
3502         * as/hc08/lkhead.c,
3503         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
3504         * as/hc08/lklibr.c (addfile, fndsym),
3505         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
3506           index out of range and detect both '\' and '/'
3507         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
3508         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
3509           regression tests (ds390 cannot return bool yet)
3510         * doc/sdccman.lyx: changed version number, document changed --no-peep,
3511           document critical interrupts on z80, document changed SDCC define
3512         * src/asm.c (_asxxxx_mapping): fixed .org directive,
3513           (_a390_mapping): added .org directive
3514         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
3515           (genMultOneByte): fixed warnings
3516         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
3517           ones
3518         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
3519         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
3520           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
3521         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
3522         * src/pic16/main.c: removed newReg prototype
3523         * src/pic16/pcode.c,
3524         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
3525           warnings
3526         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
3527           ones
3528         * src/pic16/ralloc.c
3529         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
3530           to fix warnings
3531         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
3532           from short to PIC_OPTYPE
3533         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
3534         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
3535           optype from short to PIC_OPTYPE
3536         * src/port.h: made int_size unsigned to fix warnings
3537         * src/SDCC.y: fixed warning on MSVC
3538         * src/SDCCicode.c (getArraySizePtr): return unsigned int
3539         * src/SDCCopt.c (convertToFcall): fixed warnings
3540         * src/SDCCsymt.h: removed double prototype for genSymName
3541         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
3542           offset int to fix warnings
3543
3544 2006-04-22 Borut Razem <borut.razem AT siol.net>
3545
3546         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3547           references to CVS replaced with Subversion
3548
3549 2006-04-21 Borut Razem <borut.razem AT siol.net>
3550
3551         * doc/sdccman.lyx, */Makefile, */Makefile.in:
3552           references to CVS replaced with Subversion
3553
3554 2006-04-19 Borut Razem <borut.razem AT siol.net>
3555
3556         * src/version.awk: adapted for svn
3557         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
3558           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
3559           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
3560           /binutils-avr/etc/*.vi, *.jin: removed all properties
3561           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
3562
3563 2006-04-19 Borut Razem <borut.razem AT siol.net>
3564
3565         * CVS to Subversion migration completed
3566
3567 2006-04-18 Borut Razem <borut.razem AT siol.net>
3568
3569         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
3570           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
3571
3572 2006-04-17 Borut Razem <borut.razem AT siol.net>
3573
3574         * device/include/Makefile.in: added pic/*.inc to the installation
3575
3576 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
3577
3578         * support/regression/collate-results.py: fixed output in case of
3579         a valdiag error
3580         * support/regression/generate-cases.py: fixed splitting of pathnames
3581         with dots
3582         * as/hc08/lklibr.c (addfile),
3583         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
3584
3585 2006-04-11 Raphael Neider <rneider AT web.de>
3586
3587         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
3588         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
3589         * src/pic16/pcode.c (assignValnums): fixed #1460578
3590
3591 2006-04-11 Raphael Neider <rneider AT web.de>
3592
3593         * device/lib/pic/libdev/*.c,
3594         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
3595           fixes #1468739, enables compilation in --std-c99 mode
3596         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
3597
3598 2006-04-11 Raphael Neider <rneider AT web.de>
3599
3600         * src/pic/device.c (find_device): removed debug output
3601           (list_valid_pics): enabled verbose listing of supported devices
3602         * device/include/stdbool.h: define bool as char for pic14/16 as well
3603
3604 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3605
3606         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
3607
3608 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3609
3610         * .version: bumped version to 2.5.6
3611         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
3612
3613 2006-04-06 Raphael Neider <rneider AT web.de>
3614
3615         * .version: bumped version to 2.5.6 (pic14 ABI changed)
3616         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
3617         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
3618           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
3619             pic14_constructAbsMap
3620           (pic14printPublics): declare absolute global symbols as global
3621           (pic14createInterruptVect),
3622         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
3623           (newReg): assume new registers unused, use correct name in
3624             hashtable (reg->name instead of name), more debugLog output
3625         * src/pic/device.h (PIC_device): added fields for verbose output
3626         * src/pic/device.c: moved device definition to pic14devices.txt,
3627             added routines for runtime parsing of pic14devices.txt,
3628             added support for second config word
3629         * src/pic/main.c (_process_pragma): removed #pragma maxram,
3630           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
3631           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
3632           (_pic14_parseOptions): moved pCodeInitRegisters here
3633           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
3634         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
3635           (pCodeInitRegisters): rewrapped comments, perpared new approach to
3636             handling the pseudo stack
3637         * device/lib/Makefile.in: ignore failures in objects-pic16,
3638         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
3639         * device/lib/pic/NEWS: document new dependency on picXXX.lib
3640         * device/lib/pic/Makefile.subdir,
3641         * device/lib/pic16/Makefile.subdir: improved clean rules
3642         * device/lib/pic/libdev/: NEW, pic14 device libraries
3643         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
3644         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
3645         * device/include/Makefile.in: create subdir and install pic14 headers
3646         * device/include/pic/p16f_common.inc: removed unused declarations
3647         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
3648             PICs from inc2h.pl v1.6,
3649             replaced BIT_AT macros with struct declarations
3650         * device/include/pic/pic14devices.txt: definition of supported devices,
3651             all above improvements contributed by Zik Saleeba, thanks
3652         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
3653         * support/scripts/sdcc.nsi: also install pic14 device libraries and
3654             headers
3655
3656 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3657
3658         * device/include/mcs51/c8051f410.h: added interrupt numbers,
3659         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
3660           thanks to Charles Olds
3661
3662 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3663
3664         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
3665
3666 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3667
3668         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
3669         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
3670         * support/regression/bug1464657.c: added, new test
3671
3672 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3673
3674         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
3675           version number
3676
3677 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3678
3679         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
3680           --no-peep and --peep-file <file> are used don't use default rules but
3681           do use the <file>
3682
3683 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
3684
3685         * src/mcs51/gen.c (genCall): fixed bug 1457608
3686
3687 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3688
3689         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
3690         changes seem to cause (trigger?) problems with the build system.
3691
3692 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
3693
3694         * src/SDCCpeeph.c (operandsLiteral): new, added,
3695           (callFuncByName): inserted operandsLiteral
3696         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
3697
3698 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3699
3700         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
3701         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
3702
3703 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3704
3705         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
3706           implemented patch 1120823 Thanks to Willy De la Court (normal
3707           interrupts need an interrupt number now if they are made critical),
3708           and enabled nesting of critical functions though not for gbz80
3709           (genCritical, genEndCritical): added functions
3710           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
3711         * src/z80/mappings.i: added "ei" to all mappings
3712
3713 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3714
3715         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
3716         submitted by the Debian SDCC maintainer Aurelien Jarno:
3717         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
3718         archive with gcc 4.1 on mips and wrote the patch"
3719
3720 2006-03-16 Raphael Neider <rneider AT web.de>
3721
3722         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
3723           the left operand is shorter than the result (c* = lit-c* + int),
3724           fixes bug #1450796
3725         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
3726           OP_SYMBOL
3727
3728 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3729
3730         * src/.version: increased version number to 2.5.5
3731         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
3732         linking is done manually in pic16 port's _linkEdit,
3733         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
3734         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
3735         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
3736         allocate asmop as AOP_ACC,
3737         (aopForRemat): added parameter 'bool result' in function declaration,
3738         (pic16_aopGet): return AOP_ACC when accessing WREG,
3739         (pic16_popGetTempReg): minor modification,
3740         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
3741         'pic16_allocWithIdx',
3742         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
3743         calling function in absolute addresses,
3744         (genAssign): take into account AOP_ACC asmop,
3745         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
3746         * src/pic16/pcoderegs.c: some debug functions and lines added,
3747         * src/pic16/ralloc.c (decodeRegType): added but commented out,
3748         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
3749         register too,
3750         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
3751         call to allocReg, not by manually allocating a new one,
3752         (pic16_assignRegisters): now before going through the register
3753         allocating functions mark all registers as free. This eliminates some
3754         side effects resulting from peephole parser done earlier in the backbone
3755
3756 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
3757
3758         * src/SDCCicode.c (geniCodeLogic),
3759         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
3760
3761 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
3762
3763         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
3764           (genSend): bugfix, do not allocate and free twice,
3765           (shiftRLong): handle partially overlapping aops
3766         * support/regression/tests/bitopcse.c: fixed warning redefined idata
3767
3768 2006-03-08 Borut Razem <borut.razem AT siol.net>
3769
3770         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
3771           for pic16
3772
3773 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
3774
3775         * support/regression/tests/bug1409955.c: new, added
3776         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
3777         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
3778           (aopForSym, aopOp): increment asmop.allocated if reused,
3779           (freeAsmop): decrement asmop.allocated and check for zero instead of
3780           using asmop.freed,
3781           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
3782           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
3783            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
3784            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
3785            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
3786            genSignedRightShift, genRightShift, genDataPointerGet,
3787            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
3788            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
3789             in reverse order from allocation,
3790           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
3791             added swappedLR to keep track
3792         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
3793           pdata & code for GCC, z80, gbz80 & hc08
3794         * support/regression/tests/zeropad.c: moved defines to testfwk.h
3795
3796 2006-03-08 Raphael Neider <rneider AT web.de>
3797
3798         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
3799
3800 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
3801
3802         * device/include/mcs51/c8051f410.h: new SiLabs mcu
3803         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
3804         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
3805
3806 2006-03-06 Borut Razem <borut.razem AT siol.net>
3807
3808         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
3809           made the linker quiet
3810
3811 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3812
3813         * src/pic16/gen.c (genPcall): fixed bug #1443644
3814         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
3815         which dumps before the function entry point a data byte which represents
3816         the number of the local variables used by the specified function, added
3817         'xinst' for initial support for Extended Instruction Support,
3818         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
3819         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
3820         port->fun_prefix anymore (may change later),
3821         (genFunction, genEndFunction): do not store/restore local registers for
3822         _main (this should take care the --main-return command line option in
3823         the future),
3824         (genOr): removed some legacy pic-port instructions,
3825         * src/pic16/genarith.c (genAddLit): re-enabled old code because
3826         performing operations with SFR's causes data to be written more than
3827         once to each SFR. Perhaps SFRs should be handled in special cases...
3828         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
3829         pcode.h
3830         * src/pic16/main.c (_process_pragma): stack bound checking did not take
3831         into account for stack starting position,
3832         (struct OPTIONS pic16_optionsTable): added command line argument
3833         --extended or -y for Extended Instruction Support,
3834         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
3835         (deassignLRs): *** perhaps the most important change, old 'for' code
3836         (commented out for reference), didn't account for some registers which
3837         were left marked 'not free' after a pointer operation. The change
3838         reduces register usage a lot in some cases
3839
3840 2006-03-04 Borut Razem <borut.razem AT siol.net>
3841
3842         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
3843           _clean
3844         * support/regression/tests/bug-524697.c: decreased array size for
3845           mcs51 to fit into the internal RAM
3846         * support/regression/Makefile.in: a little bit more verbose
3847
3848 2006-03-03 Borut Razem <borut.razem AT siol.net>
3849
3850         * support/regression/fwk/lib/testfwk.c,
3851           support/regression/fwk/include/testfwk.h: introduced function
3852           _prints(), nonrecursive _printn(), call _initEmu() from main()
3853         * support/regression/ports/gbz80/support.asm,
3854           support/regression/ports/ucz80/support.asm,
3855           support/regression/ports/z80/support.asm,
3856           support/regression/ports/ds390/support.c,
3857           support/regression/ports/hc08/support.c,
3858           support/regression/ports/host/support.c,
3859           support/regression/ports/mcs51/support.c,
3860           support/regression/ports/xa51/support.c: added empty _initEmu()
3861           function
3862         * support/regression/ports/pic16/gpsim.cmd,
3863           support/regression/ports/pic16/spec.mk,
3864           support/regression/ports/pic16/support.c,
3865           support/regression/Makefile.in: added pic16 regression test
3866
3867 2006-03-01 Raphael Neider <rneider AT web.de>
3868
3869         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
3870           genConstPointerGet): use safe way of generating MOVFF to cover
3871             literals as well as registers, fixes bug #1440527
3872         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
3873             dereference
3874           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
3875             more correctly, fixes bug #1232186
3876           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
3877         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
3878             gplink guess the correct processor in more cases, applied patch
3879             from Till Riedel attached to and fixing bug #1436552
3880
3881 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3882
3883         * support/regression/tests/array.c: added, contains check for #1434401
3884         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
3885
3886 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
3887
3888         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
3889         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
3890         * device/include/mcs51/c8051f326.h,
3891         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
3892         * device/include/mcs51/c8051f000.h,
3893         * device/include/mcs51/c8051f018.h,
3894         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
3895           PCON_IDLE,PCON_STOP and added sfr16 definitions
3896
3897 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
3898
3899         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
3900           genGetWord): fixed bug 1409955
3901
3902 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
3903
3904         * device/include/hc08/mc68hc908gp32.h,
3905         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
3906
3907 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
3908
3909         * src/SDCCast.c (constExprValue): return NULL if not a value
3910         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
3911         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
3912         * support/regression/tests/bitfields.c: enabled signed bitfield for all
3913
3914 2006-02-13 Borut Razem <borut.razem AT siol.net>
3915
3916         * src/regression/ptrarg.c: added, fails due to bug #1430967
3917         * src/regression/Makefile: ptrarg.c added, ...
3918
3919 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3920
3921         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
3922         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
3923
3924 2006-02-11 Borut Razem <borut.razem AT siol.net>
3925
3926         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
3927           print "Processor: xxx" message to stdout only if --verbose
3928
3929 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3930
3931         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
3932         * support/regression/tests/bug1426356.c: added
3933         * support/regression/tests/bitfields.c: removed 2 tests
3934
3935 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3936
3937         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
3938         * device/include/mcs51/c8051f330.h,
3939         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
3940           PCON_IDLE,PCON_STOP and added sfr16 definitions
3941         * device/lib/_divsint.c,
3942         * device/lib/_divuint.c,
3943         * device/lib/_divulong.c,
3944         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
3945           register bank bug for small stackauto
3946
3947 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3948
3949         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
3950
3951 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
3952
3953         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
3954         * all.dsp: corrected several bin paths
3955         * device/include/mcs51/c8051f120.h,
3956         * device/include/mcs51/c8051f300.h,
3957         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
3958           to PCON_IDLE,PCON_STOP
3959         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
3960         * device/lib/printf_large.c (output_float): fixed bug 1388703
3961         * support/regression/tests/bug1057979.c: added test for bug 1388703
3962
3963 2006-02-08 Raphael Neider <rneider AT web.de>
3964
3965         * src/pic/pcode.c (pciTRIS): fixed typo,
3966           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
3967           (LinkFlow): fixed handling of flows that end in a call,
3968           (ReuseReg): perform safety check earlier
3969         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
3970             to work with flows at the beginning of a pBlock,
3971             fixes #1426557 (Symbol not previously defined),
3972           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
3973             usage information
3974           (RemoveUnusedRegisters): update register usage info
3975         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
3976             created, reuse existing ones instead
3977         * src/pic/gen.c (genPcall): fixed #1424719
3978
3979 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
3980
3981         * link/z80/lkmain.c,
3982         * link/z80/lklex.c,
3983         * link/z80/lkdata.c,
3984         * link/z80/aslink.h: fixed build on current cygwin:
3985         replaced getline() by lk_getline()
3986
3987 2006-02-01 Borut Razem <borut.razem AT siol.net>
3988
3989         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
3990           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
3991           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
3992           src/regression/bool1.c, src/regression/bool2.c,
3993           src/regression/bool3.c, src/regression/call1.c,
3994           src/regression/compare.c, src/regression/compare10.c,
3995           src/regression/compare2.c, src/regression/compare3.c,
3996           src/regression/compare4.c, src/regression/compare5.c,
3997           src/regression/compare6.c, src/regression/compare7.c,
3998           src/regression/compare8.c, src/regression/compare9.c,
3999           src/regression/configword.c, src/regression/for.c,
4000           src/regression/inline.c, src/regression/mult1.c,
4001           src/regression/nestfor.c, src/regression/or1.c,
4002           src/regression/pointer1.c, src/regression/ptrfunc.c,
4003           src/regression/rotate1.c, src/regression/rotate2.c,
4004           src/regression/rotate3.c, src/regression/rotate4.c,
4005           src/regression/rotate5.c, src/regression/rotate6.c,
4006           src/regression/rotate7.c, src/regression/string1.c,
4007           src/regression/struct1.c, src/regression/sub.c,
4008           src/regression/sub2.c, src/regression/switch1.c,
4009           src/regression/while.c, src/regression/xor.c,
4010           src/regression/create_stc, src/regression/simulate,
4011           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
4012           regression tests
4013         * src/regression/gpsim_assert.h: added
4014
4015 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
4016
4017         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
4018         ((void (code *) (void)) 0) ();
4019         * as/hc08/aslex.c,
4020         * as/hc08/aslink.h,
4021         * as/hc08/asm.h,
4022         * as/hc08/asmain.c,
4023         * as/hc08/lkdata.c,
4024         * as/hc08/lklex.c,
4025         * as/hc08/lkmain.c,
4026         * as/mcs51/aslex.c,
4027         * as/mcs51/aslink.h,
4028         * as/mcs51/asm.h,
4029         * as/mcs51/asmain.c,
4030         * as/mcs51/lkdata.c,
4031         * as/mcs51/lklex.c,
4032         * as/mcs51/lkmain.c,
4033         * as/z80/aslex.c,
4034         * as/z80/asm.h,
4035         * as/z80/asmain.c: fixed build on current cygwin:
4036         replaced getline() by as_getline()
4037
4038 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
4039
4040         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
4041         declarator in the symbol chain
4042         * src/SDCCsymt.h,
4043         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
4044         parameter list for function pointers
4045         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
4046         * support/regression/tests/bug-716242.c: added
4047
4048 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
4049
4050         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
4051         offset if possible
4052         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
4053
4054 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
4055
4056         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
4057         inifinitely recurseable, added static
4058         * support/regression/tests/bug-1408066.c: added
4059
4060 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
4061
4062         * src/SDCCicode.h,
4063         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
4064         renamed, added possibility to create "postLoopLbl"-labels
4065         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
4066         newiTempLoopHeaderLabel
4067         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
4068         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
4069         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
4070         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
4071         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
4072         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
4073         (basicInduction): fixed bug #136564, made static,
4074         (loopInduction): changed parameter of basicInduction, made static,
4075         (addPostLoopBlock): added
4076         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
4077         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
4078         findLoopEndSeq
4079         * support/regression/tests/bug-136564.c: added
4080         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
4081         --std-sdcc99 to LIBSDCCFLAGS
4082
4083 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
4084
4085         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
4086         while loop
4087         * support/regression/tests/bug-1406131.c: added
4088
4089 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
4090
4091         * src/SDCCast.c (decorateType): fix promotion of unary minus
4092         * src/SDCCsymt.c (computeType): beautified
4093         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
4094         (valUnaryPM, valComplement): fix sign and promotion,
4095         (valNot): ANSI: result type is int (SDCC: unsigned char)
4096         * support/regression/tests/uminus.c: speedup by removing superflous
4097         test case 'int'
4098         * support/regression/tests/onebyte.c: added promotion and signedness
4099         tests for unary minus
4100         * support/regressions/tests/bug-477927.c: disable warning about
4101         uninitialized variables
4102         * support/regression/tests/not.c: added
4103
4104 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
4105
4106         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
4107         * src/mcs51/gen.c (gen51Code): show final register usage after
4108         fillGaps in asm with --i-code-in-asm
4109         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
4110         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
4111         incUsed, rliveClear, adjustIChain): made static,
4112         (setFromRange): excluded because it's unused,
4113         (findPrevUseSym, markWholeLoop): added,
4114         (findPrevUse): rewritten; fixes bug 895992; now a complete search
4115         through all branches of predecessors enables sdcc to emit the warning
4116         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
4117         (rlivePoint): made static, added parameter emitWarnings which is only
4118         true during the first run out of two,
4119         (findRecursiveSucc, findRecursivePred): removed,
4120         (computeLiveRanges): made static, added parameter emitWarnings,
4121         (dumpIcRlive): added for debugging only
4122         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
4123         removed prototype of setFromRange()
4124         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
4125         in call of computeLiveRanges()
4126         * support/regression/tests/bug-895992.c: added
4127         * support/regression/tests/bug-971834.c: added
4128         * support/valdiag/tests/bug-895992.c: added
4129         * support/valdiag/tests/bug-971834.c: added
4130
4131 2005-12-18 Raphael Neider <rneider AT web.de>
4132
4133         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
4134           (genUnpackBits): improved code for direct operands,
4135           (genPackBits): improved code for literal assignment to bitfields
4136             and for direct destination operands (no FSR indirection),
4137             prevented redundant AND, fixes #1362800,
4138           (AccLsh): added parameter to disable masking of the result
4139         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
4140           skip instructions with side-effects (like incfsz),
4141           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
4142         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
4143         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
4144           fixes #1375263
4145
4146 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
4147
4148         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
4149         volatile variables as spill location
4150
4151 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
4152
4153         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
4154         replacing literals
4155         * support/regression/tests/bug-1376320.c: added
4156
4157 2005-12-08 Raphael Neider <rneider AT web.de>
4158
4159         * src/pic/device.c: renamed is_shared to pic14_is_shared
4160         * src/pic/gen.c (genIfx): re-enabled handling of sbits
4161         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
4162           (is_valid_identifier): added for above workaround
4163
4164 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
4165
4166         * device/lib/Makefile.in: fixed to enable port-specific-objects
4167         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
4168           char, thanks Hubert Sack
4169         * doc/sdccman.lyx: documented --xstack-loc,
4170           elaborated a bit more on interrupts and pitfalls,
4171           removed "setjmp/longjmp unsupported",
4172           documented some unsupported C99 features
4173         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
4174         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
4175           if, thanks Hubert Sack
4176         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
4177         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
4178           make make_library
4179         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
4180           regression tests can report resource usage (rfe 700441)
4181         * support/regression/collate-results.py: report resource usage
4182         * support/regression/ports/ds390/spec.mk,
4183         * support/regression/ports/hc08/spec.mk,
4184         * support/regression/ports/mcs51/spec.mk,
4185         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
4186         * support/regression/ports/ds390/uCsim.cmd,
4187         * support/regression/ports/hc08/uCsim.cmd,
4188         * support/regression/ports/mcs51/uCsim.cmd,
4189         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
4190         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
4191           library, use the default one
4192         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
4193           building the library
4194
4195 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
4196
4197         * config.dsp: added dependency on .version and configure_vc.awk
4198         * device/include/setjmp.h: updated for --stack-auto and --xstack
4199         * device/include/mcs51/at89c51snd1c.h: corrected line endings
4200         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
4201         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
4202         * device/lib/libsdcc.lib: added _setjmp
4203         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
4204           (decorateType): fixed bug 1372851,
4205           (optimizeGetHbit): fixed warning
4206         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
4207           array initialisation
4208         * support/regression/tests/bug1057979.c: added test for bug 1358192
4209         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
4210
4211 2005-12-03 Borut Razem <borut.razem AT siol.net>
4212
4213         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
4214           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
4215
4216 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4217
4218         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
4219         createIval): implement symbol independant "flexible array member",
4220         (createIvalCharPtr): implemented flexible array initialisation with a
4221         string
4222         * src/SDCCsymt.c (copyStruct): removed,
4223         (getSize): fixed misleading comment,
4224         (getAllocSize): removed, the additional allocation size is now in
4225         sym->flexArrayLength,
4226         (checkStructFlexArray): new, syntax checks for flexible array members,
4227         (compStructSize): added syntax checks for "flexible array members"
4228         (copyStruct): removed,
4229         (copyLinkChain): removed inefficient fix for bug 770487
4230         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
4231         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
4232         symbol->flexArrayLength
4233         * src/SDCCerr.c,
4234         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
4235         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
4236         * support/regression/tests/structflexarray.c: added
4237         * support/valdiag/tests/structflexiblearray.c: added
4238
4239 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
4240
4241         * src/SDCCast.c (decorateType): fixed bug 1368489
4242         * support/Util/SDCCerr.c,
4243         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
4244
4245 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4246
4247         * device/include/mcs51/at89c51snd1c.h: added file submitted by
4248           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
4249
4250 2005-11-27 Borut Razem <borut.razem AT siol.net>
4251
4252         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
4253           support/cpp2/mkdeps.h: added command line option
4254           -obj-ext=<extension> to SDCPP to define object file externion, used
4255           for generation of make dependencies (-M)
4256         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
4257
4258 2005-11-26 Borut Razem <borut.razem AT siol.net>
4259
4260         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
4261           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
4262           added pic and pic16 libraries
4263
4264 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4265
4266         * device/include/float.h: Corrected typo in prototype of __fsgt
4267
4268 2005-11-25 Borut Razem <borut.razem AT siol.net>
4269
4270         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
4271           added creation of model-mcs51-stack-auto libraries
4272
4273 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
4274
4275         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
4276         and fields-list too
4277         * src/SDCCast.c (createIvalArray): removed obsolete comment
4278
4279 2005-11-24 Borut Razem <borut.razem AT siol.net>
4280
4281         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
4282           added missing device/lib/mcs51/crt*.asm sources
4283
4284 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
4285
4286         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
4287
4288 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
4289
4290         * device/lib/_fs2schar.c,
4291         * device/lib/_fs2sint.c,
4292         * device/lib/_fs2slong.c: optimized inline asm
4293
4294 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4295
4296         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4297           Better handling of floats between -1.0 and 0.0.
4298
4299 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4300
4301         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
4302           (the missing "if"s prohibited removal of redundant labels)
4303
4304 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4305
4306         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
4307           Properly convert floats between -1.0 and 0.0 to long, int, and char
4308           types (max integer value of negative floats tends to zero).
4309         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4310           Removed changes made so to work properly with floats between
4311           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
4312           and _fs2char.c
4313
4314 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4315
4316         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
4317         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
4318         (genCast) cosmetic change
4319         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
4320         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
4321         from mcs51
4322         * support/regression/tests/bitfields (testSignedBitfields): added
4323
4324 2005-11-18 Borut Razem <borut.razem AT siol.net>
4325
4326         * sdcc/device/lib/Makefile.in: remove all unnecessary files
4327         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
4328           introduced SILENT option to make building of pic16 libraries less
4329
4330 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4331
4332         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
4333           Now they work properly with floats between -1.0 and 0.0
4334         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
4335
4336 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4337
4338         * src/SDCCicode.c (printOperand): added missing else
4339
4340 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
4341
4342         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
4343         reformatted for better readability
4344         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
4345         signed bitfields
4346
4347 2005-11-17 Borut Razem <borut.razem AT siol.net>
4348
4349         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
4350           introduced SILENT option to make building of pic16 libraries less
4351           verbose - used for nightly snapshot build
4352         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
4353           available on Win32 platforms.
4354         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
4355           medium, large, pic and pic16
4356
4357 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4358
4359         * device/lib/printf_large.c: Temporary patch for bug 1358192:
4360           printf("%f"...) sets fraction to zero.
4361
4362 2005-11-16 Raphael Neider <rneider AT web.de>
4363
4364         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
4365           fixes #1357221
4366         * src/pic/gen.c (genIfx): implemented for CARRY bit
4367         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
4368           to generic pointers, fixes #1357332,
4369           (pic16_movLit2f): NEW,
4370           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
4371
4372 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4373
4374         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
4375
4376 2005-11-11 Raphael Neider <rneider AT web.de>
4377
4378         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
4379         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
4380           compute pointer's type from operand,
4381           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
4382           improved single bit reads, fixes bug #1353379
4383
4384 2005-11-09 Borut Razem <borut.razem AT siol.net>
4385
4386         * support/scripts/sdcc.nsi: added lib/pic to the package
4387
4388 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
4389
4390         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
4391
4392 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4393
4394         * support/regression/tests/bug1348008.c: added
4395         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
4396         * support/regression/tests/bug1337835.c: updated comment
4397
4398 2005-11-06 Borut Razem <borut.razem AT siol.net>
4399
4400         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4401           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4402           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4403           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4404           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
4405           dynamic construction of cl_error_class and derivates - 2.nd try
4406
4407 2005-11-05 Borut Razem <borut.razem AT siol.net>
4408
4409         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
4410           bug, which caused Bus Errors on sparc solaris
4411
4412 2005-11-04 Borut Razem <borut.razem AT siol.net>
4413
4414         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
4415           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
4416           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4417           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
4418           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
4419           and derivates to resolve the initialization problem on OSX
4420
4421 2005-11-02 Borut Razem <borut.razem AT siol.net>
4422
4423         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4424           corrected typo - #include <winsock2.h>
4425
4426 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
4427
4428         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
4429           (_asxxxx_mapping): added org directive for future enhancements
4430
4431 2005-11-01 Borut Razem <borut.razem AT siol.net>
4432
4433         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
4434           enabled sockets on WIN32
4435         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
4436
4437 2005-10-31 Borut Razem <borut.razem AT siol.net>
4438
4439         * support/regression/generate-cases.py: escape backslashes in {testcase}:
4440           WIN32 backslash path delimiters should be escaped when used in C strings
4441         * support/regression/tests/bitfields.c: exclude failing assertions for
4442           __CYGWIN32__ and __MINGW32__ hosts
4443
4444 2005-10-30 Borut Razem <borut.razem AT siol.net>
4445
4446         * src/SDCCutil.c: corrected double comparison typo
4447
4448 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
4449
4450         * device/lib/medium/Makefile: added for new memory model medium
4451         * device/include/asm/mcs51/features.h: updated for medium/pdata
4452         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
4453           added Multiply & Accumulate sbit's and MAC0_PAGE define
4454         * device/include/mcs51/c8051f300.h: added sfr16 definitions
4455         * device/include/mcs51/c8051f310.h: added sfr16 definitions
4456         * device/lib/_mullong.c: update for medium model
4457         * device/lib/incl.mk: added medium model
4458         * doc/sdccman.lyx: documented medium model
4459         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
4460         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
4461         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
4462         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
4463           (allocParms): set SCLS and OCLS to pdata for medium model
4464         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
4465           for pdata,
4466           (powof2): return <0 if not power of 2
4467         * src/avr/gen.c (genBitWise): use updated powof2
4468         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
4469           (shiftR2Left2Result): small optimization in setup, save acc when storing,
4470           (shiftLLeftOrResult): use B if necessary
4471         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
4472         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
4473         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
4474         * support/regression/Makefile.in: added test-mcs51-medium
4475         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
4476
4477 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
4478
4479         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
4480         specifier unsigned
4481         * device/lib/time.c (mktime): fixed bug 1334315
4482
4483 2005-10-28 Raphael Neider <rneider AT web.de>
4484
4485         * device/include/pic/p16f_common.inc: added common declarations
4486         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
4487
4488 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4489
4490         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
4491           (aopPutUsesAcc): added to predict accumulator use,
4492           (assignResultValue): save acc if necessary,
4493           (genMinusDec): store result if indirectly addressed,
4494           (genDivOneByte):  save acc if necessary,
4495           (movLeft2Result): bugfix if left already in acc,
4496           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
4497             attention to accumulator use (esp. pdata),
4498           (genReceive): receive pdata correctly
4499         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
4500         * src/SDCCicode.h: added isOperandInPagedSpace prototype
4501
4502 2005-10-27 Raphael Neider <rneider AT web.de>
4503
4504         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
4505
4506 2005-10-27 Raphael Neider <rneider AT web.de>
4507
4508         * .version: changed version to 2.5.4
4509         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
4510         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
4511           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
4512             arithmetics support routines
4513         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
4514         * device/lib/Makefile.in: also create installdir for pic
4515
4516         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
4517           pic14 port as well
4518         * src/pic/device.c (dump_sfr): rewritten to delegate register
4519           placement to the linker (use `extern sym' rather than sym EQU addr),
4520           (validAddress): fixed to check last specified address
4521         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
4522           (popGetLit): truncate literal value to 8 bit,
4523           (popGet): moved assert to more appropriate place
4524           (popGetExternal): create pCode operand from and mark the according
4525             symbol as being `extern'
4526           (popGetAddr): added sanity check on immediate's offset, provide
4527             GPOINTER tag on demand
4528           (aopPut): fixed for immediates,
4529           (mov2w_op): move operand's address or contents to WREG (depending on
4530             operand type), safer variant of mov2w,
4531           (movwf,call_libraryfunc): NEW, handy abbreviations,
4532           (get_argument_pcop,get_return_val_pcop,pass_argument,
4533           get_returnvalue): interface for accessing function parameters and
4534             return values,
4535           (assignResultValuei,genRet): use new parameter/return value interface
4536           (pic14_getDataSize): back to old version handling generic pointers,
4537           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
4538             provided implementation and/or fixed old one,
4539           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
4540             calls, removed legacy 8051 reference code
4541           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
4542           (loadSignToC): NEW, move the operands sign bit to CARRY,
4543           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
4544             genRightShiftSigned, accepts negative shift counts,
4545           (setup_fsr): load FSR and adjust IRP (indirect memory access),
4546           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
4547             generic pointers, __data pointers and __code pointers,
4548           (genUnpackBits,genPackBits): rewritten to work with generic pointers
4549             and signed bitfields, limit bitfields to 8 bit,
4550           (genDataPointerGet): fixed number of bytes read,
4551           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
4552           (genPointerGet,genPointerSet): fixed handling of __code pointers,
4553             pointers to constant data are no longer assumed to point to __code
4554             space, removed invalid pointer types,
4555           (bitpatternFromVal): retrieve the PICs representation of an integer
4556             or float literal,
4557           (genDataPointerSet): fixed assigning to po_immediate operands,
4558           (genGenPointerSet): implemented as library call,
4559           (genIfx): fixed incorrect condition,
4560           (genAddrOf): limit generic pointers' addresses to 2 bytes,
4561             provide GPOINTER tag according to destination's storage class,
4562           (genCast): added code to handle casting to generic pointers, added
4563             sign-/zero extension of the result
4564           (aop_isLitLike,op_isLitLike): fixed handling of immediates
4565         * src/pic/gen.h: added macros to access IRP bit in STATUS register
4566         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
4567           extend the result
4568         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
4569           address/register resides in the shared banks
4570           (emitSymbolToFile): improved to handle global and `pinned' symbols,
4571             put all variables into separate sections (have the linker arrange
4572             them)
4573           (picglue): put init code and interrupt handlers in separate sections
4574         * src/pic/main.c: added port specific options table, modified to PORT
4575           structure to make GPOINTERs 3 byte, added pic14_options
4576           (_pic14_do_link): private linking routine (update paths to libraries,
4577             add libsdcc.lib by default)
4578         * src/pic/main.h: declare pic14_options
4579         * src/pic/pcode.c: fixed instructions i/o relations,
4580           (RegCond): reverted to correct version,
4581           (newpCodeOpLit): truncate literals to 8 bit,
4582           (genericPrint): added debug output,
4583           (getRegFromInstruction): fixed for various operand types, simplified
4584           (BuildFlow): fixed broken handling of isntructions with labels
4585           (LinkFlow): start at last instruction in flow (skip trailing comments),
4586             pass the flow on to the next instruction after CALL
4587           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
4588           (insertPCodeInstruction): fixed inserting after a skip instruction,
4589           (DoBankSelect): fixed for labeled instructions
4590           (OptimizepBlock): honor --nopeep switch
4591           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
4592         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
4593         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
4594           (pCodeOptime2pCodes): allow disabling this optimization via
4595             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
4596             but is still buggy), started implementation of a dataflow based
4597             pCode optimization (CSE + dead code elimination)
4598           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
4599         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
4600           names are independant of the stack location and therefore portable across
4601           devices
4602
4603 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
4604
4605         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
4606           (selectSpil): fixed bug 1337835 by not spilling bit variables
4607         * support/regression/tests/bug1337835.c: added test for this bug
4608         * src/mcs51/peeph.def: restart after rule 3.c,
4609           addded rules 263.x to optimize loading constants
4610
4611 2005-10-26 Raphael Neider <rneider AT web.de>
4612
4613         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
4614         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
4615           (genAssign): emit warning when casting literals to generic pointer
4616             type, also applies when taking the address of a fixed variable,
4617           (genCast): improved casting to generic pointers
4618         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
4619           extern variables, added verbose error message
4620         * device/include/pic16/{string.h,errno.h}: added #pragma library c
4621
4622 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
4623
4624         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
4625         carry must be complemented too
4626         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
4627         could be emitted by genMinus
4628         * src/SDCCval.c (constVal): fixed bug 1305065
4629
4630 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
4631
4632         * src/SDCCast.c (addCast): added promotion for bit variables
4633         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
4634         promotion casts + optimisation
4635         (optimizeGetWord): fix warning 'i' might be used uninitialized
4636         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
4637         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
4638
4639 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
4640
4641         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
4642         all chars are promoted to int; promotion should be handled in SDCCast.c
4643
4644 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4645
4646         * device/lib/_strcmp.c: Fixed bug 1326457
4647
4648 2005-10-11 Raphael Neider <rneider AT web.de>
4649
4650         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
4651         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
4652
4653 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4654
4655         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
4656         * support/regression/tests/sfr16.c: added test for the sfr32 bug
4657
4658 2005-10-04 Raphael Neider <rneider AT web.de>
4659
4660         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
4661           device/lib/pic16/pics.all: added pic18f1320
4662         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
4663
4664 2005-09-30 Raphael Neider <rneider AT web.de>
4665
4666         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
4667         * src/pic16/devices.inc: NEW, provides device descriptions
4668         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
4669
4670 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4671
4672         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
4673           GETHBIT
4674
4675 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
4676
4677         * doc/sdccman.lyx: updated Highest Order Bit documentation,
4678           documented Any Order Bit, Higher Order Byte and Higher Order Word
4679         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
4680         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
4681           (optimizeGetAbit): new, to get any bit, not only the high bit,
4682           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
4683           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
4684           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
4685           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
4686             RIGHT_OP: also try GETBYTE, GETWORD optimization,
4687             GETABIT, GETBYTE, GETWORD: decorate them,
4688           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
4689           (ast_print): added GETABIT, GETBYTE, GETWORD
4690         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
4691         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
4692           (geniCodeBinary): new generic binary icode,
4693           (ast2iCode): added GETABIT, GETBYTE, GETWORD
4694         * src/port.h: updated comment for PORT.hasExtBitOp
4695         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
4696           (genGetByte): new, to get a single byte,
4697           (genGetWord): new, to get a word from a long,
4698           (gen51Code): added GETABIT, GETBYTE, GETWORD
4699         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
4700
4701 2005-09-23 Raphael Neider <rneider AT web.de>
4702
4703         * configure.in, configure: have device/lib/pic configured
4704         * device/lib/Makefile.in: added model-pic14
4705         * device/lib/clean.mk: added pic/ to clean rule
4706         * device/lib/pic: added rudimentary pic14 library providing support
4707           functions for multiplication/division/generic pointer access
4708         * src/SDCCopt.c (convilong): mark support functions as extern
4709           for pic14 port as well
4710         * src/pic/gen.c (genMult): added assertions,
4711           (genpic14Code): emit warning on unhandled iCodes
4712         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
4713         * src/pic/pcode.c (pCodeOpCopy),
4714         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
4715           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
4716           SFR_REGISTER}), made safe for future extensions
4717         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
4718           instructions even if preceeded by SKIP instructions (also remove
4719           them); removed unused code
4720         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
4721           prevents leaving parts of the structure uninitialized after copying
4722
4723 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
4724
4725         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
4726           ago by me
4727         * support/regression/tests/addsub.c: added test for the bug
4728
4729 2005-09-21 Raphael Neider <rneider AT web.de>
4730
4731         * device/include/pic16/pic18f1220.h,
4732           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
4733         * device/lib/pic16/Makefile.rules: added missing opening paren
4734         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
4735           are provided in genutils.c,
4736           (genUminusFloat,genUminus,genCmpEq): added asserts on different
4737           operand/result sizes,
4738           (genCmp): assert on NULL pointers first, then check deref'ed values
4739         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
4740           result size
4741
4742 2005-09-18 Raphael Neider <rneider AT web.de>
4743
4744         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
4745           as these are now unused,
4746           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
4747         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
4748           local, avoids uninitialized pointer dereference on r->name
4749         * src/pic16/ralloc.c (newReg): fixed indentation
4750
4751 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
4752
4753         * src/SDCCval.c (constVal): fixed bug 730366
4754         * support/Util/SDCCerr.c,
4755         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
4756
4757 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4758
4759         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
4760
4761 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
4762
4763         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
4764
4765 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4766
4767         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
4768           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4769         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
4770           (hex2dec): made hex_digit unsigned char, removed ascii dependance
4771         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
4772         * packihx/packihx.c (hexDigit): made c unsigned char
4773         * as/mcs51/lklibr.c (fndsym),
4774         * link/z80/lkgb.c (gb),
4775         * link/z80/lklibr.c (fndsym),
4776         * link/z80/lkrloc.c (relr),
4777         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
4778         * src/SDCC.lex (checkCurrFile, process_pragma),
4779         * src/SDCCglue.c (spacesToUnderscores),
4780         * src/SDCCmain.c (setParseWithComma, processFile),
4781         * src/asm.c (tvsprintf, printCLine),
4782         * src/avr/gen.c (emitcode, aopPut),
4783         * src/ds390/gen.c (emitcode),
4784         * src/hc08/gen.c (emitcode, emitinline),
4785         * src/mcs51/gen.c (emitcode, genInline),
4786         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4787           tokenizeLineNode),
4788         * src/pic/ralloc.c (debugLog),
4789         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
4790           tokenizeLineNode),
4791         * src/pic16/ralloc.c (debugLog),
4792         * src/z80/main.c (_process_pragma):
4793            made all ctype.h function calls safe
4794         * src/SDCCopt.c: include math.h for fabs
4795         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
4796           and used them throughout the code to make ctype.h function calls safe
4797         * src/ds390/main.c (asmLineNodeFromLineNode),
4798         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
4799         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
4800            unsigned char*
4801         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
4802           (newpCodeAsmDir): made ctype.h function calls safe
4803         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
4804           pic16_emitcode):  made lbp unsigned char*
4805         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
4806           (pic16_newpCodeAsmDir): made ctype.h function calls safe
4807         * src/xa51/gen.c (emitcode),
4808         * src/z80/gen.c (_emit2): made lbp unsigned char*
4809         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
4810            char*
4811
4812 2005-09-05 Raphael Neider <rneider AT web.de>
4813
4814         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
4815           access bank splitpoint
4816
4817 2005-09-05 Raphael Neider <rneider AT web.de>
4818
4819         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
4820
4821 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
4822
4823         * .version: changed to version 2.5.3
4824         * doc/sdccman.lyx: changed version to 2.5.3,
4825           documented --codeseg and --constseg and pragma codeseg and constseg,
4826           documented bit parameters (reentrant) and bit returning
4827         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
4828            currFunc->recvSize, but is this ok for all ports?
4829           (ast2iCode): result of ~ on unsigned char must be cast to int for
4830            bool to work
4831         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
4832           function pointers in bit space
4833         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
4834           (processFuncArgs): call port.reg_parm() with reentrancy info
4835         * src/port.h,
4836         * src/avr/main.c,
4837         * src/ds390/main.c,
4838         * src/hc08/main.c,
4839         * src/pic/main.c,
4840         * src/pic16/main.c,
4841         * src/xa51/main.c,
4842         * src/z80/main.c: port.reg_parm prototype extended with
4843           "bool reentrant" parameter
4844         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
4845           options.stackAuto for allocating bit register parameters
4846         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
4847           (genSend): set BitBankUsed if it is,
4848           (selectRegBank): factored out of genCall for use in genPcall,
4849           (genCall): removed redundant dtype assignmen, use selectRegBank,
4850           (genPcall): handle returning in Carry properly, save in F0 if needed,
4851           (genReceive): handle bit register parameters
4852         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
4853           (mcs51_assignRegisters): enable bit registers for all reentrant
4854            functions and don't set BitBankUsed unconditionally
4855         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
4856         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
4857         * support/regression/tests/funptrs.c: added tests for BOOL and for return
4858
4859 2005-08-27 Borut Razem <borut.razem AT siol.net>
4860
4861         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
4862         ppc-osx (Darwin) does not support -u option. It seems that it is
4863         supported only on Linux - GNU cp
4864
4865 2005-08-25 Borut Razem <borut.razem AT siol.net>
4866
4867         * sim/ucsim/gui.src/serio.src/Makefile.in,
4868           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
4869           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4870           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
4871           install and strip, since the strip at /usr/ccs/bin should be used
4872           on solaris
4873
4874 2005-08-24 Borut Razem <borut.razem AT siol.net>
4875
4876         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
4877
4878 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
4879
4880         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
4881         ffffffffu
4882
4883 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
4884
4885         * as/mcs51/aslink.h: completed lkrloc.c prototypes
4886         * as/mcs51/lkmain.c (link_main): fixed warning
4887         * device/include/stdbool.h: ds390 has no advanced bit support yet
4888         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
4889         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
4890         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
4891           and updated their macros
4892         * src/SDCCval.c (constVal): updated comment for renamed b_long
4893
4894 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
4895
4896         * as/mcs51/asdata.c: changed ctype['['] to BINOP
4897         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
4898           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
4899           (oprio): set priority for '['
4900         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
4901            and adb_24_bit
4902         * as/mcs51/asm.h: added defines R_BIT and S_BIT
4903         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
4904         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
4905         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
4906           added overlayable BIT_BANK area
4907         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
4908           (summary2): explain 'T' in legenda
4909         * as/mcs51/lkrloc.c: replaced old K&R style,
4910           (relr): added R_BIT processing,
4911           (errmsg): added "Bit-addressable relocation error",
4912           (adb_bit): added for converting from byte- to bit-addressable space,
4913           (adb_24_bit): added for converting from byte- to bit-addressable space
4914         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
4915            used in reentrant functions now even as return value
4916         * device/lib/_gptrput.c (_gptrput): removed obsolete code
4917         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
4918           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
4919         * src/SDCCglobl.h: added indicator BitBankUsed
4920         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
4921            the bit registers b0-b7
4922         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
4923           (geniCodeCast): fixed bug 1263853,
4924           (geniCodeLogicAndOr): put result in bool or char,
4925           (geniCodeReceive): added parameter func for accessing the return type,
4926           (geniCodeFunctionBody): pass func to geniCodeReceive
4927         * src/SDCCmain.c: added indicator BitBankUsed
4928         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
4929         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
4930           (checkSClass): don't put automatic bool/bit on stack,
4931           (checkFunction): removed check on function cannot return bit
4932         * src/SDCCsymt.h: added newBoolLink prototype
4933         * src/mcs51/gen.c (rb1regs): added bit registers,
4934           (movc): created for assigning to carry,
4935           (pushReg, popReg): created for pushing registers,
4936           (sameRegs): check both AOP_REG and AOP_CRY types,
4937           (aopOp): handle bit registers,
4938           (aopPut): optimization no self-assign,
4939           (saveRegisters): push reg->base (bits) only once for bit registers,
4940            and use pushReg,
4941           (unsaveRegisters): pop reg->base only once and use popReg,
4942           (assignResultValue): added parameter func and return in carry for bits,
4943           (genIpush): optimization no reload in A if not changed,
4944           (genSend): bit parameters in reentrant functions are passed in bit
4945            registers by first assigning to bits in B, then save registers and
4946            copy B to bits,
4947           (genCall): handle returning in Carry properly, save it in F0 if needed,
4948           (genPcall): updated assignResultValue call, this is not safe yet for bit
4949            returning function !!!
4950           (genFunction): don't generate equ's for bit registers and use pushReg,
4951           (genEndFunction): take care of bit returning functions and use popReg,
4952           (genRet): return bit in Carry,
4953           (genIfx): optimize bit registers and other directly addressable bits,
4954           (genReceive): updated assignResultValue call
4955         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
4956           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
4957            registers when using stack-auto
4958         * src/mcs51/ralloc.c (_G): added allBitregs,
4959           (regs8051): added the bit registers,
4960           (createStackSpil): use macro IS_BIT,
4961           (getRegBit): added to allocate a bit register, else spill,
4962           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
4963           (updateRegUsage): factored out to ease stepping while debugging,
4964           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
4965            also allocate bit registers,
4966           (fillGaps): handle bit registers,
4967           (findAllBitregs): added to create bit vector with all bit registers,
4968           (mcs51_allBitregs): returns this bit vector,
4969           (mcs51_assignRegisters): when using stack-auto use bit registers for
4970            passing parameters and creating local variables
4971         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
4972
4973 2005-08-22 Borut Razem <borut.razem AT siol.net>
4974
4975         * device/lib/Makefile.in: replaced find option -or with -o
4976           to make it run on solaris
4977
4978 2005-08-22 Raphael Neider <rneider AT web.de>
4979
4980         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
4981           fixes #1265442 (crash on Solaris)
4982
4983 2005-08-20 Borut Razem <borut.razem AT siol.net>
4984
4985         * configure, configure.in: added tests for libsocket and libnsl libraries,
4986           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
4987           from support/regression/Makefile.in
4988         * support/regression/Makefile.in: added
4989         * device/lib/pic16/Makefile.common.in: force make to use bash shell
4990         * sim/ucsim/libtool: regenerated on sparc-solaris
4991         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4992           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
4993           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
4994           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
4995           sparc-solaris, which doesn't use GNU ld linker
4996         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
4997         * as/Makefile: find on sparc-solaris does not support -maxdepth option
4998
4999 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
5000
5001         * src/mcs51/peeph.def: updated comments
5002
5003 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5004
5005         * device/lib/_gptrget.c,
5006         * device/lib/_gptrput.c: slightly shorter
5007         * doc/sdccman.lyx: incremented version
5008         * src/mcs51/peeph.def: moved peephole comments to the line of first
5009           change to better keep line correlation, reanimated 186.e
5010         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
5011
5012 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5013
5014         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
5015           David Saxton with quotes around file name.
5016
5017 2005-08-15 Borut Razem <borut.razem AT siol.net>
5018
5019         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
5020           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
5021           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
5022           make tests run on x86_64 platform
5023
5024 2005-08-13 Raphael Neider <rneider AT web.de>
5025
5026         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
5027           as it might be executed DURING a build (parallel make is wonderful)
5028
5029 2005-08-13 Raphael Neider <rneider AT web.de>
5030
5031         * device/lib/Makefile.in (port-specific-objects-pic16):
5032           revert to cp $(PORT)/bin/*.* $(PORTDIR)
5033         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
5034           dependency
5035         * device/lib/pic16/Makefile.rules: build subdirs before creating
5036           the library, removed builddir rule, create $(builddir) early in
5037           recurse rule, use empty recurse rule for leaf directories
5038         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
5039           mkdir errors (race condition), removed duplicate suffix "hex"
5040           from clean rules
5041         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
5042         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
5043           prevents mkdir -p from aborting on Alpha
5044
5045 2005-08-12 Raphael Neider <rneider AT web.de>
5046
5047         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
5048           db-statements in order to allow for arrays of pointers in code
5049           sections to be placed without interspersed 0-padding, fixes
5050           bug #1256215
5051         * (emitStatistics): fixed division by zero for pic18f1220
5052         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
5053           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
5054         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
5055         * (pic16_pCodeConstString): keep track of already emitted string
5056           literals to prevent "duplicate definitions of symbol _str_NR"
5057         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
5058           debug message
5059         * device/lib/Makefile.in: ignore failing PIC16 library builds
5060         * device/lib/pic16/Makefile: do not build if gputils are missing
5061         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
5062
5063 2005-08-10 Raphael Neider <rneider AT web.de>
5064
5065         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
5066           my last commit)
5067
5068 2005-08-10 Raphael Neider <rneider AT web.de>
5069
5070         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
5071           Rokas' patch to add the new fixed point type "__fixed16x16"
5072         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
5073           functions for __fixed16x16 arithmetics
5074         * device/lib/pic16: reimplemented the build system to support
5075           a separate build directory, better handling of libio (create
5076           the library in a separate subdir for each architecture) and
5077           easier configuration (centralized in Makefile.common)
5078
5079 2005-08-07 Raphael Neider <rneider AT web.de>
5080
5081         * src/pic16/gen.c (genrshTwo): fixed sign extension
5082         * src/pic16/device.c: added pic18f2320, 4220 and 4320
5083         * device/include/pic16/pic18f2220.h: changed some bit definitions,
5084           added T0CONbits
5085         * device/include/pic16/pic18f4220.h: NEW, header for
5086           pic18f4220 and pic18f4320
5087         * device/include/pic16/pic18fregs.h: added new devices,
5088           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
5089         * device/include/pic16/signal.h: resolved name clashes
5090           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
5091           to also allow testing for interrupt enable bits, added
5092           comments on how to use the macros
5093         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
5094         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
5095           register definitions for the devices
5096         * device/lib/pic16/pics.all: added new devices
5097         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
5098           allocated memory
5099         * device/lib/pic16/libc/stdlib/memfree: do not count
5100           the block header as free memory
5101         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
5102           simplified and added missing end-of-blocklist-marker
5103           (reported by Peter Onion, fixes #1252814)
5104         * (_mergeHeapBlock): fixed loop condition
5105         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
5106           len==0, restructured code
5107         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
5108           up a bit, reduced bitfield accesses, prevent endless loops
5109           in case of heap corruption
5110         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
5111           "unreferenced arguments/must return a value" warnings
5112         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
5113           replaced BAUDREG with SPBRG
5114         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
5115           device/lib/pic16/debug/gstack/gstack.c: replaced
5116           _naked, _asm, _endasm with __naked, __asm, __endasm
5117
5118 2005-08-05 Raphael Neider <rneider AT web.de>
5119
5120         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
5121           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
5122
5123 2005-08-05 Borut Razem <borut.razem AT siol.net>
5124
5125         * device/lib/Makefile.in: added missing ';'
5126         * configure: removed ^M characters
5127
5128 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5129
5130         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
5131           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
5132           License
5133
5134 2005-08-04 Borut Razem <borut.razem AT siol.net>
5135
5136         * configure.in: pic16 libraries build 2nd try - enable running
5137           configure in device/lib/pic16
5138         * configure: regenerated from configure.in
5139         * device/lib/Makefile.in: create $(PORT)/bin directory
5140
5141 2005-08-03 Raphael Neider <rneider AT web.de>
5142
5143         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
5144           to get/set values via pointers
5145         * (genUnpackBits,genPackBits): changed detection of
5146           ptr->bitfield vs. sym.bitfield, fixed access via generic
5147           pointers, removed dead (wrong) code for multibyte bitfields
5148         * (genNearPointerGet, genGenPointerGet): removed useless code,
5149           fixed bitfield detection, fixes #1250594
5150         * (genNearPointerSet): removed useless code
5151         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
5152           and introduced macro pic16_emitpcode that conditionally emits
5153           the origin of the following pCode (useful for debugging SDCC)
5154         * src/pic16/pcode.c: changed (and disabled) some debug outputs
5155         * (createDefmap): fixed handling of LFSR for --optimize-df
5156
5157 2005-08-02 Borut Razem <borut.razem AT siol.net>
5158
5159         * device/lib/Makefile.in: pic16 libraries build enabled since
5160           gputils-0.13.2 are now localy installed at sourceforge's compile farm
5161
5162 2005-08-02 Raphael Neider <rneider AT web.de>
5163
5164         * src/pic16/gen.c (genPackBits): removed deprecated warning
5165         * (genGenPointerSet): fixed bitfield detection
5166
5167 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5168
5169         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
5170
5171 2005-07-31 Raphael Neider <rneider AT web.de>
5172
5173         * device/lib/pic16/libdev/pic18f458.c,
5174           device/include/pic16/pic18f458.h: added missing T0CONbits
5175
5176 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5177
5178         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
5179
5180 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
5181
5182         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
5183
5184 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5185
5186         * device/include/mcs51/at89c51ed2.h: added.
5187
5188 2005-07-23 Raphael Neider <rneider AT web.de>
5189
5190         * src/pic/gen.h: added emitpcode macro for debugging
5191         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
5192           and replace by macro adding debug information on demand
5193         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
5194         * (gencjne): tried to fix; replaced with correct (slower) code
5195         * (gen{Unp,P}ackBits): fixed single bit access
5196         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
5197         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
5198           previous instruction
5199         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
5200           register has to be handled with care (forbidding movement
5201           of assignments/uses, removing assignments completely, ...)
5202         * (pCodeOptime2pCodes): make use of regIsSpecial
5203         * added lots of debugging output (commented out)
5204         * src/pic/rallloc.c (deassignLRs): prevent operand registers
5205           from being reused as result UNLESS it is known to work
5206
5207 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5208
5209         * support/Util/dbuf.h: include <stddef.h> for size_t
5210         * .version: changed to version 2.5.2
5211
5212 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5213
5214         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
5215
5216 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5217
5218         * src/hc08/gen.c (genMinus): fixed bug #1241835,
5219           (genModOneByte): removed needless psha/pula
5220
5221 2005-07-22 Raphael Neider <rneider AT web.de>
5222
5223         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
5224           have PIC14 handled like PIC16, fixes broken pic14 linker calls
5225         * src/pic/gen.c (resolveIfx): do not "invent" labels
5226         * (genSkipc): changed to positive logic
5227         * (genSkipCond): removed as no longer needed
5228         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
5229           backport from PIC16
5230         * (genLeftShift): check operands are in different registers
5231         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
5232           INCF does not update CARRY...
5233         * src/pic/main.c: fixed _linkCmd
5234         * src/pic/pcode.c (unlinkpCode): added inactive code
5235         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
5236           alive (do not assign result and operand overlapping registers)
5237
5238 2005-07-22 Raphael Neider <rneider AT web.de>
5239
5240         * src/pic/device.c (dump_sfr): replaced register declaration with
5241           call to emitSymbolToFile() to avoid duplicate symbols
5242         * (assignRelocatableRegisters): do not declare external symbols
5243         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
5244           right (take size of type, not etype)
5245         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
5246         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
5247         * (packRegsForAccUse): disabled assignment of WREG as
5248           the result reg to prevent occurence of just fixed #1235003,
5249           fixes #1242954
5250         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
5251           symbols (avoids duplicate symbols in .asm file)
5252         * (pic14emitRegularMap): use emitSymbolToFile()
5253         * src/pic/gen.c (aopOp): fixed spillLocation handling
5254         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
5255         * (genDataPointerSet): removed unneccessary variables/output
5256
5257 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
5258
5259         * as/mcs51/lkarea.c: enlarged codemap for banked memory
5260         * device/lib/mcs51/crtbank.asm: added # to 0x0F
5261
5262 2005-07-21 Raphael Neider <rneider AT web.de>
5263
5264         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
5265           architecture cannot handle them efficiently, fixes bug #1235003
5266         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
5267           check for empty sets before using them (fixes bug #1232190)
5268
5269 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
5270
5271         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
5272           (lnksect2): generate warnings for memory overlap
5273         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
5274           constseg to set the name of these segments so you can instruct the linker
5275           to place them in banks
5276         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
5277         * src/SDCCglobl.h: added MODEL_HUGE to enum,
5278           added code_seg and const_seg to options
5279         * src/SDCCglue.c (emitMaps): use options.const_seg,
5280           (createInterruptVect): put interrupt vectors in segment HOME,
5281           (glue): put HOME before static segment and put the main glue in HOME,
5282           (glue): use options.code_seg
5283         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
5284         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
5285           these segments so you can instruct the linker to place them in banks
5286           (linkEdit): use code_loc for HOME segment which should be the first
5287           segment in code memory now
5288         * src/SDCCmem.c: fixed more stuff like bug 1238386
5289         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
5290           (changePointer): don't change function pointers to code pointers for
5291           banked functions,
5292           (compareType): added exceptional check for banked function pointers
5293         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
5294         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
5295           after static in code memory
5296         * src/mcs51/gen.c: added aopLiteralLong prototype,
5297           (aopForSym): use getSize for functions,
5298           (genCall): generate banked calls over one trampoline __sdcc_banked_call
5299           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
5300           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
5301           the segment,
5302           (genPcall): use call for literal function pointers and generate banked
5303           calls over the one trampoline so there's only one place for the user to
5304           modify according to his/hers hardware,
5305           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
5306           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
5307         * src/mcs51/main.c: added keyword banked,
5308           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
5309         * support/Util/SDCCerr.c,
5310         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
5311           needed for passing the bank and address to the trampoline
5312         * device/lib/mcs51/crtbank.asm: added for bankswitching
5313         * device/lib/mcs51/Makefile: added crtbank
5314
5315 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5316
5317         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
5318           for fields at offset 0 of a struct or union as reported
5319           on 2005-07-07 in the developer mailing list.
5320
5321 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
5322
5323         * src/SDCCmem.c: fixed bug 1238386
5324
5325 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5326
5327         * src/mcs51/peeph.def: added labelrefcounting for peepholes
5328           (patch #1144962), added peephole 300, enabled 259.x
5329         * doc/sdccman.lyx: removed screenshot and provided link instead
5330
5331 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5332
5333         * doc/sdccman.lyx: added section about debugging with ddd
5334         * doc/figures/ddd_example.eps: screenshot of debugging session
5335
5336 2005-07-04 Raphael Neider <rneider AT web.de>
5337
5338         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
5339           like CODE pointers, fixes #1115683
5340         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
5341           call, fixes bugs #1232211, #1228110,
5342           fixed wrong casts to pCodeFlow from pCodeInstructions
5343
5344 2005-07-04 Raphael Neider <rneider AT web.de>
5345
5346         * src/pic/gen.c (popGet): changed assert to allow for
5347           bit operands
5348         * (popGetAddr): changed signature to provide
5349           an additional index, patched all call sites
5350         * (genCmpEq): handle literal-like operands correctly
5351         * (genAddrOf): added sanity checks on __code/__data pointers
5352         * (genAssign): added handling of symbols from __code section
5353         * (gencjne): do not generate code for comparisons whose result
5354           is neither stored nor used, fixes bug #1171114
5355         * (AccLsh, AccRsh): operate on operand instead of WREG
5356         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
5357           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
5358           by known count
5359         * rewrote complete shift-by-literal logic, commented unused
5360           functions out
5361         * (genConstPointerGet): get multiple bytes (if result size > 1),
5362           fixed handling of non-immediate addresses
5363         * (genPointerGet): handle CODE pointers like CONST pointers
5364         * (genpic14Code): insert C-SRC lines as Cource-pCodes
5365         * ({aop,op}_isLitLike): NEW, single place to decide whether an
5366           operand is to be treated as a literal or not
5367         * (mov2w,genPcall,genCmpEq),
5368           src/pic/genarith.c: use aop_isLitLike() to decide between
5369           literal/register contents
5370         * (addSign): added missing offset
5371         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
5372           only emit comment in debug-mode,
5373           use {aop,op}_isLitLike throughout the file
5374         * src/pic/glue.c: fix initializers for pointers (work in progress)
5375         * src/pic/pcode.c (get_op): honor index on _const symbols
5376         * ({reset,dump}pCodeStatistics): NEW, estimate code size
5377         * (dumppBlock): added pCode size estimation
5378         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
5379           check for IS_SYMOP before OP_SYMBOL'ing
5380         * fixed indentation, compacted switch-statements
5381         * (allocReg): find free register and allocate it instead of
5382           allocating new registers all the time
5383         * (deassignLRs): prevent POINTER_GET's from being assigned the same
5384           registers as its operands (necessary only for multibyte GETs)
5385
5386 2005-07-01 Raphael Neider <rneider AT web.de>
5387
5388         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
5389           debugging .asm-output macros FENTRY + FEXIT
5390         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
5391           way... I wonder...
5392         * (emitpComment): NEW, printf to pCode
5393         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
5394           offset handling
5395         * (popGetAddr): NEW, variant of popGet to access an immediates
5396           high(er) bytes instead of the n'th byte of memory they reference,
5397           replaced popGet with popGetAddr where neccessary
5398         * (genDataPointerGet): reactivated and fixed implementation
5399         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
5400           accesses
5401         * (genDataPointerSet): fixed multibyte assignments
5402         * (genpic14Code): fixed --i-code-in-asm handling
5403         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
5404         * (genPlus): fixed index-out-of-bounds error
5405         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
5406         * src/pic/ralloc.c: added debugging output macro FENTRY2
5407         * (spillThis): fixed indentation, enbraced for-body for clarity
5408         * (rematStr): commented out as now unused
5409         * (regTypeNum): commented out special spill case (overwrites
5410           arbitrary values)
5411         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
5412
5413 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
5414
5415         * doc/sdccman.lyx: documented sfr16/sfr32,
5416           added example for using storage class with function pointers
5417         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
5418
5419 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
5420
5421         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
5422         * device/lib/_itoa.c,
5423         * device/lib/_ltoa.c: optimized codesize
5424         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
5425           but don't know how to suppress the double warning.
5426         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
5427         * support/Util/SDCCerr.c,
5428         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
5429
5430 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
5431
5432         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
5433           fixed old K&R prototypes
5434         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
5435         * device/lib/_gptrget.c,
5436         * device/lib/_gptrgetc.c,
5437         * device/lib/_gptrput.c: changed versions for new memory indicator values,
5438           also new versions for small generic pointers and banked generic pointers
5439         * src/port.h: added const_name
5440         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
5441         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
5442         * src/SDCCcse.c (findPrevIc): check all associative operators
5443         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
5444         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
5445         * src/SDCCmem.c: updated comments,
5446           set far-space to 0 for pdata, results in optimized code
5447         * src/SDCCmem.h: added macro CONST_NAME
5448         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
5449           moving the info into the highest bits, see also gptrget/gptrput
5450         * src/src.dsp: added sdcc.ico to project files
5451         * src/avr/gen.c (genCast): fixed bug 0x%d
5452         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
5453         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
5454           relation between ptr_type and DCL_TYPE,
5455           (genCast): fixed bug 0x%d
5456         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
5457           (CODE)" for const_name
5458         * src/hc08/gen.c (genCast): fixed bug 0x%d
5459         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
5460           (hc08_port): added "CONST (CODE)" for const_name
5461         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
5462           (aopForRemat, adjustArithmeticResult): disconnected direct relation
5463           between ptr_type and DCL_TYPE,
5464           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
5465           operand* and took AOP() inside function so sfr-ness can be checked,
5466           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
5467           new prototype,
5468           (genFunction, genEndFunction): optimized stack setup,
5469           (genMinus): optimized for literals with ending zeroes (in bytes),
5470           (genCast): fixed bug 0x%d
5471         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
5472           (mcs51_port): added "CONST (CODE)" for const_name
5473         * src/mcs51/peeph.def: made rule 226 more generic
5474         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
5475         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
5476         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
5477         * src/z80/main.c (z80_port): added NULL for const_name,
5478           (gbz80_port): added NULL for const_name
5479         * support/regression/tests/bug663539.c,
5480         * support/regression/tests/sfr16.c: new tests
5481
5482 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5483
5484         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
5485
5486 2005-06-24 Raphael Neider <rneider AT web.de>
5487
5488         * device/lib/pic16/libdev/pic18f[68][567]20.c:
5489           corrected typos...
5490         * device/include/pic16/signal.h: added USBIF
5491           and SIG_USB
5492
5493 2005-06-24 Raphael Neider <rneider AT web.de>
5494
5495         * device/lib/pic16/libdev/pic18f2455.c,
5496           device/include/pic16/pic18f2455.h: NEW
5497         * device/include/pic16/pic18fregs.h,
5498           device/lib/pic16/pics.all,
5499           src/pic16/device.c: added 18f2455
5500         * device/lib/pic16/libdev/pic18f[68][567]20.c,
5501           device/include/pic16/{pic18f[68][567].h,usart.h}:
5502           replaced MULTIPLE_USARTS define with more relaible
5503           compatibility sfrs (for USART access)
5504
5505 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
5506
5507         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
5508           and the output asm file line is printed on two lines.
5509
5510 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5511
5512         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
5513           BGT, BLE, BHI, and BLS instructions
5514         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
5515           genCmpEq): removed
5516         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
5517           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
5518           fixes bug #1216342
5519         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
5520
5521 2005-06-15 Raphael Neider <rneider AT web.de>
5522
5523         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
5524         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
5525         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
5526           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
5527           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
5528
5529 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5530
5531         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
5532           Marcel Telka in bug #1215704
5533
5534 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
5535
5536         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
5537           located in shared memory bank.
5538
5539 2005-05-31 Raphael Neider <rneider AT web.de>
5540
5541         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
5542           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
5543           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
5544
5545 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
5546
5547         * device/lib/_strncpy.c: fixed the fix
5548
5549 2005-05-26 Raphael Neider <rneider AT web.de>
5550
5551         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
5552           initializers with \0, bug #1208187
5553         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
5554           intializers with \0, bug #1208187
5555
5556 2005-05-26 Raphael Neider <rneider AT web.de>
5557
5558         * src/pic16/glue.c (pic16_printIvalChar): fixed string
5559           initializers with \0, bug #1208187
5560         * src/pic16/main.c (_process_pragma): added sanity checks
5561           for stack position and size, emit warnings when appropriate
5562
5563 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5564
5565         * device/lib/_strncpy.c: fixed not filling with \0
5566
5567 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5568
5569         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
5570           createFunction),
5571         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
5572           compound_statement),
5573         * src/SDCCsymt.h,
5574         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
5575
5576 2005-05-24 Raphael Neider <rneider AT web.de>
5577
5578         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
5579
5580 2005-05-24 Raphael Neider <rneider AT web.de>
5581
5582         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
5583           TRISE definitions, closes bug #1162453
5584
5585 2005-05-22 Raphael Neider <rneider AT web.de>
5586
5587         * src/pic16/main.c (_process_pragma): check for missing
5588           arguments to pragmas code and udata
5589         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
5590           consistency fixes to match other headers (thanks to Jim Paris)
5591         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
5592
5593 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5594
5595         * src/SDCCicode.c (isOperandEqual): fixed missing ;
5596
5597 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
5598
5599         * support/regression/tests/bug1198642.c: new test
5600         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
5601         * src/SDCCcse.c (findPrevIc): added comment, please have a look
5602         * support/scripts/resource.h,
5603         * support/scripts/resource.rc,
5604         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
5605         * support/scripts/sdcc.ico: added 32x32 icon
5606
5607 2005-05-18 Raphael Neider <rneider AT web.de>
5608
5609         * device/lib/pic16/libdev/pic18f*.c,
5610         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
5611           keywords to "__sfr" and "__at (X)"
5612         * device/include/pic16/pic18fregs.h: added pic18f4520
5613         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
5614           #1203088 (MPLAB compatibility)
5615
5616 2005-05-17 Raphael Neider <rneider AT web.de>
5617
5618         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
5619         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
5620         * device/lib/pic16/pics.all: added new devices
5621         * src/pic16/device.c: added support for pic18f4520
5622
5623 2005-05-16 Raphael Neider <rneider AT web.de>
5624         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
5625         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
5626         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
5627           convenience function for bit access
5628
5629 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5630
5631         * device/lib/printf_large.c: fixed bug 1193299
5632         * support/regression/tests/bug1057979.c: added test %3.3s
5633
5634 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5635
5636         * device/include/mcs51/8051.h,
5637         * device/include/mcs51/8052.h: made parseable with lint
5638         * device/include/mcs51/lint.h: added include file for (sp)lint
5639         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
5640         * doc/cdbfileformat.lyx,
5641         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
5642
5643 2005-05-14 Raphael Neider <rneider AT web.de>
5644
5645         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
5646         * device/lib/pic16/libc/stdlib/itoa.c (new)
5647         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
5648         * device/lib/pic16/libio/Makefile: exclude subdir according to
5649           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
5650         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
5651         * src/pic16/gen.c (genFunction): prevent annoying warning
5652         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
5653           nameclashes on BeOS
5654         * support/cpp2/cppmain.c (cpp_output_string): new
5655         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
5656           fixes bug 1116802
5657
5658 2005-05-13 Borut Razem <borut.razem AT siol.net>
5659
5660         * src/SDCCmain.c (linkEdit): fixed bug 1195202
5661
5662 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5663
5664         * .version: changed to version 2.5.1; back to bleeding edge development
5665
5666 2005-05-11 Borut Razem <borut.razem AT siol.net>
5667
5668         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
5669           generate PDF version 1.3 documents
5670
5671 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5672
5673         * .version: changed to version 2.5.0
5674
5675 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5676
5677         * doc/sdccman.lyx: updated weblinks, index and smaller updates
5678
5679 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5680
5681         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
5682         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
5683         well as many smaller updates.
5684         * .version: changed to version 2.5.0-pre1
5685
5686 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5687
5688         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
5689
5690 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5691
5692         * support/regression/tests/bug1185672.c: added
5693         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
5694           bug 1185672
5695         * src/mcs51/gen.c (genCall): added comments, made it look safer
5696         * src/mcs51/gen.c (genEndFunction): simplified
5697
5698 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5699
5700         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
5701
5702 2005-04-14 Borut Razem <borut.razem AT siol.net>
5703
5704         * fixed bug 1045046 - SIGSEGV with really simple code?:
5705           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
5706           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
5707
5708 2005-04-14 Borut Razem <borut.razem AT siol.net>
5709
5710         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
5711           src/pic16/device.h: temporarily disabled experimental #inline pragma
5712           for 2.5.0 release
5713
5714 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
5715
5716         * device/include/z80/stdio.h,
5717         * device/include/z80/string.h: removed these highly incomplete files so
5718           SDCC can use the default ones in device/include/
5719
5720 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5721
5722         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
5723         gcc warning.
5724         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
5725         fix sdcpp warnings.
5726
5727 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5728
5729         * device/include/malloc.h: removed redundant __reentrant prototypes
5730         * device/lib/_mullong.c: added working xstack variant in asm (C version
5731           doesn't pass regression tests)
5732         * device/lib/bpx.c: used __data and made bpx char for mcs51
5733         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
5734           (createFunction): fixed bug with xstackPtr
5735         * src/SDCCcse.c: corrected comments
5736         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
5737           (killDeadCode, eBBlockFromiCode): removed unused code
5738         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
5739           corrected comments
5740         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
5741           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
5742           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
5743           (genModOneByte): fixed warning in MSVC
5744         * src/mcs51/main.c (): added comments
5745         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
5746
5747 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
5748
5749         * src/SDCCmain.c (linkEdit): oops, changed one line too many
5750
5751 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
5752
5753         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
5754
5755 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
5756
5757         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
5758         characters arrays of larger size than the declared one.
5759
5760 2005-04-10 Borut Razem <borut.razem AT siol.net>
5761
5762         * src/pic/gen.c (genInline),
5763           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
5764           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
5765           (findNextInstruction), (findPrevInstruction),
5766           (findInstructionUsingLabel),
5767           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
5768         * src/pic/pcode.c (findLabel): added missing '\n'
5769         * src/src.dsp: added SDCCdwarf2.c to the project
5770
5771 2005-04-09 Borut Razem <borut.razem AT siol.net>
5772
5773         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
5774
5775 2005-04-08 Raphael Neider <rneider AT web.de>
5776
5777         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
5778           into the chain after a given one) and mergeDefmapSymbols (combine
5779           defmap entries for each symbol per pcode)
5780         * (createDefmap): have defmap entries merged in the end
5781         * (defmapReplaceSymRef): split defmap entries covering two accesses to
5782           a symbol before replacing one access type's symbol, merge symbols in
5783           the end (replacement symbol might already have an entry)
5784         * (assignValnums): keep reference to written WREG intact
5785
5786 2005-04-08 Raphael Neider <rneider AT web.de>
5787
5788         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
5789           Alpha)
5790
5791 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
5792
5793         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
5794         bytes
5795
5796 2005-04-07 Raphael Neider <rneider AT web.de>
5797
5798         * device/include/pic16/usart.h: added compatibility defines for
5799           devices with more than one USART
5800         * device/include/pic16/pic18f[68][567]20.h: activated above defines
5801
5802 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5803
5804         * device/lib/Makefile.in: updated for port specific include
5805
5806 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5807
5808         * support/regression/ports/mcs51/spec.mk: added mcs51 include
5809
5810 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5811
5812         * device/include/8051.h,
5813         * device/include/8052.h,
5814         * device/include/at89S8252.h,
5815         * device/include/at89c55.h,
5816         * device/include/at89x051.h,
5817         * device/include/at89x51.h,
5818         * device/include/at89x52.h,
5819         * device/include/mcs51reg.h,
5820         * device/include/reg51.h,
5821         * device/include/reg764.h,
5822         * device/include/regc515c.h,
5823         * device/include/sab80515.h: (re)moved these 12 files
5824         * device/include/mcs51/8051.h,
5825         * device/include/mcs51/8052.h,
5826         * device/include/mcs51/at89S8252.h,
5827         * device/include/mcs51/at89c55.h,
5828         * device/include/mcs51/at89x051.h,
5829         * device/include/mcs51/at89x51.h,
5830         * device/include/mcs51/at89x52.h,
5831         * device/include/mcs51/mcs51reg.h,
5832         * device/include/mcs51/reg51.h,
5833         * device/include/mcs51/reg764.h,
5834         * device/include/mcs51/regc515c.h,
5835         * device/include/mcs51/sab80515.h: and added them here
5836
5837 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5838
5839         * device/include/stdarg.h: changed SDCC specific keywords to double
5840           underlined form.
5841         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
5842           mcs51 and ds390.
5843         * device/include/hc08/mc68hc908gp32.h,
5844         * device/include/hc08/mc68hc908jb8.h,
5845         * device/include/hc08/mc68hc908jkjl.h,
5846         * device/include/hc08/mc68hc908qy.h: fixed comments
5847         * device/include/mcs51/README: updated
5848         * device/include/mcs51/c8051f120.h: added PINRSF
5849         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
5850         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
5851           amidst code. Also inline is not supported.
5852
5853 2005-04-06 Raphael Neider <rneider AT web.de>
5854
5855         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
5856         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
5857           callers stack/frame pointers
5858
5859 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5860
5861         * device/include/pic16/usart.h: added, missing in previous commit,
5862         * device/include/pic16/adc.h: fixed typo,
5863         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
5864         commit,
5865         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
5866         <p18fxxx.inc>
5867         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
5868         uninitialized because a bug appears with gplink
5869         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
5870         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
5871         complains for unrecognised option
5872
5873 2005-04-05 Raphael Neider <rneider AT web.de>
5874
5875         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
5876           structs as well (using memcpy)
5877         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
5878           on ISRs (GOTO has no label)
5879         * src/pic16/device.h: added OF_OPTIMIZE_DF
5880         * src/pic16/main.c: added compiler switch --optimize-df to enable the
5881           new data flow analysis/optimization
5882         * src/pic16/pcode.c: added (prototypes for and implementation of)
5883           dataflow analysis functions, fixed pCodeInstructions' inCond and
5884           outCond values, made RCALL a branch instruction
5885         * (pic16_unlinkpCode): keep C line if possible
5886         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
5887           C line moved if possible
5888         * (pic16_getRegFrompCodeOp): NEW, improved version of...
5889         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
5890           to use new pic16_getRegFrompCodeOp (works for more SFRs)
5891         * (pic16_BuildFlow): fixed skip instructions with label (did not start
5892           new flow)
5893         * (pic16_getJumptabpCode): NEW, needed in...
5894         * (LinkFlow): fixed handling of jumptables, calls and conditional
5895           branches
5896         * (pic16_InsertCommentAfter): NEW
5897         * (pic16_pCodeReplace): made verbose and flow preserving
5898         * (AnalyzeFlow): added call to data flow analysis
5899         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
5900         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
5901         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
5902
5903 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5904
5905         * src/SDCCast.c (decorateType): fixed bug #1105626
5906
5907 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
5908
5909         * device/include/asm/pic16/features.h,
5910         * pic18f*.h headers,
5911         * device/include/pic16/adc.h,
5912         * device/include/pic16/delay.h,
5913         * device/include/pic16/i2c.h,
5914         * device/include/pic16/malloc.h,
5915         * device/include/pic16/stdio.h,
5916         * device/include/pic16/stdlib.h,
5917         * device/include/pic16/string.h,
5918         * device/lib/pic16/libc/stdio/printf_tiny.c,
5919         * device/lib/pic16/libc/stdio/printf_small.c,
5920         * device/lib/pic16/libc/stdio/strmgpsim.c,
5921         * device/lib/pic16/libc/stdio/strmmssp.c,
5922         * device/lib/pic16/libc/stdio/strmusart.c,
5923         * device/lib/pic16/libc/stdio/vfprintf.c,
5924         * device/lib/pic16/libc/stdlib/ltoa.c,
5925         * device/lib/pic16/libc/stdlib/putchar.c,
5926         * device/lib/pic16/libc/stdlib/x_ftoa.c,
5927         * device/lib/pic16/libc/stdlib/memchrpgm.c,
5928         * device/lib/pic16/libc/stdlib/memchrram.c,
5929         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
5930         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
5931         * device/lib/pic16/libio/adc/adcbusy.c,
5932         * device/lib/pic16/libio/adc/adcread.c,
5933         * device/lib/pic16/libio/adc/adcsetch.c,
5934         * device/lib/pic16/libio/usart/ubaud.c,
5935         * device/lib/pic16/libio/usart/ubusy.c,
5936         * device/lib/pic16/libio/usart/udrdy.c,
5937         * device/lib/pic16/libio/usart/uopen.c,
5938         * device/lib/pic16/libio/usart/uputc.c,
5939         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
5940         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
5941         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
5942         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
5943         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
5944         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
5945         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
5946         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
5947         specific keywords to double underlined form,
5948         * device/lib/pic16/libc/Makefile.rules,
5949         * device/lib/pic16/libsdcc/Makefile.rules,
5950         * device/lib/pic16/libm/Makefile,
5951         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
5952         to compile with C standard set in Makefile.common
5953         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
5954         rand.c and crc.c in compilation process,
5955         * device/lib/pic16/libsdcc/int/divuint.c,
5956         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
5957         `c' from signed to unsigned,
5958         * device/lib/pic16/startup/crt0.c,
5959         * device/lib/pic16/startup/crt0i.c,
5960         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
5961         keywords to double underlined form, bug fixes in _do_cinit function
5962         which prevented the correct initialization of the .idata segment,
5963         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
5964         core to enter a infinite loop
5965         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
5966
5967 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5968
5969         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
5970
5971 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5972
5973         * device/include/Makefile.in: add support for hc08 subdirectory
5974         * device/include/hc08/: new subdirectory
5975         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
5976         Lucas Loizaga, thanks!
5977         * device/include/hc08/mc68hc908qy.h,
5978         * device/include/hc08/mc68hc908gp32.h,
5979         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
5980         their own directory. Changed internal macro names to use the compiler
5981         reserved namespace. Changed SDCC specific keywords to double
5982         underlined form.
5983         * device/include/math.h,
5984         * device/include/malloc.h,
5985         * device/include/stdarg.h,
5986         * device/include/stdbool.h
5987         * device/include/string.h,
5988         * device/include/tinibios.h,
5989         * device/include/ds400rom.h,
5990         * device/include/8051.h,
5991         * device/include/8052.h,
5992         * device/include/80c51xa.h,
5993         * device/include/at89c55.h,
5994         * device/include/at89S8252.h,
5995         * device/include/at89x51.h,
5996         * device/include/at89x52.h,
5997         * device/include/ds80c390.h,
5998         * device/include/reg764.h,
5999         * device/include/regc515c.h,
6000         * device/include/sab80515.h,
6001         * device/include/mcs51/c8051f000.h,
6002         * device/include/mcs51/c8051f018.h,
6003         * device/include/mcs51/c8051f020.h,
6004         * device/include/mcs51/c8051f040.h,
6005         * device/include/mcs51/c8051f060.h,
6006         * device/include/mcs51/c8051f120.h,
6007         * device/include/mcs51/c8051f300.h,
6008         * device/include/mcs51/c8051f310.h,
6009         * device/include/mcs51/c8051f320.h,
6010         * device/include/mcs51/c8051f330.h,
6011         * device/include/mcs51/c8051f350.h,
6012         * device/include/z180.h: Changed SDCC specific keywords to double
6013         underlined form.
6014
6015 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
6016
6017         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
6018         18F4455,
6019         * (pic16_assignConfigWordValue): disable testing of configuration
6020         register value with config mask,
6021         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
6022         function with port->fun_prefix,
6023         * (genFunction): when generating a naked interrupt function never
6024         create an absolute segment placed in interrupt vector address, place
6025         the actual interrupt function at IVA instead, when an interrupt
6026         function is generated with unspecified interrupt then do not create
6027         the absolute section,
6028         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
6029         code for generating a call to generic pointer get/put function with
6030         a call to function pic16_callGenericPointer(),
6031         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
6032         the call to the generic pointer get/put functions with prefixing the
6033         function name with port->fun_prefix,
6034         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
6035         * src/pic16/main.c (_process_pragma): prefix function with
6036         port->fun_prefix,
6037         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
6038         calling assembler, old 18Fxxxx macro is deprecated,
6039         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
6040         PC_ASMDIR in while condition,
6041         * (findInstruction): add PC_ASMDIR in while condition,
6042         * (buildCallTree): prefix main with port->fun_prefix,
6043         * (pic16_pCode2str): fixed bug that didn't emit the memory access
6044         identifier for variable with banked access in instructions BTFSS,
6045         BTFSC, BCF, BSF, BTG
6046         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
6047         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
6048         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
6049         perform optimization when enviroment variable NO_REG_OPT is set,
6050         * (insideLRBlock): NEW, return 1 if register is inside an
6051         INF_LOCALREGS block,
6052         * (RemoveRegFromLRBlock): remove a register that is completely
6053         eliminated by register optimization, but it is still left in local
6054         register store/restore in/from stack block,
6055         * (Remove2pcodes): after removing register, check to see if it
6056         should be removed from local register store/restore in/from stack
6057         block,
6058         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
6059         DUMMY_READ_VOLATILE,
6060
6061         * device/include/pic16/adc.h: minor prototype modifications and
6062         update,
6063         * device/include/pic16/malloc.h: added GPL notice various
6064         modifications,
6065         * device/include/pic16/stdint.h: NEW, standard header for ints
6066         * device/include/pic16/delay.h: NEW, header for delay functions,
6067         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
6068         delay1mtcy,
6069         * device/include/pic16/signal.h: NEW, header providing helper macros
6070         for implementing signal handlers,
6071         * device/include/pic16/stdio.h: added prototypes for functions,
6072         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
6073         prototypes for stdin and stdout, added macro PUTCHAR to
6074         automatically implement putchar function prototype,
6075         * device/include/pic16/usart.h: modified and updated USART library,
6076         * device/lib/pic16/libio/adc/,
6077         * device/lib/pic16/libio/i2c: some modifications to improve library
6078         performance,
6079         * device/lib/pic16/libc/stdio/: modifications for the new printf*
6080         family of functions,
6081         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
6082         family of functions and other sources,
6083         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
6084         of the PIC18Fxx[28] devices,
6085         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
6086         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
6087         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
6088         _do_cinit function, because the previous failed when local variables
6089         where not placed in the same memory bank,
6090         * device/lib/pic16/libsdcc/char/: various modifications to improve
6091         library performance,
6092         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
6093         information on the new functions of the c library and more...
6094
6095 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6096
6097         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
6098
6099 2005-03-26 Raphael Neider <rneider AT web.de>
6100
6101         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
6102           if condition == CARRY)
6103         * (genCmp): adapted to new genSkipc semantics
6104         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
6105           on rIfx (genCmp was broken)
6106
6107 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6108
6109         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
6110         * src/z80/main.c (_keywords[]),
6111         * src/SDCCglobal.h (struct options),
6112         * src/SDCC.y,
6113         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
6114         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
6115         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
6116         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
6117         always available in leading double underscore form. The C99 support is
6118         mostly missing, but it's a start.
6119         * support/regression/tests/bug-227710.c: fixed nonconforming use of
6120         reserved identifier "__data".
6121
6122 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6123
6124         * src/mcs51/peeph.def: fixed bug 1170013
6125
6126 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
6127
6128         * device/include/mcs51reg.h: fixed bug 842007
6129
6130 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6131
6132         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
6133         last time.
6134
6135 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6136
6137         * src/port.h (struct PORT),
6138         * src/avr/ralloc.c (avr_assignRegisters),
6139         * src/avr/main.c,
6140         * src/ds390/ralloc.c (ds390_assignRegisters),
6141         * src/ds390/main.c,
6142         * src/hc08/ralloc.c (hc08_assignRegisters),
6143         * src/hc08/main.c,
6144         * src/mcs51/ralloc.c (mcs51_assignRegisters),
6145         * src/mcs51/main.c,
6146         * src/pic/ralloc.c (pic14_assignRegisters),
6147         * src/pic/main.c,
6148         * src/pic16/ralloc.c (pic16_assignRegisters),
6149         * src/pic16/main.c,
6150         * src/xa51/ralloc.c (xa51_assignRegisters),
6151         * src/xa51/main.c,
6152         * src/z80/ralloc.c (z80_assignRegisters),
6153         * src/z80/ralloc.h,
6154         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
6155         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
6156         * src/SDCCcse.h,
6157         * src/SDCCdflow.c (computeDataFlow),
6158         * src/SDCCdflow.h,
6159         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
6160         * src/SDCCloop.h,
6161         * src/SDCCcflow.c (*),
6162         * src/SDCCcflow.h,
6163         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
6164         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
6165         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
6166         immedDom() returning wrong block; probably fixes bug #1160833)
6167
6168 2005-03-20 Borut Razem <borut.razem AT siol.net>
6169
6170         * support/scripts/inc2h.pl: WIN32 port
6171
6172 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
6173
6174         * device/lib/makefile.in: added abs.c and labs.c
6175
6176 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
6177
6178         * device/include/stdint.h: added
6179         * device/lib/abs.c: added
6180         * device/lib/labs.c: added
6181         * device/include/stdlib.h: added abs() and labs() prototypes
6182         * device/lib/libsdcc.lib: added abs and labs
6183         * device/include/float.h,
6184         * device/lib/_fsmul.c,
6185         * device/lib/printf_fast.c,
6186         * device/lib/printf_tiny.c: updated comments
6187
6188 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6189
6190         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
6191         bug #1164313
6192
6193 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6194
6195         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
6196         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
6197
6198 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
6199
6200         * device/lib/printf_large.c: removed inline assembly for portability and
6201           readability. Use printf_fast if speed or size are more important.
6202         * src/pic16/gen.c: removed conditions around use of DEBUGpc
6203         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
6204
6205 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
6206
6207         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
6208         prevent compiler warning
6209
6210 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6211
6212         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
6213         moved to level 0 and declared as static. Also they are explicit
6214         placed in access bank. This was necessery because some times they
6215         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
6216         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
6217         optimizations. Currently only compare to unsigned char is implemented,
6218         * src/pic16/gen.c: added fReturnIdx array,
6219         * (struct resolvedIfx) is moved to gen.h and made public,
6220         * (struct _G): added sregsAlloc and sregsAllocSet fields,
6221         * (aopForSym): added an optimization to directly store in stack of
6222         the operand of a SEND iCode,
6223         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
6224         but as registers instead (AOP_REG) using the fReturnIdx array,
6225         * (pic16_freeAsmop): remove the freed register from the
6226         _G.sregsAlloc field,
6227         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
6228         a compare of 'WREG',
6229         * (pic16_popGetTempRegCond): changed function prototype, now
6230         function takes also a bitVector argument v which holds the current
6231         set of registers that are allocated for stack access by aopForSym,
6232         registers allocated in aopForSym for accessing stack symbols are not
6233         any more part of the functions usedRegs field,
6234         * (genCall): some times aopOp is called for a stack variable to be
6235         send, aopForSym might perform the push, if this is true make sure
6236         that genCall doesn't push the variable twice by testing _G.resDirect,
6237         * (genFunction): changed testing for unspecified interrupt number
6238         from 256 to INTNO_UNSPEC,
6239         * modified selection scheme of frame pointer generation. Previously
6240         if function did use local registers a frame pointer was generated,
6241         now a frame pointer is generated only if function has arguments
6242         (that need PLUSW2 register access), or has stack arguments, or the
6243         compiler is not instructed to omit the frame pointer,
6244         * (genEndFunction): before restoring local registers that were saved
6245         in the function preamble, also restore the registers that *might*
6246         have been allocated for stack access,
6247         * (genRet): removed some old comments,
6248         * (genCmp, the active (RN's) version): added a call to the
6249         pic16_genCmp_special function to perform the compare with a more
6250         robust and optimized way,
6251         * (genInline): a feature has been added in inline code generation,
6252         which allows a wildcard variable substitution when writing inline
6253         assembly. Code is incomplete and experimental therefore undocumented,
6254         * (genCast): changed order of aopOp for result and right to allow
6255         aopForSym to directly load the result if possible,
6256         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
6257         perform an optimized compare on some selected special occasions,
6258         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
6259         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
6260         generate an IVT any more,
6261         * src/pic16/main.c (pic16_optionsTable): added command line option
6262         --optimize-cmp,
6263         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
6264         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
6265         macros,
6266         * src/pic16/NOTES: Raphael Neider added in list of active developers
6267         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
6268         jumptable_end to prevent bug #,
6269         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
6270         inCond and outCond fields,
6271         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
6272         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
6273         turn off register spilling,
6274         * (packRegsForOneUse): synced with other ports' versions although it
6275         is not used currently,
6276         * (pic16_packRegisters): added an optimization while reading
6277         structure bitfields, some registers may be saved (malloc code is
6278         decreased by 80 bytes)
6279
6280 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
6281
6282         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
6283         left is a bitfield, if yes, then don't optimize assignment. Perhaps
6284         this can be optimized more?
6285
6286 2005-03-10 Raphael Neider <rneider AT web.de>
6287
6288         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
6289           genNearPointerGet): (hopefully) fixed access to bitfields via
6290           pointers (p->bitN = x; and x = p->bitN; failed)
6291
6292 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
6293
6294         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
6295
6296 2005-03-09 Raphael Neider <rneider AT web.de>
6297
6298         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
6299
6300 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
6301
6302         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
6303         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
6304           (regTypeNum): set REG_BIT type if necessary
6305         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
6306         * support/regression/tests/critical.c: check bug 1144613
6307
6308 2005-03-02 Raphael Neider <rneider AT web.de>
6309
6310         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
6311
6312 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6313
6314         * src/avr/ralloc.c (serialRegAssign),
6315         * src/ds390/ralloc.c (serialRegAssign),
6316         * src/hc08/ralloc.c (serialRegAssign),
6317         * src/mcs51/ralloc.c (serialRegAssign),
6318         * src/pic/ralloc.c (serialRegAssign),
6319         * src/pic16/ralloc.c (serialRegAssign),
6320         * src/xa51/ralloc.c (serialRegAssign),
6321         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
6322
6323 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
6324
6325         * src/SDCCast.c (decorateType): fixed bug 1124787
6326
6327 2005-02-20 Hubert Sack <sack AT digiplan.de>
6328         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6329
6330         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
6331         patch #1121755
6332
6333 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6334
6335         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
6336         to keep the correct label reference count when adding/removing references
6337         to labels. A peephole file using this is appended to patch #1144962.
6338
6339 2005-02-14 Raphael Neider <rneider AT web.de>
6340
6341         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
6342         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
6343         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
6344           retrievals of result operand's value on assignment
6345
6346 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
6347
6348         * device/include/pic16/string.h: modified prototype for memccpy()
6349         to memccpy(void *, void *, char, size_t)
6350         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
6351         check whether to omit frame pointer or not,
6352         * (genInline): convert all occurences of "\n" to LF in inline
6353         assembler blocks, this helps formatting the inline text,
6354         * (pic16_loadFSR0): modified prototype,
6355         * (genNearPointerGet, genNearPointerSet): reorganization of code,
6356         removed some 8051 legacy code,
6357         * (genPackBits): enabled handling bitfields exceeding one byte in size,
6358         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
6359         before allocating temporary registers in functions,
6360
6361 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6362
6363         * support/regression/tests/bitvars.c: corrected the "fix"
6364
6365 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6366
6367         * support/regression/tests/bitvars.c,
6368         * support/regression/tests/bitwise.c,
6369         * support/regression/tests/rotate.c: "fixed" problems on Alpha
6370
6371 2005-02-10 Raphael Neider <rneider AT web.de>
6372
6373         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
6374           different size for Alpha
6375         * src/pic16/gen.c (genCmpEq) : improved compare with 0
6376
6377 2005-02-09 Raphael Neider <rneider AT web.de>
6378
6379         * src/SDCC.lex(doPragma) : save and restore warning options as well
6380           (also added new stack plus clone- and copyAndFreeSDCCERRG())
6381         * have #pragma less_pedantic set the errorlevel to WARNING
6382           (fixes #1117001)
6383         * (cloneOptimize) : fixed wrong malloc's size
6384         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
6385           facilitate correct handling of #pragma (save|restore)
6386
6387 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6388
6389         * src/mcs51/gen.c: removed non-standard C nameless struct/union
6390
6391 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
6392
6393         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
6394
6395 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
6396
6397         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
6398
6399 2005-02-02 Raphael Neider <rneider AT web.de>
6400
6401         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
6402         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
6403         * (pic16_storeForReturn): fixed to allow returning function pointers
6404         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
6405         * device/include/pic16/{stddef.h,stdbool.h}: added
6406
6407 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
6408
6409         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
6410
6411 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
6412
6413         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
6414         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
6415          appeared to be required
6416
6417 2005-01-31 Borut Razem <borut.razem AT siol.net>
6418
6419         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
6420           include/mcs51 and include/z80 directories to the package
6421
6422 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6423
6424         * src/hc08/gen.c (genFunction): fixed bug #1112752
6425
6426 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6427
6428         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
6429
6430 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6431
6432         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
6433
6434 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
6435
6436         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
6437
6438 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
6439
6440         * device/include/c8051fxxx.h: removed these 6 files
6441         * device/include/mcs51/c8051fxxx.h: added these 11 new files
6442
6443 2005-01-26 Raphael Neider <rneider AT web.de>
6444
6445         * src/pic16/gen.c (genAssign): fixed assignment from longs
6446           in codespace (were cut to three bytes)
6447         * (genDummyRead): implemented (except for CODESPACE...),
6448           fixed bug #1108575
6449         * src/pic16/glue.c (emitStatistics): beautified
6450         * device/lib/pic16/libm/Makefile: added include path
6451
6452 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6453
6454         * src/z80/gen.c (aopPut): fixed bug #1103902
6455
6456 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6457
6458         * device/lib/expf.c: fixed bug #1095792
6459
6460 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
6461
6462         * device/lib/pic16/libm: added Math library sources
6463
6464 2005-01-24 Raphael Neider <rneider AT web.de>
6465
6466         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
6467           to enable upcast to pCodeOpReg2 (there is no type tag to
6468           differenciate the two and pic16_popGet2p cast into PCOR2)
6469         * src/pic16/main.c (_process_pragma): fixed another malloc bug
6470           (sizeof(sectNames) changed to sizeof(sectName))
6471           Both patches fix segfaults under MinGW.
6472
6473 2005-01-23 Raphael Neider <rneider AT web.de>
6474
6475         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
6476           Safe_[mc]?alloc()'ed variables
6477         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
6478           of (byte sized) temporaries (assign them to WREG for now)
6479         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
6480           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
6481           this might fix SIGSEGVs on MinGW...
6482         * src/SDCCopt.c (killDeadCode): restored original behaviour
6483           (volatile operands might get thrown away though)
6484
6485 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
6486
6487         * src/pic16/gen.c: fixed bug #1106975,
6488         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
6489         pointer update, INTCON is saved, global interrupts are disabled and
6490         restored after updateing TOS.
6491         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
6492         * added function attribute 'shadowregs' to take advantage of shadow
6493         registers,
6494         * added function attribute 'wparam' as an alternative to the wparam
6495         pragma,
6496         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
6497         user declares a non-ISR function as 'shadowregs',
6498         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
6499
6500 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
6501
6502         * .version: bumped version number to 2.4.8
6503         * device/lib/pic16/pics.all: list of PIC18F devices supported by
6504         pic16 port,
6505         * device/lib/pic16/libio/i2c/: I2C module support library,
6506         * device/include/pic16/i2c.h: I2C support library header,
6507         * device/lib/pic16/libc/stdio/: standard IO support sources,
6508         * (printf_small.c): printf_small() source, supports float print,
6509         * (printf_tiny.c): printf_tiny() source, does not support floats,
6510         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
6511         enable global optimizations for entire library source, other
6512         Makefiles in the source tree are also modified to reflect this,
6513         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
6514         function,
6515         * doc/sdccman.lyx: updated to reflect new changes,
6516         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
6517         sym->onStack if-case,
6518         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
6519         sbit, idata, _idata, xdata, _xdata,
6520         * added pragma library, to link an external library, (see doc),
6521         * removed command line options, --pomit-config-words, --pomit-ivt,
6522         --pleave-reset-vector,
6523         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
6524         when calling assembler to reflect memory model used, also define
6525         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
6526         reflect stack model used,
6527         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
6528         on stack return NULL,
6529
6530 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6531
6532         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
6533           of the operands is volatile. Fixes #1020220
6534
6535 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
6536
6537         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
6538         * (OptimizeRegUsage): make sure that there is really no other flow where
6539           the first pCode is used
6540
6541 2005-01-22 Raphael Neider <rneider AT web.de>
6542
6543         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
6544           to fix #1106967 (pCode->seq are not set up correctly)
6545
6546 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6547
6548         * src/SDCCglue.c (glue): make sure code area is declared before the
6549         static initialization area.
6550
6551 2005-01-21 Raphael Neider <rneider AT web.de>
6552
6553         * device/lib/Makefile.in: fixed test for pic16 install dir
6554         * device/lib/pic16/*/Makefile*: modified compile flags to enable
6555           optimizations
6556         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
6557           added --optimize-goto compiler switch and pragma wparam documentation
6558         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
6559         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
6560           and PRODH closing bug #1071770 (peephole optimizer)
6561
6562 2005-01-19 Raphael Neider <rneider AT web.de>
6563
6564         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
6565           cmdLine buffers (used when calling sdcpp...) are large enough
6566           (MAX_PATH=256 truncates arguments leading to system halts when
6567           used in MinGW...)
6568         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
6569         * (genUminus): rewritten to for efficiency
6570         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
6571           used uninitialized in some cases)
6572         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
6573           copy the third byte from the int -- now assumes 0x80 (data memory)
6574         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
6575           operands (genAddLit expects the iCode's operands to swapped as
6576           well), fixed leftover bytes (crashed for short left operands)
6577         * (pic16_genMinusDec): performance improvements, removed false
6578           PIC14 emitSKPNCs
6579         * (pic16_genMinus): fixed to cope with differently sized operands
6580         * src/pic16/glue.c (pic16_glue): added new banksel optimization
6581           for --obanksel > 1
6582         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
6583         * src/pic16/graph.[ch]: implementation of directed graphs, used by
6584           new banksel optimization
6585         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
6586           analysis for temporary registers (segfaults...)
6587         * src/pic16/peeph.def: added rule
6588
6589 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
6590
6591         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
6592         which converts a float number to its ASCII representation
6593         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
6594         functions to convert the fractional and integer part of a float to ASCII,
6595         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
6596         realloc.c): added _MALLOC_SPEC to explicit place variables in data
6597         ram
6598         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
6599         _STATMEM macros,
6600         * device/include/pic16/adc.h: added GPL info,
6601         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
6602         a pCodeOp as tested operand,
6603         * (genNearPointerGet): optimized bit testing, does not use
6604         intermediate register for bit value, test directly instead with
6605         BTFSS, BTFSC, works only for single bits,
6606         * (genpic16Code): dump the name of the iCode in the asm,
6607         * src/pic16/ralloc.c (decodeOp): removed static declaration and
6608         renamed to pic16_decodeOp,
6609         * (serialRegAssign): do not allocate a temporary register for iCode
6610         sequences that test a single bit for 1/0
6611
6612 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
6613
6614         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
6615         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
6616         access stack and frame pointers. They are initially assigned to
6617         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
6618         accessing SFRs. Updated all occurences of modification of stack or
6619         frame pointer in gen.c and pcode.c,
6620         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
6621         assigning of a literal value to pointers,
6622         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
6623         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
6624         selected
6625
6626 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
6627
6628         * doc/sdccman.lyx: update documentation about stack pragma, added
6629         some info for stack memory models
6630
6631 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6632
6633         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
6634
6635 2005-01-08 Raphael Neider <rneider AT web.de>
6636
6637         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
6638           udata sections to fix bug #1097823
6639
6640 2005-01-05 Raphael Neider <rneider AT web.de>
6641
6642         * src/pic16/gen.c (genGenericShift): added handling of differently
6643           sized left operand and result
6644
6645 2005-01-04 Raphael Neider <rneider AT web.de>
6646
6647         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
6648         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
6649           to hold the condition bit)
6650         * added new version of genCmp (old code available via #define)
6651         * added new version of genShiftLeft/genShiftRight in a generic
6652           way, now supports shifting by negative values
6653         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
6654           shiftCount (expected by genGenericShift)
6655         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
6656         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
6657           dump
6658         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
6659           is an invalid literal too...)
6660
6661 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
6662
6663         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
6664         from Raphael Neider,
6665         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
6666         for 8-bit literals. This fixes some literal operands which are sign
6667         extended to 16-bits ints when instruction needs only 8-bits.
6668
6669 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
6670
6671         * device/lib/logf.c: added mcs51 assembly version
6672         * device/lib/expf.c: added mcs51 assembly version
6673         * device/lib/_logexpf.c: new shared asm code for expf and logf
6674         * device/include/math.h: add defines for assembly math library
6675         * device/lib/Makefile.in: build new _logexpf.c
6676         * device/lib/libfloat.lib: use new _logexpf.c
6677
6678 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6679
6680         * src/pic/device.c
6681         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
6682           device types which have less than 0x7f registers.
6683
6684 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
6685
6686         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
6687
6688 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6689
6690         * device/lib/printf_fast.c: only build on supported arch.
6691         * device/lib/printf_tiny.c: only build on supported arch.
6692         * device/lib/printf_fast_f.c: only build if asm float lib
6693         * device/lib/_fsget1arg.c: only build if asm float lib
6694         * device/lib/_fsget2args.c: only build if asm float lib
6695         * device/lib/_fsnormalize.c: only build if asm float lib
6696         * device/lib/_fsreturnval.c: only build if asm float lib
6697         * device/lib/_fsrshift.c: only build if asm float lib
6698         * device/lib/_fsswapargs.c: only build if asm float lib
6699         * device/include/stdio.h: don't provide print_fast,
6700           print_fast_f, print_tiny prototypes if --xstack used
6701
6702 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
6703
6704         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
6705         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
6706           to the SOURCES
6707
6708 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
6709
6710         * device/lib/printf_fast_f.c: same as printf_fast, but
6711           with floating point enabled
6712         * device/lib/printf_fast.c: minor tweaks
6713         * device/include/stdio.h: add printf_fast_f
6714
6715 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6716
6717         * src/SDCCmain.c: make --float-reent default for mcs51
6718         * device/lib/_fsadd.c: added mcs51 assembly version
6719         * device/lib/_fssub.c: added mcs51 assembly version
6720         * device/lib/_fsmul.c: added mcs51 assembly version
6721         * device/lib/_fsdiv.c: added mcs51 assembly version
6722         * device/lib/_fseq.c: added mcs51 assembly version
6723         * device/lib/_fsneq.c: added mcs51 assembly version
6724         * device/lib/_fsgt.c: added mcs51 assembly version
6725         * device/lib/_fslt.c: added mcs51 assembly version
6726         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
6727         * device/lib/Makefile.in: add _fscmp to build
6728         * device/lib/libfloat.lib: add _fscmp to build
6729
6730 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
6731
6732         * device/lib/_fs2slong.c: added mcs51 assembly version
6733         * device/lib/_fs2sint.c: added mcs51 assembly version
6734         * device/lib/_fs2schar.c: added mcs51 assembly version
6735         * device/lib/_fs2ulong.c: added mcs51 assembly version
6736         * device/lib/_fs2uint.c: added mcs51 assembly version
6737         * device/lib/_fs2uchar.c: added mcs51 assembly version
6738         * device/lib/_slong2fs.c: added mcs51 assembly version
6739         * device/lib/_sint2fs.c: added mcs51 assembly version
6740         * device/lib/_schar2fs.c: added mcs51 assembly version
6741         * device/lib/_ulong2fs.c: added mcs51 assembly version
6742         * device/lib/_uint2fs.c: added mcs51 assembly version
6743         * device/lib/_uchar2fs.c: added mcs51 assembly version
6744         * device/include/float.h: added #define to select asm vs c
6745
6746 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
6747
6748         * device/lib/printf_fast.c: improvements to float output
6749         * device/include/float.h: add defines for assembly float library
6750         * device/lib/_fsget1arg.c: receive 1 float arg
6751         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
6752         * device/lib/_fsnormalize.c: normalize a float
6753         * device/lib/_fsreturnval.c: return float, various helper routines
6754         * device/lib/_fsrshift.c: right shift a float's mantissa
6755         * device/lib/_fsswapargs.c: swap 2 floats
6756         * device/lib/Makefile.in: build these 6 new files for mcs51
6757         * device/lib/libfloat.lib: add these 6 files to the library
6758
6759 2004-12-26 Borut Razem <borut.razem AT siol.net>
6760
6761         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
6762           built by gcc 3.4.2
6763
6764 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
6765
6766         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
6767           and fully reentrant and register bank neutral.
6768         * device/lib/printf_fast.c: added float (not enabled by default),
6769           added compact/slower integer (also not enabled by default),
6770           improved size/speed of fast integer code, other minor changes
6771         * device/include/stdio.h, device/lib/Makefile.in,
6772           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
6773
6774 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
6775
6776         * src/pic16/pcode.c: declaring variables other than at the start of a
6777           block is not supported in C by VC6.
6778
6779 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
6780
6781         * applied a previous patch from Raphael Neider that wasn't included
6782         in the previous commits, which fixes infinite loops within jumptable
6783         improvements,
6784         * made some fixes that previous patches introduced
6785
6786 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
6787
6788         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
6789         that fixes an issue with AOP_PCODE asmop's offset,
6790         * (pic16_popCopyReg): update instance field too,
6791         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
6792         function of pic port,
6793         * (genCmp, genAnd, genAssign),
6794         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
6795
6796 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
6797
6798         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
6799         variables initial values to idata section,
6800         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
6801         variables in some functions. This utilizes parmBytes field of iCode
6802         structure to hold the offset of the variable in stack. (might be
6803         able to use the stack field too?)
6804         * applied patch from Raphael Neider # ### , # ###
6805         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
6806         variable initial values in idata section,
6807         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
6808         for static variables with initial value
6809         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
6810         applied fix in while loop from Raphael Neider.
6811
6812 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
6813
6814         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
6815         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
6816         * src/ds390/ralloc.c (serialRegAssign): spill bits
6817         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
6818         * support/Util/SDCCerr.c,
6819         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
6820         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
6821         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
6822
6823 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
6824
6825         * device/include/sdcc-lib.h: inserted LGPL, added includes
6826           asm/ds390/features.h and asm/mcs51/features.h
6827         * device/include/asm/default/features.h,
6828         * device/include/asm/gbz80/features.h,
6829         * device/include/asm/z80/features.h: added empty _AUTOMEM
6830           and _STATMEM
6831         * device/include/asm/ds390/features.h,
6832         * device/include/asm/mcs51/features.h: added files with defines for
6833           _AUTOMEM and _STATMEM indicating automatic and static storage class
6834         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
6835         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
6836         * src/SDCCicode.c (geniCodeCast),
6837         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
6838         * src/SDCCloop.c (loopInduction): removed unused variable lr
6839         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
6840           to convertToFcall to include char modulo (RFE 1065037), added check
6841           if left operand is unsigned and use abs of literal value
6842         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
6843           as it doesn't work after conversion from peephole.def to peephole.rul
6844         * src/mcs51/gen.c (toBoolean): added check for size,
6845           (genModOneByte): optimized code for signed char modulo a literal
6846           power of 2 (thanks to Hubert Sack),
6847           (genRRC): removed unnecessary "clr c",
6848           (genRLC): replaced "add a,acc" with cheaper "rlc a"
6849         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
6850           jump optimization,
6851           swapped rules 256.c and 256.d,
6852           extended 256.d by using new multiple checks (thanks Erik),
6853           added rules 256.e and 256.f,
6854           updated rule 261.a and 261.b to new generated code
6855         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
6856
6857 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6858
6859         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
6860           induction related bugs, including first part of bug #1074377
6861
6862 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
6863
6864         * applied patch from bug-report #1076292,
6865         * applied patches for genAnd and Goto-optimizations for Raphael
6866         Neider,
6867         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
6868         dump a less iCode information,
6869         * src/pic16/device.h (pic16_options_t): added field debgen,
6870         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
6871         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
6872         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
6873         puclic,
6874         * (various functions): added macros FENTRY and FENTRY2 to functions,
6875         to emit function prologue,
6876         * (various functions): fixed indentation,
6877         * (genNearPointerGet): fixed loading of FSR0,
6878         * (genPackBits): applied patch from Raphael Neider to fix updating
6879         of FSR0 and touching only the modified bits,
6880         * src/pic16/genarith.c (various functions): added macros FENTRY to
6881         emit function prologue in comments,
6882         * src/pic16/pcode.h: added functions debugf2, debugf3,
6883         * src/pic16/ralloc.c: partial fix for packForPush caused
6884         segmentation fault,
6885
6886 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6887
6888         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
6889           <stsp AT users.sourceforge.net> with reversed byte order
6890         * support/regression/tests/rotate.c: added (ds390 skips some tests)
6891
6892 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6893
6894         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
6895           bug #1074377
6896         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
6897         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
6898
6899 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
6900
6901         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
6902
6903 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6904
6905         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
6906           conditions,
6907           (setFromConditionArgs): friendly operand parser for peephole rules,
6908           (operandBaseName, operandsNotRelated): new peephole condition
6909           "operandsNotRelated" -- similar to "operandsNotSame", but takes
6910           architecture specific register naming into account, handles n-way
6911           comparisons, and supports quoted literals
6912         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
6913
6914 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6915
6916         * src/mcs51/peeph.def: fixed bug #1076940
6917
6918 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
6919
6920         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
6921
6922 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6923
6924         Adding support for replacing ljmps with sjmps in jumptables
6925         generated for switch statements. For now you need to set the
6926         environment variable SDCC_SJMP_JUMPTABLE to enable this.
6927         Now 4 algorithms for mcs51 jumptable generation are used:
6928         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
6929         addresses loaded pc-relative for up to 112 cases and stack-pushing
6930         target addresses loaded with offset from dptr for up to 256 cases.
6931
6932         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
6933         * src/mcs51/main.c: adapted constants for switch table generation
6934         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
6935
6936 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
6937
6938         * device/lib/printf_large.c (_print_format): fixed bug 1073386
6939         * support/regression/tests/bug1057979.c: added test for bug 1073386
6940
6941 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
6942
6943         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
6944         compilers
6945
6946 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
6947
6948         * src/pic16/device.h,
6949         * src/pic16/genarith.c,
6950         * src/pic16/glue.c,
6951         * src/pic16/main.c,
6952         * src/pic16/pcode.c: applied patches #1068154 and #1070213
6953
6954 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
6955
6956         Large cummulative patch for pic16 port.
6957         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
6958         to call when a stack overflow occurs,
6959         * (malloc.h): added CVS Id tag,
6960         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
6961         variable,
6962         * added libc directory. The current version of LibC contains string
6963         functions, ctype functions and macros and some functions of the
6964         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
6965         be extensively tested in the future. Standard disclaimer here.
6966         Library is not automatically build yet. But one can build it by
6967         invoking 'make' inside the libc directory.
6968         * added ADC library under libio. Preliminary version yet.
6969
6970         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
6971         * src/pic16/gen.c (aopForRemat): asmop size is filled by
6972         aopForRemat() now and not by pic16_aopOp(),
6973         * (pic16_popGetTempReg): removed warning messgae when allocating
6974         temporary registers, its a buggy feature and will be removed,
6975         * (pic16_popGet): set register instance field in AOP_CRY,
6976         * (pic16_outBitC): fixed for results in size greater than 1,
6977         * (genUminusFloat): fixed for pic16, ported code from mcs51,
6978         * (pic16_storeForReturn): optimized return of 0,
6979         * (genCmp): experimental code for new genCmp which uses PIC18's
6980         special compare&skip instructions. Initial tests fail some times
6981         with variables grater than 1 byte in size, so new code is disabled,
6982         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
6983         a single bit,
6984         * (genCast): began a fix to optimize the casting of a bit to another
6985         bit, now assigning a bitfield to another bitfield will fail, sorry,
6986         * src/pic16/main.c: disabled the use of lr-support feature,
6987         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
6988         * added some function prototypes, added function _debugf prototype,
6989         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
6990         bits with offset (case PO_GPR_BIT),
6991         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
6992         command line,
6993         * (isBankInstruction): modified to return 0 for no banking instruction,
6994         and 1 for banking instruction,
6995         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
6996         caused stop processing pCodes after a inline assembly block,
6997         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
6998         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
6999         registers when it shouldn't,
7000         * src/pic16/ralloc.c (allocReg): add preliminary support for
7001         supporting a limited set of temporary registers,
7002
7003 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7004
7005         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
7006           genDataPointerSet): ensure assignments always copy in MSB to LSB
7007           order,
7008           (loadRegFromAop): recognize CLRH optimization,
7009           (genFunction): optimize RECEIVE iCodes in reentrant functions
7010
7011 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7012
7013         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
7014           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
7015           selected.
7016         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
7017         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
7018           contiguous with data
7019
7020 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7021
7022         * device/lib/_gptrget.c (_gptrget),
7023         * device/lib/_gptrgetc.c (_gptrgetc),
7024         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
7025           instead of sjmp to ret
7026         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
7027           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
7028
7029 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
7030
7031         * .version: bumped version to 2.4.7
7032         * device/lib/_gptrget.c (_gptrget): is now _naked
7033         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
7034         * device/lib/_gptrput.c (_gptrput): is now _naked
7035         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
7036           (createFunction): fixed xstack
7037         * src/SDCCglue.c (emitMaps): set allocation required for bit area
7038         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
7039           or bit either,
7040           (geniCodeCritical): store original interrupt state in an iTemp bit
7041           var unless stack-auto
7042         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
7043         * src/SDCCmain.c (setIncludePath): added include/target to search path
7044         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
7045         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
7046           prototype,
7047           (processFuncArgs): put bit vars in bit area
7048         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
7049           unsaveRBank): fixed xstack,
7050           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
7051           (genFunction, genEndFunction): fixed xstack,
7052           (genAssign): optimization don't walk backwards through mem
7053         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
7054         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
7055         * support/regression/Makefile: also make library (for stack-auto) when
7056           making "all" and added "test-mcs51-xstack-auto"
7057         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
7058         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
7059         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
7060         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
7061         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
7062           make-library by MAKE_LIBRARY
7063         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
7064           regression tests for xstack
7065         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
7066         * support/regression/tests/critical.c: test for critical on mcs51
7067
7068 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7069
7070         * support/regression/ports/ucz80/spec.mk: use include and lib files from
7071           built version of sdcc instead of installed version
7072
7073 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
7074
7075         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
7076         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
7077           vprintf.c now
7078         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
7079         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
7080           WARNING: remove device/lib/build/z80/printf.o by hand when
7081           updating from previous build!
7082         * device/lib/z80/printf.c: updated comment
7083         * support/regression/tests/bug1057979.c: test all ports now
7084         * support/regression/tests/bug1065458.c: file added
7085
7086 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7087
7088         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
7089           *_start and *_end symbols for static functions
7090
7091 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
7092
7093         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
7094           and search crt0.o in all library paths,
7095           (setIncludePath): proper handling of --nostdinc,
7096           (setLibPath): proper handling of --nostdlib
7097         * support/regression/Makefile,
7098         * support/regression/ports/ds390/spec.mk,
7099         * support/regression/ports/gbz80/spec.mk,
7100         * support/regression/ports/hc08/spec.mk,
7101         * support/regression/ports/mcs51/spec.mk,
7102         * support/regression/ports/mcs51-large/spec.mk,
7103         * support/regression/ports/mcs51-stack-auto/spec.mk,
7104         * support/regression/ports/z80/spec.mk: use include and lib files from
7105           built version of sdcc instead of installed version
7106         * doc/sdccman.lyx: fixed typo in --nostdinc
7107
7108 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
7109
7110         * src/pic/pcode.c,
7111         * src/pic/device.c,
7112         * src/pic/ralloc.c,
7113         * src/pic/gen.c : added support to generate code for struct bit fields.
7114
7115 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
7116
7117         * as/xa51/xa_version.h,
7118         * device/include/errno.h,
7119         * device/include/regc515c.h,
7120         * device/lib/_itoa.c,
7121         * device/lib/_ltoa.c,
7122         * device/lib/ser_ir_cts_rts.c,
7123         * sim/ucsim/xa.src/glob.cc,
7124         * sim/ucsim/xa.src/inst_gen.cc,
7125         * sim/ucsim/xa.src/xa_bit.cc,
7126         * sim/ucsim/xa.src/xa_sfr.cc,
7127         * sim/ucsim/z80.src/inst_dd.cc,
7128         * sim/ucsim/z80.src/inst_fdcb.cc,
7129         * support/scripts/keil2sdcc.pl,
7130         * src/pic16/pic16.dsp,
7131         * src/pic16/pic16a.dsp: corrected cvs line endings
7132         * device/lib/printf_large.c: fixed bug 1057979
7133         * src/pic16/gen.c: fixed non-C standard code
7134         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
7135         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
7136         * support/regression/ports/mcs51/support.c: reload T1 asap
7137         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
7138           pdata use and clear idata startup behaviour
7139         * support/regression/tests/bug1057979.c: added
7140
7141 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
7142
7143         * device/examples/ds390/ow390/ad26.h,
7144         * device/examples/ds390/ow390/cnt1d.h,
7145         * device/examples/ds390/ow390/crcutil.c,
7146         * device/examples/ds390/ow390/ownet.h,
7147         * device/examples/ds390/ow390/owsesu.c,
7148         * device/examples/ds390/ow390/swt12.h,
7149         * device/examples/ds390/ow390/swtoper.c,
7150         * device/examples/ds390/ow390/temp10.h,
7151         * device/examples/ds390/ow390/thermodl.c,
7152         * device/examples/ds390/tinitalk/tinitalk.dsp,
7153         * device/examples/ds390/tinitalk/tinitalk.dsw,
7154         * device/examples/mcs51/clock/hw.h,
7155         * device/examples/mcs51/simple2/go.bat,
7156         * device/examples/serialcomm/windows/serial.h,
7157         * device/examples/xa51/dummy.c,
7158         * device/examples/xa51/hello.c,
7159         * device/include/80c51xa.h,
7160         * device/include/at89x051.h: corrected cvs line endings
7161
7162 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
7163
7164         * src/pic16/main.c (options): added command line --gstack, to trace
7165         stack over/under flows,
7166         * added pragma 'wparam' to allow passing first byte of function
7167         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
7168         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
7169         call to __gstack_test function and sets up the symbol as extern,
7170         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
7171         * popaop): added call to pic16_testStackOverflow,
7172         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
7173         wparamList list,
7174         * (genCall, genPcall): now all parameters are passed via stack
7175         except in functions that are pass to wparam pragma in which WREG is
7176         used too,
7177         * (genPcall): REENTRANT flag is checked to see if variable prototype
7178         contains reentrant keyword, don't call a non-reentrant function, via
7179         a reentrant function pointer or vice versa, functions are never
7180         passed via WREG,
7181         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
7182         D.Winkler,
7183         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
7184         SIGSEGV when accessing a NULL register stucture,
7185         * (pic16_printGPointerType): modified to handle UPPER modifier for
7186         function initializers, changed prototype of function to simpler one,
7187         * (pic16_printIvalFuncPtr): check to see if function is already
7188         added in externs list,
7189         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
7190         optimized a move from W to SFR with a move to the same register
7191         later after a CALL,
7192         * device/lib/pic16/debug: NEW directory, contains debug features
7193         which are enabled when linking with libdebug.lib, currently command
7194         line option --gstack enables stack pointer tracing for over/under
7195         flow, corresponding sources are in debug/gstack
7196
7197 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
7198
7199         * doc/sdccman.lyx: updated SDCC version,
7200         * (PIC16 port): update list of command line options,
7201         * src/pic16/device.h (structure pic16_options_t): added field gstack
7202         to enable stack overflow tracing on push/pops,
7203         * src/pic16/device.c (statistics structure): added statistics
7204         structure,
7205         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
7206         pic16_dump_int_registers): increase statistics counters for each
7207         * variable which is encountered
7208         * (pic16_dump_usection): emit each .udata variable to its own udata
7209         section,
7210         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
7211         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
7212         parameters via stack, otherwise use old scheme,
7213         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
7214         assembler output file,
7215         * src/pic16/main.c: added command line options --gstack to enable
7216         push/pop tracing for stack overflow,
7217         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
7218         instructions): added size of each instruction,
7219         * (pic16_countInstruction): estimate size of instructions in
7220         the_pFile list, inline assembly blocks are not counted,
7221         * (pic16_FixRegisterBanking): trace previous register usage, when
7222         banksel optimizations is greater than 0, don't emit a redudant
7223         banksel directive,
7224
7225 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
7226
7227         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
7228         * src/pic16/ralloc.c : applied same fix for pic16.
7229         * src/pic/gen.c : tidied it up a little.
7230
7231 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7232
7233         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
7234         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
7235
7236 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7237
7238         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
7239
7240 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7241
7242         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
7243         non-reentrant function __modsint in the interrupt function (thus
7244         corrupting math operations during serial I/O)
7245         * device/lib/ser_ir.c: as above, changed buffersize
7246         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
7247         256.c,d for zeroing
7248         * doc/Makefile: added option -t for rsync
7249
7250 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7251
7252         * src/SDCCast.h (struct ast),
7253         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
7254
7255 2004-10-20 Borut Razem <borut.razem AT siol.net>
7256
7257         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
7258         package
7259
7260 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
7261
7262         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
7263         makefile targets,
7264         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
7265         support functions to replace long sequences of MOVFF's from access
7266         bank registers to stack and vice versa,
7267         * src/pic16/device.h: added new field opt_flags, where optimization
7268         flags can be set to enable certain features,
7269         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
7270         * pBlock, (genFunction, genEndFunction): surroung loop for
7271         saving/loading used registers in stack with PC_INFO pCodes,
7272         INF_LREGS. Code in between can then be optimized by pCode optimizer
7273         to support function calls,
7274         * (genDataPointerSet): fixed bug which loaded float fields in
7275         structures with corrupt data,
7276         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
7277         in a standard way debug info on stderr. Feature used for developing
7278         and debugging only,
7279         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
7280         obsolete chunks of code,
7281         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
7282         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
7283         * pic16/src/pcode.c (pic16_newpCodeInfo,
7284         * (pic16_newpCodeOpLocalRegs),
7285         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
7286         feature,
7287         * (pic16_pCodeConstString): printing of the initial value of a
7288         symbol as a comment is inhibited since parsing was already done by
7289         copyStr and output is corrupt,
7290         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
7291
7292 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7293
7294         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
7295
7296 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
7297
7298         * as/mcs51/lkarea.c: removed old K&R style,
7299           (lnksect): changed check on boundary error,
7300           (lnksect2): changed check on boundary error,
7301           (lnksect2): extend XSTK to end of page if size = 1
7302         * as/mcs51/lkmain.c: removed old K&R style,
7303           (Areas51): create l_IRAM symbol
7304         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
7305         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
7306           model-mcs51-stack-auto, added model-mcs51-xstack-auto
7307         * device/lib/_mullong.c: added version to be compiled with xstack
7308         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
7309         * device/lib/mcs51/crtxclear.asm: clear pdata as well
7310         * device/lib/mcs51/crtxstack.asm: fixed comment
7311         * src/SDCCglue.c: maxInterrupts defaults to 0,
7312           (emitMaps): added pdata,
7313           (createInterruptVect): (re)moved default,
7314           (glue): added pdata,
7315           (glue): moved __start__xstack to XSTK with default size 1
7316         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
7317           and options.float_rent when options.stackAuto is set,
7318           (linkEdit): only write XDATA_NAME if provided on command line
7319         * src/SDCCmem.h,
7320         * src/SDCCmem.c: added pdata
7321         * src/port.h: added pdata_name to PORT
7322         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
7323           (saveRegisters, unsaveRegisters): removed usage of B,
7324           (genMinus): fixed accumulator clash,
7325           (genJumpTab): added comment, this needs another look
7326         * src/mcs51/gen.c: added check for "B in use" paranoia,
7327           added pushB() and popB()
7328         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
7329           chance
7330         * src/avr/main.c,
7331         * src/ds390/main.c,
7332         * src/hc08/main.c,
7333         * src/mcs51/main.c,
7334         * src/pic/main.c,
7335         * src/pic16/main.c,
7336         * src/xa51/main.c,
7337         * src/z80/main.c: (reset_regparms) made void parameter explicit and
7338           added PSEG (PAG,XDATA) or NULL to port specifier
7339         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
7340         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
7341           (_mcs51_genInitStartup): removed __start__xstack equ,
7342           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
7343         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
7344         * src/z80/gen.c (_rleAppend): fixed warnings
7345         * support/regression/tests/zeropad.c: added pdata test
7346         * .version: bumped to 2.4.6
7347
7348 2004-10-17 Borut Razem <borut.razem AT siol.net>
7349
7350         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
7351         as a part of nightly build
7352
7353 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
7354
7355         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
7356         WREG holds the first byte function parameters,
7357         * (aopForSym): take special case for symbols which are in FARSPACE
7358         but in CODESPACE too,
7359         * (assignResultValue): modified to take into account _G.useWreg,
7360         * (genCall): don't use wreg for parameter passing when function is
7361         declared as reentrant, too, added optimization INCF to stack
7362         pointer when stack parameter count is 1,
7363         * (genFunction, genEndFunction): refurnished and fixed to not using
7364         wreg for passing parameters when function has varargs or is
7365         reentrant, fixed bug with symbol name compare for generating
7366         functions in absolute address,
7367         * (pic16_storeForReturn): refurnished,
7368         * (genCmp): began writing a new version of the function, not ready
7369         yet, therefore it is disabled,
7370         * (genAssign): do not read code memory when assigning a function to
7371         a pointer function,
7372         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
7373         array of characters, not pointer,
7374         * (pic16initialComments): in debug mode emit an .ident directive for
7375         the assembler,
7376         * (_process_pragma): emit a new warning type (internal to pic16)
7377         when setting stack to default length, emit a similar warning when
7378         placing a function at absolute address and address is not word aligned
7379         * (_pic16_parseOptions): added 'return TRUE' statement,
7380         * (_pic16_linkEdit): if compiling a source, then add the source's
7381         file object, first in the list of objects to link,
7382
7383 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
7384
7385         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
7386         * src/pic/main.c : removed VC warning.
7387         * src/pic/gen.c : changed comment.
7388
7389 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
7390
7391         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
7392         reference to a deprecated symbol _GPTRREG was causing failure to
7393         link. Thanks G. M. Gallant for the info.
7394
7395 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
7396
7397         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
7398         comments for Bugs item #954788.
7399
7400 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
7401
7402         * src/pic16/device.c (pic16_dump_gsection,
7403         * pic16_groupRegistersInSection): handle symbols declared to be in
7404         access bank differently,
7405         * src/pic16/gen.c (struct _G): added field resDirect,
7406         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
7407         send values read from stack directly to result and don't allocate
7408         temporary values,
7409         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
7410         same registers,
7411         * (pic16_sameRegsOfs): NEW,
7412         * (freeAsmop): if _G.resDirect is set then do not mark registers as
7413         free because they were not allocated from temporary pool,
7414         * pic16_popRegFromString): workaround to fix a problem with
7415         allocating variables twice or never,
7416         * (genGenPointerGet): using PRODL instead of FSR0H,
7417         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
7418         instead of FSR0H,
7419         * (genAssign): take advantage of the _G.resDirect flag,
7420         * (genCast): around line 11844, use mov2f instead of directly
7421         MOVFF'ing between operands to account for literal values,
7422         * src/pic16/genutils.c: some new debug functions for gpsim have been
7423         added,
7424         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
7425         float with integer part only,
7426         * src/pic16/main.c (_process_pragma): handle pragma udata access to
7427         place variables in access bank
7428         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
7429         updated sources to reflect recent changes in gen.c
7430
7431 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
7432
7433         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
7434         sources that searched for headers in installation path, now the
7435         device/include/pic16 is used,
7436         * src/pic16/glue.c (pic16glue),
7437         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
7438         .line directives if not in debug mode, this suppresses assembler's
7439         warnings for ignored directives
7440
7441 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7442
7443         * src/port.h: made reset_regparms prototype void parameter explicit.
7444         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
7445         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
7446         * doc/sdccman.lyx: documented warning disabling and how to use
7447           printf_large to make it print floats.
7448         * device/include/stdbool.h: NEW
7449         * device/lib/_atof.c,
7450         * device/lib/_divuint.c,
7451         * device/lib/_divulong.c,
7452         * device/lib/expf.c,
7453         * device/lib/printf_large.c,
7454         * device/lib/sincosf.c,
7455         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
7456         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
7457           a completely reentrant lib.
7458
7459 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
7460
7461         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
7462         * device/include/pic16/stdio.h: fixed bug with colon
7463
7464 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
7465
7466         * device/include/pic16/stdio.h,
7467         * device/include/pic16/stdlib.h,
7468         * device/include/pic16/math.h: NEW
7469         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
7470         declared as _naked to reduce overhead
7471         * device/lib/Makefile.in (target port-specific-objects-pic16):
7472         changed * to *.* so to ignore the CVS directory,
7473         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
7474         stacked variables back in stack,
7475         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
7476         corruption
7477
7478 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
7479
7480         * .version: bumped version number to 2.4.5
7481         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
7482         * support/Util/SDCCerr.c (messages structure): added entry for
7483         W_POSSBUG2
7484
7485         Large cumulative patch for pic16 port and libraries.
7486         * device/include/pic16/sdcc-lib.h,
7487         * device/include/pic16/stdarg.h,
7488         * device/include/asm/pic16/features.h,
7489         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
7490         * device/include/pic16/float.h: changes reentrant keyword with
7491         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
7492         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
7493         updated target build-libraries to include objects from gptr,
7494         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
7495         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
7496         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
7497         all function headings,
7498         * src/SDCCmain.c: added global parameter userIncDirsSet,
7499         * (parseCmdLine): when option -I is encountered add directory to
7500         userIncDirsSet too,
7501         * src/version.awk: added space between control and long,
7502         * src/pic16/NOTES: added some notes for the port,
7503         * src/pic16/gen.c: added prototype for mov2fp function,
7504         * (fReturnpic16[]): properly named return value registers,
7505         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
7506         * (aopForSym): added code to handle symbols with onStack flag set,
7507         symbols onStack are allocated PTRSIZE bytes,
7508         * (aopFreeAsmop): handles special case where asmops are stack objects,
7509         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
7510         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
7511         added argument lock to trace flaws in allocating temporary registers
7512         when developing port,
7513         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
7514         * (pic16_popRegFromString): reenabled allocating a direct register
7515         from string,
7516         * (assignResultValue): various beautifications,
7517         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
7518         referenced function argument,
7519         * (genIpush): reenabled to allow stacked arguments, handles only
7520         ic->parmPush iCodes,
7521         * (genCall, genPcall): major changes to allow for variable argument
7522         functions, fixed a bug with falsely restoring stack pointer after
7523         returning from call,
7524         * (genFunction): pending code for critical function,
7525         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
7526         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
7527         * (genNearPointerGet): fixed bug with indirect reading, was always
7528         reading from INDF0
7529         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
7530         pointers,
7531         * (genAddrOf): rewrote code to take address of a stacked function parameter
7532         * (genCast): fixed casting to generic pointer type,
7533         * src/pic16/gen.h: added AOP_STA,
7534         * (struct asmop): added field stk,
7535         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
7536         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
7537         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
7538         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
7539         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
7540         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
7541         generic pointers,
7542         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
7543         and library paths,
7544         * (pic16_port structure): generic pointer size is set to 3,
7545         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
7546         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
7547         compiler warning,
7548         * src/pic16/ralloc.c (allocReg): prevent allocating register when
7549         operand is an iTemp,
7550
7551 2004-09-24 Martin Helmling <mh AT octo-soft.de>
7552
7553         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
7554         * debugger/mcs51/simi.c: addapt new syntax of s51
7555
7556 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
7557
7558         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
7559         * src/pic16/pcode.c: commented out some calls to free() in order to
7560         fix bug #989576,
7561
7562 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7563
7564         * src/SDCCicode.h,
7565         * src/SDCCicode.c (isiCodeInFunctionCall),
7566         * src/avr/ralloc.c (selectSpil),
7567         * src/pic/ralloc.c (selectSpil),
7568         * src/pic16/ralloc.c (selectSpil),
7569         * src/ds390/ralloc.c (selectSpil),
7570         * src/hc08/ralloc.c (selectSpil),
7571         * src/xa51/ralloc.c (selectSpil),
7572         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
7573         stack in the middle of a function call sequence (fixes bug #1020268)
7574         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
7575         costs associated with the minimum switch case.
7576
7577 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7578
7579         * src/SDCC.lex: fixed bug #1030549
7580
7581 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7582
7583         * src/SDCCcse.h (struct cseDef),
7584         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
7585         over a function call if the CSE is derived from a symbol whose
7586         address has been taken (fixes bug #1029883)
7587         * support/regression/tests/bug-1029883: a new regression test for
7588         this bug
7589
7590 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7591
7592         * src/hc08/gen.c (emitinline): fixed bug #1029778
7593         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
7594         to a cast object is no longer a syntax error ("fixes" bug #1030006,
7595         and starts toward RFE #905167)
7596
7597 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
7598
7599         * src/pic16/gen.c (mov2f): New function to move an operand to
7600         another without considering if it is a literal or a register,
7601         * (pic16_sameRegs): don't check if they are both AOP_REG,
7602         * (AccRsh): removed andmask=0 lines,
7603         * (genLeftShift): duplicated to be improved in future versions,
7604         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
7605         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
7606         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
7607         * (pic16initMnemonics): added initialization for POC_INFSNZW,
7608         * (insertBankSwitch): fixed inserting banksel directives algorithm
7609         for instructions that follow a skip instruction, this fixes a report
7610         for broken subtraction code generation,
7611         * src/pic16/ralloc.c (deassignLRs): do not free register if current
7612         iCode is a left op, just in case result and right share the same
7613         registers
7614
7615 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7616
7617         * src/hc08/main.c,
7618         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
7619         preservation of HX
7620         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
7621         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
7622         on 2004-09-12; it was buggy
7623
7624 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
7625
7626         * src/SDCCsymt.h: removed RESULT_CHECK
7627         * src/SDCCast.c,
7628         * src/SDCCglue.c,
7629         * src/SDCCval.c,
7630         * src/pic/glue.c,
7631         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
7632
7633 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
7634
7635         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
7636         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
7637         configuration values no more rejected by compiler, they are assigned
7638         to configuration registers with a warning message instead,
7639         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
7640         the for-loop so last conf register is emitted too,
7641         * (_pic16_initPaths): link library libsdcc.lib by default,
7642         * (_hasNativeMulFor): modified test for multiplication according to
7643         Raphael Neider's remarks. Integer multiplication is also done with
7644         support functions,
7645         * device/include/pic16/pic18fregs.h: corrected type error in while
7646         testing and including 18f6720 header file
7647
7648 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
7649
7650         * src/pic16/device.h (pic16_options): removed field use_crt,
7651         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
7652         until an optimization to handle single bits is added,
7653         * (pic16_loadFSR0): moved before genUnpackBits,
7654         * (genAnd): some white lines removed,
7655         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
7656         leave_reset flags in pic16_options when using crt modules,
7657
7658 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
7659
7660         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
7661           for bugs 898889 & 979599. Also used some safer print instructions.
7662
7663 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
7664
7665         * src/pic16/device.h (pic16_options_t): added field use_crt,
7666         crt_name, no_crt,
7667         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
7668         catch a probable future bug,
7669         * src/pic16/gen.c: aopIdx function commented out,
7670         * (genAssign): commented out old code which used aopIdx,
7671         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
7672         code, added if conditionals to take into account the --use-crt
7673         command line options,
7674         * src/pic16/main.c (pic16_optionsTable): added new command line
7675         options, --use-crt= and --no-crt,
7676         * (_pic16_linkEdit): now the proper crt object is added in the
7677         linker command line except than when --no-crt is specified,
7678         * src/pic16/pcode.c,
7679         * src/pic16/pcode.h: added some structures and functions for a new
7680         optimization scheme to compansate for instruction overhead between
7681         same iCodes, this scheme is currently under development and is not
7682         working in any way,
7683         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
7684         to && operator,
7685         * device/lib/pic16/startup/crt0i.c,
7686         * device/lib/pic16/startup/crt0iz.c: added global char variable
7687         __uflags to force the generation of an idata section
7688
7689 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
7690
7691         * doc/Makefile,
7692         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
7693         * doc/sdccman.lyx: updated sdcc version to 2.4.4
7694
7695 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7696
7697         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
7698         Frieder) and clarified the default code optimization mode
7699
7700 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7701
7702         * src/SDCC.lex (doPragma, process_pragma),
7703         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
7704         "opt_code_size", and "opt_code_balanced"
7705         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
7706         regrouped options by category, added support for category headers
7707         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
7708         and "--opt-code-size"
7709         * doc/sdccman.lyx: documented these new options and pragmas
7710         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
7711         preference into account
7712
7713 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7714
7715         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
7716           geniCodePreDec): Fixed bug 904237 by generating a warning
7717         * src/SDCCerr.h,
7718         * src/SDCCerr.c: added warning W_SIZEOF_VOID
7719
7720 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
7721
7722         * src/pic/device.c : When no max ram set validate full memory range.
7723         * src/pic/pcode.c,
7724         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
7725
7726 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7727
7728         * device/lib/_gptrget.c,
7729         * device/lib/_gptrput.c: updated comment
7730         * device/lib/calloc.c,
7731         * device/lib/free.c,
7732         * device/lib/malloc.c,
7733         * device/lib/realloc.c: added LGPL, made them reentrant-safe
7734         * src/SDCCcse.c (cseBBlock),
7735         * src/SDCCicode.c (printOperand, geniCodeArray),
7736         * src/SDCCicode.h (struct operand): fixed bug 868103
7737         * support/regression/tests/bug-868103.c: added
7738         * src/SDCCast.c (searchLitOp),
7739         * src/SDCCcse.h (struct cseDef),
7740         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
7741         * src/SDCCicode.h (struct operand),
7742         * src/SDCCsymt.h (struct sym_link),
7743         * src/avr/gen.c (hasInc),
7744         * src/ds390/gen.c (hasInc),
7745         * src/hc08/gen.c (genPlusIncr, hasInc),
7746         * src/mcs51/gen.c (hasInc),
7747         * src/pic16/glue.c (pic16_printIvalChar),
7748         * src/pic16/ralloc.c (regWithIdx),
7749         * src/xa51/gen.c (hasInc) : removed warnings
7750         * src/SDCCast.c (createBlock): added comment ???
7751         * src/hc08/ralloc.c: updated comments
7752
7753 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7754
7755         * doc/sdccman.lyx: updated section on switch statements, added
7756         section about semaphore locking
7757         * doc/Makefile: added option -info for latex2html
7758         * device/lib/_gptrget.c,
7759         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
7760
7761 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7762
7763         * src/pic/device.h,
7764         * src/pic/device.c,
7765         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
7766          maxram is less than 0x100.
7767
7768 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
7769
7770         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
7771
7772 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7773
7774         * src/port.h,
7775         * src/mcs51/main.c,
7776         * src/ds390/main.c,
7777         * src/z80/main.c,
7778         * src/hc08/main.c,
7779         * src/pic/main.c,
7780         * src/pic16/main.c,
7781         * src/avr/main.c,
7782         * src/xa51/main.c
7783         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
7784         a jump table is the best form for a switch statement, including
7785         automatic insertion of missing cases to make the case range
7786         continuous. Developed in collaboration with Frieder Ferlemann.
7787
7788 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7789
7790         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
7791         accumulator result if it needs sign extension
7792
7793 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7794
7795         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
7796
7797 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7798
7799         * device/lib/gbz80/printf.c,
7800         * device/lib/z80/printf.c: removed define for NULL
7801
7802 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
7803
7804         * as/xa51/xa_link.c,
7805         * device/examples/ds390/ow390/ad26.c,
7806         * device/examples/ds390/ow390/cnt1d.c,
7807         * device/examples/ds390/ow390/counter.c,
7808         * device/examples/ds390/ow390/ds2480.h,
7809         * device/examples/ds390/ow390/ds2480ut.c,
7810         * device/examples/ds390/ow390/findtype.c,
7811         * device/examples/ds390/ow390/gethumd.c,
7812         * device/examples/ds390/ow390/owllu.c,
7813         * device/examples/ds390/ow390/ownetu.c,
7814         * device/examples/ds390/ow390/swt12.c,
7815         * device/examples/ds390/ow390/swtloop.c,
7816         * device/examples/ds390/ow390/temp.c,
7817         * device/examples/ds390/ow390/temp10.c,
7818         * device/examples/ds390/ow390/thermo21.c,
7819         * device/examples/ds390/ow390/tinilnk.c,
7820         * device/examples/ds390/ow390/tstfind.c,
7821         * device/examples/serialcomm/windows/serial.cpp,
7822         * device/examples/serialcomm/windows/test_serialcomm.cpp,
7823         * device/include/reg51.h: fixed line endings for cvs
7824
7825 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7826
7827         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
7828         packRegsForAccUse, packRegisters): new accumulator register
7829         packing algorithm
7830         * support/regression/ports/hc08/support.c (_putchar): suppress
7831         warning of unused variable
7832         * src/SDCCicode.c: added SWAP entry to codeTable
7833
7834 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
7835
7836         * device/lib/sprintf.c: forgot to add this file before previous commit
7837
7838 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
7839
7840         * src/pic16/gen.c (genPackBits): added operand right in function
7841         parameters, load result directly if p_type is POINTER (that is
7842         called by genNearPointerSet)
7843         * (genUnPackBits): added operand left in function parameters,
7844         * (genNearPointerGet, genNearPointerSet): prevent the loading of
7845         FSR0 if accessing bitfields,
7846
7847 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
7848
7849         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
7850           _print_format; updated printf, sprintf, vsprintf
7851         * device/include/asm/default/features.h: corrected comment/define
7852         * device/lib/Makefile.in: added sprintf.c
7853         * device/lib/libsdcc.lib: added sprintf module
7854         * device/lib/printf_large.c,
7855         * device/lib/vprintf.c,
7856         * device/lib/sprintf.c: totally refactored printf_large and vprintf
7857           into these 3 files
7858         * support/regression/Makefile: changed ALL_PORTS into a usefull default
7859         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
7860         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
7861           hc08 test
7862         * support/regression/tests/zeropad.c: define idata as data for hc08
7863
7864 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7865
7866         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
7867         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
7868         labels are referenced at least once (even if a reference is not found)
7869         * src/hc08/gen.c (emitcode): set isComment flag for comments
7870         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
7871         loads), rules 6a..6b (optimize jumps to return)
7872
7873 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7874
7875         * device/lib/acosf.c (acosf),
7876         * device/lib/asinf.c (asinf),
7877         * device/lib/atanf.c (atanf),
7878         * device/lib/ceilf.c (ceilf),
7879         * device/lib/cosf.c (cosf),
7880         * device/lib/coshf.c (coshf),
7881         * device/lib/cotf.c (cotf),
7882         * device/lib/fabsf.c (fabsf),
7883         * device/lib/floorf.c (floorf),
7884         * device/lib/log10f.c (log10f),
7885         * device/lib/logf.c (logf),
7886         * device/lib/sinf.c (sinf),
7887         * device/lib/sinhf.c (sinhf),
7888         * device/lib/sqrtf.c (sqrtf),
7889         * device/lib/tanf.c (tanf),
7890         * device/lib/tanhf.c (tanhf),
7891         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
7892         replaced all instances of "reentrant" in the library functions
7893         defined in math.h with this macro.
7894         * support/regression/tests/float_trans.c: reenabled test for hc08
7895
7896 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
7897
7898         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
7899         erroneously deleted
7900
7901 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7902
7903         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
7904         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
7905         multi-byte volatile operands are used
7906         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
7907         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
7908         initialization to area GSINIT0 so that it would always precede
7909         any static initializers in GSINIT
7910         * support/regression/tests/zeropad.c: fixed idata define for hc08
7911         * support/regression/tests/bug-927659.c,
7912         * support/regression/tests/float_trans.c: disabled tests for hc08
7913         pending missing library routines
7914         * .version: increased version number to 2.4.4 - hc08 port now passes
7915         regression tests
7916
7917
7918 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
7919
7920         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
7921         * Makefile.common.in,
7922         * as/Makefile,
7923         * as/hc08/Makefile.in,
7924         * as/mcs51/Makefile.in,
7925         * as/z80/Makefile.in,
7926         * debugger/mcs51/Makefile.in,
7927         * device/include/Makefile.in,
7928         * device/lib/Makefile.in,
7929         * doc/Makefile,
7930         * link/Makefile,
7931         * link/z80/Makefile.in,
7932         * packihx/Makefile.in,
7933         * sim/ucsim/main_in.mk,
7934         * sim/ucsim/avr.src/Makefile.in,
7935         * sim/ucsim/doc/Makefile.in,
7936         * sim/ucsim/gui.src/serio.src/Makefile.in,
7937         * sim/ucsim/hc08.src/Makefile.in,
7938         * sim/ucsim/s51.src/Makefile.in,
7939         * sim/ucsim/xa.src/Makefile.in,
7940         * sim/ucsim/z80.src/Makefile.in,
7941         * src/Makefile.in,
7942         * support/cpp2/Makefile.in,
7943         * support/librarian/Makefile,
7944         * support/makebin/Makefile: added DESTDIR to the install path proposed
7945         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
7946         * doc/sdccman.lyx: added DESTDIR documentation
7947
7948 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
7949
7950         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
7951         instruction for interrupt handlers, use fast returns when returning
7952         from high priority interrupts
7953
7954 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7955
7956         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
7957         code generation
7958         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
7959         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
7960         bugs, ported much of Bernhard's code from mcs51
7961         * src/mcs51/gen.c (genSend),
7962         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
7963         than one when calling a reentrant function
7964         * device/lib/_mullong.c: defined an alternate struct layout for big
7965         endian ports (hc08)
7966
7967 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7968
7969         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
7970         test
7971
7972 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7973
7974         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
7975         are sane and complete before asking the port its prefered parameter
7976         passing method (fixes bug #1017633)
7977         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
7978         and _ret3
7979
7980 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7981
7982         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
7983         problem in bitfields >= 8 bits.
7984
7985 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7986
7987         * src/SDCCsymt.c: undid changes that were not meant to be committed
7988
7989 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7990
7991         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
7992
7993 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
7994
7995         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
7996           copied and wrong bit got inverted
7997
7998 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7999
8000         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
8001         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
8002         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
8003         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
8004         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
8005         assignments to bitfields at known addresses
8006         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
8007         reads from bitfields at known addresses
8008         * src/hc08/ralloc.c (packRegisters),
8009         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
8010         genhc08Code): optimize pointer get values used as conditionals
8011         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
8012         and branch
8013
8014 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8015
8016         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
8017         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
8018         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
8019         as conditionals
8020
8021 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8022
8023         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
8024
8025 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8026
8027         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
8028         related problems
8029
8030 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
8031
8032         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
8033
8034 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8035
8036         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
8037         mcs51 port
8038
8039 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
8040
8041         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
8042
8043 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8044
8045         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
8046         cases use more compact code.
8047
8048 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
8049
8050         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
8051
8052 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8053
8054         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
8055
8056 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8057
8058         * src/SDCCsymt.h,
8059         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
8060         parameter of changePointer() from symbol* to sym_link*
8061         * src/SDCCast.c (decorateType): call changePointer() for CAST op
8062         * src/SDCCsymt.c (compareType): void* type is castable to other
8063         pointers, but not necesarily an exact match.
8064         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
8065         is no longer blindly treated as an exact match.
8066         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
8067
8068 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
8069
8070         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
8071
8072 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
8073
8074         * src/pic/gen.c,
8075         * src/pic/pcode.c,
8076         * src/pic/ralloc.h,
8077         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
8078
8079 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
8080
8081         * src/pic/device.c,
8082         * src/pic/device.h,
8083         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
8084
8085 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8086
8087         * src/mcs51/gen.c (emitcode): fixed bug #992819
8088
8089 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
8090
8091         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
8092           there's no need to make it worse
8093
8094 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8095
8096         * src/mcs51/ralloc.c (deassignLR),
8097         * src/ds390/ralloc.c (deassignLR),
8098         * src/hc08/ralloc.c (deassignLR),
8099         * src/z80/ralloc.c (deassignLR),
8100         * src/pic/ralloc.c (deassignLR),
8101         * src/pic16/ralloc.c (deassignLR),
8102         * src/avr/ralloc.c (deassignLR),
8103         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
8104         rlivePoint): fixed another part of bug #971834
8105
8106 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8107
8108         * src/z80/main.c: enabled "critical" keyword
8109         * src/z80/mappings.i,
8110         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
8111         functions (fixes bug #979646)
8112         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
8113
8114 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8115
8116         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
8117           such as c:\mydir.
8118
8119 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
8120
8121         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
8122           doesn't disable too much optimizations
8123
8124 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8125
8126         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
8127
8128 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
8129
8130         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
8131
8132 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
8133
8134         * src/pic/gen.c tidied up tabs
8135         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
8136         * src/pic/main.c tidied up tabs
8137         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
8138         * src/pic/pcoderegs.c tidied up tabs
8139         * src/pic/ralloc.c tidied up tabs
8140
8141 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
8142
8143         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
8144         to S_FIXED for pic16 port and when symbol is not in level 0,
8145         allocate for S_REGISTER storage class and pic16 port, too,
8146         * src/pic16/device.h: prototype for checkSym,
8147         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
8148         * (pic16_assignConfigWordValue): test the value and the mask to
8149         validate that the value is suitable for the configuration word,
8150         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
8151         collect extern declared symbols, don't emit symbol twice, check
8152         first if symbol is in publics set first,
8153         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
8154         * added command line '--fstack' which enables an experimental
8155         feature for stack access, too buggy to be used yet...
8156         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
8157         * (pic16_allocDirReg): when register has storage class S_REGISTER
8158         allocate in pic16_dynAccessRegs,
8159         * device/include/pic16/pic18f????.h: modified configuration word
8160         naming convention, words started as CONFIG0H but should be CONFIG1H
8161
8162 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
8163
8164         * device/include/mcs51reg.h: fixed bug 970993
8165
8166 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
8167
8168         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
8169         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
8170         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
8171         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
8172         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
8173         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
8174           error/warning numbers,
8175           added function setWarningDisabled()
8176         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
8177         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
8178           _memcmp.c _memmove.c calloc.c realloc.c free.c
8179         * support/regression/tests/malloc.c: added tests for new functionality
8180         * support/regression/tests/zeropad.c: added tests for truncated initializers
8181           and initialized char arrays starting with '\x0'
8182         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
8183
8184 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
8185
8186         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
8187
8188 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8189
8190         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
8191         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
8192         peephole 177.e. Thanks to anonymous
8193
8194 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
8195
8196         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
8197         function isn't used in the source but referenced as a
8198         variable initializer then declare it as extern in .asm file
8199
8200 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
8201
8202         * .version: increased version number to 2.4.3
8203
8204         Adding version extension according to ChangeLog CVS revision
8205         * src/Makefile.in (target all): added dependency 'version.h'
8206         * (rule version.h): added rule to create version.h from ChangeLog,
8207         * (rule dep): added dependency version.h,
8208         * src/version.awk: AWK script to create version.h
8209         * src/SDCCdwarf2.c (dwWriteModule),
8210         * src/SDCCglue.c (initialComments),
8211         * src/SDCCmain.c (printVersionInfo): modified to write after
8212         version string the version extension number,
8213         * src/SDCCutil.c: included "version.h"
8214         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
8215         number,
8216         * src/SDCCutil.h: added prototype for getBuildNumber
8217
8218         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
8219         includeDirsSet, too,
8220         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
8221         const char [] is found in function prototype...
8222
8223         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
8224         moving to WREG with source is already in WREG,
8225         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
8226         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
8227         * (aopForSym): stack'ed symbols are partially supported, added
8228         if-clause to support symbols in FARSPACE,
8229         * (sameRegs): added test for AOP_ACC to see if registers are same,
8230         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
8231         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
8232         * (pic16_popRegFromString): will not allocate a new register if it
8233         doesn't find one by name, bug may have introduced...
8234         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
8235         * (genIpush): revived to use pic16 port's stack,
8236         * (genAddrOf): added incomplete case for stack'ed operand,
8237         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
8238         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
8239         can handle multibyte operands,
8240         * src/pic16/glue.c (pic16_printIval*): some debug info added,
8241         * (pic16initialComments): added message for MPLAB compatibility
8242         mode enabled,
8243         * src/pic16/main.h: prototype for pic16_mplab_comp,
8244         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
8245         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
8246         * (_pic16_linkEdit): NEW, handles link stage, transferred here
8247         because of increased complexity of procedure,
8248         * (_process_pragma): stack pragma changed to format 'stack pos len',
8249         emit symbol '_stack_end' to conform with gplink,
8250         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
8251         to search for register,
8252         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
8253         PO_GPR_REGISTER,
8254         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
8255         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
8256         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8257         case for PO_GPR_REGISTER,
8258         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
8259         dies, the new era is ahead !...
8260         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
8261         pic16_dynInternalRegs,
8262         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
8263         * (pic16_allocDirReg): minor optimizations and bug fixes,
8264         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
8265
8266         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
8267         load stack and frame pointer with address of 'stack_end' symbol
8268
8269 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
8270
8271         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
8272         without source code but only variable initializers
8273
8274 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
8275
8276         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
8277         external are not declared as extern to reduce overhead while linking
8278
8279 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
8280
8281         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
8282
8283 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
8284
8285         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
8286           Yee Keat for the patch
8287         * src/SDCCast.c (decorateType): fixed bug #979599
8288         * src/ds390/gen.h: removed local fReturnSizeDS390
8289         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
8290         * src/ds390/gen.c (genAnd, genOr, genXor),
8291         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
8292
8293 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
8294
8295         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
8296         add relFilesSet to $3, manipulate $2 to handle linking of object
8297         files without source files in command line,
8298         * device/include/pic16 (all headers): added ID location macros,
8299         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
8300         entries for ID location bytes,
8301         * (pic16_assignIdByteValue): NEW,
8302         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
8303         added field dumpcalltree to pic16_options_t,
8304         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
8305         is used instead of pic16_Gstack_base_addr, check if (ifx) before
8306         emitting rFalseIfx label after check_carry label,
8307         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
8308         pic16_emitDIRegs), NEW
8309         * (pic16glue): dump .calltree file when option --calltree found,
8310         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
8311         * (_pic16_genAssemblerPreamble): emit ID locations after
8312         configuration registers,
8313         * (pic16_linkCmd): modifications of the link command,
8314         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
8315         * (pic16_pCodeInitRegisters): don't init stack registers,
8316         * (pic16_findPrevInstruction): fixed bug,
8317         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
8318         bug with immediate registers,
8319         * (buildCallTree): traces stack push and pop,
8320         * (pct2): dump also stack usage for each function,
8321         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
8322         * (pic16_allocDirReg): various modifications,
8323         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
8324         fixed to 1,
8325
8326 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
8327
8328         * src/pic16/pcode.c: removed buggy double colon
8329
8330 2004-07-01 Borut Razem <borut.razem AT siol.net>
8331
8332         * support/scripts/sdcc.nsi: added include/pic16 to setup
8333
8334 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
8335
8336         * device/lib/Makefile.in: fixed bug in target objects-pic16,
8337         * device/lib/pic16/Makefile: prefixed with dash (-) command under
8338         target 'clean',
8339         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
8340         specific command line arguments. Also added sample lkr script
8341         for placing a variable at a specific memory bank.
8342         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
8343         at a specific memory bank,
8344         * (pic16_dump_isection): fixed bug which caused string literals to
8345         be omitted when dumping idata section,
8346         * (pic16_groupRegistersInSection): added code to handle registers
8347         in specific memory banks,
8348         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
8349         public, all references are renamed too,
8350         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
8351         AOP_DPTR2,
8352         * (pic16_storeForReturn): added case to handle when dest is WREG,
8353         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
8354         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
8355         pic16_rel_udata, check to see if that register is marked as being
8356         a member of a specific memory bank,
8357         * (pic16_printIvalCharPtr): added code to add string literals either
8358         to code or the idata sections,
8359         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
8360         also accept the 'udata' pragma,
8361         * src/pic16/main.h: new structure types sectName and sectSym
8362         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
8363         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
8364         * (pic16_findPrevInstruction): fixed, it returned nothing,
8365         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
8366         instruction combinations,
8367         * (pic16_FixRegisterBanking): heavily reorganised,
8368         * (pic16_AnalyzeBanking): if generating banksel directives is
8369         disabled, then don't call FixRegisterBanking at all,
8370         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
8371         completely removed,
8372         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
8373
8374 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
8375
8376         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
8377         Phuah Yee Keat <yk.phuah AT nestac.com>
8378
8379 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8380
8381         * src/pic16/glue.c (pic16createInterruptVect): function now emits
8382         correctly the IVT even if it is relocated to some other location
8383
8384 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
8385
8386         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
8387         * device/include/pic16/pic18f2220.h: NEW,
8388         * device/lib/pic16/libdev/pic18f2220.c: NEW,
8389         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
8390         * src/pic16/device.c (struct Pics16): added info for 18f2220,
8391         * src/pic16/device.h (struct pic16_options): added ivt_loc and
8392         nodefaultlibs, ivt_loc is the location of the interrupt vector
8393         table, and nodefaultlibs signs that default libraries should not be
8394         linked in link stage,
8395         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
8396         according to --ivt-loc argument,
8397         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
8398         when pragma stack is found,
8399
8400 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8401
8402         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
8403         256 (range check), 257 (do while), 258.a-f (bit banging
8404         f.e. on 3-wire SPI bus)
8405
8406 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8407
8408         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
8409         variables used exclusively within a loop
8410
8411 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
8412
8413         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
8414
8415 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8416
8417         * src/SDCClrange.c (computeClash): fixed bug #971834
8418
8419 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8420
8421         * src/mcs51/gen.c (genCmp): fixed bug #975903
8422         * src/hc08/gen.c (operandsEqu),
8423         * src/ds390/gen.c (operandsEqu),
8424         * src/z80/gen.c (operandsEqu),
8425         * src/pic/gen.c (operandsEqu),
8426         * src/pic16/gen.c (operandsEqu),
8427         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
8428         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
8429
8430 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8431
8432         * src/SDCCcse.c (cseBBlock): fixed bug #966963
8433
8434 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
8435
8436         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
8437         default case in switch statement,
8438         * glue.c (pic16_initPointer): expr is initialised via decoarteType
8439         to eliminate problem with initialisation of pointers, but problem
8440         still exists,
8441         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
8442         * (emitStaticSegment): removed various lines emitting debug info,
8443         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
8444         added processor registers for utilizing EEPROM,
8445         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
8446         configurable and set 8
8447
8448 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
8449
8450         * .version: increased version number to 2.4.2,
8451
8452         Cumulative patch for pic16 port
8453         * src/pic16/device.c: changed scheme to dump initial values for
8454         variables in idata segment, all print_idata* functions were removed,
8455         now the pic16_printIval* will be called,
8456         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
8457         * _pic16_printPointerType, pic16_printPointerType,
8458         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
8459         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
8460         NEW, similar to the respective functions in SDCCglue.c,
8461         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
8462         way, emitting hex bytes,
8463         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
8464
8465 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8466
8467         * src/avr/ralloc.c (serialRegAssign),
8468         * src/xa51/ralloc.c (serialRegAssign),
8469         * src/pic/ralloc.c (serialRegAssign),
8470         * src/pic16/ralloc.c (serialRegAssign),
8471         * src/hc08/ralloc.c (serialRegAssign),
8472         * src/z80/ralloc.c (serialRegAssign),
8473         * src/ds390/ralloc.c (serialRegAssign),
8474         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
8475
8476 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8477
8478         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
8479         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
8480
8481 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
8482
8483         Cumulative patch for pic16 port:
8484         * src/pic16/device.h (typedef PIC16_device) modified fields for
8485         defining microcontrollers,
8486         * src/pic16/device.c: added new info for all devices in Pics16 array,
8487         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
8488         to be optimised out by the pCode optimiser,
8489         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
8490         specially, bug reported by G.M. Gallant,
8491         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
8492         as force'd so that cannot be optimised out by pCode optimiser,
8493         * src/pic16/pcode.c,
8494         * src/pic16/pcodepeeph.c,
8495         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
8496         they are disabled by default, but can be enabled explicit with
8497         command argument --denable-peeps, for testing,
8498         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
8499         --pomit-ivt in COMPILE_FLAGS
8500
8501 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8502
8503         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
8504           compilation on MSVC
8505
8506 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
8507
8508         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
8509
8510 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8511
8512         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
8513         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
8514
8515 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
8516
8517         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
8518         would only assign 0x300001 register.
8519
8520 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
8521
8522         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
8523         in COMPILE_FLAGS. Thanks to G. Gallant for report.
8524
8525 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8526
8527         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
8528         for ds80c400
8529         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
8530         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
8531         added peephole 254 (left shift), 255 (jump table)
8532
8533 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
8534
8535         * device/lib/Makefile.in: removed comment line with model-pic16,
8536         * (target port-specific-objects-pic16): the libraries and objects
8537         are copied to the build directory form the device/lib/pic16/bin
8538         directory
8539
8540         Cumulative patch concerning pic16 port:
8541         * library directory has been re-organized,
8542         * added support for PIC18F1220,
8543         * added headers and library sources for chips 18f1220,18f6520,
8544         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
8545
8546         * configuration registers setting has changed, now each supported
8547         device has a complete description of the registers it uses,
8548         * all initialisations are moved to idata sections, these section
8549         can be absolute or relocatable,
8550         * fixed initialisation of codespace variables,
8551         * fixed warning about PCLATU and gpsim,
8552         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
8553         * (genAssign): use table reads when assigning from variables in codespace,
8554         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
8555         char/int variables placed in codespace,
8556         * (pic16_emitConfigRegs): NEW, emits a list with configuration
8557         registers set in .asm file, no need for --pomit-config-words anymore,
8558         * (pic16glue): some 8051 legacy segments are commented out
8559         (to be removed completely),
8560         * added support for alternative assembler and linker with --asm=
8561         and --link= command line arguments,
8562         * peepholes are disabled automatically in the port, no need to
8563         specify on command line,
8564         * port supports natively char/int/long multiplication, but converts
8565         all divisions to support functions,
8566         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
8567         to the file set in variable $2,
8568         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
8569         strings in ASCII format and not in hex,
8570         * ralloc.c (serialRegAssign): added a triplet of conditional calls
8571         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
8572         allocate proper register if iCodes aren't temporary,
8573
8574 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
8575
8576         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
8577
8578 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
8579
8580         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
8581         is commented out
8582
8583 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8584
8585         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
8586         computed address is reused
8587         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
8588         multi-byte bitfields
8589
8590 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8591
8592         * src/z80/gen.c: (genArrayInit): must check for pointers too
8593
8594 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
8595
8596         * support/regression/tests/zeropad.c: never meant to commit the
8597           nestedstruct test: removed, added check for GCC version
8598
8599 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
8600
8601         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
8602         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
8603         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
8604           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
8605           bugs 928906 and 954082 half-empty initializers
8606         * src/SDCCsymt.h,
8607         * src/SDCCsymt.c (getAllocSize): added for above fix
8608         * src/z80/gen.c (genArrayInit): fixed bug 741044
8609         * support/regression/tests/zeropad.c: added tests
8610
8611 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
8612
8613         * src/pic16/device.c (pic16_dump_section): corrected bug which
8614         caused some symbols of the libraries to be misplaced
8615
8616 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8617
8618         * src/pic16/glue.c,
8619         * src/pic16/ralloc.h,
8620         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
8621         to fix conflict with pic port
8622
8623 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
8624
8625         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
8626         externs configuration variables,
8627         * src/pic16/ralloc.h,
8628         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
8629         prototype in header, commented out some debug messages
8630
8631 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
8632
8633         * src/pic16/glue.c,
8634         * src/pic16/main.c,
8635         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
8636         for gpasm COFF object generation. Thanks to D. Hawkins for
8637         his patch info
8638
8639 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8640
8641         * src/ds390/main.c,
8642         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
8643         Brock for spotting this)
8644         * src/ds390/gen.c (genEndFunction),
8645         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
8646         interrupt handler and critical. Disable push/pop optimizations when
8647         peephole optimizations disabled.
8648
8649 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8650
8651         Updated pic16 library sources and headers.
8652         * device/lib/pic16/pic18f*/ ,
8653         * device/include/pic16/*.h: modified to handle structured SFR
8654         definitions
8655
8656 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
8657
8658         * src/port.h (PORT structure): added hook initPaths, now each
8659         port can declare its own default search paths,
8660         which can been seen with the --print-search-dirs option,
8661         see pic16 port for example,
8662         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
8663         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
8664         * (doPrintSearchDirs): NEW, replaces in a central manner the
8665         printing of search dirs which was split in set*Paths functions,
8666         * (main): added call to port->initPaths and doPrintSearchDirs,
8667         * src/avr/main.c,
8668         * src/ds390/main.c,
8669         * src/hc08/main.c,
8670         * src/izt/i186.c,
8671         * src/izt/tlcs900h.c,
8672         * src/mcs51/main.c,
8673         * src/pic/main.c,
8674         * src/pic16/main.c: modified port structures to reflect addition of
8675         initPaths hook,
8676
8677         * src/pic16/device.c (regCompare): registers are finally sorted by name,
8678         * (pic16_dump_section): for registers in same address reserve memory once,
8679         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
8680         to no_banksel,
8681         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
8682         result is greater in size than right or left,
8683         * (pic16_genUMult8X8_8): there are some cases where the result can
8684         be 16 bits size, so handle these,
8685         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
8686         * (pic16_outBitC): modified to emit pcodes,
8687         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
8688         or not,
8689         * (genDivOneByte): implemented algorithm to divide 8-bits,
8690         * (genCmp): uncommented goto, but issues still exist,
8691         * (genAnd): fixed a bug with variables >8bits,
8692         * (genPackBits): optimization added that uses BCF/BSF to change a
8693         single bit,
8694         * (genAssign): fixed bug when assigning floating point literals,
8695         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
8696         __sdcc_gsinit_startup label,
8697         * src/pic16/main.c (_pic16_init): removed search directory
8698         initialisations,
8699         * (_pic16_initPaths): NEW, used to initialise search directories,
8700         * (_hasNativeMulFor): support functions for all except char/int
8701         multiplication, and char division,
8702         * (PIC16_port struct): modified entry for native mul support,
8703         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
8704         no_banksel option,
8705         * (buildCallTree): call to register_usage is ifdef'ed out,
8706
8707 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8708
8709         * device/include/string.h: applied Stas Sergeev's patch to make this
8710         header file compatible with the preprocessor -Wundef option
8711         * src/SDCCmain.c (main): abort compilation if preprocessor reports
8712         failure (fixes bug #941458)
8713
8714 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8715
8716         * src/SDCCopt.c (killDeadCode): fixed bug #907733
8717         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
8718         that the variable, not the function, should be static
8719         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
8720         to be consistent with non-literal case
8721
8722 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8723
8724         * src/SDCCast.c (isConformingBody): fixed bug #949967
8725         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
8726         convilong): fixed bug #952086
8727
8728 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8729
8730         * src/SDCCmem.c (allocVariables): fixed bug #955321
8731
8732 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8733
8734         * src/hc08/main.c (_hc08_genAssemblerEnd),
8735         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
8736         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
8737         completely eliminated the use of a temporary file
8738         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
8739         when more than one file linked
8740         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
8741
8742 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8743
8744         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
8745         which fixes bug #543481
8746         * support/regression/tests/bug-751703.c: fixed comments left from a
8747         cut and paste error
8748         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
8749         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
8750         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
8751         scopes
8752         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
8753         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
8754         are now changed to underscores in moduleName
8755
8756 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8757
8758         * as/mcs51/lkmem.c: better fix for bug #954173
8759
8760 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8761         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8762
8763         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
8764         * device/include/c8051f000.h,
8765         * device/include/c8051f120.h,
8766         * device/include/c8051f300.h,
8767         * device/include/c8051f310.h,
8768         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
8769         PWM16) and detab'ed
8770
8771 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8772
8773         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
8774         and mailing lists, doc'ed --no-peep-comments, removed reference
8775         to knoppix (newest version has no LyX/LaTeX), other minor changes
8776         * src/SDCCglue.c (glue): save 2 bytes stack space with
8777         option --main-return. The ljmp could probably be avoided too
8778
8779 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8780
8781         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
8782
8783 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8784
8785         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
8786         * src/SDCCopt.c (isLocalWithoutDef),
8787         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
8788         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
8789         (credit to Maarten Brock for patch #949363, on which this is based)
8790         * support/regression/tests/bug-751703.c: some test cases of extern used
8791         within inner scopes.
8792
8793 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8794
8795         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
8796         SPEC_STRUCT
8797         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
8798         struct definitions
8799         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
8800         dwWriteLabel): fix to create valid debugger symbols even when
8801         the module name has non-alphanumeric symbols in it
8802         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
8803         when a variable's allocation has been optimized away
8804
8805
8806 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8807
8808         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
8809         * src/hc08/main.c,
8810         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
8811         * src/mcs51/main.c,
8812         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
8813         * src/ds390/main.c,
8814         * src/z80/gen.c (z80_emitDebuggerSymbol),
8815         * src/z80/main.c,
8816         * src/pic/gen.c (pic14_emitDebuggerSymbol),
8817         * src/pic/main.c,
8818         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
8819         * src/pic16/main.c,
8820         * src/avr/gen.c (avr_emitDebuggerSymbol),
8821         * src/avr/main.c,
8822         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
8823         * src/xa51/main.c,
8824         * src/SDCCdebug.c (emitDebuggerSymbol),
8825         * src/SDCCdebug.h,
8826         * src/port.h: added a debugger struct to the port struct. Added a
8827         callback for defining debugger symbols
8828
8829         * src/SDCCast.c (createLabel),
8830         * src/SDCC.y (labeled_statement): mark all compiler generated labels
8831         with isitmp = 1
8832         * src/SDCCicode.h,
8833         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
8834         iCode back to the ast for the function
8835
8836         * src/hc08/ralloc.c (hc08_assignRegisters),
8837         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
8838         unneeded fields from the regs struct.
8839         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
8840         pushReg() & pullReg() functions instead of emitcode()
8841
8842         * src/hc08/gen.c (genLabel, genhc08Code),
8843         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
8844
8845         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
8846         debugger hooks
8847
8848         * src/hc08/gen.c (genEndFunction, genhc08Code),
8849         * src/hc08/gen.h,
8850         * src/mcs51/gen.c (genEndFunction, gen51Code),
8851         * src/mcs51/gen.h,
8852         * src/ds390/gen.c (genEndFunction, gen390Code),
8853         * src/ds390/gen.h,
8854         * src/z80/gen.c (genEndFunction, genZ80Code),
8855         * src/z80/gen.h,
8856         * src/z80/z80.h,
8857         * src/pic/gen.c (genEndFunction, genpic14Code),
8858         * src/pic/gen.h,
8859         * src/pic16/gen.c (genEndFunction, genpic16Code),
8860         * src/pic16/gen.h,
8861         * src/avr/gen.c (genEndFunction, genAVRCode),
8862         * src/avr/gen.h,
8863         * src/xa51/gen.c (genEndFunction, genXA51Code),
8864         * src/xa51/gen.h,
8865         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
8866         specific code to cdbFile.c and out of the backend code generators
8867
8868         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
8869         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
8870         starting address is now 0
8871
8872         * as/hc08/asm.h,
8873         * as/hc08/m08pst.c,
8874         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
8875         assembler directive for DWARF support
8876         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
8877
8878         * src/src.dsp,
8879         * src/Makefile.in,
8880         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
8881
8882 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8883
8884         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
8885         and inappropriate peephole optimization in jump tables
8886
8887 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8888
8889         * as/hc08/m08pst.c,
8890         * src/SDCCglue.c: sdccopt works for the hc08 port now
8891
8892 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
8893
8894         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
8895
8896 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8897
8898         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
8899
8900 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8901
8902         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
8903         rules
8904         * src/SDCCmain.c,
8905         * src/SDCCglobl.h,
8906         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
8907         comments from the peephole optimizer replacement rules
8908         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
8909         symbols
8910         * src/SDCCcse.c (updateSpillLocation),
8911         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
8912         equivalents
8913         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
8914         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
8915         objects far pointers
8916
8917 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8918
8919         * src/SDCCsymt.h: a missing part of my last change
8920         * src/pic/ralloc.c (regTypeNum),
8921         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
8922
8923 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8924
8925         * src/SDCCicode.h,
8926         * src/SDCCicode.c (aggrToPtrDclType),
8927         * src/SDCCptropt.h,
8928         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
8929         ptrPseudoSymConvert),
8930         * src/pic/ralloc.c (regTypeNum),
8931         * src/pic16/ralloc.c (regTypeNum),
8932         * src/hc08/ralloc.c (regTypeNum),
8933         * src/ds390/ralloc.c (regTypeNum),
8934         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
8935         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
8936
8937 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8938
8939         * link/z80/lkmain.c (afile),
8940         * as/hc08/lkmain.c (afile),
8941         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
8942         prevent a pointer problem when a filename has no directory and
8943         no extension specified.
8944
8945 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8946
8947         * link/z80/lkmain.c (afile): allow periods in directory names
8948         * link/z80/lkmain.c (afile),
8949         * as/mcs51/lkmain.c (afile),
8950         * as/hc08/lkmain.c (afile): allow linker script file to have an
8951         extension other than ".lnk"
8952         * link/z80/lklex.c (getfid),
8953         * link/z80/lkmain.c (parse),
8954         * as/mcs51/lklex.c (getfid),
8955         * as/mcs51/lkmain.c (parse),
8956         * as/hc08/lklex.c (getfid),
8957         * as/hc08/lkmain.c (parse): Support comments in the linker script
8958         file on lines by themselves and after filenames
8959
8960 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8961
8962         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
8963
8964 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8965
8966         * src/z80/peeph-z80.def: removed some peephole rules that don't
8967         work with multibyte arithmetic (fixed bug #937126)
8968         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
8969         to registers and not global variables
8970         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
8971         geniCodePreInc, geniCodePostDec, geniCodePreDec,
8972         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
8973         checking for assignments not internally generated (fixed bug #931895)
8974         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
8975         structure member (fixed bug #930072)
8976
8977 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8978
8979         * src/SDCCmain.c (linkEdit),
8980         * src/hc08/main.c (_hc08_parseOptions),
8981         * as/hc08/Makefile.in,
8982         * as/hc08/aslink.h,
8983         * as/hc08/asm.h,
8984         * as/hc08/m08pst.c,
8985         * as/hc08/lkrloc.c (relr, rele),
8986         * as/hc08/lkarea.c (lnkarea)
8987         * as/hc08/lkmain.c (afile, parse),
8988         * as/hc08/lkelf.c: support for ELF output
8989         * as/hc08/lks19.c (s19),
8990         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
8991
8992 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8993
8994         * as/mcs51/lkihx.c: Fixed bug #899105.
8995
8996 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8997
8998         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
8999         .dsp files from Unix to DOS.
9000
9001 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9002
9003         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
9004         function pointers; we have been compliant for several months now.
9005         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
9006         change that was accidently commented out
9007         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
9008         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
9009         bug #922319
9010
9011 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9012
9013         * src/hc08/gen.c: output of all of the internal debugging information
9014         is now controlled by the D() macro; it is disabled by default
9015
9016 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9017
9018         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
9019         harder to keep the same registers during a CAST iCode
9020         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
9021         long via int can be done in a single cast, if the signedness is
9022         correct.
9023         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
9024         putchar() in tinibios.c in ds390's library
9025
9026 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
9027
9028         * src/SDCCast.c (decorateType): fixed bug #898889,
9029         cast result of a literal complement too
9030         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
9031         fixed check for bitfields
9032
9033 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
9034
9035         * src/SDCCicode.c (geniCodeLogic): made it static,
9036         (geniCodeLogicAndOr): added in order to fix bug #905492,
9037         (ast2iCode): fixed bug #905492
9038         * support/regression/tests/bug-905492.c: added
9039         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
9040         (processParms): fixed bug #927659: don't copy parms, this will clear
9041         decorated flag
9042         * support/regression/tests/bug-927659.c: added
9043
9044 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
9045
9046         * src/SDCCast.c (addCast): don't cast float to char
9047         * device/lib/libsdcc.lib: added _memmove
9048
9049 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
9050
9051         * device/lib/large/Makefile: fixed parallel execution by
9052         replacing `make` by `$(MAKE)`
9053
9054 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9055
9056         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
9057         offsets (fixes bug #923936)
9058
9059 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
9060
9061         * device/lib/small/Makefile: fixed parallel execution by
9062         replacing `make` by `$(MAKE)`
9063
9064 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9065
9066         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
9067
9068 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
9069
9070         * src/pic/gen.c (genCpl): multi-byte complements were not working.
9071         * src/regression/Makefile: Regression test was not running.
9072
9073 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
9074
9075         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
9076         complement if possible
9077         * src/SDCCval.c (valComplement),
9078         * src/SDCCicode.c (operandOperation): fixed complement of literal
9079         * support/regression/tests/onebyte.c (testComplement): added
9080
9081 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
9082
9083         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
9084         return an optimized tree; actually replace actParm with the new tree
9085         * src/SDCCast.h: added some parantheses to remove side effects
9086         * support/regression/tests/bug-920866.c
9087
9088 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
9089         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
9090         Bit operands were not being handled properly in the pic14 port.
9091         (now src/regression/add.c passes again).
9092
9093 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9094
9095         * src/SDCC.y (labeled_statement): case and default no longer require
9096         a following statement (RFE #893037)
9097
9098 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9099
9100         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
9101         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
9102         disabled (fixes bug #916294)
9103         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
9104         "mov a,acc"; patch provided by Lenny Story
9105         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
9106
9107 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9108
9109         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
9110         functions
9111         * src/ds390/gen.c (genFunction, genEndFunction),
9112         * src/ds390/ralloc.c (ds390_assignRegisters),
9113         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
9114         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
9115         pushed if there are parameters passed on the stack. Also, a cleaner
9116         way to decide if r0/r1 should be pushed/popped. (Together they fix
9117         bug #918693)
9118
9119 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9120
9121         * doc/sdccman.lyx,
9122         * device/lib/mcs51/crtpagesfr.asm,
9123         * device/lib/mcs51/crtxinit.asm,
9124         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
9125         to avoid confusion with Si Lab's SFRPAGE register.
9126
9127 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9128
9129         * src/SDCCglue.c (emitMaps): allow public sfr variables
9130         * src/SDCCglue.c (initialComments): include compiler build date
9131         with compiler version and put the timestamp of the generated
9132         assembly file on a serperate line to be less confusing.
9133         * src/port.h: added genInitStartup hook
9134         * src/avr/main.c,
9135         * src/ds390/main.c,
9136         * src/hc08/main.c,
9137         * src/pic/main.c,
9138         * src/pic16/main.c,
9139         * src/xa51/main.c,
9140         * src/z80/main.c: genInitStartup initialize as NULL (default to
9141         historical behaviour)
9142         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
9143         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
9144         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
9145         library instead of hard coding it into the compiler.
9146         * support/regression/ports/mcs51-stack-auto/spec.mk,
9147         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
9148         * device/lib/mcs51/Makefile,
9149         * device/lib/small/Makefile,
9150         * device/lib/large/Makefile,
9151         * device/lib/mcs51/crtpagesfr.asm,
9152         * device/lib/mcs51/crtstart.asm,
9153         * device/lib/mcs51/crtxclear.asm,
9154         * device/lib/mcs51/crtxinit.asm,
9155         * device/lib/mcs51/crtclear.asm,
9156         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
9157         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
9158         and into user configurable files.
9159         * device/lib/clean.mk: clean mcs51 directory too
9160         * support/regression/tests/longlit.c: added static to T1 declaration
9161         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
9162         accesses in the initialization code
9163
9164 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9165
9166         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
9167         OSCTRIMVAL as noted in bug #916008
9168
9169 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9170
9171         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
9172         in loops with multiple exits (reported as incorrect registers
9173         used by Martin Helmling in Sdcc-user list)
9174
9175 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9176
9177         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
9178         made ds390 register extensions look less like error messages
9179
9180 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9181
9182         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
9183         reported by Adam Wozniak in Sdcc-user list
9184
9185 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
9186
9187         * src/SDCCast.c (decorateType): fixed with bug and promotion in
9188         arithmetic optimizations, added debug output
9189
9190 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
9191
9192         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
9193         * sdcc.spec: updated and split sdcc into 3 rpms
9194         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
9195         needed for literals of LEFT_OP and '+'
9196         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
9197         introduced RESULT_TYPE_NOPROM
9198         (geniCodeMultiply): fixed logic for decision if mul is optimized to
9199         left shift
9200         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
9201         limited promotion to int only for '*'
9202         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
9203
9204 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
9205
9206         * src/pic16/gen.c (genSkip),
9207         (genc16bit2lit), (gencjneshort): commented out
9208         (is_LitOp): new helper function, checks operand type
9209         (genCmpEq): rewritten
9210
9211 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
9212
9213         * support/regression/tests/bug-908454.c: added
9214
9215 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
9216
9217         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
9218         * src/SDCCicode.c (usualBinaryConversions): op needs int type
9219         (geniCodeCast): cosmetic, don't preserve bit storage class
9220         (geniCodeLeftShift): added promotion
9221         (geniCodeLogic): fixed regression
9222         * src/SDCCsymt.c (computeTypeOr): accept bits too
9223         (compareType): 2nd part of fix for bug #908454, needed for bitfields
9224
9225 2004-03-07  Borut Razem <borut.razem AT siol.net>
9226
9227         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
9228
9229 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
9230
9231         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
9232         version of pic16_genPackRegisters which does not check if ic is a
9233         CAST operator,
9234         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
9235         function cause string1.c regression test fails
9236
9237 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
9238
9239         * sim/ucsim/configure.in,
9240         * sim/ucsim/configure,
9241         * sim/ucsim/doc/Makefile.in: use docdir
9242         * src/SDCC.y: fixed sbit atrributes
9243         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
9244         * src/SDCCast.c (decorateType): |^& need special promotion handling
9245         * src/SDCCast.h,
9246         * src/SDCCsymt.h: moved definition of RESULT_TYPE
9247         * src/SDCCsymt.h (computeType),
9248         * src/SDCCicode.c: computeType() needs op
9249         * src/SDCCsymt.c (checkTypeSanity),
9250         * doc/sddman.lyx: "plain" bitfields are unsigned
9251         * src/SDCCsymt.c (computeTypeOr): added
9252         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
9253         |^& ops
9254         * src/SDCCval.c (val*): computeType() needs op
9255         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
9256         * support/regression/tests/onebyte.c: added tests for |^&
9257
9258 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
9259
9260         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
9261         for writing icode into asm output.
9262
9263 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
9264
9265         * src/pic16/device.c: added some debug lines enabled
9266         with macro DEBUG_CHECK,
9267         * src/pic16/genarith.c: more debug in genPlus,
9268         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
9269         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
9270         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
9271         * (aopForSym): onStack symbols are re-placed in data memspace,
9272         and onStack flag is cleared,
9273         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
9274         copy temporary pcodeop,
9275         * (genPcall): added warning for not updating PCLATU,
9276         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
9277         always true for pic16 port,
9278         * (genMultOneWord): NEW, supports integer multiplication,
9279         * (genMult): modified to call genMultOneWord,
9280         * (ifxForOp): added warning when return NULL,
9281         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
9282         flag is set before call to operandFromSymbol for implicit
9283         added structures,
9284         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
9285         options.intlong_rent are set by default,
9286         * (_hasNativeMulFor): modified to allow port generation of integer
9287         multiplication,
9288         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
9289         set regtype to REG_SFR for all registers, restricting seting the
9290         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
9291
9292 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9293
9294         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
9295         more than 500 times in the regression tests
9296
9297 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9298
9299         * support/Util/SDCCerr.h,
9300         * support/Util/SDCCerr.c,
9301         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9302         enumerator_list),
9303         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
9304         for symbol conflicts.
9305         * support/valdiags/tests/enum.c,
9306         * support/valdiags/tests/tentdecl.c,
9307         * support/valdiags/tests/struct.c: expect possible error messages
9308         referring to original symbol definitions.
9309         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
9310         * src/SDCCsymt.h,
9311         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
9312
9313 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
9314
9315         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
9316
9317 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
9318
9319         * src/pic16/ralloc.c (newReg): fixed bug #908929
9320
9321 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9322
9323         * src/ds390/gen.c: added missing #include "main.h"
9324
9325 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
9326
9327         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
9328         checking if symbol is already in set,
9329         * src/pic16/device.h: prototype for checkAddSym,
9330         * src/pic16/gen.c: (_G): added entry interruptvector,
9331         * (assignResultValue): removed some commented out lines,
9332         * (genFunction): check for ISR via sym->type, absolute section for
9333         interrupt code is created via a new pBlock, the goto instruction is
9334         placed now correctly at the interrupt vector position, changed all
9335         references from ivec to _G.interruptvector,
9336         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
9337         is the interrupt is a high priority one, same for return from ISR,
9338         * src/pic16/glue.c: changed all calls of addSetHead for publics and
9339         externs to calls of checkAddSym,
9340         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
9341         pic16_pcode_verbose flag is set,
9342         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
9343         * src/pic16/pcoderegs.c: message about how many registers are saved
9344         will only be emitted if pic16_pcode_verbose flag is set,
9345
9346 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9347
9348         * src/ds390/ralloc.h,
9349         * src/ds390/ralloc.c (ds390_regWithIdx),
9350         * src/ds390/gen.c (emitcode),
9351         * src/ds390/main.h,
9352         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
9353         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9354         ds390operandCompare, getRegsRead, getRegsWritten,
9355         initializeAsmLineNode): customized instruction size calculation for
9356         ds390, started basis for some register optimizations
9357         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
9358         corresponding assembly output
9359         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
9360         missing push/pop of r0/r1. Optimized push/pops
9361
9362 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9363
9364         * src/mcs51/main.c (instructionSize): fixed ACALL size
9365         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
9366
9367 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
9368
9369         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
9370         the sorting of rlist with NULL elements
9371         * (print_idataType, print_idata): NEW to create idata sections
9372         * src/pic16/device.h: idataSymSet new variable
9373         * src/pic16/gen.c (genFunction): fixed some bugs in string
9374         comparing, improved the absolute section creation for ISRs,
9375         added FSR0L/FSR0H in registers that are saved in an ISR,
9376         * (genInline): fixed the processing of inline snippets,
9377         now they undergo no process by the peephole optimizer
9378         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
9379         are placed in idataSymSet,
9380         * (pic16emitStaticSeg): extern symbols are added in externs,
9381         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
9382         switching when aboslute variables are placed in access bank memory
9383         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
9384         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
9385         commented out with #if,
9386         * (pic16_packRegisters): reintroduce the check for CAST because some
9387         symbols are not correctly handled,
9388         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
9389         pCodeInstruction instead of pCode,
9390         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
9391         pCodeAsmDir definition,
9392         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
9393         directive, then the argument directive is emitted without the leading
9394         tab, hack for inline labels which must be in the first column,
9395         * (compareLabel,pic16_findNextInstruction),
9396         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
9397         * (insertBankSwitch): modified for the new pCodeAsmDir,
9398
9399 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9400         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
9401
9402         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
9403         instance,
9404         * (pushSide): commented out with #if,
9405         * (assignResultValue): fixed some typos in saving
9406         registers,
9407         * (genPcall): FIXED and sync'ed with genCall,
9408         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
9409         * (genNearPointerGet): fixed to handle some more cases,
9410         implementation scheme via table reads,
9411         * (genConstPointerGet): modified to access code memory correct,
9412         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
9413         and improved to handle some cases
9414         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
9415         instead of "RETLW" for init data
9416         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
9417         not IN_DIRSPACE, work around to reduce bank switching when aboslute
9418         variables are placed in access bank memory (<0x80 and >=0xf80),
9419         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
9420         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
9421         TBLWT_POSTDEC,TBLWT_PREINC
9422         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
9423         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
9424         directives
9425         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
9426         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
9427         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
9428         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
9429
9430 2004-02-29  Borut Razem <borut.razem AT siol.net>
9431
9432         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
9433         support/Util/findme.h, support/Util/system.h: enhance binary relative
9434         search for lib and include by using findProgramPath()
9435
9436 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9437
9438         * src/SDCCpeeph.h,
9439         * src/SDCCpeeph.c (pcDistance),
9440         * src/port.h,
9441         * src/mcs51/ralloc.h,
9442         * src/mcs51/ralloc.c (mcs51_regWithIdx),
9443         * src/mcs51/main.h,
9444         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
9445         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
9446         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
9447         size calculation port specific, started basis for some register
9448         optimizations
9449         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
9450         missing push/pop of r0/r1. Optimized push/pops
9451         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
9452         * device/lib/_modsint.c (_modsint),
9453         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
9454         and stack version so regression tests pass
9455
9456 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
9457
9458         * src/Makefile.in (dep): include SLIBOBJS in dependency check
9459         * src/SDCCast.c (decorateType): catch another small optimization
9460         with '?' operator
9461         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
9462         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
9463         modified to finally use computeType() all over SDCC,
9464         see Feature Request #877103
9465         * src/SDCCval.h: cosmetic
9466         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
9467         valCompare(); regression tested in muldiv.c
9468         * support/regression/tests/muldiv.c (testMod): mod sign follows
9469         dividend only
9470
9471 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
9472
9473         * src/SDCCast.c (decorateType): fixed bug #902362
9474         * doc/INSTALL.txt: fixed install instructions for win32
9475
9476 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
9477
9478         * device/include/Makefile.in (install): fixed by replacing spaces
9479         by tabs
9480         * doc/README.txt,
9481         * doc/INSTALL.txt: updated for release
9482         * doc/sdccman.lyx: added warning for --xstack being buggy
9483
9484 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
9485
9486         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
9487         to eliminate build warnings.
9488         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
9489
9490 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
9491            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9492
9493         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
9494         removed -penable-stack, added comment for stack pragma, added
9495         warning for not initializing the stack/frame registers, removed
9496         comment at interrupts section
9497
9498         Stack is made permanent, there is no ability to disable stack usage.
9499         * src/pic16/device.h,
9500         * src/pic16/device.c: removed all references to USE_STACK macro,
9501         * src/pic16/device.c (pic16_dump_section): when no elements in
9502         rlist, free rlist before return,
9503         * (pic16_dump_int_registers): NEW, internal registers are a new set
9504         of general purpose registers reused by each function,
9505         * (checkAddReg): returns 1 if registers is added to set,
9506         * (pic16_groupRegistersInSection): when a registers is of type
9507         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
9508         * src/pic16/device.h: memRange and Assigned Memory are deleted,
9509         SRCASECMP macro is moved here from device.c
9510         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
9511         PO_PCLATU, PO_PRODL, PO_PRODH,
9512         * (pic16_pCodeOpType, genMinus,
9513         changed compares to "a" register, with AOP_ACC,
9514         * (pic16_genPlus): fixed some bugs and indented properly,
9515         * (pic16_addSign): changed size to size+offset in the MOVWF
9516         instruction,
9517         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
9518         multiply 8-bit operand by literal, result is 8-bit,
9519         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
9520         multiply 2 8-bit operand, result is 8-bit,
9521         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
9522         genUMult8X*_16,
9523         * src/pic16/gen.c: changed accUse to contain WREG only,
9524         * (pic16_emitcomment): renamed to pic16_emitpcomment,
9525         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
9526         true, do not use immediate addressing any more unless sym is a
9527         pointer in codespace,
9528         * (aopForRemat): do not use immediate addressing when symbol not in
9529         codespace and when symbol's address is requested,
9530         * (aopOp): for-loop in if(sym->accUse) is modified for the new
9531         accUse size (= 1),
9532         * (aopGet): added case for AOP_ACC and don't return "accumulator
9533         bug" but WREG instead,
9534         * (popGetTempReg): pushes contents of temporary register in stack,
9535         * (popReleaseTempReg): pops contents of temporary register from
9536         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
9537         * (pic16_popGet): separated case AOP_ACC to return register WREG
9538         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
9539         or PO_IMMEDIATE and initializes their instance/offset appropriately,
9540         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
9541         the use of immediate pointers to certain cases only.
9542
9543         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
9544         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
9545         * (assignResultValue, genCall, genRet): modified to use the new
9546         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
9547         genPcall is still broken,
9548         * (genFunction): added code to create 'A' type pBlocks when
9549         interrupt functions are generated, code not extensively tested yet,
9550         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
9551         * (genEndFunction): modified so ISRs pop stored registers from stack,
9552         * (genMultOneByte): cleanup,
9553         * (AccRsh): added flag andmask, to and result with appropriate mask,
9554         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
9555         * (genDataPointerGet): fixed and reenabled its use,
9556         * (genNearDataPointerGet): bugs fixed,
9557         * (genDataPointerSet): bugs fixed,
9558         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
9559         pic16_DumpSymbol, pic16_DumpOp,
9560         * src/pic16/genutils.h: function prototypes for the above functions,
9561         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
9562         pointers,
9563         * (pic16emitRegularMap): many many many improvements, but needs a
9564         major cleanup,
9565         * src/pic16/main.c: enable_stack in pic16_options is removed,
9566         * (_pic16_parseOptions): removed command line options -penable-stack,
9567         * (_process_pragma): emit stack symbol only when stack pragma is
9568         processed,
9569         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
9570         redirected to FSR0L/FSR0H pair,
9571         * (pic16_get_op, pic16_get_op2): modifications and improvements,
9572         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
9573         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
9574         for immediates,
9575         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
9576         * (dumpPicOptype): NEW,
9577         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
9578         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
9579         with movff instruction,
9580         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
9581         added pic16_int_regs, some packRegsFor* functions are commented out,
9582         because produce errors,
9583         * src/pic16/NOTES: minor modifications
9584
9585 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9586
9587         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
9588         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
9589         --pack-iram.
9590         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
9591         * as/mcs51/lkaomf51.c: fixed bug #895763
9592
9593 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
9594
9595         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
9596
9597 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9598
9599         * doc/sdccman.lyx: added details about the HC08 storage classes and
9600         interrupts, fixed the register usage info for z80 & gbz80
9601
9602 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
9603
9604         * doc/sdccman.lyx: added more pic16 port documentation
9605         * device/include/pic16/: added header pic18fregs.h
9606
9607 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
9608
9609         * doc/sdccman.lyx: added Vangelis' contribution
9610
9611 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9612
9613         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
9614         extend to the next CALL or PCALL, not just to the next CALL.
9615
9616 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
9617
9618         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
9619
9620 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9621
9622         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
9623         bug #895752 and a better fix for bug #716790
9624
9625 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9626
9627         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
9628
9629 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9630
9631         * doc/sdccman.lyx: minor changes, minor changed
9632
9633 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
9634
9635         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
9636         which can't handle SDCC_NEWONEBYTEOPS,
9637         (geniCodeMultiply): removed conversion from mult to shift for pic14
9638         and pic16
9639
9640 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9641
9642         * src/hc08/gen.h,
9643         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
9644         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
9645         thus fixing bug #895406
9646
9647 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
9648
9649         * device/lib/_modsint.c,
9650         * device/lib/_modslong.c: sign follows divisor only
9651         * src/hc08/gen.c (genMultOneByte): if result size is 1,
9652         signs or signedness can be ignored
9653         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
9654         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
9655         added optimization for IFX,
9656         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
9657         arguments;
9658         reenabled optimization for IFX, which was removed on 2004-01-11
9659         * src/SDCCast.h: added return type IFX
9660         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
9661         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
9662         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
9663         SDCC_OLDONEBYTEOPS selects the old behaviour
9664         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
9665         changed again and commented promotion rule
9666         * src/SDCCval.c (valDiv): promotion no longer necessary
9667         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
9668         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
9669         rewritten
9670         * support/regression/tests/onebyte.c: added
9671
9672 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
9673
9674         * gen.c (genInline): reverted to old code for assemnling inline
9675         code because of bug reported James Chadd
9676
9677 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
9678
9679         * ralloc.h: missing declarations from previous patch,
9680         seems that patch for ralloc.h was never applied, fixed
9681
9682 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9683            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9684
9685         * pcode.c,
9686         * pcode.h,
9687         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
9688         indirect addressing. Marked FSR0 as deprecated
9689         * gen.c (pointerCode): commented out, not needed now
9690         (pic16_popGet2p): new MOVFF helper function
9691         (genGenPointerGet),
9692         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
9693         (shiftRLong): removed duplicate debugging info
9694
9695 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9696
9697         * src/ds390/gen.c (genNearPointerGet),
9698         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
9699         optimization with bits, but not bitfields.
9700         * src/ds390/ralloc.c (packRegisters),
9701         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
9702
9703 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
9704
9705         * src/SDCCcse.c (algebraicOpts): copy operands before modification
9706
9707 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9708
9709         * src/SDCCsymt.h,
9710         * src/SDCCicode.c (operandFromSymbol),
9711         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
9712         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
9713         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
9714         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
9715         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
9716         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
9717         bug #892038
9718         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
9719         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
9720         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
9721         * src/SDCCsymt.c (newSymbol),
9722         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
9723         enumerator_list),
9724         * src/SDCCval.h,
9725         * src/SDCCval.c (newiList): fixed bug #885705
9726
9727 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9728
9729         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
9730         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
9731
9732 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9733
9734         * device/include/c8051f120.h,
9735         * device/include/c8051f300.h,
9736         * device/include/c8051f310.h: added/updated header files for Silicon
9737         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9738         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
9739         in new section Submitting patches
9740
9741 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9742
9743         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
9744         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9745         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9746         genGenPointerSet),
9747         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
9748         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9749         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9750         genGenPointerSet),
9751         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
9752         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9753         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9754         genGenPointerSet),
9755         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
9756         genFarPointerGet, genCodePointerGet, genGenPointerGet,
9757         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
9758         genGenPointerSet): fixed bug #892400
9759         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
9760         to eliminate build warnings.
9761         * src/SDCCast.c (processParms),
9762         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
9763         fixed bug 751859
9764         * support/valdiag/valdiag.py: added GCC to the list of defines active
9765         when compiling with gcc
9766
9767 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9768
9769         * support/Util/SDCCerr.h,
9770         * support/Util/SDCCerr.c,
9771         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
9772         with an incomplete type (fixed bug #883734)
9773         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
9774
9775 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9776
9777         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
9778
9779 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9780
9781         * src/SDCCast.c (decorateType),
9782         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
9783         function pointer implementation
9784         * support/regression/tests/funptrs.c: added tests to verify both forms
9785         of function pointers work correctly. Added tests to verify parameters
9786         are passed in the correct order.
9787
9788 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
9789
9790         * device.c (regCompare): registers are sorted by ascending
9791         address and increasing size,
9792         * main.c (_pic16_finaliseOptions): removed the declaration
9793         of compiler macro MCU. Now a macro of the format pic18fxxxx
9794         will be defined from the command line
9795
9796 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
9797             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
9798
9799         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
9800         PCOP_RLCF was overwritten!
9801         * gen.c (genSkip): commented out calls to pic16_emitcode,
9802         * (genCmpEQ): fixed "long" compares, only high word did get compared,
9803         * (genlshTwo),
9804         * (genRRC): added debugging info,
9805         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
9806         overwritten while shifting,
9807         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
9808         overwritten while shifting,
9809         * (AccLsh),
9810         * (AccRsh),
9811         * (shiftLLeftOrResult),
9812         * (shiftRLeftOrResult),
9813         * (shiftRLong),
9814         * (shiftLLong): Implemented with pic16_emitpcode
9815         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
9816         * (genLeftShift): Fixed bug, operand for shift by variable always
9817         was "and"ed with 0x0f,
9818         * (genLeftShiftLiteral),
9819         * (genrshTwo),
9820         * (genRightShiftLiteral): added debugging info,
9821         * (genrshFour): added comment,
9822         * (genRightShift): determined signedness from operand "left"
9823         instead of "result"
9824
9825 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9826
9827         * src/SDCCicode.c (geniCodeParms),
9828         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
9829         function pointers, fixed function pointer bugs #861242 and #861896
9830
9831 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9832
9833         * device/include/c8051f000.h,
9834         * device/include/c8051f120.h,
9835         * device/include/c8051f300.h: added header files for Silicon
9836         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
9837
9838 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
9839
9840         * src/SDCCast.c (processParams): added new type flow and restructured
9841         (gatherAutoInit): added new type flow
9842         (addCast): cosmetic changes
9843         (getLeftResultType): added new type flow for array indices, patch
9844         provided by Stas, see FR #877103
9845         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
9846         array index patch by Stas
9847         * src/SDCCast.h: added prototype getResultTypeFromType()
9848         * src/SDCCval.h,
9849         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
9850         * src/pic/glue.c (pic14emitStaticSeg),
9851         * src/pic16/glue.c (pic16emitStaticSeg),
9852         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
9853         for initialization of symbols
9854         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
9855         * support/Util/SDCCerr.h:
9856         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
9857         * .version: bumped version number to 2.3.8
9858         * device/include/Makefile.in (install),
9859         * doc/Makefile (install): changed to 'rm `find ...`' construct to
9860         avoid warnings
9861
9862 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
9863
9864         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
9865         Slade Rich fixed an optimization bug
9866         * src/pic/pcodepeep.c,
9867         * src/pic/pcoderegs.c
9868         * doc/Makefile (install): added test for directory
9869
9870 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9871
9872         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
9873         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
9874         * src/pic/ralloc.c (getRegPtr, getRegGpr),
9875         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
9876         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
9877         * as/mcs51/asexpr.c (term),
9878         * as/hc08/asexpr.c (term): fixed bug #887146
9879
9880 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9881
9882         * src/z80/gen.c (genMult): handle single byte result product
9883         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
9884         DUMMY_READ_VOLATILE (fixed bug #886367)
9885
9886 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
9887
9888         * support/regression/tests/libmullong.c: fixed logic, on little endian
9889         hosts we ended without a mullong_wrapper()
9890
9891 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9892
9893         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
9894         virus/worm forged address usage.
9895
9896 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
9897
9898         Fixed promotion, it should be done on AST level:
9899         * src/SDCCast.c (addCast): added promotion to int
9900         (decorateType): updated call to upCast()
9901         * src/SDCCicode.c (geniCodeLeftShift): removed call to
9902         usualUnaryConversions()
9903
9904 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
9905
9906         * support/regression/tests/literalop.c (mulWrapper): Added a
9907         wrapper to remove integer overflow warnings.
9908
9909         * support/regression/tests/float_trans.c: Made work on host.
9910
9911         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
9912         location of sz80.
9913
9914         * support/regression/generate-cases.py (main): Changed from inline
9915         to a main method.
9916
9917         * doc/Makefile (install): Changed to depth first to get rid of
9918         missing directory install warning.
9919
9920         * as/Makefile (install-doc): Made work on Mac.
9921
9922 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
9923
9924         * src/SDCCast.c: added an additional type flow in decorateType() of
9925         opposite direction, see feature request #860006; it's enabled at runtime
9926         by setting the environment variable SDCC_NEWTYPEFLOW
9927         * src/SDCCast.h: changed prototype of decorateType()
9928         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
9929         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
9930         'char' to 'int' can be omitted, if both operands are 'unsigned char';
9931         see feature request #877103
9932         * src/SDCCval.c: updated call of decorateType()
9933         (valBitwise): fixed bug #882876
9934         (valMinus): added promotion
9935         (valLogicAndOr): result is unsigned
9936         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
9937         * src/SDCCsymt.c (computeType),
9938         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
9939         must not cause an unsigned operation
9940         * src/pic/glue (pic14emitRegularMap),
9941         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
9942
9943 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
9944
9945         * src/pic/pcode.c (PCodeID): commented out left over debug code
9946
9947 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
9948
9949         * support/valdiag/tests/overflow.c: added shift tests
9950         * src/pic/device.c,
9951         * src/pic/gen.c,
9952         * src/pic/gen.h,
9953         * src/pic/glue.c,
9954         * src/pic/main.c,
9955         * src/pic/pcode.c,
9956         * src/pic/pcode.h,
9957         * src/pic/pcodepeep.c,
9958         * src/pic/pcoderegs.c,
9959         * src/pic/ralloc.c,
9960         * src/pic/ralloc.h: applied patch from Slade Rich;
9961         added support for multiple code pages and multiple RAM banks on the
9962         PIC 14 port. The ASM files now no longer simply assume all the
9963         code / RAM are in the same page / bank. This means the linker can
9964         safely allocate code/RAM of separate ASM files to different pages/banks.
9965         * doc/sdccman.lyx: added Slade's tips
9966         * src/mcs51/peeph.def: fixed bug #880768
9967
9968 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9969
9970         * src/hc08/ralloc.c (rematStr): fixed bug #879282
9971         * src/SDCCast.c (decorateType): fixed bug #880197
9972
9973 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
9974
9975         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
9976         getopt.h.
9977
9978         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
9979         strtof is not part of C89 and isn't included with Mac OS X.
9980
9981 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9982
9983         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
9984         shiftL2Left2Result): fixed bug #879326
9985         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
9986         (genMultOneByte): fixed bug in signed vs unsigned multiplication
9987         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
9988         address fetch for clr instruction
9989         * device/lib/hc08/_mulint.c: created optimized assembly version
9990         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
9991
9992 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
9993
9994         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
9995         proposed in FR #877103
9996
9997 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
9998
9999         * src/SDCCval.c (cheapestVal): added missing checks
10000         * src/SDCCicode.c (usualBinaryConversions): fixed condition
10001         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
10002
10003 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
10004
10005         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
10006         equal operands
10007
10008 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
10009
10010         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
10011         loaded with the linker search paths (-L arguments) and the libraries
10012         to be linked with the current source (-l arguments). Changes
10013         currently will affect only the pic16 port.
10014         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
10015         include path the port specific paths and port specific libraries,
10016         * gplink command now contains the $3 argument,
10017         * src/pic16/device.h,
10018         * src/pic16/device.c,: structure PIC_device is made public and
10019         renamed to PIC16_device, the same for variable Pics which is renamed
10020         to Pics16. Updated all references to them.
10021         * src/pic16/glue.c (pic16glue): corrected bug with code
10022         initialization which bypassed the variable initializations block.
10023
10024         * device/lib/pic16/Makefile.rules: removed --penable-stack from
10025         COMPILE_FLAGS and added the --nostdinc option
10026
10027 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10028
10029         * device/include/mc68hc908jb8.h: Register defs for another member
10030         of the hc08 family. Contributed by Bjorn Bringert - thanks!
10031
10032 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
10033
10034         Documenting changes from previous commits.
10035         * configure.in (version 1.56),
10036         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
10037         when generating output files to configure the pic16 library,
10038         but now I've commented it out, since gputils aren't installed in the
10039         SF compile farm, so library won't compile
10040
10041         * device/lib/Makefile.in (version 1.56): initially I've added in
10042         target 'all' the prerequestive 'model-pic16' so it compiled the
10043         pic16 library, but now I've commented it out for the same reasons
10044         above,
10045         * added targets 'model-pic16' and 'objects-pic16' to compile the
10046         library
10047         * added target 'port-specific-objects-pic16' to handle the
10048         generated libraries and copy them into the build/ directory
10049         * added target 'clean-intermediate-pic16' to clean intermediate
10050         files into pic16 directory
10051         * in target 'installdirs' added line to create directory pic16 in
10052         the installation path
10053
10054         * device/include/Makefile.in (version 1.11): in target 'install'
10055         added lines to copy all header files to installation path,
10056         * in target 'installdirs' added line create directory for pic16
10057         headers in the installation path
10058
10059 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
10060
10061         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
10062          a function call
10063
10064 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
10065
10066         * configure,
10067         * device/lib/configure.in,
10068         * device/lib/configure: fixed for autoconf 2.57
10069
10070 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10071
10072         * src/z80/main.c (_parseOptions): fixed the portmode= command line
10073         option so that it actually works. Made it specific to the z80, since
10074         the gbz80 doesn't have these kinds of I/O ports.
10075
10076 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10077
10078         * device/include/z180.h,
10079         * device/lib/_memcpy.c,
10080         * device/lib/_memmove.c,
10081         * device/lib/_mulint.c,
10082         * device/lib/ser_ir.c,
10083         * device/lib/ser_ir_cts_rts.c,
10084         * device/lib/_strcmp.c,
10085         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
10086         * src/z80/main.c (_process_pragma): add support for pragmas bank and
10087         portmode; added deprecation warning for bank= and protmode= forms.
10088         Also, guard against buffer overflow.
10089         * src/z80/gen.c (aopGet): generate better code for sfr banked read
10090
10091 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10092
10093         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
10094         changed interrupt vector table generation to only emit declared vectors.
10095         * device/include/Makefile.in: added missing backslash
10096         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
10097
10098 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10099
10100         Mainly changes to support compilation of the device libraries
10101         * src/pic16/device.c: stack is allocated via symbol and not
10102         via literal number. The symbol is placed in the corresponding
10103         position of the data ram
10104         * (pic16_dump_section): relocatable and absolute uninitialized
10105         data are now emitted in sorted order to reduce section naming,
10106         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
10107         weren't marked as being in the access bank,
10108
10109 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
10110
10111         Added portion of GNU PIC Library under the directory
10112         device/include/pic16 and device/lib/pic16. These files
10113         contain the declarations of SFRs for the PIC18Fxx2 devices.
10114         The directory is initialized via configure from toplevel.
10115
10116 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
10117
10118         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
10119         the spilllocations to be compared correctly
10120
10121 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10122
10123         * src/SDCCast.c (decorateType): fixed bug introduced today
10124
10125 2004-01-12  Borut Razem <borut.razem AT siol.net>
10126
10127         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
10128         doc/sdccman.lyx: upper case pragmas are deprecated
10129
10130 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
10131
10132         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
10133         in simpler and even better code
10134
10135 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
10136
10137         * src/SDCCicode.c (operandOperation): fixed bug #874819
10138         * src/SDCCast.c (decorateType): fixed
10139         char foo (unsigned long ul) { return ul > 0; }
10140
10141 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10142
10143         * doc/sdccman.lyx: Moved and added some sections, small changes
10144         all over. Telling LaTeX to be less strict with word spacing
10145         to better keep the right margin. Changed some notes about
10146         maintainance of the ports in section 3.2.1 - is it OK like this?
10147
10148 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
10149
10150         SDCC source changes:
10151         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
10152         convilong): modified to inform the pic16 port that builtin functions
10153         are external
10154
10155         PIC16 PORT specific changes:
10156         * src/pic16/device.c pic16_dump_equates() added,
10157         processor registers declared internally by the port are emitted in
10158         the translation as equates,
10159         * src/pic16/gen.c: inline code is passed unprocessed to the
10160         translation,
10161         * (pic16_popGetLit2): fnuction modified to take second operand as
10162         pCodeOp pointer and not as literal,
10163         * (popRegFromIdx): prefixed with pic16_,
10164         * (pic16_popCombine2): modified to receive already allocated pCode
10165         operands,
10166         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
10167         * (genFunction): initializes local stack frame and pushes on stack
10168         all the registers used by this function,
10169         * (genEndFunction): restores all registers from stack and restores
10170         stack frame,
10171         * src/pic16/glue.c (pic16emitRegularMap): various changes and
10172         improvements,
10173         * (pic16glue): changed the program startup sequence,
10174         * added new dbName code 'A' for functions placed in absolute section
10175         * src/pic16/main.c: added function attribute _naked,
10176         * added pragma 'code' to place a fnuction at an absolute address,
10177         * added command line arguments --debug-ralloc and --pcode-verbose,
10178         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
10179         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
10180         * (pic16_newpCodeOpLit2): modified to take the second operand as
10181         pCodeOp pointer,
10182         * (pic16_printpBlock): modified to emit each function in a separate
10183         section,
10184         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
10185         UPPER for immediate operands,
10186         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
10187         instruction,
10188         * src/pic16/peeph.def: all peepholes with movff are commented out,
10189         because there is a problem in the pcode peep optimizer,
10190         * src/pic16/ralloc.c: the register allocator can now reuse local
10191         function symbols for another function. This saves register usage.
10192         * src/pic16/ralloc.h: added flag isLocal in structure regs,
10193
10194         Added file src/pic16/NOTES with information about program writing on
10195         the current port version.
10196
10197 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10198
10199         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
10200         and peephole 252 (array access)
10201
10202 2004-01-09  Borut Razem <borut.razem AT siol.net>
10203
10204         * src/SDCCmain.c : fixed #872250: -l command line defined library
10205           files are scanned before standard library files
10206
10207 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10208
10209         * src/SDCCast.c (decorateType): fixed bug #874046
10210
10211 2004-01-09  Borut Razem <borut.razem AT siol.net>
10212
10213         * support/scripts/sdcc.nsi: remove previous installation
10214
10215 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10216
10217         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
10218         bytes for last interrupt vector (mcs51)
10219         * sdcc.spec: fixed typo
10220
10221 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10222
10223         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
10224         gen51Code): more efficient parameter receive for --model-large
10225         ("bug" #845294)
10226
10227 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10228
10229         * src/ds390/main.c,
10230         * src/z80/main.c: added missed needLinkerScript flags (more than
10231         one port structure defined in these file)
10232         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
10233         bug #795325
10234
10235 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
10236
10237         * src/SDCCmain.c: removed various references to DEFAULT_PORT
10238         * src/port.h: added flag needLinkerScript in port->linker
10239         structure to inform whether to create a .lnk file or not,
10240         * src/avr/main.c,
10241         * src/ds390/main.c,
10242         * src/hc08/main.c,
10243         * src/mcs51/main.c,
10244         * src/pic/main.c,
10245         * src/pic16/main.c,
10246         * src/xa51/main.c,
10247         * src/z80/main.c: changed appropriately to configure
10248         needLinkerScript flag
10249         * src/pic/gen.c,
10250         * src/pic16/gen.c (genAddrOf): fixed bug #863624
10251         * src/pic/glue.c: added variable udata_section_name to
10252         override default uninitialized data segment definition for
10253         devices only with SHAREBANK memory (reported from Erik Epetrich)
10254         * (pic14emitOverlay): modified to emit a commented overlay segment
10255         directive when no overlay data exist
10256         * (picglue): modified to emit uninitialized data segment
10257         according to udata_section_name
10258         * src/pic/main.c (_pic14_parseOptions): added command line
10259         options --udata-section-name=[name] to override default
10260         udata definition name
10261         * modified _linkCmd and _asmCmd to include compiler passed
10262         arguments via -W option
10263         * src/pic16/main.c: added $l in _asmCmd, changed extension for
10264         object file from '.rel' to '.o' in port->linker structure,
10265         changed size of fptr from 2 to 3 in port structure
10266
10267 2004-01-07  Borut Razem <borut.razem AT siol.net>
10268
10269         * support/scripts/sdcc.nsi: update PATH
10270         * support/scripts/sdcc.ico: craeted
10271
10272 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
10273
10274         * device/include/Makefile.in: fix install
10275         * doc/Makefile: fix install
10276
10277 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10278
10279         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
10280         in bug #860505
10281         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
10282         how the function variable allocation summary is displayed; also
10283         include information about variables allocated to the overlay
10284         segment
10285
10286 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10287
10288         * as/mcs51/lkmain.c: Help about -Y option
10289         * as/mcs51/lkarea.c: Fixed gcc warnings
10290
10291 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10292
10293         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
10294         fixed warning
10295         * support/valdiag/tests/overflow.c: added
10296         * src/SDCCast.c (decorateType),
10297         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
10298         LEFT_OP (left shift)
10299
10300 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10301
10302         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
10303         (default behaviour).
10304
10305 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10306
10307         A python script to validate compiler diagnostic messages. It can be
10308         used to verify that sdcc complains about bad c source code and
10309         gives a good location of the error.
10310         * support/valdiag/Makefile,
10311         * support/valdiag/valdiag.py,
10312         * support/valdiag/tests/*
10313
10314 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10315
10316         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
10317         * src/SDCCsymt.c (newEnumType),
10318         * src/SDCCsymt.h
10319         * support/Util/SDCCerr.c,
10320         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
10321         enum related bugs.
10322         * support/regression/tests/enum.c: added test for enum values that
10323         require at least 2 bytes of storage.
10324
10325 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10326
10327         * src/common.h: added ifndef/define/endif macros
10328         around the header file.
10329         Bug reported from Jesus Calvino-Fraga
10330
10331 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
10332
10333         * sdcc.spec: updated
10334         * device/include/Makefile.in: don't install CVS directories
10335         * device/lib/Makefile.in: added removal of CVS directories after install
10336         * doc/Makefile: fixed install, added local_icons
10337         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
10338         * src/mcs51/gen.c (genRightShift): fixed bug #870788
10339         * src/ds390/gen.c (genRightShift): fixed bug #870788
10340         * src/SDCCast.c (decorateType): fixed bug #870781
10341
10342 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
10343
10344         PIC16 port related changes:
10345         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
10346         added variable stackPos,
10347
10348         * gen.c: genCall, assignResultValue: added support for
10349         pushing/retrieving function parameters to/from stack,
10350         genFunction,genEndFunction: setup stack frame for the
10351         generated function,
10352         genAddrOf: will be changed according to bug 863624
10353
10354         * added files genutils.c and genutils.h which contain gen*
10355         debugged and optimised functions extracted from gen.c
10356
10357         * glue.c: added variable 'externs' which holds extern symbols,
10358         pic16emitRegularMap: is modified to properly handle relocatable
10359          symbols under the new scheme,
10360         pic16createInterruptVect: is modified
10361         pic16printPublics: is modified to emit 'global' assembler directives,
10362         added pic16_printExterns to print extern symbols,
10363         pic16glue: initializes stack/frame pointer in the beginning of
10364         the assembly output. Temporary hack, will be corrected later,
10365         because gplink yet does not support stack and SDCC does not
10366         yet support a type of crt0.o object to create the final binary.
10367
10368         * Removed many lines that contain 8051 legacy code.
10369         * The code is finally placed under a 'code' directive.
10370         * Added port specific options.
10371
10372         * _process_pragma: simplified since now we do not need *special*
10373         include file to define SFR registers. But a separate header
10374         will be needed. This will be developed later.
10375         * _pic16_parseOptions: added, parses port specific options:
10376         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
10377         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
10378         --preplace-udata-with=
10379
10380         * _pic16_setDefaultOptions: modified to initialize section names,
10381         but hack is temporarly out of order since it needs improvement.
10382         * _pic16_genAssemblerPreamble: configuration words are emitted by
10383         their address instead of their name. This part is incomplete and
10384         supports only the 18Fxx2 devices. Other devices will emit an error
10385         during assembly since they do not contain the same set of config
10386         registers
10387         * _pic16_genIVT: is modified,
10388
10389         * pcode.c: added definitions for some hardware registers that are needed
10390         for stack support
10391         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
10392         All PCI entries are updated. Now LFSR is supported.
10393         * Removed pic16_pciTRIS is mentioned by mdubuc in source
10394         * added pic16_newpCodeOpLit2 to support instructions with
10395         two literal arguments
10396         * pic16_pCode2str: corrected code that emits assembler instructions
10397         with two literal operands and those that have an access bit modifier
10398         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
10399         this fixes a bug which caused some labels to be lost, when an
10400         assembler directive was added, i.e. banksel,
10401         * pic16_FixRegisterBanking: improved logic that causes the insertion
10402         of bank switching,
10403         * InlineFunction: functions that are called once, are not any more
10404         inlined. This can be a port option in the future,
10405
10406         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
10407
10408         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
10409         hold the corresponding uninitialized symbols,
10410         * pic16_allocProcessorRegister: registers have explicit marked the
10411         accessBank field,
10412         * pic16_allocInternalRegister: registers are explicit marked as
10413         not used,
10414         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
10415         processing list, so bit registers were lost,
10416         *
10417
10418         * ralloc.h: added field 'accessBank' and original symbol operand
10419         in register definition,
10420         * removed the field isMapped from register definition,
10421
10422         ** Several functions have been removed from various sources:
10423         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
10424         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
10425         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
10426         pic16_assignRelocatableRegisters
10427
10428         ** others have been introduced:
10429         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
10430         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
10431
10432 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
10433
10434         * support/scripts/inc2h.pl: changed definition of BIT_AT
10435         to emit 'sbit at' instead of 'bit at'. This was a request.
10436
10437         PIC16 port related preliminary changes:
10438         * gen.c: prefixed function popRegFromString with
10439         pic16_ and all references to it corrected
10440         * pcode.c: all pic16_pc_* hardware registers prefixed
10441         with underscore (_),
10442         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
10443         * ralloc.c: newReg(): when register is REG_SFR then
10444         set address to rIdx,
10445         pic16_allocProcessorRegister(): marks register wasUsed=0
10446         pic16_writeUsedRegs(): added a call to assign processor
10447         registers via pic16_assignFixedRegisters
10448
10449 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10450
10451         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
10452         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
10453         variables in unused register banks.  Also the SSEG is placed
10454         wherever there is enough space for it, and IDATA can be anywhere
10455         in internal RAM.  For now compile using -Wl-Y[stack_size].
10456         The mem file is different for this option as well, since it
10457         makes no sense of talking about DSEG lenght.
10458
10459 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
10460
10461         * src/SDCClrange.c: fixed bug 869095 that caused segfault
10462         in certain cases, e.g. when ROM assignment, patch provided
10463         from Albert den Haan.
10464
10465 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
10466
10467         Many signedness and type propagation fixes:
10468         * src/SDCCicode.c: made geniCodeCast() static
10469         replaced SPEC_ by IS_ (cosmetic)
10470         (operandOperation): fixed div and mod operation
10471         (usualBinaryConversions): added support for promotion of char
10472         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
10473         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
10474         (geniCodeAdd): an array index will stay unsigned, even if promoted
10475         from char to int
10476         (geniCodeArray): ditto
10477         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
10478         * src/SDCCsymt.c (computeType): added more support for char;
10479         promotion of char is selectable by promoteCharToInt, fixed signedness
10480         for all cases
10481         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10482         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
10483         * src/SDCCval (val*): replaced signedness calculation by
10484         computeType()
10485         rearranged if-branches (cosmetic)
10486         (valShift): added warning W_SHIFT_CHANGED
10487         (valCompare): fixed problem with different types
10488         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
10489         * support/regression/tests/literalop.c: added many cases
10490         * support/regression/tests/ast_constant_folding.c: changed finally to
10491         'unsigned int'
10492         * .version: new year, new version: 2.3.7
10493         * src/SDCCmain.c (main): applied patch #866468
10494         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
10495         provided by Scott Bronson
10496         * doc/sdccman.lyx: updated documentation for sdcdb
10497         updated and added chapter tips
10498
10499 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10500
10501         * src/SDCCsymt.h: missing from yesterday's commits
10502
10503 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10504
10505         * src/SDCC.y (struct_or_union_specifier),
10506         * support/Util/SDCCerr.c,
10507         * support/Util/SDCCerr.h: verify that struct & union tags are used
10508         as declared.
10509
10510 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10511
10512         * src/SDCCglobl.h: missing from yesterday's commits
10513
10514 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10515
10516         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
10517         sft_attributes, struct_declaration, parameter_declaration,
10518         type_name, start_block, declaration_list),
10519         * src/SDCC.lex (check_type): support redefinition of typedef names
10520
10521 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10522
10523         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
10524         aligned xdata arrays. Erik helped me with the if clause.
10525
10526 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10527
10528         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
10529         warning
10530
10531 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10532
10533         * src/SDCCast.h,
10534         * src/SDCCast.c (newAst_),
10535         * src/SDCCicode.h,
10536         * src/SDCCicode.c (ast2iCode, newiCode),
10537         * src/SDCCglobl.h,
10538         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
10539         expr, statement, expression_statement, selection_statement,
10540         iteration_statement, expr_opt, jump_statement): foundation for tracking
10541         sequence points
10542         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
10543         point code too)
10544
10545 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10546
10547         * support/Util/SDCCerr.c,
10548         * src/SDCCast.h,
10549         * src/SDCCast.c (createCase, createDefault, decorateType),
10550         * src/SDCClabel.c (labelUnreach),
10551         * src/SDCC.y (labeled_statement, jump_statement): More improvements
10552         to error messages.
10553         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
10554         (with thanks to Stas Sergeev)
10555         * device/include/time.h,
10556         * device/lib/time.c (CheckTime): suppress unreachable code warning
10557
10558 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10559
10560         * src/SDCCast.c (createIvalCharPtr),
10561         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
10562         bug #753752)
10563         * support/regression/tests/nullstring.c: tests for these two bugs
10564
10565 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10566
10567         * support/Util/SDCCerr.h,
10568         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
10569         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
10570         about storage class and 'at' used inside struct or union
10571         * src/SDCCBBlock.c (iCodeFromeBBlock),
10572         * src/SDCCcse.c (ifxOptimize),
10573         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
10574         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
10575         printIval, emitStaticSeg, emitOverlay),
10576         * src/SDCClabel.c (deleteIfx),
10577         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
10578         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
10579         gatherAutoInit, processParms),
10580         * support/Util/SDCCerr.h,
10581         * support/Util/SDCCerr.c (werrorfl): Support for better error location
10582         reporting for post-parse errors.
10583
10584 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10585
10586         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
10587         implicit casts via union; they don't work on big endian systems
10588         (possible fix for bug #861138)
10589
10590 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10591
10592         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
10593         * src/mcs51/main.c: fixed the fix for bug #737001
10594
10595 2003-12-15  Borut Razem <borut.razem AT siol.net>
10596
10597         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
10598
10599 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10600
10601         * support/makebin/makebin.c: put output in binary mode
10602
10603 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10604
10605         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
10606         xdata and data memory on startup. Set the environment variable
10607         SDCC_NOGENRAMCLEAR to disable this.
10608         * src/mcs51/peephole.def,
10609         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
10610         (allows non-interrupt and interrupt code to safely compete for a resource
10611         without the non-interrupt code having to disable interrupts)
10612
10613 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10614
10615         * src/SDCCicode.c (geniCodeAdd),
10616         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
10617         with valFromType if type might be a pointer and host is big endian).
10618         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
10619         types, not just integer types.
10620         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
10621         multiply defined with mismatching "at" address.
10622
10623 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10624
10625         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
10626         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
10627         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
10628         with embedded nulls (fixed bug #753752)
10629
10630 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10631
10632         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
10633         Apparently this did not see much testing (endless loop)
10634
10635 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10636
10637         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
10638
10639 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10640
10641         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
10642         gracefully handle NULL memmap pointers
10643
10644 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10645
10646         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
10647         instead of deleting the iCode when an operand is volatile
10648         * src/z80/gen.c (genDummyRead),
10649         * src/mcs51/gen.c (genDummyRead),
10650         * src/ds390/gen.c (genDummyRead),
10651         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
10652         not just IC_RIGHT
10653         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
10654         * src/SDCC.y: fixed bug #850420
10655
10656 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10657
10658         Applied z80 i/o port patch from Peter Townson and fixed some operators
10659         to better handle operands in A register.
10660         * device/include/z180.h
10661         * src/SDCC.y
10662         * src/SDCCglue.c
10663         * src/z80/gen.c
10664         * src/z80/gen.h
10665         * src/z80/main.c
10666         * src/z80/peeph-z80.def
10667         * src/z80/peeph.def
10668         * src/z80/z80.h
10669
10670 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10671
10672         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
10673
10674 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10675
10676         * device/lib/hc08/_mullong.c: Removed extra #endif
10677
10678 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10679
10680         * sim/ucsim/hc08.src/inst.cc,
10681         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
10682         carries from x to h
10683         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
10684         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
10685         * device/include/stdarg.h: fixed varargs for hc08
10686         * device/lib/Makefile.in,
10687         * device/lib/hc08/Makefile,
10688         * device/lib/hc08/_mulint.c,
10689         * device/lib/hc08/_mullong.c: fixed some endian problems
10690
10691 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10692
10693         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
10694         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
10695         * device/lib/_gptrget.c,
10696         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
10697
10698 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10699
10700         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
10701         * src/SDCCast.c (astErrors): fixed bug #846007
10702         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
10703
10704 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10705
10706         * src/SDCCast.c (decorateType): disabled a transformation I added in
10707         revision 1.188 (access to fields of a structure at an absolute address);
10708         it breaks with bitfields, extern declarations, and gcse analysis.
10709         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
10710         could be assigned through a pointer, so don't complain.
10711         * src/SDCCast.c (astErrors),
10712         * src/SDCCast.h,
10713         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
10714
10715 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
10716
10717         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
10718         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
10719         output of __config directives, since gpasm now supports them
10720         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
10721         pre-processor macro, i.e. -DMCU=p18f452
10722         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
10723         and modified to handle 'cast' icode similarly to '=' icode
10724         * src/pic16/device.h (typedef struct PIC_device): added field
10725         'extMIface' to indicate that chip has external memory interface
10726         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
10727         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
10728         18F8720
10729
10730 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10731
10732         * src/SDCC.y (pointer): fixed bug #846006
10733         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
10734         * src/SDCCast.c (decorateType): fixed bug #846009
10735         * src/ds390/peeph.def,
10736         * src/ds390/gen.c (genAnd, genOr),
10737         * src/mcs51/peeph.def,
10738         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
10739
10740 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10741
10742         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
10743         * src/SDCCdflow.c
10744         * src/SDCCcse.c
10745         * src/SDCCcse.h
10746         * src/SDCCBBlock.h
10747         * src/SDCCBBlock.c
10748
10749 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
10750
10751         fixed bug #845089
10752         * src/SDCCbitv.h,
10753         * src/SDCCbitv.c: added function to free a bitvector
10754         * src/SDCClrange.h,
10755         * src/SDCClrange.c: added function to recompute the liveranges
10756         * src/avr/ralloc.c,
10757         * src/ds390/ralloc.c,
10758         * src/hc08/ralloc.c,
10759         * src/mcs51/ralloc.c,
10760         * src/pic/ralloc.c,
10761         * src/pic16/ralloc.c,
10762         * src/xa51/ralloc.c,
10763         * src/z80/ralloc.c: recompute the liveranges after register packing
10764
10765 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
10766
10767         * src/SDCCloop.c (newInduction): fixed bug #845630
10768
10769 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10770
10771         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
10772         inadvertantly left behind from my 2003-11-12 change
10773
10774 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10775
10776         Updated headers I neglected to commit yesterday.
10777         * src/SDCClrange.h,
10778         * src/SDCCicode.h
10779
10780 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10781
10782         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
10783         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
10784         * src/SDCCopt.c (eBBlockFromiCode),
10785         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
10786         the creation of the key hash table from the sequencing so it can be used
10787         earlier (for some GCSE bug fixes still pending)
10788
10789 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10790
10791         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
10792         * support/regression/tests/addsub.c: testing genPlus shortcut
10793
10794 2003-11-15  Borut Razem <borut.razem AT siol.net>
10795
10796         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
10797
10798 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10799
10800         * src/SDCCcse.c (cseBBlock): fixed bug #527779
10801         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
10802         ordering is immaterial.
10803         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
10804
10805 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10806
10807         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
10808         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
10809         (SIGSEV) of bug #840381
10810         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
10811         unlink new file before rename if new and old filenames are the same)
10812
10813 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10814
10815         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
10816         uninitialized variables) for the mcs51. Set environment variable
10817         SDCC_GENRAMCLEAR to test.
10818         xdata initialization slightly shorter
10819
10820 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10821
10822         * src/SDCCsymt.h,
10823         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
10824         #838241 & 780691 (basicly the same bug)
10825         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
10826         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
10827
10828 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
10829
10830         * src/SDCCmain.c (linkEdit): "fix" #834252
10831
10832 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10833
10834         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
10835         * src/SDCCast.h,
10836         * src/SDCC.y: fixed bug #819403
10837
10838 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10839
10840         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
10841         the reentrant attribute.
10842         * src/hc08/gen.c (genPackBits): added missing stack readjustment
10843         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
10844         simulation
10845         * src/SDCCast.c (decorateType): fixed bug with storage class not being
10846         updated during pointer dereference; f.e. ~(((char *)1)*) was being
10847         erroneously reduced to a literal.
10848         * src/hc08/ralloc.c (packRegisters, rematStr),
10849         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
10850         some cases
10851
10852 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10853
10854         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
10855         * doc/sdccman.lyx: changed from 'article' to 'book'
10856         * doc/Makefile: readded test_suite_spec and cdbfileformat
10857
10858 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
10859
10860         * device/include/stdlib.h: include malloc.h to comply with ANSI
10861         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
10862
10863 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10864
10865         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
10866         * doc/clean.mk: also remove *.out files
10867         * doc/sdccman.lyx: some additions, larger top/bottom margins
10868
10869 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10870
10871         * src/SDCC.y: fixed bug #837365
10872         * support/regression/tests/bitopcse.c
10873         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
10874         a symbol (might be valop instead)
10875         * device/lib/Makefile.in: added errno.c to HC08SOURCES
10876         * device/lib/clean.mk: added hc08 to the cleaning list
10877
10878 2003-11-04  Borut Razem <borut.razem AT siol.net>
10879
10880         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
10881           made 2003-11-04
10882         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
10883           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
10884           malloc is declared in standard stdlib.h
10885
10886 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10887
10888         * device/lib/hc08/Makefile: need to clean .rel not .o files
10889         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
10890
10891 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10892
10893         * src/port.h,
10894         * src/hc08/main.c,
10895         * src/mcs51/main.c,
10896         * src/ds390/main.c,
10897         * src/z80/main.c,
10898         * src/avr/main.c,
10899         * src/pic/main.c,
10900         * src/pic16/main.c,
10901         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
10902         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
10903         tests (which uses the port's oclsExpense function)
10904         * src/SDCC.y,
10905         * src/SDCCast.c,
10906         * src/SDCCicode.c,
10907         * src/hc08/gen.c,
10908         * src/ds390/gen.c,
10909         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
10910
10911 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10912
10913         * src/SDCCcse.c (ifxOptimize),
10914         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
10915         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
10916         deleting the IFX iCode.
10917         * src/hc08/ralloc.c: reduced unneeded slocs
10918         * src/hc08/gen.c: fixed bug in asmopToBoolean
10919
10920 2003-11-04  Borut Razem <borut.razem AT siol.net>
10921
10922         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
10923           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
10924           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
10925           transferred to configure
10926
10927 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
10928
10929         Use headers defined in the C[++] standards:
10930         * sim/ucsim/gui.src/serio.src/fileio.cc
10931         * sim/ucsim/gui.src/serio.src/frontend.cc
10932         * sim/ucsim/gui.src/serio.src/main.cc
10933         * sim/ucsim/gui.src/serio.src/posix_signal.cc
10934         * support/Util/NewAlloc.c
10935         * as/hc08/lklibr.c
10936         * as/mcs51/lklibr.c
10937         * as/z80/aslist.c
10938         * as/z80/assym.c
10939
10940 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10941
10942         * Added MSVC projects for hc08 assembler and linker:
10943         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
10944         /as/hc08/link_hc08.dsp
10945
10946 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
10947
10948         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
10949
10950 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
10951
10952         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
10953
10954 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10955
10956         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
10957
10958 2003-10-31  Borut Razem <borut.razem AT siol.net>
10959
10960         * support/cpp2/cpplib.h,
10961           support/cpp2/cpplib.c,
10962           support/cpp2/cpplex.c,
10963           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
10964           to switch _asm block preprocessing on / off. Default is
10965           #pragma preproc_asm +
10966
10967 2003-10-31  Borut Razem <borut.razem AT siol.net>
10968
10969         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
10970           when outputting comment blocks (when executed with -C option) and
10971           _asm (SDCPP specific) blocks
10972
10973 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10974
10975         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
10976
10977 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
10978
10979         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
10980
10981 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
10982
10983         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
10984         * src/SDCCast.c (decorateType): fixed bug #832664
10985
10986 2003-10-31  Borut Razem <borut.razem AT siol.net>
10987
10988         * support/cpp2/cpplex.c: fixed for SDCPP:
10989           comments(when executed with -C option) and _asm blocks
10990           were included even if they where in skipped #if block.
10991           Applied solution from GCC cpp 3.3.2
10992
10993 2003-10-31  Borut Razem <borut.razem AT siol.net>
10994
10995         * src/SDCC.lex: sdcc now understands both formats:
10996           '# <line_number> <file_name>' and
10997           '#line <line_number> <file_name>'
10998         * support/cpp2/cppmain.c: sdcpp now generates the standard
10999           '# <line_number> <file_name>' instead of former
11000           '#line <line_number> <file_name>'
11001
11002 2003-10-30  Borut Razem <borut.razem AT siol.net>
11003
11004         * support/cpp2/cpphash.h,
11005         * support/cpp2/cpplib.h
11006         * support/cpp2/cpplex.c,
11007         * support/cpp2/cppmain.c,
11008         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
11009
11010 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11011
11012         Fixed a number of problems revealed by bug #827883.
11013         * src/SDCCloop.c (loopInvariants): Spill location of the
11014         result operand should be recomputed if extracted from
11015         a loop. Also, don't extract assignments of an iTemp
11016         from a literal.
11017         * src/SDCCast.c (isConformingBody): loop reversal should
11018         not occur if the control variable is involved with a
11019         relational operator.
11020
11021 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
11022
11023         * .version: bumped to 2.3.6 to reflect the big improvements
11024         made by Erik and Klaus. Thanks!
11025
11026 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
11027
11028         Replaced the livrange code.
11029         * src/SDCClrange.c: added new LR code
11030         * src/SDCCloop.c,
11031         * src/SDCCBBlock.h: removed remainig parts from old LR code
11032         * src/ds390/ralloc.c,
11033         * src/ds390/gen.c: minor fixes to make it work with new code
11034
11035 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11036
11037         * as/hc08/asm.h,
11038         * as/hc08/lkrloc.c,
11039         * src/hc08/gen.c,
11040         * src/hc08/ralloc.c: Fix various warnings related to the hc08
11041         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
11042         (tweaked fix for bug #818696)
11043
11044 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11045
11046         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
11047
11048 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11049
11050         * src/SDCCmain.c,
11051         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
11052         * src/mcs51/gen.c (gencjneshort),
11053         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
11054         more efficient (per Scott Bronson's suggestion)
11055
11056 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11057
11058         Extended the semantics of the critical keyword to include
11059         individual statements. See RFE #827755 and #799831
11060         * src/SDCC.y
11061         * src/SDCCicode.c
11062         * src/SDCCopt.c
11063         * src/SDCCast.c
11064         * support/Util/SDCCerr.c
11065         * support/Util/SDCCerr.h
11066         * src/mcs51/gen.c
11067         * src/ds390/gen.c
11068         * src/hc08/gen.c
11069
11070 2003-10-19  Borut Razem <borut.razem AT siol.net>
11071
11072         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
11073
11074 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11075
11076         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
11077         Fixed bug #818696
11078         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
11079         and predecrement operand is displayed
11080
11081 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11082
11083         * src/SDCCval.c (valMinus): fixed bug #826041
11084
11085 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11086
11087         Some hc08 related updates that I missed earlier
11088         * sim/ucsim/stypes.h
11089         * support/regression/ports/hc08/spec.mk
11090
11091 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11092
11093         New target "hc08" for the Motorola 68hc08 family of micros
11094
11095         * configure
11096         * configure.in
11097         * Makefile
11098         * src/hc08/*
11099         * src/SDCCmain.c
11100         * src/port.h
11101         * sim/ucsim/hc08.src/*
11102         * sim/ucsim/configure.in
11103         * src/ucsim/configure
11104         * sim/ucsim/packages_in.mk
11105         * as/hc08/*
11106         * as/Makefile
11107         * device/include/mc68hc908qy.h
11108         * device/lib/hc08/*
11109         * device/lib/Makefile.in
11110         * support/regression/ports/hc08/*
11111         * support/regression/Makefile
11112
11113 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11114
11115         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
11116         regression test
11117         * src/ds390/gen.c (genCast): fixed bug #821957
11118
11119 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
11120
11121         * device/lib/logf.c: "fixed" overlay bug
11122         * support/regression/ports/host/spec.mk: added m library
11123         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
11124         * support/regression/tests/float_trans: added (for Eric)
11125
11126 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
11127
11128         * src/mcs51/gen.c (genCpl): fixed bug
11129         http://sf.net/mailarchive/message.php?msg_id=6263915
11130
11131 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
11132
11133         * src/SDCCast.c (decorateType): added extended constant folding
11134         * src/SDCCsymt.c (computeType): cleanup
11135         * src/SDCCval.c (valShift): minor optimization
11136         * support/regression/tests/ast_constant_folding.c: added
11137
11138 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11139
11140         * src/SDCCmain.c: removed some unintended changes
11141
11142 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11143
11144         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
11145         * src/z80/gen.c: fixed part of bug #817589
11146         * src/SDCCsymt.c (checkFunction): fixed bug #817895
11147
11148 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
11149
11150         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
11151         * src/SDCCcflow.c
11152         * src/SDCCcse.c
11153         * src/SDCCdflow.c
11154         * src/SDCClabel.c
11155         * src/SDCClrange.c
11156         * src/SDCCmem.c
11157         * src/SDCCopt.c
11158         * src/SDCCpeeph.c
11159         * src/SDCCset.c
11160         * src/avr/ralloc.c
11161         * src/ds390/ralloc.c
11162         * src/izt/ralloc.c
11163         * src/mcs51/ralloc.c
11164         * src/pic/ralloc.c
11165         * src/pic16/ralloc.c
11166         * src/xa51/ralloc.c
11167         * src/z80/ralloc.c
11168         * src/z80/gen.c: removed unused label "release:"
11169
11170 2003-10-06  Borut Razem <borut.razem AT siol.net>
11171
11172         * src/SDCC.lex: removed definition of unused variables
11173           save_optimize and save_options
11174
11175 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
11176
11177         * clean.mk: removed '=' in "-maxdepth=1"
11178         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
11179         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
11180
11181 2003-10-06  Borut Razem <borut.razem AT siol.net>
11182
11183         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
11184           my_unput() replaced by unput()
11185
11186 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
11187
11188         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
11189         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
11190         type-punned pointer will break strict-aliasing rules"
11191         Old LR behaviour is again default; Klaus' LR can be choosen by
11192         defining the environment variable LRKLAUS
11193         * src/SDCCBBlock.h
11194         * src/SDCCloop.c
11195         * src/SDCClrange.c
11196         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
11197         * clean.mk: fixed removal of files in bin/CVS/
11198         * device/lib/clean.mk: fixed removal of directories small and large
11199         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
11200         * src/SDCCicode.c,
11201         * src/SDCCval.c: removed superflous test for pedantic
11202
11203 2003-10-05  Borut Razem <borut.razem AT siol.net>
11204
11205         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
11206           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
11207           message "unmatched #pragma SAVE and #pragma RESTORE"
11208
11209 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11210
11211         * doc/sdccman.lyx: various additions and updates (interrupts, inline
11212           assembly, critical functions, atomic, nojtbound)
11213
11214 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
11215
11216         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
11217         * src/SDCCBBlock.h
11218         * src/SDCCloop.c
11219         * src/SDCCloop.h
11220         * src/SDCClrange.c
11221
11222 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11223
11224         * src/z80/gen.h,
11225         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11226         * src/mcs51/gen.h
11227         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11228         * src/ds390/gen.h
11229         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
11230         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
11231         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
11232
11233 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11234
11235         * src/z80/gen.c (genRet): fixed bug #524753
11236         * src/z80/gen.c (genCast): fixed internal error on cast from
11237         pointer to long
11238         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
11239         fix for bug #477835 to the z80
11240         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
11241         for tracking iCodes in the peephole optimizer for z80
11242
11243 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11244
11245         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
11246         the other part of bug #814548
11247         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
11248
11249 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
11250
11251         * src/SDCCcse.c: fixed part of bug #814548
11252
11253 2003-09-28  Borut Razem <borut.razem AT siol.net>
11254
11255         * src/asm.c: rewrite of printILine() to use temporary file instead
11256           a pipe
11257         * src/xa51/main.c: commented out declaration of int rewinds
11258
11259 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11260
11261         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
11262
11263 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11264
11265         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
11266         * src/asm.c (printILine): Fixed bug #811015
11267
11268 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11269
11270         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
11271         freeing.
11272
11273 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11274
11275         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
11276         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
11277         to correctly handle general case of AOP_PAIRPTR
11278         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
11279
11280 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11281
11282         * src/mcs51/ralloc.c (fillGaps),
11283         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
11284         register positioning bug)
11285
11286 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
11287
11288         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
11289
11290 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11291
11292         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
11293         genCodePointerGet, genGenPointerGet, genFarPointerSet,
11294         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
11295         (ralloc doesn't intentionally do this now, but perhaps later)
11296         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
11297         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
11298         register positioning bugs (Fixed bug #762602 and #795325)
11299         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
11300         (Fixed bug #808779)
11301         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
11302         lines that --i-code-in-asm generates
11303
11304 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11305
11306         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
11307         trying to fclose a FILE* that was already closed.
11308
11309 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11310
11311         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
11312         of const struct should be treated as if const themselves)
11313
11314 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
11315
11316         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
11317
11318 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11319
11320         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
11321         Unix (/n) and DOS (/r/n) line terminations.
11322
11323 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11324
11325         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
11326         bug #613775
11327
11328 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11329
11330         * src/mcs51/gen.c (genFunction, genEndFunction),
11331         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
11332         and restore of EA so that stack offsets to parameters are
11333         correct when using both critical and reentrant/stack-auto.
11334         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
11335         size (can be triggered in error if sloc is shared between
11336         different sized objects)
11337         * device/include/float.h: fixed macros to explicitly use
11338         unsigned long where needed
11339
11340 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
11341
11342         Feature req. 799831: added code to allow nesting of critical functions
11343         * src/mcs51/gen.c (genFunction, genEndFunction)
11344         * src/ds390/gen.c (genFunction, genEndFunction)
11345
11346 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11347
11348         * src/SDCCsymt.c (sclsFromPtr),
11349         * src/SDCCsymt.h,
11350         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
11351         support for standard C idiom of memory mapped variables; for
11352         example, *((xdata int*)0x1234) = 1 is now internally equivalent
11353         to xdata int at 0x1234 tempvar = 1.
11354         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
11355         provided by Akiya ISHIDA
11356
11357 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
11358
11359         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
11360         * src/SDCCval.c (constVal): added reduction from int to char
11361         * src/SDCCval.c (valMult, valDiv): fixed sign handling
11362         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
11363         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
11364         to ignore the sign
11365         * support/regression/tests/shifts.c: fixed
11366
11367 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11368
11369         * src/z80/gen.c (genXor): Fixed bug #805445
11370
11371 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11372
11373         Fixed bug #621531 (const & volatile confusion in the type chain).
11374         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
11375         refer to the const or volatile state of the pointer itself.
11376
11377         * src/SDCCast.c
11378         * src/SDCCglue.c
11379         * src/SDCCicode.c
11380         * src/SDCCsymt.c
11381         * src/SDCCval.c
11382         * src/SDCC.y
11383         * src/SDCCsymt.h
11384         * src/pic/gen.c
11385         * src/pic/ralloc.c
11386         * src/pic16/gen.c
11387         * src/pic16/ralloc.c
11388         * support/regression/tests/const.c
11389
11390 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11391
11392         When checking for duplicated modules, use absolute paths
11393         instead of relative paths.  Files changed:
11394
11395         * as/mcs51/lklib.c
11396         * link/z80/lklib.c
11397
11398 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11399
11400         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
11401
11402 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11403
11404         * device/include/string.h: added size_t typedef, changed
11405         prototypes to use size_t, eliminated separate reentrant and
11406         non-reentrant declarations, added _memmove declaration
11407         * device/lib/_memcpy.c: changed to use size_t instead of int,
11408         changed /4 to >>2 to avoid division library call
11409         * device/lib/_memcmp.c,
11410         * device/lib/_memset.c,
11411         * device/lib/_strncat.c,
11412         * device/lib/_strncpy.c,
11413         * device/lib/_strncmp.c: changed to use size_t instead of int
11414         * device/lib/_memmove.c: new file (fixed bug #772294)
11415         * device/lib/Makefile.in: added _memmove.c
11416         * device/lib/z80/asm_strings.s: fixed bug #772290
11417         * support/regression/tests/bitfields.c: attempt to fix host assertion
11418         failure on amd64-unknown-linux2.2
11419
11420 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11421
11422         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
11423         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
11424         * as/z80/asmain.c (main): fixed bug #801766
11425
11426 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
11427
11428         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
11429         compilers
11430
11431 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11432
11433         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
11434         reported in bug #800609
11435
11436 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
11437
11438         * Top header beautifications in src/pic16 directory:
11439           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
11440           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
11441           pcoderegs.h, ralloc.c, ralloc.h
11442         * main.c: added top header and GPL license notice
11443         * pcode.c: fixed the if-conditional warning
11444
11445 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
11446
11447         * device/lib/_mullong.c: replaced int by short for gcc
11448
11449 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11450
11451         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
11452         and JUMPTABLE iCodes properly now (worked by accident before)
11453         * src/mcs51/gen.c (leftRightUseAcc),
11454         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
11455         iCode properly now. Use getSize instead of nRegs since a & b
11456         aren't part of the nRegs tally.
11457
11458 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
11459
11460         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
11461         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
11462           before instructions that use the _STATUS register
11463
11464 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
11465
11466         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
11467         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
11468         fetching of the pointer
11469         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
11470         copied from genNearPointerSet()
11471         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
11472         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
11473         If they pop r0/r1 they must be called in the opposite order than aopOp().
11474         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
11475         (resp. --stack-auto), prepared for --xstack
11476
11477 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11478
11479         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
11480
11481 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11482
11483         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
11484         these ports have their own __sdcc_external_start()
11485
11486 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
11487
11488         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11489         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
11490         type for bits was changed. It resulted in bit variables becoming
11491         global, which is not permitted in PIC 14 assembly output.
11492
11493 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11494
11495         * doc/sdccman.lyx: various additions and updates. Rearranged sections
11496
11497 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11498
11499         Z80 and MCS51 linkers complaint if a public symbol is defined
11500         in more than one library module:
11501
11502         * as/mcs51/lklib.c
11503         * link/z80/lklib.c
11504         * as/mcs51/Makefile.in
11505
11506 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11507
11508         A few small changes that speed up the peephole optimizer.
11509
11510         * src/SDCCpeeph.c
11511
11512 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11513
11514         Try to make the peephole optimizer smarter by maintaining
11515         an association between the assembly source code and the
11516         iCodes that originated them. Put this information to use
11517         with a new peephole rule condition "notVolatile" so that
11518         the rules can be aggressive yet still safe.
11519
11520         * src/SDCCpeeph.c
11521         * src/SDCCpeeph.h
11522         * src/mcs51/gen.c
11523         * src/mcs51/peeph.def
11524
11525 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11526
11527         Fixed bug #741761
11528
11529         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
11530         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
11531         if the left or right operand symbols have the accuse flag set.
11532
11533 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11534
11535         Changed the type of the result of the ! (NOT) operator to char;
11536         previously it returned the same type as the source. This allows
11537         us to eliminate all the genFloatNot functions (all of its target
11538         implementations were very buggy) since !float can use the same
11539         code as !long now.
11540
11541         * src/SDCCicode.c (ast2iCode): ! returns char
11542         * src/mcs51/gen.c (genNot, genNotFloat),
11543         * src/ds390/gen.c (genNot, genNotFloat),
11544         * src/z80/gen.c (genNot, genNotFloat),
11545         * src/pic/gen.c (genNot, genNotFloat),
11546         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
11547
11548 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
11549
11550         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
11551         1. Interrupt would not compile properly. Ensure PCLATH register is saved
11552            during interrupts. Ensure WSAVE is located at a shared bank address.
11553         2. Fixed page selection in some places
11554         3. Fixed BTFSS/C to where necessary use registers directly and not simply
11555            the registers name strings.
11556         4. Fixed "signed / unsigned compare" compiler warnings.
11557         5. The PIC port manages its own allocation of the general purpose
11558            registers, but makes no attempt to reuse them. As a result when
11559            compiling it soon runs out of general purpose registers. Some
11560            additional code was added to the files pcode.c and device.c to walk
11561            through the function call tree and rename the registers so that they
11562            get reused.
11563
11564         * src/pic/device.c
11565         * src/pic/gen.c
11566         * src/pic/glue.c
11567         * src/pic/pcode.c
11568         * src/pic/pcode.h
11569         * src/pic/ralloc.c
11570         * src/pic/ralloc.h
11571         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
11572         genPlus() & genMinus() when the result is the same as left or right
11573
11574 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11575
11576         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
11577
11578 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11579
11580         Made bitfield a distinct type from bit so that bitfields
11581         convert as per ANSI C and bits retain their traditional
11582         boolean style behaviour. Implemented bitfield support in
11583         the z80 port.
11584
11585         * src/SDCCsymt.h,
11586         * src/SDCCsymt.c,
11587         * src/SDCCast.c,
11588         * src/cdbFile.c,
11589         * src/mcs51/gen.c,
11590         * src/ds390/gen.c: bit v bitfield split
11591         * src/z80/gen.c: New support for bitfields
11592         * support/regression/tests/bitfields.c: reenabled z80,
11593         added more tests
11594
11595 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11596
11597         Rules 246.x, 247.x relate to bitfields, the others speed up
11598         access to xdata mapped I/O devices.
11599
11600         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
11601
11602 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11603
11604         Cleaned up genPackBits and genUnpackBits and added two helper
11605         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
11606         for literal assignments in genPackBits (thanks to Frieder for
11607         reminding me).
11608
11609         * src/mcs51/gen.c
11610         * src/ds390/gen.c
11611
11612 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11613
11614         Fixed bug #748310 (pointer to function type mishandled when the
11615         function name is omitted). Also fixed a SIGSEGV when a function
11616         attribute (reentrant, etc) is used on a non-function or on a
11617         function but misplaced before the parameter list.
11618
11619         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
11620         bug #748310
11621         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
11622         * support/Util/SDCCerr.h,
11623         * support/Util/SDCCerr.c: Added func attr misuse error msg
11624
11625 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11626
11627         Fixed bug #787649 by anonymous
11628         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
11629         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
11630
11631 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11632
11633         Fixed numerous bitfield problems.
11634
11635         * src/SDCC.y: More bitfield related error checking
11636         * src/SDCCsymt.h,
11637         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
11638         * support/Util/SDCCerr.h,
11639         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
11640         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11641         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
11642         * support/regression/tests/bitfields.c: tests added
11643
11644 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11645
11646         Made the constant following the "interrupt" keyword optional. If
11647         omitted, the function will not automatically be given an entry
11648         in the interrupt vector table (similar to #pragma NOIV, but
11649         less syntacticly kludgy). The interrupt number is also now
11650         range checked. Also fixed a bug in the high order bit example
11651         in the manual.
11652
11653         * src/SDCC.y
11654         * src/SDCCmem.c
11655         * src/SDCCglue.c
11656         * src/SDCCsymt.h
11657         * support/Util/SDCCerr.c
11658         * support/Util/SDCCerr.h
11659         * doc/sdccman.lyx
11660
11661 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
11662
11663         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
11664         * src/SDCCicode.c (operandOperation): rewritten some ops
11665         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
11666         * src/SDCCsymt.c (computeType): literals are handled the same way as any
11667         other type
11668         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
11669         be re-activated by defining REDUCE_LITERALS)
11670         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
11671         unsigned, but are signed by default
11672         * src/SDCCval.c (constVal): rearranged
11673         * src/SDCCval.c (valMod): preliminary fix
11674         * src/SDCCval.c (valCastLiteral): use TYPE_* types
11675         * support/regression/literalop.c: added, work in progress
11676
11677 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11678
11679         Generate warnings for useless declarations like "char data;"
11680         that don't do what new users expect.
11681
11682         * src/SDCC.y
11683         * support/Util/SDCCerr.h
11684         * support/Util/SDCCerr.c
11685
11686 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
11687
11688         * src/SDCCval.c (valMult): fix overflow detection of negative int
11689
11690 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11691
11692         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
11693
11694         Changes to support big endian targets:
11695
11696         * src/ports.h
11697         * src/SDCCglue.c
11698         * src/avr/main.c
11699         * src/ds390/main.c
11700         * src/izt/i186.c
11701         * src/mcs51/main.c
11702         * src/pic/main.c
11703         * src/pic16/main.c
11704         * src/xa51/main.c
11705         * src/z80/main.c
11706
11707 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
11708
11709         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
11710         * device/lib/time.c: fixed warning "integer overflow in expression"
11711
11712 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
11713
11714         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
11715         * src/SDCCval.c (constVal): changed default to signed; hex and octal
11716         constants are unsigned; added recognition of "u" flag for unsigned
11717         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
11718         * src/SDCCval.c (valDiv, valMod): fixed signdness
11719         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
11720         signedness of modulo, left and right shift
11721         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
11722         * support/Util/SDCCerr.h: added warning W_INT_OVL
11723         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
11724         * src/SDCCast.c (ast_print): improved output of constants
11725
11726 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11727
11728         Fixed some warnings when building with MSVC:
11729
11730         * as/mcs51/asdata.c
11731         * as/z80/asdata.c
11732         * as/mcs51/asm.h
11733         * as/z80/asm.h
11734         * link/z80/aslink.h
11735         * link/z80/lkdata.c
11736         * link/z80/lkeval.c
11737         * link/z80/lkgb.c
11738         * link/z80/lkihx.c
11739         * link/z80/lks19.c
11740         * link/z80/lksym.c
11741         * support/cpp2/cpplib.c
11742         * src/ds390/gen.c
11743         * src/mcs51/gen.c
11744
11745 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
11746
11747         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
11748
11749 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11750
11751         * support/librarian/clean.mk: Do not remove Makefile.
11752         * support/librarian/Makefile: added.
11753
11754 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11755
11756         Added librarian to MSVC build:
11757         * all.dsp
11758         * sdcc.dsw
11759         * support/librarian/librarian.dsp
11760
11761         'configure' not needed for librarian, removed:
11762         * support/librarian/configure
11763         * support/librarian/configure.in
11764         * support/librarian/config_in.h
11765         * support/librarian/Makefile.in
11766
11767         Hopefully these ones built the librarian and the rest of sdcc properly:
11768         * Makefile
11769         * Makefile.common.in
11770
11771         Messed up 'configure', so revert to previous version:
11772         * configure
11773         * configure.in
11774
11775 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
11776
11777         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
11778         there, while the mantissa of a double is "only" 53 bits wide.
11779
11780 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11781
11782         Adding sdcclib to the build.  MSVC project coming soon.
11783         Files added/changed:
11784
11785         * support/librarian/clean.mk
11786         * support/librarian/configure
11787         * support/librarian/configure.in
11788         * support/librarian/config_in.h
11789         * support/librarian/Makefile.bcc
11790         * support/librarian/Makefile.in
11791         * support/librarian/sdcclib.c
11792         * Makefile.bcc
11793         * Makefile
11794         * Makefile.common.in
11795         * configure
11796         * configure.in
11797
11798 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11799
11800         Linker now complaints if linked modules have conflicting options, for
11801         example, one compiled using --model-large and another one compiled with
11802         --model-small.  The following files were modified:
11803
11804         * as/mcs51/asdata.c
11805         * as/mcs51/aslink.h
11806         * as/mcs51/asm.h
11807         * as/mcs51/asmain.c
11808         * as/mcs51/asout.c
11809         * as/mcs51/i51pst.c
11810         * as/mcs51/lkdata.c
11811         * as/mcs51/lklibr.c
11812         * as/mcs51/lkmain.c
11813         * as/z80/asdata.c
11814         * as/z80/asm.h
11815         * as/z80/asmain.c
11816         * as/z80/asout.c
11817         * as/z80/z80pst.c
11818         * link/z80/aslink.h
11819         * link/z80/lkdata.c
11820         * link/z80/lklibr.c
11821         * link/z80/lkmain.c
11822         * src/SDCCglue.c
11823
11824 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11825
11826         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
11827         as/mcs51/lklibr.c: Generate a warning when a library is not found.
11828
11829 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
11830
11831         * src/z80/mappings.i: fix _mul[us][int,long] entries
11832
11833 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11834
11835         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
11836
11837 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
11838
11839         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
11840         * support/regression/tests/bitopcse.c: added
11841         fixed warning:
11842         * src/avr/gen.c:
11843         * src/pic/gen.c:
11844         * src/pic16/gen.c:
11845         * src/z80/gen.c:
11846         * src/xa51/gen.c:
11847
11848 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11849
11850         added support for new library format to z80, gbz80 linkers:
11851         *link/z80/aslink.h
11852         *link/z80/lklex.c
11853         *link/z80/lklib.c
11854         *link/z80/lklist.c
11855
11856 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
11857
11858         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
11859         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
11860
11861 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
11862
11863         added DUMMY_READ_VOLATILE:
11864         * src/SDCC.y:
11865         * src/avr/gen.c:
11866         * src/xa51/gen.c:
11867         * src/z80/gen.c:
11868         * src/pic/gen.c:
11869         * src/pic16/gen.c:
11870         * src/mcs51/gen.c:
11871         * src/ds390/gen.c:
11872         * src/SDCCcse.c (algebraicOpts): many improvements
11873         * src/SDCCcse.h: removed algebraicOpts()
11874         * src/SDCCicode.c (picDummyRead): added
11875
11876 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11877
11878         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
11879         "Insufficient space in data memory".
11880
11881 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11882
11883         * src/mcs51/gen.c: fixed bug #771358
11884         * src/z80/gen.c: fixed bug #759087
11885
11886 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
11887
11888         * src/pic16/glue.c: minor cleanup by Vangelis
11889
11890 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11891
11892         * device/include/regc515c.h: fixed #758477
11893         * device/lib/_gptrget.c: saving some cycles in generic pointer get
11894         * device/lib/_gptrput.c: saved a few bytes
11895         * my tab spacing is 8, yours too?)
11896         * device/lib/_ser.c: process RX bytes earlier than TX bytes
11897         * device/lib/serial.c: process RX bytes earlier than TX bytes
11898         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
11899
11900 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11901
11902         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
11903
11904 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11905
11906     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
11907
11908 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
11909
11910         * device/lib/Makefile.in: bad fix, reverted to 1.43
11911
11912 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
11913
11914         * device/lib/Makefile.in: added missing z80 object files
11915
11916 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
11917
11918         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
11919         pic16 progress by Vangelis:
11920         * src/SDCCglobl.h:
11921         * src/SDCCmain.c:
11922         * src/pic/Makefile:
11923         * src/pic:
11924         * pic/Makefile:
11925         * pic16/device.c:
11926         * pic16/device.h:
11927         * pic16/gen.c:
11928         * pic16/gen.h:
11929         * pic16/genarith.c:
11930         * pic16/glue.c:
11931         * pic16/main.c:
11932         * pic16/pcode.c:
11933         * pic16/pcode.h:
11934         * pic16/pcodepeep.c:
11935         * pic16/peeph.def:
11936
11937 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11938
11939     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
11940
11941 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11942
11943     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
11944     added gbz80 build to MSVC project.
11945     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
11946     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
11947     from 8051 stuff and setup so it links using a .lnk file.
11948
11949 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11950
11951     * support/librarian/sdcclib.c: sdcc librarian.
11952     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
11953     with sdcclib.
11954
11955 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11956
11957     * as/mcs51/lkmain.c: properly handle extensions in function afile.
11958
11959 2003-07-02  Borut Razem <borut.razem AT siol.net>
11960
11961         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
11962         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
11963         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
11964         src/xa51/main.c, src/z80/main.c:
11965         virtualization of glue() function: each port has it's own glue function,
11966         which is accessed by do_glue function pointer in PORT.general structure
11967
11968 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
11969
11970         * DS800C400 fun, improved ROM interface and tinibios.
11971
11972 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
11973
11974         * More support for DS80C400. Now includes beginning of interface to ROM.
11975
11976 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
11977
11978         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
11979
11980 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11981
11982         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
11983
11984 2003-06-19  Borut Razem <borut.razem AT siol.net>
11985
11986         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
11987
11988 2003-06-19  Borut Razem <borut.razem AT siol.net>
11989
11990         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
11991         fixed Z80 port - crt0.o: cannot open.
11992
11993 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
11994
11995         * support/Util/MySystem.c (merge_command): revert bad fix
11996
11997 2003-06-18  Borut Razem <borut.razem AT siol.net>
11998
11999         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
12000
12001 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12002
12003         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12004         option --use-stdout sends errors to stdout instead of stderr.
12005
12006 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
12007
12008         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
12009
12010 2003-06-15  Borut Razem <borut.razem AT siol.net>
12011
12012         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
12013         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
12014         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
12015         fixed width array of pointers replaced with sets;
12016         multiple include and lib paths ared transferred to preprocessor and linker
12017         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
12018         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
12019         fixed width array of pointers
12020         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
12021         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
12022         fixupPath(), getPathDifference()
12023         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
12024         fixed width array of pointers
12025
12026 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
12027
12028         * src/pic16/ralloc.c: fix warnings
12029         * src/pic16/pcode.c: fix warning
12030
12031 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
12032
12033          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
12034         know all the details, but essentially this set of changes enable
12035         the pic16 port to generate movff instructions and generate assembler
12036         directives,
12037         * src/SDCCmain.c:
12038         * src/pic16/gen.c:
12039         * src/pic16/glue.c:
12040         * src/pic16/pcode.c:
12041         * src/pic16/device.c:
12042         * src/pic16/main.c:
12043         * src/pic16/pcode.h:
12044         * src/pic16/pcoderegs.c:
12045         * src/pic16/ralloc.c:
12046         * src/pic16/ralloc.h:
12047
12048 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12049
12050         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
12051         added option --vc, so sdcc errors and warnings are compatible with
12052         Microsoft Visual Studio.
12053
12054 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12055
12056         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
12057           device/lib/libfloat.lib: added atof function.
12058
12059 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
12060
12061         * doc/sdccman.lyx: updated to Lyx 1.3
12062         * doc/cdbfileformat.lyx: updated to Lyx 1.3
12063         * doc/test_suite_spec.lyx: updated to Lyx 1.3
12064         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
12065
12066 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
12067
12068         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
12069
12070 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12071
12072         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
12073           additions to the "related tools/documentation" section
12074
12075 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
12076
12077         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
12078
12079 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
12080
12081         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
12082         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
12083
12084 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
12085
12086         * doc/sdccman.lyx: fix double dash and other minor things
12087         * doc/Makefile: fix double dash
12088
12089 2003-05-28  Karl Bongers(patches from Martin Helmling)
12090         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
12091           condition and ignore commands.
12092
12093 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12094
12095         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
12096           is in parts still quite out of date, I did changes as far as I felt makes sense
12097           for a non-native english speaker.
12098           Please feel free to add to the manual or to correct my changes.
12099         * doc/Makefile: undid touching the date of intermediate tex files.
12100
12101 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12102
12103         * doc/sdccman.lyx: Manual has an index now
12104
12105 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
12106
12107         Finalize muluint/mulsint and mululong/mulslong merging:
12108         * device/lib/_mulint.c
12109         * device/lib/_mullong.c
12110         * device/lib/gbz80/mul.s
12111         * device/lib/gbz80/stubs.s
12112         * device/lib/z80/mul.s
12113         * device/lib/z80/stubs.s
12114         * src/SDCCsymt.c (initCSupport)
12115
12116 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12117
12118         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
12119         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
12120           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
12121           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
12122           instead of /Zm500.
12123
12124 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12125
12126         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
12127           the regression tests I'm not brave enough to enable 245.b, 245.c
12128         * doc/sdccman.lyx: added latex preamble for hyperref package.
12129           Using pdflatex this will give you a hyperlinked pdf file with
12130           bookmarks. (prepend '%' before /usepackage if this breaks something)
12131
12132 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12133
12134          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
12135
12136 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
12137
12138         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
12139
12140 2003-05-21    <johan AT balder>
12141
12142         * src/SDCCglue.c (printIval): fixed bug #739934
12143
12144 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12145
12146         Applied patch from bug 737905 (renamed yylineo to mylineno):
12147         * src/altlex.c
12148         * src/SDCCast.c
12149         * src/SDCglobl.h
12150         * src/SDCC.lex
12151         * src/SDCCsymt.c
12152         * src/SDCCval.c
12153         * src/pic16/pcode.c: Cleaned warnings
12154         * src/pic16/pcodeflow.c: Cleaned warnings
12155         * src/pic16/pcoderegs.c: Cleaned warnings
12156
12157 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
12158
12159         * src/pic16/pcode.c: Cleaned warnings
12160         * src/pic16/pcodepeep.c: Cleaned warnings
12161         * src/pic16/ralloc.c: Cleaned warnings
12162
12163 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
12164
12165         * doc/sdccman.lyx: fixed bug 739745
12166         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
12167
12168 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
12169
12170         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
12171         it can be defined with CFLAGS when running configure
12172         * src/SDCCmain.c: fixed compiling + linking with object files
12173
12174 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
12175
12176         * configure.in: configure for pic16 port,
12177             added --disable-pic16-port
12178         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
12179         * src/SDCCmain.c: linkOptions is changed to set *,
12180             added if/endif conditional macros to remove options help
12181             messages from optionsTable when a port is not configured, added
12182             support for the PIc16 port in the ports table, when executing
12183             the compiler with no port specified on command line, a default
12184             port is selected with the new macro DEFAULT_PORT which is
12185             defined in port.h, in setDefaultOptions() linkOptions is removed
12186             from initialization assignment, since now it is a set,
12187             parseCmdLine uses setParseWithComma for linkOptions, in
12188             linkEdit() linkOptions are accessed with new function indexSet()
12189             which returns the i'th item of a set variable. See SDCCset.c, in
12190             linkEdit() when calling buildCmdLine(), added linkOptions as
12191             last argument. Now users can pass arguments to gplink via the
12192             -Wl option, main() uses pic16glue() to glue up pic16 programs
12193         * src/SDCCpeeph.c: various changes to support pic16
12194         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
12195             return the i'th item of the set
12196         * src/SDCCset.h: added function prototype for indexSet()
12197         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
12198         * src/clean.mk: added pic16 in CLEANALLPORTS variable
12199         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
12200             added macro DEFAULT_PORT
12201         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
12202         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
12203             generated
12204         * src/pic16/glue.c: commented out some error producing lines
12205         * src/pic16/main.c: __config directives are commented out to stop
12206             gpasm complaining and test the linkage with gplink, _linkCmd and
12207             _asmCmd changed to be more gplink and gpasm friendly
12208         * src/pic16/peeph.def: peep rule 3 is commented out, since it
12209             produced an error when parsed, peep rule 12 is added to utilize
12210             movff, but it is commented out since the pCode does not support
12211             yet a command with 2 address arguments
12212
12213 2003-05-18    <johan AT balder>
12214
12215         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12216         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
12217 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
12218
12219         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
12220   Added feature to script commands from file.
12221
12222 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
12223
12224         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
12225         * src/SDCCutil.c: include ctype.h for win32
12226
12227 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
12228
12229         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
12230
12231 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
12232
12233         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
12234   Fixed so you can set breakpoints prior to run, run does not stop
12235   on entry now.  Add tbreak.  Other enhancements and fixes for use
12236   with ddd.
12237
12238 2003-05-12  Borut Razem <borut.razem AT siol.net>
12239
12240         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
12241
12242 2003-05-11  Borut Razem <borut.razem AT siol.net>
12243
12244         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
12245         the path of bin directory, so that PATH is the only env. variable, which has to be set
12246         in case of standard installation.
12247         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
12248         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
12249         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
12250
12251 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12252
12253         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
12254         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
12255         temp files are in the port dir; clean the gen/test directory when
12256         generating new test.c
12257         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
12258         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
12259         * support/regression/tests/zeropad.c: added
12260
12261 2003-05-09    <johan AT balder>
12262
12263         * src/SDCCglue.c: fixed bug #597940
12264
12265 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
12266
12267         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12268   cache sfr, optimize next,step, fix off by one sourceline,
12269   support ddd list function.
12270         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
12271
12272 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
12273
12274         * support/regression/HTMLgen.py: added compare_s2f()
12275         * support/regression/Makefile: redo 1.27
12276         * support/regression/generate-cases.py: redo 1.5
12277
12278 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
12279
12280         * support/regression/tests/float.c: workaround 33 bit hex constant
12281         * support/regression/tests/simplefloat.c: fix division for host
12282
12283 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
12284
12285         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
12286         that tame's the PIC's over-aggressive optimizer.
12287
12288 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12289
12290          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
12291          support for MSVC.
12292
12293 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
12294
12295         Initial support for DS80C400. "Hello world" runs on TINIm400
12296         (with polled I/O).
12297
12298 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
12299
12300          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
12301          * Some notes on ddd usage added in debugger/README
12302          Martin Helmling adding more features and fixes for ddd GUI debugger.
12303          Code added for nexti, stepi, up, down, and other adjustments.
12304
12305 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
12306
12307         * src/pic/pCodepeep.c non-wildcard asmops are now handled
12308         * src/pic/peeph.def Added two rules to optimize carry manipulation
12309         * src/pic/* removed debug printfs
12310
12311 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
12312
12313         * debugger/mcs51/cmd.c: added header newalloc.h
12314
12315 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
12316
12317         * as/Makefile: new EXEEXT
12318         * as/z80/Makefile: remove trailing slash of BUILDIR
12319         * as/z80/clean.mk: new EXEEXT
12320         * Makefile.common.in: add to CFLAGS (and others), don't replace it
12321         * support/cpp2/Makefile.in: new EXEEXT
12322         * src/pic/glue.c (pic14emitRegularMap): fixed warning
12323
12324 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
12325
12326         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
12327         EXEEXT was introduced to fix all related problems with targets
12328         "clean", "install" and "uninstall"; a couple of further flaws
12329         especially with "clean" have been fixed too
12330         * as/mcs51/Makefile.in
12331         * as/mcs51/clean.mk
12332         * as/z80/Makefile
12333         * Makefile
12334         * clean.mk
12335         * debugger/mcs51/Makefile.in
12336         * debugger/mcs51/clean.mk
12337         * link/z80/Makefile
12338         * link/z80/Makefile.in
12339         * link/z80/clean.mk
12340         * link/Makefile
12341         * packihx/Makefile.in
12342         * packihx/clean.mk
12343         * sim/ucsim/Makefile
12344         * sim/ucsim/clean.mk
12345         * sim/ucsim/avr.src/Makefile.in
12346         * sim/ucsim/avr.src/clean.mk
12347         * sim/ucsim/s51.src/Makefile.in
12348         * sim/ucsim/s51.src/clean.mk
12349         * sim/ucsim/xa.src/Makefile.in
12350         * sim/ucsim/xa.src/clean.mk
12351         * sim/ucsim/z80.src/Makefile.in
12352         * sim/ucsim/z80.src/clean.mk
12353         * sim/ucsim/main_in.mk
12354         * sim/ucsim/packages_in.mk
12355         * sim/ucsim/gui.src/Makefile.in
12356         * sim/ucsim/gui.src/serio.src/Makefile.in
12357         * sim/ucsim/gui.src/serio.src/clean.mk
12358         * src/Makefile.in
12359         * src/clean.mk
12360         * support/cpp2/Makefile.in
12361         * support/cpp2/clean.mk
12362         * support/makebin/Makefile
12363         * support/makebin/clean.mk
12364         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
12365         * doc/sdccman.lyx: --program-suffix no longer needed
12366
12367 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
12368
12369          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
12370          Martin Helmling added support for ddd GUI debugger.
12371          Code added to display assembly, set variables, and other commands
12372          to interface to ddd.
12373
12374 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
12375
12376         * as/Makefile: fix target clean
12377         * as/clean.mk: fix target clean
12378         * as/z80/clean.mk: fix target clean
12379
12380 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
12381
12382         * Makefile.common.in: added  AT EXEEXT AT
12383         * configure.in: removed all mingw32 stuff
12384         * configure: rebuilt from configure.in
12385         * doc/sdccman.lyx: updated section "installation"
12386         * support/scripts/sdcc_mingw32: adapted to configure
12387         * support/scripts/sdcc_cygwin_mingw32: added
12388
12389 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
12390
12391         * src/pic Added object file support for the PIC port
12392         * src/pic Applied patch from Craig Franklin (this started the object file support)
12393         * src/regression Updated the PIC regression tests for object files
12394
12395 2003-04-20  Borut Razem <borut.razem AT siol.net>
12396
12397         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
12398           lklex.c: In function `getfid':
12399           lklex.c:203: warning: array subscript has type `char'
12400         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
12401           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
12402         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
12403           stack handling macros
12404
12405 2003-04-19  Borut Razem <borut.razem AT siol.net>
12406
12407         * "handling space characters in file path" task:
12408         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
12409         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
12410         * support/Util/MySystem.h: make it self-sufficient
12411         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
12412           src/z80/main.c, sdcc/as/mcs51/lklex.c:
12413           handling space characters in file path
12414         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
12415           (it will be used by assemblers, which have their own includes, e.g. gpasm)
12416         * support/Util/MySystem.c: handling space characters in executable's path
12417
12418 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
12419
12420         * as/z80/Makefile: fix permanent rebuild of z80
12421         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
12422         * support/regression/tests/bitfields.c: added Johan's bitfields.c
12423
12424 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
12425
12426         * src/SDCCopt.c: add special case optimization to replace modulo by
12427           a power of two with a bitwise AND.
12428
12429 2003-04-18    <johan AT balder>
12430
12431         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
12432
12433 2003-04-17    <johan AT balder>
12434
12435         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
12436         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
12437
12438 2003-04-13  Borut Razem <borut.razem AT siol.net>
12439
12440         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
12441         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
12442           fixed mingw problem in adl_NORMALIZE_PATH
12443
12444 2003-04-12  Borut Razem <borut.razem AT siol.net>
12445
12446         * fixed "#pragma SAVE/RESTORE can not be nested":
12447         * src/SDCC.lex: reworked pragma handling functions
12448         * sdcc/src/SDCCglobl.h: reworked stack handling macros
12449         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
12450
12451 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12452
12453         * src/SDCCutil.c (pathEquivalent): defined but not used
12454         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
12455         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
12456         * configure: rebuilt from configure.in
12457         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12458         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
12459         * device/include/Makefile.in: replace sdcc_datadir
12460         * device/lib/Makefile.in: replace sdcc_datadir
12461         * Makefile.common.in: add LDFLAGS from configure
12462         * packihx/Makefile.in: use LDFLAGS
12463         * src/Makefile.in: use LDFLAGS
12464         * support/cpp2/Makefile.in: add LDFLAGS from configure
12465         * support/makebin/Makefile: use LDFLAGS
12466         * .version: bumped version number to 2.3.5
12467
12468 2003-04-12  Borut Razem <borut.razem AT siol.net>
12469
12470         * completed "different paths" task:
12471         * src/SDCCmacro.c: fixed bug in handling quotes
12472         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
12473         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
12474
12475 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
12476
12477         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
12478
12479 2003-04-11 kevin Vigor <kevin AT vigor.nu>
12480
12481         * ds390/gen.c ds390/peeph.def: fix bug 706781
12482
12483 2003-04-11  Borut Razem <borut.razem AT siol.net>
12484
12485         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
12486
12487 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
12488
12489         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
12490         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
12491          set - this bit used to not be set...).
12492         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
12493           bad code in PIC Port
12494         * src/regression/and2.c added to test bug 609268
12495         * src/regression/Makefile added and2.c to regression test
12496
12497
12498 2003-04-08    <johan AT CP255758-A>
12499
12500         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
12501         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
12502         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
12503
12504 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
12505
12506         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
12507         fix bug #487815
12508         * support/cpp2/Makefile.in: fix bug #487815
12509         * configure: rebuilt from configure.in
12510         * Makefile.common.in: docdir changed, new path suffixes
12511         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12512         * sdcc_vc_in.h: reflect changes from sdccconf.h
12513         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
12514         * src/SDCCutil.h: remove BINDIR hack
12515         * doc/sdccman.lyx: update new path hierarchy
12516
12517 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12518
12519         * src/SDCCpeeph.c: added okToRemoveSLOC test
12520
12521 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12522
12523         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
12524
12525 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
12526
12527         * src/SDCCpeeph.c: added labelIsReturnOnly test
12528         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
12529
12530 2003-04-05    <johan AT balder>
12531
12532         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
12533         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
12534         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
12535         * src/SDCCast.c: fixed a warning
12536         * src/SDCCast.h: fixed a warning
12537         * src/SDCCicode.c (operandFromAst): fixed a warning
12538
12539 2003-04-04    <johan AT balder>
12540
12541         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
12542         * src/SDCCast.c (decorateType): fixed bug #715076
12543         * src/SDCC.y: fixed bug #702907
12544
12545 2003-04-03    <johan AT balder>
12546
12547         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
12548         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
12549         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
12550         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
12551         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
12552
12553 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
12554
12555         * _decdptr.c: fix return values
12556         * _gptrget.c: fix return values
12557         * _gptrgetc.c: fix return values
12558         * _gptrput.c: fix return values
12559         * _mulint.c: fix return values
12560         * as/z80/Makefile: fix 'make -j' problem
12561
12562 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
12563
12564         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
12565         * configure.in: big cleanup, updated to autoconf 2.5x
12566         * configure: rebuilt from configure.in
12567         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
12568         * sdcc_vc_in.h: reflect changes from sdccconf.h
12569         * doc/Makefile: fixed a flaw in "make install"
12570
12571 2003-04-02    <johan AT balder>
12572
12573         * src/ds390/gen.c (genCmp): no comments
12574         * src/mcs51/gen.c (genCmp): no comments
12575         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
12576         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
12577
12578 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
12579
12580         * support/regression/generate-cases.py: place generated file in given sub directory
12581         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
12582         * support/regression/Makefile: improvements for 'make -j';
12583         side effect: it's simpler and faster now
12584
12585 2003-03-31  Borut Razem <borut.razem AT siol.net>
12586
12587         * src/z80/main.c: link-{port} and as-{port} defined without path
12588         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
12589
12590 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
12591
12592         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
12593
12594 2003-03-30  Borut Razem <borut.razem AT siol.net>
12595
12596         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
12597           changed type of list parameter to set
12598         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
12599         * src/port.h: changed type of do_assemble() parameter to set
12600         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
12601           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
12602           definition of "cppoutfilename" macro with NULL value in preProcess()
12603         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
12604         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
12605         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
12606           replaced with set *binPathSet
12607         * shash_add() deallocates the item, if allready exsists, before adding the new one
12608         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
12609
12610 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
12611
12612         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
12613           a nested for loop bug in the PIC port
12614         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
12615           for loops
12616
12617 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
12618
12619         * support/Util/dbuf.h: remove C++ stuff to make it portable
12620
12621 2003-03-28  Borut Razem <borut.razem AT siol.net>
12622
12623         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
12624           literal strings in stringLiteral()
12625         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
12626         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
12627           to the project
12628
12629 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
12630
12631         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
12632
12633 2003-03-26    <johan AT balder>
12634
12635         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
12636         * src/ds390/gen.c (saveRegisters): catched symbol abuse
12637         * src/SDCCast.c (decorateType): fixed " -v < 3"
12638
12639 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
12640
12641         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
12642         Added Lenny Story's debug infrastructure changes:
12643         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
12644         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
12645         * src/cdbFile.c: added
12646         * src/SDCCdebug.c: added
12647         * src/SDCCdebug.h: added
12648         * src/SDCCast.c (createFunction)
12649         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
12650         * src/SDCCmain.c (parseCmdLine, main)
12651         * src/SDCCmem.c (redoStackOffsets)
12652         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
12653         * src/SDCCsymt.h
12654         * src/common.h
12655         * src/avr/gen.c (genAVRCode)
12656         * src/ds390/gen.c (gen390Code)
12657         * src/mcs51/gen.c (gen51Code)
12658         * src/pic/gen.c (genpic14Code)
12659         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
12660         * src/xa51/gen.c (genXA51Code)
12661         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
12662
12663 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12664
12665         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
12666         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
12667
12668 2003-03-22    <johan AT balder>
12669
12670         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
12671
12672 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
12673
12674         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
12675         * doc/cdbfileformat.lyx: added, written by Lenny Story
12676         * doc/Makefile: added cdbfileformat.lyx
12677         * doc/clean.mk: added cdbfileformat.lyx
12678
12679 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
12680
12681         * src/mcs51/peeph.def: fix bug #705773
12682
12683 2003-03-20    <johan AT balder>
12684
12685         An sfr/sbit can have an "at #" AND an initializer
12686         * src/SDCCsymt.c (checkSClass):
12687         * src/SDCCmem.c (allocGlobal):
12688         * src/SDCCmem.c (allocLocal):
12689         * src/SDCCast.c (createBlock):
12690
12691 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
12692
12693         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
12694
12695 2003-03-16    <johan AT balder>
12696
12697         Undid the hackup of const and volatile, the problem is much bigger
12698         * src/SDCC.y:1.65
12699         * src/SDCCast.c:1.171
12700         * src/SDCCglue.c:1.138
12701         * src/SDCCicode.c:1.146
12702         * src/SDCCsymt.c:1.150
12703         * src/SDCCval.c:1.65
12704
12705 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
12706
12707         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
12708         * src/ds390/gen.c (genAddrOf): fixed bug #704087
12709
12710 2003-03-13    <johan AT balder>
12711
12712         Hackup const and volatile modifiers in type chains a bit:
12713         * src/SDCC.y:1.63
12714         * src/SDCCast.c:1.169
12715         * src/SDCCglue.c:1.136
12716         * src/SDCCicode.c:1.143
12717         * src/SDCCsymt.c1.146
12718         * src/SDCCsymt.h1.59
12719         * src/SDCCval.c:1.63
12720
12721 2003-03-12    <johan AT balder>
12722
12723         * src/SDCCBBlock.h: more LRH debugging junk
12724         * src/SDCCcflow.h: more LRH debugging junk
12725         * src/SDCCloop.c: more LRH debugging junk
12726         * src/SDCC.y (struct_declaration): fixed bug #697590
12727         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
12728         * src/ds390/gen.c (aopForRemat): fixed bug #700031
12729         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
12730
12731 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12732         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
12733         test function names must now match exactly).
12734         * src/SDCCcse.c: added special case in findCheaperOp to allow
12735         extending a short integer. Makes less awful code for bug 700121 test case.
12736
12737 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12738
12739         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
12740         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
12741
12742 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12743
12744         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
12745         actually called (operandsNotEqual() was called for all
12746         operandsNotEqualX tests).
12747
12748 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
12749
12750         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
12751         with shorter literals. Fixes bug 700121.
12752
12753 2003-03-11    <johan AT balder>
12754
12755         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
12756
12757 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
12758
12759         * src/SDCCloop.c (mergeRegions): an evil beast is dead
12760         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
12761
12762 2003-03-10  Borut Razem <borut.razem AT siol.net>
12763
12764         * src/SDCCmain.c: pipe preprocessor's output
12765         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12766         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12767         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12768         which closes all pipes in pipeSet set
12769         * src/SDCCset.c: free deleted item in function deleteSetItem()
12770         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12771         moved from z80 to src subproject
12772         * .version: increased version number to 2.3.4
12773
12774 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
12775
12776         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
12777         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
12778         * support/regression/ports/xa51/spec.mk: fix typo
12779
12780 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
12781
12782         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
12783
12784 2003-03-09  Borut Razem <borut.razem AT siol.net>
12785
12786         * src/SDCCmain.c: pipe preprocessor's output
12787         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
12788         * sdcc_vc_in.h: define pclose as _pclose for WIN32
12789         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
12790         which closes all pipes in pipeSet set
12791         * src/SDCCset.c: free deleted item in function deleteSetItem()
12792         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
12793         moved from z80 to src subproject
12794
12795 2003-03-09  Borut Razem <borut.razem AT siol.net>
12796
12797         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
12798         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
12799         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
12800         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
12801         * src/SDCCglobl.h: unification of WIN32 native definitions
12802
12803 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12804
12805         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
12806
12807 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12808
12809         * src/configure.in:   check for endianess (even while cross-compiling)
12810         * src/configure:      check for endianess (even while cross-compiling)
12811         * src/configure_in.h: check for endianess (even while cross-compiling)
12812         * src/avr/gen.c:        remove old endianess stuff
12813         * src/mcs51/gen.c:      remove old endianess stuff
12814         * src/ds390/gen.c:      remove old endianess stuff
12815         * src/pic/gen.c:        remove old endianess stuff
12816         * src/pic/genarith.c:   remove old endianess stuff
12817         * src/pic/glue.c:       fix endianess check
12818         * src/pic16/gen.c:      remove old endianess stuff
12819         * src/pic16/genarith.c: remove old endianess stuff
12820         * src/pic16/glue.c:     fix endianess check
12821         * src/xa51/gen.c:       remove old endianess stuff
12822         * src/z80/gen.c:        fix endianess check
12823         * src/SDCCglue.c:       fix endianess check
12824         * src/ds390/peeph.def: fix bug 700036
12825
12826 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
12827
12828         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
12829         * src/configure: find appropriate data-types on host for SDCC's int and long
12830         * src/configure.in: find appropriate data-types on host for SDCC's int and long
12831         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
12832         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
12833
12834 2003-03-07    <johan AT balder>
12835
12836         Just a big NOOP:
12837                 some minor cleanups before the big shot
12838                 OP_DEFS and OP_USES now use Kevin's protection
12839                 new option --nolabelopt
12840
12841         * src/SDCCBBlock.c:
12842         * src/SDCCast.c,:
12843         * src/SDCCcflow.c:
12844         * src/SDCCcse.c:
12845         * src/SDCCicode.c:
12846         * src/SDCCicode.h:
12847         * src/SDCClabel.c:
12848         * src/SDCCloop.c:
12849         * src/SDCCmain.c:
12850         * src/ds390/ralloc.c:
12851         * src/mcs51/ralloc.c:
12852         * src/pic/ralloc.c:
12853         * src/xa51/ralloc.c:
12854         * src/z80/ralloc.c:
12855
12856 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
12857
12858         * src/pic/pcode.c (get_op): fix 64 bit warnings
12859         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
12860         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
12861         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
12862         * support/regression/tests/malloc.c: fix 64 bit warnings
12863
12864 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
12865
12866         * src/mcs51/gen.c (genMinus): fixed bug 696436
12867
12868 2003-03-02  Borut Razem <borut.razem AT siol.net>
12869
12870         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
12871
12872 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
12873
12874         * configure.in: test for mkstemp
12875         * sdccconf_in.h: add HAVE_MKSTEMP
12876
12877 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
12878
12879         * device/include/ctype.h: removed warning while using --stack-auto
12880         * device/include/malloc.h: removed warning while using --stack-auto
12881         * device/include/string.h: removed warning while using --stack-auto
12882
12883 2003-02-23  Borut Razem <borut.razem AT siol.net>
12884
12885         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
12886         because NDEBUG is defined (see man assert)
12887         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
12888
12889 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12890
12891         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
12892         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
12893
12894 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12895
12896         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
12897         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
12898
12899 2003-02-18    <johan AT balder>
12900
12901         * as/mcs51/asmain.c (asmbl): module can start with a digit
12902         * as/z80/asmain.c (asmbl): module can start with a digit
12903
12904 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
12905
12906         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
12907         * src/asm.c: fix pipe() for Mingw32
12908
12909 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
12910
12911         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
12912         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
12913         make -V work again; --c1mode reads now from stdin
12914         * doc/sdccman.lyx: added --c1mode
12915         * support/Util/SDCCerr.c: new messages for c1 mode
12916         * support/Util/SDCCerr.h: new messages for c1 mode
12917         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
12918
12919 2003-02-15    <johan AT balder>
12920
12921         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
12922
12923 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
12924
12925         * doc/sdccman.lyx: Environment variables, -o and other minor things
12926
12927 2003-02-14    <johan AT balder>
12928
12929         * src/xa51/main.c: before anyone really tries to use it :)
12930
12931         * Install doc's in share/sdcc/doc
12932         * removed some obsolete files
12933         * Do a proper make distclean and uninstall
12934         M Makefile.common.in
12935         R sdccbuild.sh
12936         M as/Makefile
12937         M device/include/Makefile.in
12938         M device/lib/Makefile.in
12939         M doc/sdccman.lyx
12940         M link/Makefile
12941         M sim/ucsim/doc/Makefile.in
12942         M src/clean.mk
12943         R src/avr/peeph.rul
12944         R src/xa51/peeph.rul
12945         M support/cpp2/Makefile.in
12946         M support/makebin/Makefile
12947
12948
12949 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
12950
12951         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
12952
12953 2003-02-10  Borut Razem <borut.razem AT siol.net>
12954
12955         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
12956         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
12957         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
12958         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
12959         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
12960         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
12961         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
12962         src/z80/Makefile.bcc: Borland Makefile cleanup
12963         * as/z80/Makefile.bcc: Added Borland Makefile
12964         * support/cpp2/borland.h: Removed
12965
12966 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
12967
12968         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
12969         * src/SDCC.lex: new pragma NOIV
12970         * src/SDCCglobl.h: new pragma NOIV
12971         * src/SDCCmem.c: new pragma NOIV
12972
12973 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
12974
12975         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
12976
12977 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
12978
12979         * src/SDCCmain.c: signal handling is switched off by --debug
12980         * doc/Makefile: small fix for install; use clean.mk again
12981         * doc/clean.mk: clean *.pdf and *.html too
12982
12983 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
12984
12985         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
12986         * device/lib/printfl.c: fix a ds390 bug by making it portable
12987         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
12988         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
12989         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
12990         * debugger/mcs51/cmd.c: converted multi-line string literals
12991         * sim/ucsim/globals.cc: converted multi-line string literals
12992         * src/SDCCmain.c: introduced signal handler to remove temp files
12993         * doc/Makefile: small tweaks, implement clean
12994         * doc: removed generated files
12995
12996 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12997
12998         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
12999         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
13000         Address Record is not correctly generated for DS390."
13001
13002 2003-02-02  Borut Razem <borut.razem AT siol.net>
13003
13004         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
13005         * as/mcs51/asm.h: fixed compilation with Borland C
13006         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
13007         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
13008         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
13009         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
13010         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
13011         src/z80/Makefile.bcc: delete $(LIB) only if exist
13012         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
13013
13014 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
13015
13016         * device/include/malloc.h: introduced NULL
13017         * device/include/string.h: introduced NULL
13018         * device/include/stdlib.h: introduced NULL
13019         * device/lib/_memcpy.c: removed NULL
13020         * device/lib/_strcat.c: removed NULL
13021         * device/lib/_strchr.c: removed NULL
13022         * device/lib/_strcmp.c: removed NULL
13023         * device/lib/_strcpy.c: removed NULL
13024         * device/lib/_strcspn.c: removed NULL
13025         * device/lib/_strlen.c: removed NULL
13026         * device/lib/_strncat.c: removed NULL
13027         * device/lib/_strncmp.c: removed NULL
13028         * device/lib/_strncpy.c: removed NULL
13029         * device/lib/_strpbrk.c: removed NULL
13030         * device/lib/_strrchr.c: removed NULL
13031         * device/lib/_strspn.c: removed NULL
13032         * device/lib/_strstr.c: removed NULL
13033         * device/lib/_strtok.c: removed NULL
13034         * device/lib/malloc.c: removed NULL, include own header
13035
13036 2003-02-02    <johan AT balder>
13037
13038         * 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
13039         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
13040         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
13041         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
13042         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
13043         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
13044
13045 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13046
13047         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
13048         area 'DATA'"
13049
13050 2003-02-01    <johan AT balder>
13051
13052         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
13053
13054 2003-01-31    <johan AT CP255758-A>
13055
13056         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
13057
13058 2003-01-30    <johan AT balder>
13059
13060         * src/SDCCBBlock.c: automatic bug detection
13061         * src/SDCCicode.c: automatic bug detection
13062
13063 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13064
13065         * src/SDCCglobl.h:   now --xram-size 0 works
13066         * src/SDCCmain.c:    now --xram-size 0 works
13067
13068 2003-01-29    <johan AT balder>
13069
13070         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
13071
13072 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13073
13074         * as/mcs51/aslink.h: Added options --xram-size and --code-size
13075         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
13076         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
13077         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
13078         * src/SDCCglobl.h:   Added options --xram-size and --code-size
13079         * src/SDCCmain.c:    Added options --xram-size and --code-size
13080
13081 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
13082
13083         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
13084         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
13085
13086 2003-01-27    <johan AT balder>
13087
13088         * src/SDCC.y: fixed bug #613764
13089
13090 2003-01-26    <johan AT balder>
13091
13092         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
13093         * src/SDCCsymt.h: fixed bug #673374
13094         * src/SDCCglue.c: fixed bug #661910
13095         * src/SDCCast.c: fixed bug #458099 and 673374
13096
13097 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
13098
13099         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
13100         * as/mcs51/strcmpi.h: added
13101         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
13102         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
13103         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
13104         * as/mcs51/assym.c: strcmpi -> as_strcmpi
13105         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
13106         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
13107         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
13108         * as/mcs51/Makefile.aslink: new module strcmpi
13109         * as/mcs51/Makefile.asx8051: new module strcmpi
13110         * as/mcs51/Makefil.bcc: new module strcmpi
13111         * as/mcs51/Makefile.in: new module strcmpi
13112         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
13113
13114 2003-01-26    <johan AT balder>
13115
13116         * src/SDCCglue.c: reverted back to 1.124
13117         * src/SDCCast.c: reverted back to 1.156
13118         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
13119
13120 2003-01-25    <johan AT balder>
13121
13122         * src/SDCCglue.c: A better fix for bug #661910
13123         * src/SDCCast.c: A better fix for bug #661910
13124         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
13125
13126 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13127
13128         * src/Makefile.in: remove spawn.o
13129         * src/SDCCmain.c: remove spawn.h
13130         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
13131         * src/spawn.c: removed
13132         * src/spawn.h: removed
13133         * support/regression/ports/ds390/spec.mk: link with -r
13134
13135 2003-01-24    <johan AT CP255758-A>
13136
13137         * src/ds390/gen.c (aopOp): fixed bug #667458
13138         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
13139         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
13140         (createIvalCharPtr): an ival doesn't always have a storage class anymore
13141
13142 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
13143
13144         * src/mcs51/peeph.def: better assembler identation by Frieder
13145         * src/mcs51/gen.c: better assembler identation by Frieder
13146
13147 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
13148
13149         * as/z80/string.h: removed for gcc 3.2
13150         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
13151         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
13152
13153 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13154
13155         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
13156         * src/SDCCpeeph.c (replaceRule): fix bug #663503
13157         * support/regression/Makefile: separate temp files for ports
13158         * support/regression/generate-cases.py: separate temp files for ports
13159         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13160         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
13161
13162 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
13163
13164         * moved tinitalk to device/examples/ds390
13165
13166 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
13167
13168         * as/mcs51/lkmem.c: rflag is for DS390
13169         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
13170         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
13171                          (linkEdit): move mem- and map-files the same way as ihx-files
13172         * src/z80/main.c (_setDefaultOptions): removed --generic
13173         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
13174         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
13175         * src/pic/glue.c (picglue): --c1mode works again
13176         * src/pic16/glue.c (pic16glue): --c1mode works again
13177         * src/asm.c (printCLine): fix #660034
13178
13179 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
13180
13181         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
13182         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
13183         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
13184         * as/mcs51/lkmem (summary): better fix for sp problem
13185         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
13186         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
13187         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
13188                                               remove --stack-after-data
13189
13190 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
13191
13192         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
13193         * src/SDCCutil.c (join): ugly bug: missing '\0'
13194         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
13195
13196 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13197
13198         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
13199         * src/port.h: typo
13200         * src/pic/main.c (_asmCmd): gpasm supports -o
13201         * src/z80/main.c: more general macros
13202         * device/lib/Makefile.in: remove intermediate files
13203
13204 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
13205
13206         * .version: Bumped version number to 2.3.3
13207         * src/SDCCBBlock.c: new option -o
13208         * src/SDCCglobl.h: new option -o
13209         * src/SDCCglue.c: new option -o
13210         * src/SDCCmain.c: new option -o
13211         * src/asm.c: new option -o
13212         * src/ds390/main.c: new option -o
13213         * src/pic/glue.c: new option -o
13214         * src/pic/pcode.c: new option -o
13215         * src/pic/ralloc.c: new option -o
13216         * src/pic16/glue.c: new option -o
13217         * src/pic16/pcode.c: new option -o
13218         * src/pic16/ralloc.c: new option -o
13219         * src/z80/main.c: new option -o
13220         * device/lib/Makefile.in: use -o
13221         * support/regression/ports/ds390/spec.mk: use -o
13222         * support/regression/ports/gbz80/spec.mk: use -o
13223         * support/regression/ports/mcs51/spec.mk: use -o
13224         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
13225         * support/regression/ports/z80/spec.mk: use -o
13226         * support/regression/ports/ucz80/spec.mk: use -o
13227         * support/regression/ports/xa51/spec.mk: use -o
13228         * support/regression/fwk/lib/timeout.c: fix usage string
13229
13230 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
13231         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
13232
13233 2003-01-07    <johan AT balder>
13234
13235         * src/SDCCast.c (decorateType): fixed bug #600035
13236
13237 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
13238         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
13239         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
13240         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
13241         * src/pic/pcode.c: outcommented unused variable to remove warnings
13242         * src/pic/ralloc.c: outcommented unused variable to remove warnings
13243
13244 2003-01-06    <karl AT turbobit.com>
13245         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
13246    regression tests.
13247
13248 2003-01-06    <johan AT balder>
13249
13250         * src/SDCCicode.c: fixed array add
13251
13252 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
13253         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
13254         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
13255
13256 2003-01-04    <johan AT balder>
13257
13258         * src/SDCCval.c (getNelements): fixed the initialized array of structures
13259
13260 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13261         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
13262
13263 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13264         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
13265         * support/regression/tests/bug-524697.c: fit mem usage into 8032
13266
13267 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
13268         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
13269
13270 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
13271         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
13272
13273 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
13274         * src/mcs51/main.c: removed {bindir}{sep} from aslink
13275
13276 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13277
13278     * in /sdcc/as/mcs51/ changed these files in order to create an
13279     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
13280     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
13281     following files to include the previous two files: aslink.dsp,
13282     Makefile.aslink, Makefile.bcc, and Makefile.in.
13283
13284     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
13285     .adb instead of .cdb
13286
13287 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13288
13289         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
13290         value from option --iram-size.
13291
13292 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13293
13294         * /sdcc/as/mcs51/lklist.c: added boundary check before using
13295         dram[] array.
13296
13297 2002-09-18    <wiml AT hhhh.org>
13298
13299         * SDCClrange.h: exposed setFromRange() and setToRange()
13300         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
13301           packRegsForAccUse() (bug 542397)
13302         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
13303           multiple times and emitting the fetch operations more than once
13304           added aopGetUsesAcc() function to allow binary operators to
13305           fetch their operands in the correct order; made genMinus() emit
13306           compact code for X = LITERAL - Y
13307
13308 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13309         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
13310         sprintf() in line 1267.
13311
13312 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13313         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
13314         like ports.
13315
13316 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13317         Changes to aslink (All the changes are marked with 'JCF'):
13318
13319         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
13320         summary().
13321
13322         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
13323         area BSEG.  Also moves, if possible, the DATA area down into the internal
13324         ram so more space is available.
13325
13326         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
13327         sflag.
13328
13329         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
13330         not bytes.  Function summary() which creates a memory usage summary
13331         file with extension .mem.  Reports of overlaping stack and small stack
13332         size.  If the space for the stack is less than 16 bytes aslink trows a
13333         warning.
13334
13335         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
13336         the 8051.  Option 'y' for memory summary output file.
13337
13338         Changes to sdcc (All the changes are marked with 'JCF'):
13339
13340         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
13341
13342         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
13343         overlaying area for it (uses RegBankUsed[4]).
13344
13345         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
13346         bank zero as used by default.  By default aslink locates the stack
13347         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
13348         the creation of the .mem file.  Delegates the allocation of data area
13349         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
13350         the begining of the stack area to aslink.
13351
13352         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
13353         glue() in SDCCglue.c creates an area for it.
13354
13355 2002-09-03  Borut Razem <borut.razem AT siol.net>
13356         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
13357         sdcc/src/pic/glue.c:
13358         introduced atexit() handler for teporay files removal in case of
13359         errors, assertions, ...
13360
13361 2002-08-29  Borut Razem <borut.razem AT siol.net>
13362         * sdcc/support/cpp2/auto-host_vc_in.h:
13363         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
13364         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
13365         Maybe there is a similar problem with BORLANDC? It should be checked!
13366
13367         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
13368         corrected improper use of assert: the assignment to clr variable was done inside the assert.
13369         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
13370         was not executed, and the compiler (cl) launched a warning:
13371         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
13372
13373 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13374         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
13375
13376 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
13377         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
13378
13379         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13380           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
13381           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
13382           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13383           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
13384           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
13385           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
13386         - added Release configuration in VS projects
13387         - review of compiler an linker options
13388         - VC .exe files are generated in bin_vc directory, not to interfere
13389           with binaries generated from other projects (cygwin, mingw, bcc ...)
13390
13391         * sdcc/src/yacc.dsp: added
13392
13393         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
13394         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
13395         and insert the version number definitions from .version
13396
13397         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
13398
13399         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
13400         added - genarate auto-host.h using auto-host_vc_in.h as template
13401
13402         * sdcc/sdcc_vc.h,
13403         removed from CVS, generated automatically
13404
13405 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
13406         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
13407
13408 2002-08-11  Borut Razem <borut.razem AT siol.net>
13409         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
13410
13411 2002-08-10  Borut Razem <borut.razem AT siol.net>
13412         * src/SDCCmain.c (main):
13413         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
13414         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
13415         The consequence was that some temporary files were not removed.
13416
13417         * src/SDCCglue.c:
13418         unification of code in functions tempfilename() and tempfile():
13419         function tempnam() is defined in Visual Studio 6.0 and .NET
13420
13421         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
13422
13423         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
13424           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
13425         - removed compiler command line option /WX: Treats all warnings as errors
13426         - update a list of source files, included into the project
13427
13428         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
13429           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
13430         changed project type to Generic Project so that can be correcly converted to VS.NET project
13431
13432         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
13433
13434         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
13435
13436         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
13437
13438         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
13439         added return 0 statements after assert() to make compiler happy
13440
13441         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
13442         added newline in the def file to keep MSC compiler satisfied
13443
13444         * sdcc/src/z80/gen.c:
13445         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
13446           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
13447         - solved MSC error in function aopDump()
13448
13449         * sdcc_vc.h: define PREFIX as "\\sdcc"
13450
13451 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
13452         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
13453
13454 2002-06-22  Scott Dattalo <scott AT dattalo.com>
13455         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
13456         - Rewrote the register banking algorithm.
13457         - Added pCode live-range analysis to registers (for now, only non-used and
13458         singly-used registers optimized away)
13459
13460         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
13461
13462         * 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.
13463
13464 2002-05-10  Scott Dattalo <scott AT dattalo.com>
13465         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
13466
13467 2002-04-22  Michael Hope  <michaelh AT vroom>
13468
13469         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
13470
13471         * configure.in (DD_COPT): Added include support required for gbdk.
13472
13473         * .version: Bumped version number just to increase it.
13474
13475         * src/SDCCmain.c: Added -nostdinc to the default options.
13476
13477 2002-04-15  Michael Hope  <michaelh AT vroom>
13478
13479         * device/lib/z80/printf.c (sprintf): Added.
13480
13481         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
13482
13483         * src/z80/peeph.def: Added transpose redundent load rule.
13484
13485         * src/z80/main.c: Added force callee saves for jaune.
13486
13487         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
13488
13489         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
13490
13491 2002-03-28  Johan Knol  <johan AT balder>
13492
13493         * src/SDCCval.c: fixed bug #532436
13494
13495 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13496         * /src/port.h:
13497         Added "char *Processor" field to the port structure.
13498
13499         * /src/SDCCmain.c:
13500         Added -p option. Allows port dependent processor to be specified.
13501
13502         * all ports:
13503         Initialized the new field char *Processor field to NULL in all ports
13504
13505         * /src/pic/*:
13506         Compiler generated registers for interrupt context saving
13507         were not getting allocated.
13508
13509 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
13510
13511         * /src/SDCCast.c:
13512         Fixed left shift. Will promote the left side of a left shift
13513         if a) left shifting more than size of operand or b) when assigned
13514         to something size > size of left side
13515
13516 2002-03-14  Scott Dattalo <scott AT dattalo.com>
13517         * src/pic/*
13518         tons of changes. Register allocation has been
13519         rewritten. Added customization for the various PICs. Flow
13520         analysis is restructured. ...
13521
13522         * src/pic/device.h:
13523         Added
13524
13525         * src/pic/device.c:
13526         Added. device.c is a PIC port hack to accomodate variations
13527         in PIC devices.
13528
13529 2002-03-13  Michael Hope  <michaelh AT vroom>
13530
13531         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
13532
13533 2002-03-04  johanknol  <johanknol AT manik>
13534
13535         * /src/SDCCval.c: fixed
13536
13537         const unsigned char arr[][2] = { { 0, 1 } };
13538         t18.c:1: error: Initializer element is not constant
13539
13540 2002-03-04  bela  <bela AT manik>
13541
13542         * /device/include/mcs51reg.h:
13543         ds89c420 register definition update
13544
13545 2002-03-03    <johan AT FRIJA>
13546
13547         * support/Util/SDCCerr.c: did something, but don't no why anymore
13548
13549         * support/regression/tests/bug-524691.c: made it a little less shy
13550
13551         * src/SDCCast.c (decorateType): fixed bug #524697
13552
13553         * src/SDCCast.c: made some lineno improvements
13554
13555         * src/SDCCval.c (getNelements): changed warning to error
13556
13557         * src/SDCCglue.c (printIvalArray): changed warning to error
13558
13559         * src/SDCCicode.c: fixed a warning for mingw
13560
13561         * src/SDCCast.c (decorateType): fixed the << promotion for ops
13562
13563         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
13564
13565 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
13566
13567         * src/ds390/peeph.def:
13568         Added some more peephole rules
13569
13570         * src/ds390/gen.c: Various fixes & enhancements
13571
13572         * src/SDCClrange.c, src/SDCClrange.h:
13573         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
13574
13575         * src/ds390/ralloc.c:
13576         various fixes & enhancements (ds390) specific
13577
13578         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
13579         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
13580         from rallocs.
13581
13582         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
13583
13584 2002-03-02    <johan AT FRIJA>
13585
13586         * src/SDCCast.c (decorateType): fixed bug #524708
13587
13588         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
13589
13590         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
13591
13592 2002-03-01  Michael Hope  <michaelh AT vroom>
13593
13594         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
13595
13596         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
13597
13598 2002-03-01    <johan AT FRIJA>
13599
13600         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
13601
13602         * src/SDCCast.c (decorateType): fixed bug #524209
13603
13604         * src/SDCCval.c (valNot): fixed bug #524195
13605
13606 2002-02-26    <johan AT balder>
13607
13608         * src/xa51/gen.c: fixed a warning
13609
13610         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
13611
13612         * src/SDCCast.c (decorateType): fixed bug #522534
13613
13614 2002-02-23    <johan AT balder>
13615
13616         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
13617
13618 2002-02-22    <johan AT balder>
13619
13620         * src/SDCCast.c: fixed bug #514865
13621
13622         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
13623
13624 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
13625
13626         * sdcc/src/SDCCloop.c:
13627         Previous fix was not good. basic blocks that have "break" or "return" are
13628         not really partof a loop , but live ranges used in these blocks should
13629         be live thru the entire loop, so set partOfLoop but don't add them to
13630         loop region
13631
13632 2002-02-21    <johan AT FRIJA>
13633
13634         * src/SDCCcse.c: fixed bug #514308
13635
13636 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
13637
13638         * src/SDCCloop.c:
13639         Fixed BUG #519583. If a conditional block ended in a return/break
13640         statement inside a loop, it was not being considered part of the loop.
13641
13642         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
13643
13644 2002-02-10  Karl Bongers <karl AT turbobit.com>
13645
13646         * debugger/*:
13647         Fixed up SDCDB debugger somewhat.  Updated debugger/README
13648         with lots of comments and notes.
13649
13650         * device/examples/test2.c:
13651         Fix bug, "red" variable not being initialized(compiler complained).
13652
13653         * device/examples/Makefile, examples/test3.c:
13654         Add Makefile in device/examples folder, compiles test3.c
13655         for use as a multiple module SDCDB test case.
13656
13657         * sim/ucsim/cmd.src/cmdset.cc:
13658         Took out debug printfs in ucsim "next" command.
13659
13660         * sim/ucsim/xa.src:
13661         Karl and Johan start ucsim XA support.  Most dissassembly working,
13662         about 75% emulation done(plenty of work remaining).
13663
13664         * sim/ucsim/z80.src:
13665         Add Z80 support to ucsim, add test-ucz80 regression test,
13666         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
13667         Notice z80 compiler fails on examples/test3.c/crc code.
13668
13669 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
13670
13671         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
13672         Added support for --parms-in-bank1
13673
13674         * src/ds390/peeph.def:
13675         added a few more peephole optimzations
13676
13677         * src/ds390/main.c:
13678         1) added __builtin_inp & __builtin_outp used to read in data of given length
13679            from a memory mapped port
13680         2) added __builtin_memcmp
13681         3) added __builtin_swapw swap bytes of a short
13682
13683         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
13684         1) handle multiple send & receives from register bank1
13685         2) ralloc can now allocate DPTR1 to some liveRanges
13686
13687         * src/SDCCsymt.c, src/SDCCsymt.h:
13688         changes to handle multiple sends & receives
13689
13690         * src/SDCCptropt.h:
13691         added some pointer arithmetic optimization
13692
13693         * src/SDCCptropt.c:
13694         added some pointer arithmetic optimizations but not stable yet so not
13695         called from anywhere (will get this working shortly)
13696
13697         * src/SDCCopt.c: fixed for multiple sends & receives
13698
13699         * src/SDCCmain.c:
13700         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
13701         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
13702            set preprocessor defines (depending on options)
13703
13704         * src/SDCCicode.c, src/SDCCicode.h:
13705         changes made to handle multiple sends & receives
13706
13707         * src/SDCCglobl.h:
13708         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
13709
13710         * src/SDCCcse.c, src/SDCCcse.h:
13711         added function findbackward def (to be used in upcoming optimization)
13712
13713         * src/SDCCcflow.c, src/SDCCcflow.h:
13714         added function returnAtEnd - to determine if a basic block terminates with
13715         a RETURN iCode
13716
13717         * src/SDCCast.c, src/SDCCast.h:
13718         added option parms-in-bank1
13719
13720         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
13721         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
13722         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
13723         adjusted for --parms-in-bank1 option
13724
13725         * device/include/string.h:
13726         donot redefine "reentrant" keyword
13727
13728         * device/include/ds80c390.h: Added some more SFRs
13729
13730 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
13731
13732         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
13733
13734 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
13735
13736         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
13737
13738 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
13739
13740         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
13741
13742 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
13743
13744         * Added --xram-movc option
13745
13746 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
13747
13748         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
13749
13750 2002-01-11  Johan Knol
13751
13752         * Added math lib of Jesus Calvino-Fraga
13753
13754 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
13755
13756         * src/SDCCmain.c (processFile): fix processing of ../../src.c
13757         * support/regression/Makefile: new target test-mcs51-stack-auto
13758         * support/regression/ports/mcs51-stack-auto/spec.mk: added
13759
13760 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13761
13762         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
13763
13764 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
13765
13766         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
13767
13768 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
13769
13770         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
13771
13772         * src/SDCCglue.h: add definition for printIvalChar()
13773
13774 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13775
13776         * src/SDCCast.c: fix #498138 by Johan
13777
13778         * src/SDCCglue.c: fix #498138 by Johan
13779
13780 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
13781
13782         * support/regression/Makefile: fix clean
13783
13784         * support/regression/ports/ds390/support.c: fix transmission of last character
13785
13786 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
13787
13788         * /sdcc/src/ds390/gen.c:
13789         a) improved computing address of stack variable
13790         b) took out some #if 0 code
13791         c) improved parmBytes adjustment
13792         d) improved genPlusIncr & genMinusIncr
13793         e) genCmp could generate bad code (when left assigned to DPTR)
13794         f) Fixed bug in hasInc
13795
13796         * /sdcc/src/ds390/ralloc.c:
13797         a) packRegsForSupport could mess up live information (Fixed)
13798         b) packRegsDPTRuse could be incorrect for left & right shift
13799
13800         * /sdcc/src/mcs51/ralloc.c:
13801         packRegsForSupport could mess up the live information (Fixed)
13802
13803         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
13804
13805         * /sdcc/src/SDCCast.c:
13806         can reverse a loop even if function call is present as long
13807         as the loop control variable is local & is not passed as parameter
13808
13809 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13810
13811         * /sdcc/ChangeLog: *** empty log message ***
13812
13813         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
13814         More builtin function additions for TININative
13815
13816         * /sdcc/src/ds390/ralloc.c:
13817         Had broken the regression testsuite
13818
13819         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
13820
13821         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
13822         Added funcattr hasStackParms will be set for reentrant functions when there
13823         are paramteres on the stack, this helps in minimizing frame pointer generation
13824         typeFromStr can handle function pointers now
13825
13826         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
13827         *** empty log message ***
13828
13829 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13830
13831         * /src/ds390/gen.c, /src/ds390/main.c:
13832         More builtin function additions for TININative
13833
13834         * /src/ds390/ralloc.c:
13835         Had broken the regression testsuite
13836
13837         * /src/SDCCast.c: Fixed a bug in dumptree
13838
13839         * /src/SDCCsymt.c, /src/SDCCsymt.h:
13840         Added funcattr hasStackParms will be set for reentrant functions when there
13841         are paramteres on the stack, this helps in minimizing frame pointer generation
13842         typeFromStr can handle function pointers now
13843
13844         * /doc/builtins.txt, /doc/TININative.txt:
13845         *** empty log message ***
13846
13847
13848 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
13849
13850         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
13851         ALPHA version for -mTININative
13852
13853         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
13854         updated to reflect changes in the port structure
13855
13856         * /src/port.h:
13857         added function do_assemble (similar to do_link) if non-null this function
13858         will be called to do assembly (-mTININative) requires a multi command
13859         assembly
13860         added function genAssemblerEnd will be called to generate assembler Epilogue
13861
13862         * /src/SDCCsymt.c:
13863         added _JavaNative to debug info printing
13864
13865         * /src/SDCCmain.c: added option --tini-libid
13866         added port->do_assemble function (-mTININative) has a multi command assemble
13867
13868         * /src/SDCCglue.c: Disabled "constExpr" check
13869         added port->genAssemblerEnd function
13870
13871         * /src/SDCCglobl.h: Added option --tini-libid value
13872
13873         * /src/SDCCast.h:
13874         tookout optimizeCompare from the header (has no external references)
13875
13876         * /src/SDCCast.c: made one more function "static"
13877
13878 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
13879
13880         * src/z80/mappings.i: Added z80asm support.
13881
13882         * src/z80/main.c: Added z80asm support on --asm=z80asm
13883
13884         * src/z80/gen.c: Fixed asm portability issues.
13885
13886         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
13887
13888         * src/SDCCglue.c (printExterns): Added global/extern split.
13889
13890 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
13891
13892         * support/regression/Makefile: added test for mcs51 model large
13893
13894         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
13895
13896         * support/regression/ports/gbz80/spec.mk: added -mgbz80
13897
13898 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
13899
13900         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
13901
13902 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
13903
13904         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
13905
13906         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
13907
13908 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
13909
13910         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
13911
13912         * support/regression/tests/simplefloat.c: Port to mcs51.
13913
13914 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
13915         * support/regression/tests/bug-485362.c: Added.
13916
13917         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
13918
13919         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
13920
13921         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
13922
13923         * src/z80/gen.c (aopDump): Added a dump function.
13924
13925 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
13926         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
13927
13928         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
13929
13930         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
13931
13932         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
13933
13934         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
13935
13936         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
13937
13938         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
13939
13940         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
13941
13942         * support/regression/ports/ds390/support.c: Use tinibios.
13943
13944         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
13945
13946 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
13947
13948         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
13949         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
13950
13951         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
13952
13953         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
13954
13955 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
13956
13957         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
13958
13959         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
13960         (packRegsForIYUse): Created and optimised.
13961
13962 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
13963
13964         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
13965 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
13966
13967         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
13968
13969         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
13970
13971         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
13972
13973 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
13974
13975         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
13976
13977         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
13978
13979 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
13980
13981         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
13982
13983         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
13984
13985         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
13986
13987 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
13988
13989         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
13990         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
13991         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
13992
13993         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
13994
13995         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
13996         (genNotFloat): Added.
13997         (genUminusFloat): Added.
13998
13999         * device/lib/z80/Makefile: Added floating pt stubs.
14000
14001         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
14002
14003         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
14004
14005         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
14006
14007 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
14008
14009         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
14010
14011         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
14012
14013         * sdcc/support/regression/Makefile: Add port ds390.
14014
14015         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
14016
14017         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
14018
14019         * sdcc/support/regression/ports/ds390/spec.mk: Added.
14020
14021         * sdcc/support/regression/ports/ds390/support.c: Added.
14022
14023         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
14024
14025         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
14026
14027         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
14028
14029 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14030
14031         * device/include/malloc.h: Added z80 and gbz80 support.
14032
14033         * device/lib/gbz80/heap.s: Added.
14034
14035         * device/lib/z80/heap.s: Added.
14036
14037         * device/lib/malloc.c: Added z80 and gbz80 support.
14038
14039         * support/regression/tests/malloc.c (testMalloc): Added.
14040
14041         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
14042
14043         * support/regression/tests/bug-478094.c: Added.
14044
14045         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
14046
14047 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
14048
14049         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
14050
14051         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
14052
14053         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
14054
14055         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
14056
14057         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
14058
14059 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
14060
14061         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
14062
14063 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
14064
14065         * support/regression/tests/bug-477927.c: Added.
14066
14067         * src/z80/peeph.def: Added minor rules.
14068
14069         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
14070
14071         * src/z80/peeph.def: Added jump optimisation modification.
14072
14073 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
14074
14075         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
14076
14077 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
14078
14079         * support/regression/tests/funptrs.c: Added.
14080
14081 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
14082
14083         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
14084
14085 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
14086
14087         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
14088
14089         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
14090
14091         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
14092         (movLeft2ResultLong): Created.
14093
14094         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
14095         (joinPushes): Added.  Joins two char pushes into a word push.
14096
14097 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
14098
14099         * support/cpp2/Makefile.in (install): Added creation of dest dir.
14100
14101         * support/makebin/Makefile (install): Added creation of dest dir.
14102
14103 2001-10-24 Karl Bongers <karl AT turbobit.com>
14104
14105         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
14106
14107 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
14108
14109         * src/z80/ralloc.c: Turned off faulty pack for one use.
14110
14111         * src/z80/peeph-gbz80.def: Removed redundent restart options.
14112
14113         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
14114
14115 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
14116
14117         * support/regression/Makefile: Improved clean
14118
14119         * support/regression/ports/gbz80/spec.mk: Added clean
14120
14121         * support/regression/ports/host/spec.mk: Added clean
14122
14123         * support/regression/ports/z80/spec.mk: Added clean
14124
14125         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
14126
14127         * support/regression/ports/mcs51/timeout.c: little improvements
14128
14129 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
14130
14131         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
14132
14133         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
14134
14135         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
14136
14137 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
14138
14139         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
14140
14141         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
14142
14143 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
14144         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
14145
14146         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
14147
14148         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
14149
14150         * src/mcs51/main.c (_linkCmd): Added bin path to command.
14151
14152         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
14153
14154         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
14155
14156         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
14157
14158         * support/regression/tests/longor.c: Added.
14159
14160 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
14161
14162         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
14163
14164         * as/mcs51/aslink.h: define PATH_MAX
14165
14166         * as/mcs51/asm.h: define PATH_MAX
14167
14168         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
14169
14170         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
14171
14172         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
14173
14174         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
14175
14176         * src/SDCCglobl.h: define PATH_MAX
14177
14178         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
14179
14180         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
14181
14182 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
14183
14184         * src/z80/gen.c (gencjneshort): Fixed
14185
14186         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
14187
14188 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
14189
14190         * support/regression/tests/bug-469671.c: Added.
14191
14192         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
14193
14194 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
14195
14196         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
14197
14198         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
14199
14200 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
14201
14202         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
14203
14204         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
14205
14206         * src/device/lib/_mullong.c : removed hint: nooverlay bug
14207
14208         * src/device/lib/_divuint.c : removed hint: nooverlay bug
14209
14210         * src/device/lib/_divulong.c: removed hint: nooverlay bug
14211
14212         * src/device/lib/_moduint.c : removed hint: nooverlay bug
14213
14214         * src/device/lib/_modulong.c: removed hint: nooverlay bug
14215
14216 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
14217
14218         * 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.
14219
14220         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
14221
14222         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
14223
14224 2001-10-07    <johan AT FRIJA>
14225
14226         * device/lib/gets.c (gets): fixed the return value.
14227
14228 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
14229         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
14230
14231         * 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.
14232
14233         * 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.
14234
14235         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
14236
14237         * src/pic/gen.c: Removed Safe_strdup.
14238
14239         * configure.in: Added option to enable libgc support.
14240
14241         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
14242         (bitVectUnion): Optimised.
14243         (bitVectIntersect): Optimised.
14244         (bitVectBitsInCommon): Optimised.
14245         (bitVectCplAnd): Optimised.
14246
14247         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
14248
14249 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14250
14251         * src/SDCCmain.c: distinguish between assembler debug and plain options
14252
14253         * src/avr/main.c:   remove standard assembler options
14254
14255         * src/ds390/main.c: remove standard assembler options
14256
14257         * src/mcs51/main.c: remove standard assembler options
14258
14259         * src/port.h: removed "PENDING" comment
14260
14261 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14262
14263         * src/device/lib/_mulint.c  : new, with assember functions
14264
14265         * src/device/lib/_mullong.c : new, with assember functions
14266
14267         * src/device/lib/_divuint.c : with assember functions
14268
14269         * src/device/lib/_divsint.c : with assember functions
14270
14271         * src/device/lib/_divulong.c: with assember functions
14272
14273         * src/device/lib/_divslong.c: with assember functions
14274
14275         * src/device/lib/_moduint.c : with assember functions
14276
14277         * src/device/lib/_modsint.c : with assember functions
14278
14279         * src/device/lib/_modulong.c: with assember functions
14280
14281         * src/device/lib/_modslong.c: with assember functions
14282
14283         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
14284
14285         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
14286
14287         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
14288                                       replaced _mululong.c and _mulslong.c by _mullong.c
14289
14290 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
14291
14292         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
14293
14294 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14295
14296         * src/SDCCglue.c: test, if win32api is available for MINGW
14297
14298 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
14299
14300         * src/SDCCsymt.c: no more _modifier in printTypeChain()
14301         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
14302         * support/regression/ports/gbz80/spec.mk: removed GENERIC
14303         * support/regression/ports/host/spec.mk: removed GENERIC
14304         * support/regression/ports/mcs51/spec.mk: removed GENERIC
14305         * support/regression/ports/z80/spec.mk: removed GENERIC
14306
14307 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
14308
14309         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
14310
14311         * support/regression/tests/bug-467035.c: Created.
14312
14313 2001-10-01    <johan AT FRIJA>
14314
14315         * src/SDCC.y: fixed bug #466586 part 1
14316
14317 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
14318
14319         * SDCCicode.c: z80 has no generic pointers
14320         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
14321
14322 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
14323
14324         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
14325
14326 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
14327
14328         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
14329
14330         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
14331
14332 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
14333
14334         * configure.in: Fixed up so that ucsim is only configured once.
14335
14336         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
14337
14338         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
14339         (getPathDifference): As above.
14340
14341         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
14342
14343         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
14344
14345 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
14346         * .version: Updated to 2.3.1
14347
14348         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
14349         Added copyright header.
14350
14351         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
14352         (assemble): Added support for macro based assembler commands.
14353         (linkEdit): Added support for macro based linker commands.
14354         (preProcess): Changed the pre-processor to use macros.
14355         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
14356         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
14357
14358         * device/lib/z80/crt0.s: Added module name for debugging.
14359
14360 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
14361
14362         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14363
14364         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
14365
14366         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
14367
14368         * src/Makefile.in: Added SDCCmacro and SDCCutil
14369
14370 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
14371
14372         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
14373
14374 2001-09-16    <johan AT FRIJA>
14375
14376         * 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.
14377
14378 2001-09-15    <johan AT FRIJA>
14379
14380         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
14381         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
14382
14383 2001-09-11    <johan AT FRIJA>
14384
14385         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
14386
14387 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
14388
14389         * support/regression/tests/bug-460444.c: Added test case.
14390
14391         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
14392         (genCast): Added justification for all of the asserts.
14393
14394 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
14395
14396         * support/regression/support.c: _xdata replaced by xdata
14397
14398         * support/regression/spec.mk: removed _generic
14399
14400 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
14401
14402         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
14403
14404         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
14405         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
14406
14407         * src/z80/peeph.def: Added a rule to optimise shift then compare.
14408
14409         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
14410
14411         * support/regression/tests/bug-460010.c: Added test case.
14412
14413         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
14414
14415 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
14416
14417         * support/regression/Makefile: inter-port-clean adjusted for mcs51
14418
14419         * support/regression/testfwk.c: removed workaround for bug #436344
14420
14421         * support/regression/tests/bp.c: use less memory with mcs51
14422
14423         * support/regression/tests/bug-441448.c: use less memory
14424
14425         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
14426
14427         * support/regression/collate-results.py: typo
14428
14429 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
14430
14431         * support/regression/tests/fetchoverlap.c: Added new test case.
14432
14433         * support/regression/tests/bp.c: Added new test case.
14434
14435         * support/regression/tests/bug-448984.c: Added new test case.
14436
14437         * support/regression/tests/pow2shifts.c: Added new test case.
14438
14439         * src/z80/gen.c: Turned off the noise it normally generates for the release.
14440         (genlshTwo): Fixed right shift for count > 8.
14441
14442         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
14443
14444 2001-09-08    <johan AT FRIJA>
14445
14446         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
14447
14448 2001-09-07    <johan AT FRIJA>
14449
14450         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
14451
14452         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
14453
14454 2001-09-06    <johan AT FRIJA>
14455
14456         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
14457         * bernhard noted me at this: "() equals to (void)" (1.38)
14458
14459 2001-09-05    <johan AT FRIJA>
14460
14461         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
14462
14463 2001-09-04    <johan AT FRIJA>
14464
14465         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
14466
14467
14468 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
14469
14470         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
14471
14472 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
14473
14474         * link/z80/aslink.h: Fixed path for PATH_MAX
14475
14476 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
14477
14478         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
14479
14480         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
14481
14482         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
14483
14484         * 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.
14485
14486 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
14487
14488         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
14489         (genCmp): Fixed up genCmp for the GB with longs.
14490
14491         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
14492
14493         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
14494
14495         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
14496
14497         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
14498
14499 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
14500
14501         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
14502
14503 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
14504
14505         * 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.
14506
14507         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
14508
14509 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
14510
14511         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
14512
14513         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
14514
14515 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
14516
14517   * sim/ucsim/configure:    little improvement of Cygwin-detection
14518   * sim/ucsim/configure.in: little improvement of Cygwin-detection
14519   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
14520   * support/regression/tests/bug-221100.c: small changes for mcs51
14521   * support/regression/tests/bug-221168.c: small changes for mcs51
14522   * support/regression/tests/bug-227710.c: small changes for mcs51
14523   * support/regression/tests/staticinit.c: small changes for mcs51
14524   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
14525   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14526   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
14527
14528 $Revision$