* debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
[fw/sdcc] / ChangeLog
1 2006-10-30 Borut Razem <borut.razem AT siol.net>
2
3         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4         * debugger/mcs51/acinclude.m4: locate readline even when cross compiling
5
6 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
7
8         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
9           serial port.
10
11 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
12
13         * device/include/malloc.h,
14         * device/lib/calloc.c,
15         * device/lib/free.c,
16         * device/lib/malloc.c,
17         * device/lib/realloc.c: moved definition of struct into sources
18         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
19
20 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
21
22         * as/asx8051.dsp: corrected output directories
23         * as/link/hc08: new directory for hc08 linker
24         * as/hc08/aslink.h,             as/link/aslink.h,
25         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
26         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
27         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
28         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
29         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
30         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
31         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
32         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
33         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
34         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
35         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
36         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
37         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
38         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
39         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
40         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
41         * as/link/hc08/conf.mk,
42         * configure,
43         * configure.in,
44         * Makefile.in,
45         * sdcc.dsw: moved hc08 linker to as/link/hc08
46         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
47         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
48         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
49         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
50         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
51         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
52         * as/link/mcs51/aslink.dsp,
53         * as/link/mcs51/Makefile.in: factored out the common files
54         * as/hc08/lkstore.c: deleted, use the one already in as/link/
55         * as/clean.mk: extra cleaning common files
56         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
57         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
58         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
59
60 2006-10-29 Raphael Neider <rneider AT web.de>
61
62         * src/pic/ralloc.c (newReg): create aliases for registers with
63           multiple names to fix #1579535 and #1584001,
64           (regWithIdx,dirregWithName): resolve aliases on lookup
65         * src/pic/pcode.c (DoBankSelect): die with error message on failing
66           bankselect
67         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
68           to prevent build errors on small devices
69
70 2006-10-28 Raphael Neider <rneider AT web.de>
71
72         * src/pic/gen.c (genFunction,genCall): drop "same code page"
73           assumption within interrupt handlers, fixes #1584940
74         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
75           "emitted" to avoid emitting them again in udata
76
77 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
78
79         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
80         Removed.
81
82 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
83
84         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
85         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
86         on/off CR to CRLF conversion.
87
88 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
89
90         * doc/sdccman.lyx: updated IRQ section
91
92 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
93
94         * device/lib/serial_io.c: removed
95         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
96         replacements for serial_io.c
97
98 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
99
100         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
101
102 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
103
104         * device/lib/serial_io.c: Default putchar() and getchar() for
105           mcs51 uses serial port.
106
107 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
108
109         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
110
111 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
112
113         * support/regression/ports/mcs51/support.c: smaller
114         _sdcc_external_startup()
115         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
116
117 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
118
119         * device/lib/gbz80/crt0.s,
120         * device/lib/gbz80/crt0_rle.s,
121         * device/lib/gbz80/div.s,
122         * device/lib/gbz80/fstubs.s,
123         * device/lib/gbz80/heap.s,
124         * device/lib/gbz80/mul.s,
125         * device/lib/gbz80/putchar.s,
126         * device/lib/gbz80/stubs.s,
127         * device/lib/z80/crt0.s,
128         * device/lib/z80/crt0_rle.s,
129         * device/lib/z80/div.s,
130         * device/lib/z80/fstubs.s,
131         * device/lib/z80/heap.s,
132         * device/lib/z80/mul.s,
133         * device/lib/z80/putchar.s,
134         * device/lib/z80/stubs.s: reverted, I was mistaken
135
136 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
137
138         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
139         * support/regression/ports/mcs51/support.c: removed race
140         condition on TI in _putchar allowing to use serial port mode 0
141
142 2006-10-20 Borut Razem <borut.razem AT siol.net>
143
144         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
145
146 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
147
148         * device/lib/gbz80/crt0.s,
149         * device/lib/gbz80/crt0_rle.s,
150         * device/lib/gbz80/div.s,
151         * device/lib/gbz80/fstubs.s,
152         * device/lib/gbz80/heap.s,
153         * device/lib/gbz80/mul.s,
154         * device/lib/gbz80/putchar.s,
155         * device/lib/gbz80/stubs.s,
156         * device/lib/z80/crt0.s,
157         * device/lib/z80/crt0_rle.s,
158         * device/lib/z80/div.s,
159         * device/lib/z80/fstubs.s,
160         * device/lib/z80/heap.s,
161         * device/lib/z80/mul.s,
162         * device/lib/z80/putchar.s,
163         * device/lib/z80/stubs.s: removed all leading underscores from area names
164
165 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
166
167         * support/regression/ports/mcs51/support.c: use highest baudrate so the
168           regression tests are not waiting in the simulator for simulated
169           transmission of debug output
170
171 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
172
173         * device/lib/printf_large.c: slightly smaller
174         * doc/sdccman.lyx: do not use spaces within html links
175
176 2006-10-16 Borut Razem <borut.razem AT siol.net>
177
178         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
179           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
180           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
181           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
182           debugger/mcs51/configure:
183           [ 1185668 ] add gnu readline support to sdcdb - enabled
184
185 2006-10-16 Raphael Neider <rneider AT web.de>
186
187         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
188           fixes #1577882, removes close to all banking optimizations
189
190 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
191
192         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
193           variables in code memory
194         * support/regression/tests/absolute.c: added test for this
195
196 2006-10-15 Raphael Neider <rneider AT web.de>
197
198         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
199           devices,
200           (BankSelect): emit BANKSEL before touching linker-placed regs,
201           fixes #1570934
202
203 2006-10-10 Raphael Neider <rneider AT web.de>
204
205         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
206         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
207         * src/pic/main.c (_pic14_parseOptions),
208         * src/pic/main.h: mostly reverted to previous state, now use results
209             from SDCCmain.c's argument parsing
210
211 2006-10-10 Borut Razem <borut.razem AT siol.net>
212
213         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
214           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
215           [ 1185668 ] add gnu readline support to sdcdb -
216           prepared for READLINE, not enabled yet,
217           thanks to <tal.bav AT gmail.com>
218
219 2006-10-10 Raphael Neider <rneider AT web.de>
220
221         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
222         * src/pic16/devices.inc,
223         * device/include/pic16 (pic18f[24]620.h),
224         * device/include/pic18fregs.h,
225         * device/lib/pic16/pics.all,
226         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
227             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
228             Gary Plumbridge and Anton Strobl
229
230 2006-10-10 Raphael Neider <rneider AT web.de>
231
232         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
233           --stack-siz=NUM options to configure the argument passing stack
234         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
235         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
236           (pic14_getSharebankSize): obey --stack-siz=NUM,
237           (pic14_getSharebankAddress): obey --stack-loc=NUM
238
239 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
240
241         * doc/sdccman.lyx: added to the manual
242         * doc/figures/ddd_example.png: added (neither pdflatex nor
243         most browsers seem to like the .eps file)
244
245 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
246
247         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
248         to /tmp and /var/tmp acc. LSB
249         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
250         RESULT_TYPE_IFX
251         * support/regression/tests/onebyte.c: added test
252
253 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
254
255         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
256
257 2006-10-05 Borut Razem <borut.razem AT siol.net>
258
259         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
260           thanks to dfulab:
261           - sdcc.dsw: changed property eol-style to CRLF
262           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
263
264 2006-10-04 Raphael Neider <rneider AT web.de>
265
266         * device/include/pic/{pic16f84.h,pic16f84a.h},
267         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
268           from patch #1522504, thanks to Robas Teodor
269
270 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
271
272         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
273           fixes bug 1566015
274
275 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
276
277         * src/pic16/glue.c (pic16emitMaps),
278         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
279         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
280         * device/lib/pic16/libc/string/memcpypgm2ram.c,
281         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
282           Philipp Krause
283         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
284         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
285
286 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
287
288         * support/librarian/sdcclib.c: Added option -l.
289         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
290           usage totals.
291         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
292           using Windows command prompt.
293
294 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
295
296         * device/lib/libsdcc.lib: added module rand
297         * src/ds390/ralloc.c (rematStr),
298         * src/hc08/ralloc.c (rematStr),
299         * src/mcs51/ralloc.c (rematStr),
300         * src/z80/ralloc.c (rematStr): made output more consistent
301         * src/mcs51/gen.c: cosmetic changes
302
303 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
304
305         * src/port.h: added mem.cabs_name to PORT
306         * src/ds390/main.c,
307         * src/hc08/main.c,
308         * src/mcs51/main.c,
309         * src/pic16/main.c,
310         * src/pic/main.c,
311         * src/xa51/main.c,
312         * src/z80/main.c: added cabs_name initializers
313         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
314           constants
315           (emitMaps): emit absolutes in code memory into cabs_name
316         * src/SDCCmem.c,
317         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
318         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
319         * support/regression/fwk/include/testfwk.h: added define for at
320         * support/regression/tests/absolute.c: added, new
321
322 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
323
324         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
325           optimizations, see also patch 887161 by Stas Sergeev
326         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
327           to be necessary anymore,
328           (102, 103, 104, 127): renamed all occurances of bp to _bp
329
330 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
331
332         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
333           thanks Weston T. Schmidt for patch 1555221
334         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
335         * src/SDCCicode.c(geniCodeMultiply): small optimization
336
337 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
338
339         * device/include/stdlib.h: added rand prototypes
340         * device/lib/rand.c: new, added
341         * device/lib/Makefile.in: added rand.c
342         * src/z80/peeph.def,
343         * src/z80/peeph-gbz80.def,
344         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
345
346 2006-09-20 Raphael Neider <rneider AT web.de>
347
348         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
349
350 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
351
352         * as/link/aslink.h: cosmetic changes
353         * as/link/mcs51/Makefile.in,
354         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
355
356 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
357
358         * as/link/aslink.h,
359         * as/link/mcs51/aslink.h,
360         * as/link/z80/aslink.h: merged and moved to as/link/
361         * as/link/lkstore.c,
362         * as/link/mcs51/lkstore.c: moved to as/link/
363         * as/link/clean.mk: remove *.o
364         * as/link/mcs51/alloc.h: deleted
365         * as/link/mcs51/lkarea.c: added lnksect prototype
366         * as/link/mcs51/lkdata.c,
367         * as/link/mcs51/lklex.c,
368         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
369         * as/link/mcs51/lkmem.c,
370         * as/link/mcs51/lknoice.c: removed include strcmpi.h
371         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
372         * as/link/mcs51/aslink.dsp,
373         * as/link/mcs51/Makefile.aslink,
374         * as/link/mcs51/Makefile.bcc,
375         * as/link/mcs51/Makefile.in: updated for moved files
376         * as/link/z80/lkarea.c,
377         * as/link/z80/lkhead.c,
378         * as/link/z80/lklex.c,
379         * as/link/z80/lklibr.c,
380         * as/link/z80/lklist.c,
381         * as/link/z80/lkmain.c,
382         * as/link/z80/lkrloc.c,
383         * as/link/z80/lksym.c: synced with mcs51
384         * as/link/z80/lkdata.c,
385         * as/link/z80/lkeval.c,
386         * as/link/z80/lkihx.c,
387         * as/link/z80/lks19.c: cosmetic changes
388         * as/link/z80/Makefile.in,
389         * as/link/z80/linkgbz80.dsp,
390         * as/link/z80/linkz80.dsp: updated for moved files
391
392 2006-09-16 Borut Razem <borut.razem AT siol.net>
393
394         * debugger/mcs51/sdcdb.c: partially fixed
395           [ 1203664 ] sdcdb fails to open files w. two "." periods
396         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
397           debugger/mcs51/symtab.h: fixed indenting
398         * configure.in, configure: up to date with latest Maarten's changes
399
400 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
401
402         as/link/mcs51
403         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
404         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
405         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
406         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
407         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
408         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
409         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
410         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
411         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
412         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
413         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
414         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
415         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
416         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
417         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
418         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
419         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
420         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
421         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
422         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
423         as/link/mcs51/alloc.h,
424         as/link/mcs51/clean.mk,
425         as/link/mcs51/conf.mk,
426         as/link/mcs51/Makefile.bcc,
427         as/link/mcs51/Makefile.in,
428         as/link/mcs51/readme.390,
429         as/link/mcs51/strcmpi.c,
430         as/link/mcs51/strcmpi.h,
431         as/mcs51/clean.mk,
432         as/mcs51/Makefile.bcc,
433         as/mcs51/Makefile.in,
434         configure,
435         Makefile.in,
436         sdcc.dsw: moved mcs51 linker to as/link/mcs51
437
438 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
439
440         * as/link,
441         * as/link/Makefile.in,
442         * as/link/z80/linkgbz80.dsp,
443         * as/link/z80/linkz80.dsp,
444         * configure,
445         * link,
446         * link/clean.mk,
447         * link/Makefile.in,
448         * link/README,
449         * link/z80,
450         * link/z80/aslink.h,
451         * link/z80/clean.mk,
452         * link/z80/conf.mk,
453         * link/z80/linkgbz80.dsp,
454         * link/z80/linkz80.dsp,
455         * link/z80/lkarea.c,
456         * link/z80/lkdata.c,
457         * link/z80/lkeval.c,
458         * link/z80/lkgb.c,
459         * link/z80/lkgg.c,
460         * link/z80/lkhead.c,
461         * link/z80/lkihx.c,
462         * link/z80/lklex.c,
463         * link/z80/lklibr.c,
464         * link/z80/lklist.c,
465         * link/z80/lkmain.c,
466         * link/z80/lkrloc.c,
467         * link/z80/lks19.c,
468         * link/z80/lksym.c,
469         * link/z80/Makefile.in,
470         * Makefile.in,
471         * sdcc.dsw: moved link/ to as/link/
472
473 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
474
475         * as/mcs51/i51mch.c (machine): fixed warning
476
477 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
478
479         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
480
481 2006-09-09 Borut Razem <borut.razem AT siol.net>
482
483         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
484           sdcdb WIN32 native port
485         * src/clean.mk: fixed
486
487 2006-09-08 Borut Razem <borut.razem AT siol.net>
488
489         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
490
491 2006-09-08 Raphael Neider <rneider AT web.de>
492
493         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
494         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
495             to gplink to disable processor mismatch warning and to allow
496             the use of devices with only aliased (shared) memory banks,
497           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
498
499 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
500
501         * doc/sdccman.lyx: Some re-formating plus example on using
502           #pragma preproc_asm +/-
503
504 2006-09-07 Borut Razem <borut.razem AT siol.net>
505
506         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
507           section
508
509 2006-09-06 Borut Razem <borut.razem AT siol.net>
510
511         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
512           line at sdcc.nsi:153
513         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
514
515 2006-09-05 Borut Razem <borut.razem AT siol.net>
516
517         * configure.in, configure: support for winsock2
518         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
519           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
520           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
521           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
522           debugger/mcs51/symtab.h: sdcdb WIN32 native port
523
524 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
525
526         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
527           and OP_DEFS
528         * support/regression/tests/bug1551947.c: new, added
529         * src/SDCCsymt.h: strings are char* not byte*
530
531 2006-09-05 Raphael Neider <rneider AT web.de>
532
533         * device/lib/pic16/libdev/pic18f4550.c,
534           device/include/pic16/pic18f4550.h: added PORTD/TRISD
535             declarations/definitions from patch #1520949
536
537 2006-09-05 Raphael Neider <rneider AT web.de>
538
539         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
540           byte-aligned bitfields, fixes #1539278
541
542 2006-09-05 Raphael Neider <rneider AT web.de>
543
544         * src/pic/gen.c (genReceive): skip unreferenced arguments,
545           fixes #1544120
546
547 2006-09-04 Borut Razem <borut.razem AT siol.net>
548
549         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
550         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
551           -mno-cygwin is a part of the compiler name
552         * support/scripts/sdcc_mingw32: don't disable ucsim
553
554 2006-09-03 Borut Razem <borut.razem AT siol.net>
555
556         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
557         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
558
559 2006-09-03 Raphael Neider <rneider AT web.de>
560
561         * src/pic/ralloc.c,
562         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
563           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
564           fixes #1550049
565
566 2006-09-01 Borut Razem <borut.razem AT siol.net>
567
568         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
569           to make ppc-osx happy
570
571 2006-08-31 Borut Razem <borut.razem AT siol.net>
572
573         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
574         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
575         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
576         * support/regression/ports/ds390/spec.mk,
577           support/regression/ports/mcs51/spec.mk,
578           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
579           To run regression tests in mingw environment:
580           make DEV_NULL=NUL CC=gcc
581
582 2006-08-30 Borut Razem <borut.razem AT siol.net>
583
584         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
585           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
586           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
587           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
588           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
589           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
590           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
591           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
592           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
593           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
594           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
595           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
596           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
597           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
598           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
599           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
600           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
601           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
602           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
603           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
604           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
605           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
606           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
607           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
608           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
609           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
610           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
611           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
612           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
613           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
614           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
615           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
616           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
617           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
618           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
619           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
620           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
621           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
622           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
623           ucsim WIN32 native port
624
625 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
626
627         * doc/sdccman.lyx: added note on dynamic memory heap initialization
628
629 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
630
631         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
632         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
633
634 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
635
636         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
637         * support/regression/tests/bug1546986.c: new, added
638         * as/mcs51/.cvsignore,
639         * debugger/mcs51/.cvsignore,
640         * src/.cvsignore: deleted
641
642 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
643
644         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
645           definitions)
646
647 2006-08-20 Borut Razem <borut.razem AT siol.net>
648
649         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
650           removed cl_listen_console::match(), cl_console::match(),
651           restructured cl_commander::proc_input()
652
653 2006-08-16 Borut Razem <borut.razem AT siol.net>
654
655         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
656           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
657           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
658
659 2006-08-14 Borut Razem <borut.razem AT siol.net>
660
661         * support/regression/Makefile.in,
662           support/regression/ports/pic14/gpsim.cmd,
663           support/regression/ports/pic14/spec.mk,
664           support/regression/ports/pic14/support.c:
665           added pic14 regression test
666
667 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
668
669         * as/doc/asxhtm.html: documented changed ABS behaviour
670         * as/doc/README: fixed some typos
671
672 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
673
674         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
675           not defined on host
676
677 2006-08-12 Borut Razem <borut.razem AT siol.net>
678
679         * support/regression/fwk/include/testfwk.h,
680           support/regression/fwk/lib/testfwk.c,
681           support/regression/generate-cases.py,
682           support/regression/Makefile.in:
683           regression test framework does not depend on function pointers and
684           variable arguments
685
686 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
687
688         * device/include/stddef.h: c temporary hack to fix bug 1518273
689
690 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
691
692         * device/include/mcs51/cc2510fx.h: added
693         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
694           to projects.
695
696 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
697
698         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
699         * as/z80/Makefile.in: added strcmpi.c
700         * as/z80/z80adr.c: added upper case registers and lower case conditionals
701         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
702
703 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
704
705         * device/lib/gbz80/asm_strings.s,
706         * device/lib/gbz80/crt0_rle.s,
707         * device/lib/gbz80/div.s,
708         * device/lib/gbz80/mul.s,
709         * device/lib/gbz80/shift.s,
710         * device/lib/z80/asm_strings.s,
711         * device/lib/z80/crt0_rle.s,
712         * device/lib/z80/div.s,
713         * device/lib/z80/mul.s,
714         * device/lib/z80/shift.s: changed to all lower case menmonics except the
715           flags which are all upper case
716
717 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
718
719         * as/z80/asm.h: made CASE_SENSITIVE 1
720         * link/z80/aslink.h: made CASE_SENSITIVE 1
721         * src/z80/gen.c (throughout): made all conditionals upper case
722         * support/regression/tests/bug1503067.c: new
723
724 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
725
726         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
727           (shiftIntoPair): added case 2 for PAIR_IY,
728           (setupToPreserveCarry): replaced parameters with iCode and check if
729            PAIR_DE is in use to fix bug 1399290,
730           (genPlus, genMinus): updated call to setupToPreserveCarry
731         * support/regression/tests/bug1399290.c: new
732
733 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
734
735         * device/lib/Makefile.in (Z80SOURCES): enabled float support
736         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
737         * src/ds390/gen.c (shiftRLong),
738         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
739         * src/mcs51/gen.c (sameReg): changed to sameByte,
740           (xch_a_aopGet): new,
741           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
742            shiftRLong): fixed bug 1533966
743         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
744           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
745         * support/regression/Makefile.in: disabled z80, enabled ucz80
746         * support/regression/tests/float_trans.c: enabled test for z80 and host
747         * support/regression/tests/shifts2.c: new, for testing bug 1533966
748
749 2006-08-01 Borut Razem <borut.razem AT siol.net>
750
751         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
752           comparison is always false due to limited range of data type
753           on PPC64 machine (openpower-linux1) where "char = unsigned char"
754
755 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
756
757         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
758         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
759         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
760         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
761
762 2006-07-31 Borut Razem <borut.razem AT siol.net>
763
764         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
765           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
766           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
767           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
768           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
769           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
770           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
771           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
772           enable ucsim mingw compilation. Serial port is disabled,
773           since it uses termios.h API, which is not available on native
774           WIN32
775
776 2006-07-31 Borut Razem <borut.razem AT siol.net>
777
778         * Small Device C Compiler 2.6.0 released
779         * support/scripts/sdcc.nsi: added FULL_DOC option
780         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
781
782 2006-07-28 Borut Razem <borut.razem AT siol.net>
783
784         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
785         * doc/INSTALL.txt: updated
786
787 2006-07-27 Borut Razem <borut.razem AT siol.net>
788
789         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
790           device/lib/pic/libdev/Makefile.in: fixed bug
791           [ 1438354 ] pic libsdcc: distclean doesn't work
792         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
793           device/lib/pic16/libio/Makefile.in: fixed bug
794           [ 1438344 ] pic16 lib: clean doesn't work properly
795         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
796
797 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
798
799         * device/lib/pic/libsdcc/fsdiv.c,
800         * device/lib/pic/libsdcc/fsmul.c,
801         * device/lib/pic16/libsdcc/float/fsdiv.c,
802         * device/lib/pic16/libsdcc/float/fsmul.c,
803         * device/lib/_fsdiv.c,
804         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
805         * support/regression/tests/bug1520966.c: added
806         * doc/knownbugs.html: removed [ 1520966 ] from the list
807
808 2006-07-25 Borut Razem <borut.razem AT siol.net>
809
810         * configure.in, configure, sdccconf_in.h: fixed bug
811           [ 1519095 ] regression test onebyte.c fails on ppc64 host
812         * doc/knownbugs.html: removed [ 1519095 ] from the list
813
814 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
815
816         * doc/knownbugs.html: added, contains list of known bugs at release
817         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
818
819 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
820
821         * device/include/mcs51/compiler.h: added SFRX for xdata based special
822           function registers and corrected defaults with additional warning
823         * device/lib/malloc.c: cosmetic changes
824         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
825         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
826           (fillGaps): and used it
827
828 2006-07-20 Raphael Neider <rneider AT web.de>
829
830         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
831           output unless SDCCPICDEBUG is set
832         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
833           output if SILENT is set
834
835 2006-07-11 Borut Razem <borut.razem AT siol.net>
836
837         * doc/README.txt: updated
838
839 2006-07-10 Borut Razem <borut.razem AT siol.net>
840
841         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
842           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
843           in WIN32 installation
844         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
845           release candidate 1
846
847 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
848
849         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
850         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
851
852 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
853
854         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
855
856 2006-07-06 Borut Razem <borut.razem AT siol.net>
857
858         * support/regression/tests/bitfields.c:
859           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
860         * support/regression/tests/constantRange.c:
861           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
862
863 2006-07-04 Borut Razem <borut.razem AT siol.net>
864
865         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
866           src/port.mk,
867           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
868           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
869           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
870           reverted changes from 2006-07-03
871         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
872         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
873           added CPPFLAGS, used by the host port
874
875 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
876
877         * support/regression/valdiag/tests/switch.c,
878         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
879         * support/regression/tests/libmullong.c: fixed for host
880         * support/regression/ports/host/spec.mk: disable all warnings for host,
881         SDCC runs with --less-pedantic too
882
883 2006-07-03 Borut Razem <borut.razem AT siol.net>
884
885         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
886           defined CPPFLAGS
887         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
888         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
889           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
890           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
891           include ../port.mk
892         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
893           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
894           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
895           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
896
897 2006-07-02 Raphael Neider <rneider AT web.de>
898
899         * src/pic16/devices.inc,
900         * device/include/pic16/pic18fregs.h,
901         * device/include/pic16/pic18f4550.h,
902         * device/lib/pic16/pics.all,
903         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
904
905 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
906
907         * as/hc08/lkaomf51.c (OutputName),
908         * as/mcs51/lkaomf51.c (OutputName),
909         * as/z80/asmain.c (asmbl),
910         * src/ds390/main.c (asmLineNodeFromLineNode),
911         * src/hc08/ralloc.c (hc08_assignRegisters),
912         * src/mcs51/main.c (asmLineNodeFromLineNode),
913         * src/xa51/ralloc.c (checkRegMask),
914         * src/xa51/gen.c (emitcode),
915         * src/z80/gen.c (_emit2),
916         * src/SDCCast.c (searchLitOp),
917         * src/SDCCglobl.h,
918         * support/packihx/packihx.c,
919         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
920         * src/ds390/gen.c (aopPutUsesAcc),
921         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
922         * support/regression/tests/libmullong.c (mullong_wrapper),
923         * src/SDCCsymt.c (powof2),
924         * src/SDCCast.c,
925         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
926         * src/SDCCsymt.h: added TYPE_TARGET_*
927         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
928         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
929         SDCCast because 1) header problems 2) this is the right place
930         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
931         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
932         prototype
933
934 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
935
936         * src/SDCCicode.h: removed buggy semicolon in unused macro
937         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
938         search for previous definiton of auto symbols too,
939         (findPrevUse): fixed logic of emitWarnings
940
941 2006-06-26 Raphael Neider <rneider AT web.de>
942
943         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
944           PCLATH and PCLATU on interrupts, potentially fixes #1505141
945
946 2006-06-25 Raphael Neider <rneider AT web.de>
947
948         * device/lib/pic/libm: NEW, added math library functions
949         * device/lib/pic/libsdcc: NEW; added float support functions
950         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
951         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
952           NEW, added math related headers
953         * device/include/asm/pic/features.h: NEW
954         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
955           (popGet): allow larger offsets for AOP_PCODE,
956           (genDataPointerSet): handle literals explicitly, more debug output,
957           (genAssign): fixed for float using aopLiteral ;-)
958         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
959           GOTO initialisation routine
960         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
961           flag on registers, fixes #1469043 (local variables do not work)
962         * src/pic/main.c (_pic14_do_link),
963         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
964           available
965
966 2006-06-25 Borut Razem <borut.razem AT siol.net>
967
968         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
969           characters printed (not including the trailing '\0' used to end
970           output to strings). Problem detected in regression test bug-927659.c.
971           NOTE: printf() family functions should return int instead
972           unsigned int!
973         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
974           specifier are printed as themselves
975         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
976           support flags, width and precision specifiers
977
978 2006-06-24 Borut Razem <borut.razem AT siol.net>
979
980         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
981           to the list of sdcc tagrets not supporting bit type
982         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
983           testfor pic16 due to bug:
984           [ 1511794 ] pic16: regression test bug-895992.c fails
985
986 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
987
988         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
989         * src/SDCCglue.c (initPointer), fixed bug 1496419
990         * support/regression/tests/bug1496419.c: new, added
991
992 2006-06-22 Borut Razem <borut.razem AT siol.net>
993
994         * support/regression/ports/pic16/support.c: use gpsim usart module from
995           libgpsim_modules library
996
997 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
998
999         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
1000         IP0H to IPH0.
1001
1002 2006-06-19 Raphael Neider <rneider AT web.de>
1003
1004         * src/pic/glue.h,src/pic16/glue.h: added prototypes
1005         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
1006           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
1007           (pic14printExterns,pic14printPublics,pic16printPublics,
1008           pic16_printExterns): use new functions to emit symbols
1009           (picglue,pic16glue): emit publics before emitting externs
1010         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
1011           locally defined functions to avoid bug #1443651
1012         * support/regression/tests/bug-716242.c: removed pic16 workaround
1013         * support/regression/ports/pic16/spec.mk: ignore errors during build
1014
1015 2006-06-19 Raphael Neider <rneider AT web.de>
1016
1017         * src/pic/glue.h: added pic14aopLiteral prototype
1018         * src/pic/glue.c (pic14aopLiteral): return unsigned int
1019         * src/pic/gen.c: removed stdint.h dependency
1020           (aopGet): use Safe_strdup()
1021           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
1022           (genDataPointerSet): use pic14aopLiteral()
1023         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
1024           for pic16; thanks to Bernhard and Maarten
1025
1026 2006-06-18 Borut Razem <borut.razem AT siol.net>
1027
1028         * support/regression/tests/structflexarray.c: flexible array members
1029           not supported by gcc < 3
1030         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
1031           GUI tool by default
1032         * src/pic/gen.c: don't include [p]strdin.h on solaris
1033         * support/Util/pstdint.h: addad svn attributes
1034         * support/regression/tests/constantRange.c,
1035           support/regression/tests/rotate.c: include inttypes.h instead
1036           stdint.h on solaris, addad svn attributes
1037
1038 2006-06-18 Raphael Neider <rneider AT web.de>
1039
1040         * src/SDCCsymt.c (initCSupport): change return type of divschar to
1041           int for PIC16
1042         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
1043           (pic16_genMinusBits): simplified sign-extension
1044           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
1045             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
1046             adjusted to correctly handle mixed-signed operands, disabled
1047             now unused multiplciation routines
1048         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
1049           (assignResultValue): added argument denoting the size of the result
1050             as returned by the function (fixes upcasts in assigning from
1051             function calls: char foo(); int i = foo();)
1052           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
1053             function result to assignResultValue
1054           (genMult): disabled inlined multiplication code
1055           (genDiv): augmented to also handle the modulus operator, fixed to
1056             handle mixed-signed operands correctly
1057           (genMod): simply call genDiv, disabled unused code
1058           (genAssign): fixed missing (sign-)extension on result
1059         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
1060             valid char operands, allow signed operands for native code, added
1061             division and modulo operator handling
1062         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
1063
1064         As a consequence, onebyte.c (if split into two files) and muldiv.c
1065         pass regression tests.
1066
1067 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1068
1069         * doc/Makefile.in: two runs of makeindex seem needed to get
1070         correct page references in the index of sdccman.pdf
1071         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
1072
1073 2006-06-17 Borut Razem <borut.razem AT siol.net>
1074
1075         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
1076
1077 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1078
1079         * doc/sdccman.lyx: updated, added (porting source code, debugging),
1080         mentioned ec2drv and paulmon
1081
1082 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1083
1084         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
1085           consecutive abs areas
1086           (find_empty_space, allocate_space): added map to handle codemap or
1087            xdatamap,
1088           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
1089            absolute idata and xdata
1090         * as/mcs51/lkmem.c (summary2): updated legend
1091
1092 2006-06-16 Raphael Neider <rneider AT web.de>
1093
1094         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
1095
1096 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
1097
1098         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
1099           1208515
1100         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
1101
1102 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
1103
1104         * src/port.h (struct PORT): added field gp_tags, to hold the tag
1105         value of generic pointers,
1106         * src/avr/main.c,
1107           src/ds390/main.c,
1108           src/hc08/main.c,
1109           src/izt/i186.c,
1110           src/izt/tlcs900h.c,
1111           src/mcs51/main.c,
1112           src/pic/main.c,
1113           src/pic16/main.c,
1114           src/xa51/main.c,
1115           src/z80/main.c: PORT structure, added elements for gp_tags field,
1116         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
1117         fields in the PORT structure of each port,
1118         * src/SDCCast.c (decorateType): allow processing of generic pointers
1119         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
1120         S_FIXED symbols
1121
1122 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
1123
1124         * link/z80/lkgb.c,
1125         * link/z80/lkgg.c,
1126         * src/pic16/gen.c,
1127         * src/pic16/main.c,
1128         * src/pic16/pcode.c,
1129         * src/pic/main.c,
1130         * src/pic/pcoderegs.c,
1131         * src/SDCCicode.c,
1132         * src/SDCCmain.c,
1133         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
1134           bug 1504689 on minGW
1135
1136 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1137
1138         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
1139
1140 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
1141
1142         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
1143
1144 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
1145
1146         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
1147           for optimization
1148
1149 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
1150
1151         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
1152         to a char variable. Fixed bug #1504211
1153         * device/include/pic16/adc.h,
1154         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
1155         and fixed bug #1364390
1156
1157 2006-06-10 Borut Razem <borut.razem AT siol.net>
1158
1159         * CVSROOT: removed the CVS left-over
1160
1161 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1162
1163         * as/hc08/asmain.c (asexit),
1164         * as/hc08/lkmain.c (lkexit),
1165         * as/mcs51/asmain.c (asexit),
1166         * as/mcs51/lkmain.c (lkexit),
1167         * src/SDCCglue.c (DEFSETFUNC),
1168         * src/SDCCmain.c (linkEdit, assemble),
1169         * support/librarian/sdcclib.c (AddRel),
1170           replaced unlink() by standard C remove()
1171         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
1172         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
1173           gatherImplicitVariables): new, added to fix bug 608752,
1174           (createFunction): added gatherImplicitVariables()
1175         * src/SDCCast.h: added createRMW prototype
1176         * src/SDCCsymt.h (struct symbol): added infertype
1177         * support/regression/tests/bug608752.c: new, added
1178
1179 2006-06-10 Raphael Neider <rneider AT web.de>
1180
1181         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
1182           multibyte dummy reads (fixes #1503234)
1183
1184 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1185
1186         * device/include/mcs51/compiler.h: new, added header file to enable
1187           creating common sfr definition header files for different compilers
1188
1189 2006-06-05 Raphael Neider <rneider AT web.de>
1190
1191         * src/pic16/{pcode.h,genarith.c}:
1192           introduced pCodeOp combining any two pCodeOps (previously only
1193           two register operands could be combined), removed pcop2 from
1194           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
1195         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
1196         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
1197           rewritten to use new PO_TWO_OPS
1198         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
1199         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
1200           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
1201           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
1202           (pic16_get_op): embraced return arg to allow #define return(x),
1203             added new case for combined opcodes
1204           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
1205           (pic16_pCode2str,pic16_getRegFrompCodeOp,
1206            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
1207
1208 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
1209
1210         * src/SDCCval.c (checkConstantRange): added
1211         * src/SDCCval.h: added checkConstantRange
1212         * support/Util/SDCCerr.c,
1213         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
1214         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
1215         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
1216         * src/SDCCast.c (decorateType): added checkConstantRange,
1217         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
1218         can be emitted with the correct always true/false warning,
1219         added optimization for double '!';
1220         result of decorateType() must be assigned back to the tree, because
1221         decorateType() can change the tree
1222         * src/SDCCicode.c (geniCodeLogic),
1223         (geniCodeAssign): replaced new checkConstantRange, added warnings,
1224         (checkConstantRange): removed, it was only a fragment which never
1225         emitted a warning
1226         * src/SDCCsymt.c (computeType): fixed promotion for
1227         "-1 < (unsigned bit) b"
1228         * src/pic/ralloc.c (packRegsForAssign),
1229         * src/pic16/ralloc.c (packRegsForAssign),
1230         * src/hc08/ralloc.c (packRegsForAssign),
1231         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
1232         from mcs51
1233         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
1234         * support/regression/tests/constantRange.c: added
1235         * support/valdiag/tests/constantRange.c: added
1236         * support/valdiag/valdiag.py: added -DPORT_HOST=1
1237
1238 2006-06-02 Borut Razem <borut.razem AT siol.net>
1239
1240         * support/regression/ports/pic16/support.c: increase stack size
1241           to 255 bytes
1242         * support/regression/Makefile.in: sort tests by name so that the
1243           resutlts can be compared on different machines / platforms
1244
1245 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1246
1247         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
1248         * src/ds390/gen.c (emitLabel): new, added,
1249           (genDjnz): fixed stack overflow bug,
1250           (throughout): cosmetic changes to sync with mcs51/gen.c,
1251           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
1252         * src/mcs51/gen.c (genEndFunction): small optimization,
1253           (throughout): cosmetic changes to sync with ds390/gen.c
1254
1255 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1256
1257         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
1258           (_print_format): fixed printing pointers
1259         * src/mcs51/gen.c (emitLabel, movb): new, added,
1260           (genAssign): small optimization,
1261           (genDjnz): fixed stack overflow bug,
1262           (throughout): replaced sprintf with SNPRINTF,
1263           replaced mcs51_regWithIdx with REG_WITH_INDEX,
1264           replaced emitcode("mov", "b,...") with MOVB(...),
1265           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
1266           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
1267         * src/mcs51/peeph.def: added rules 140 and 264
1268         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
1269           so they may get optimized into registers
1270
1271 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
1272
1273         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
1274           immediately when encountered,
1275           (printUsage): always use stderr even on windows
1276
1277 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
1278
1279         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
1280         (processParms): fixed bug #1247551
1281         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
1282         parseCmdLine, main): print '--version' to stdout,
1283         print 'help' to stdout if --help is given,
1284         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
1285         arguments are given; fixed --help
1286
1287 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
1288
1289         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
1290         * support/regression/tests/bug-1493710.c: added
1291
1292 2006-05-27 Borut Razem <borut.razem AT siol.net>
1293
1294         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
1295           static instead auto
1296         * support/regression/ports/pic16/support.c: increase stack size
1297           from default 64 bytes to 128 bytes
1298         * support/regression/tests/staticinit.c,
1299           support/regression/tests/float.c: regression tests fully enabled
1300           for pic16 port by putting the initialized data arrays into the code
1301           section
1302         * support/regression/ports/pic16/spec.mk: don't link default libraries.
1303           This was changed by mistake in the previous version.
1304
1305 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
1306
1307         * src/pic16/gen.c (genFunction, genEndFunction): some
1308         beautifications, fixed bug with falsely restoring FSR2 in large
1309         stack model, thanks to Beau E. Cox for reporting the bug
1310
1311 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
1312
1313         * debugger/mcs51/break.c,
1314         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
1315           use %p to print pointers, made address variables unsigned
1316         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
1317         * debugger/mcs51/symtab.c (parseSymbol): must return something
1318         * src/mcs51/gen.c (aopForSym): small optimization,
1319            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
1320           (freeAsmop): added missing break,
1321           (aopPut): removed parameter bvolatile, determine it inside the function,
1322           (saveRegisters, unsaveRegisters): small optimization,
1323           (genIpush): removed pointless check,
1324           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
1325           replaced sprintf with SNPRINTF,
1326           replaced strcpy with strncpyz,
1327           updated aopPut calls,
1328           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
1329         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
1330
1331 2006-05-24 Borut Razem <borut.razem AT siol.net>
1332
1333         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
1334           modification of test for the pic16 port, put the array to the code
1335           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
1336
1337 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1338
1339         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
1340         * support/Util/pstdint.h: added
1341
1342 2006-05-22 Borut Razem <borut.razem AT siol.net>
1343
1344         * src/regression/Makefile: removed bool2.c test, added -q linker option
1345         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
1346           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
1347           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
1348           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
1349           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
1350           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
1351           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
1352           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
1353           define SUPPORT_BIT_TYPES 0, removed unused bit variables
1354
1355 2006-05-22 Raphael Neider <rneider AT web.de>
1356
1357         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
1358           bug #1492360 (problematic due to generic pointers, see code)
1359
1360 2006-05-22 Borut Razem <borut.razem AT siol.net>
1361
1362         * support/regression/ports/pic16/specs.mk: removed stack size linker
1363           directive
1364         * support/regression/tests/array.c,
1365           support/regression/tests/bitopcse.c,
1366           support/regression/tests/bug-908454.c,
1367           support/regression/tests/malloc.c: modified for pic16 regression test
1368         * support/regression/tests/bitfields.c:
1369           pic16 - excluded bitfileds of size > 8
1370         * support/regression/tests/bp.c: pic16 - reduced data size
1371         * support/regression/tests/bug-221100.c: pic16 - reduced data size
1372         * support/regression/tests/bug-460010.c:
1373           pic16 - used the absolute address the fits in memory
1374         * support/regression/tests/bug-716242.c:
1375           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
1376         * support/regression/tests/float.c:
1377           pic16 - excluded - data size too big
1378         * support/regression/tests/onebyte.c:
1379           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
1380         * support/regression/tests/shifts.c:
1381           pic16 - function names probably have to differ in first X characters
1382           (gpasm limitation?)
1383         * support/regression/tests/staticinit.c:
1384           pic16 - excluded some tests due error: no target memory available for
1385           section ".idata"
1386
1387 2006-05-22 Borut Razem <borut.razem AT siol.net>
1388
1389         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
1390           second try. Thanks Stas Sergeev once more.
1391
1392 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1393
1394         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
1395           (genLeftShift, genRightShift): fixed bug 1491627
1396         * src/hc08/peeph.def (rules 7, 8.x): added
1397         * support/regression/tests/shifts.c (ShiftLeftByParam,
1398           ShiftRightByParam, testShiftByParam): added to test variable shifting
1399
1400 2006-05-20 Raphael Neider <rneider AT web.de>
1401
1402         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
1403         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
1404           (allocReg): add only new registers to dynAllocRegs,
1405           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
1406             #1489055, #1445850, and probably #1483693
1407
1408 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
1409
1410         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
1411         bug in for-loop that didn't emit the last of CONFIG and ID registers
1412
1413 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
1414
1415         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
1416           with offset
1417         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
1418           1489016, 1434401 and 1490124
1419         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
1420           1489016, 1434401 and 1490124
1421
1422 2006-05-17 Borut Razem <borut.razem AT siol.net>
1423
1424         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
1425           thanks Stas Sergeev
1426
1427 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1428
1429         * device/include/mcs51/P89c51RD2.h,
1430         * device/include/mcs51/P89LPC901.h,
1431         * device/include/mcs51/P89LPC922.h,
1432         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
1433
1434 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1435
1436         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
1437         to fix missing stack pragma in compiled binary object file,
1438
1439 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
1440
1441         * support/packihx/configure.in,
1442         * support/packihx/configure: removed warning, autoconf >= 2.5x can
1443         determine sizeof basic types even while cross compiling
1444
1445 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
1446
1447         * src/avr/gen.c (aopop),
1448         * src/ds390/gen.c (aopOp),
1449         * src/hc08/gen.c (aopOp),
1450         * src/mcs51/gen.c (aopop),
1451         * src/pic16/gen.c (pic16_aopOp),
1452         * src/pic/gen.c (aopOp),
1453         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
1454         if size of operand is smaller than spill location
1455
1456 2006-05-12 Borut Razem <borut.razem AT siol.net>
1457
1458         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
1459           have to have CR/LF line endings even if they are checked out on *nix
1460           or on WIN32 in cygwin binmode
1461
1462 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
1463
1464         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
1465         * device/include/ds80c390.h: added sfr16 definitions
1466         * src/ds390/gen.c,
1467         * src/ds390/gen.h,
1468         * src/ds390/main.c,
1469         * src/ds390/ralloc.c,
1470         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
1471           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
1472           bit returning functions
1473         * support/regression/tests/sfr16.c: enabled test on ds390
1474
1475 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1476
1477         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
1478         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
1479
1480 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1481
1482         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
1483         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
1484           (cl_address_space constructor): removed expensive initialization,
1485           (cl_address_space::get_cell): extended for late initialization,
1486           (cl_address_space::*): use late initialization,
1487           (cl_address_decoder::activate): removed expensive initialization,
1488           This reduced regression test running time by 25%
1489
1490 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
1491
1492         * packihx/,
1493         * configure.in,
1494         * configure,
1495         * sdcc.dsw,
1496         * Makefile.bcc,
1497         * Makefile.in,
1498         * support/packihx/Makefile.in,
1499         * support/packihx/clean.mk,
1500         * support/packihx/Makefile.bcc,
1501         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
1502
1503 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1504
1505         * src/SDCCval.c (valNot): fix for regression test failure
1506           of not.c on big endian hosts
1507
1508 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1509
1510         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
1511
1512 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1513
1514         * device/lib/mcs51/Makefile.in: changed string comparison operator
1515           to = for POSIX compliance; == is bash extension
1516
1517 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1518
1519         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
1520           kosmonaut_pirx
1521
1522 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
1523
1524         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
1525         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
1526         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
1527         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
1528         bug report #1478657,
1529
1530 2006-05-05 Borut Razem <borut.razem AT siol.net>
1531
1532         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
1533           making the html
1534
1535 2006-05-02 Borut Razem <borut.razem AT siol.net>
1536
1537         * doc/Makefile.in: removed *.ind dependency since there is no rule to
1538           create *.ind, which made make to fail if invoked with -j 2
1539
1540 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
1541
1542         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
1543           Hubert Sack for patch 1479782
1544
1545 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
1546
1547         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
1548
1549 2006-05-01 Raphael Neider <rneider AT web.de>
1550
1551         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
1552           (create_pic): store only prefix-free device name,
1553           (init_pic): check for device names with "16" prefix,
1554           (list_valid_pics),
1555         * src/pic/device.h (struct PIC_device),
1556         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
1557             stored device name,
1558         * device/include/pic/pic12f{635,675,629,683}.h,
1559         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
1560         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
1561         * device/include/pic/pic16f505.h,
1562         * device/lib/pic/libdev/pic16f505.c: removed
1563         * device/include/pic/pic14devices.txt: added support for pic12f
1564             devices, removed unsupported non 16-bit devices
1565             [above changes provided by patch from Zik Saleeba]
1566         * src/pic/*, src/pic16/*, device/include/pic16/*,
1567           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
1568
1569 2006-05-01 Borut Razem <borut.razem AT siol.net>
1570
1571         * configure.in, configure, doc/Makefile.in:
1572           sync with nightly build makefile - latex, dvipdf and dvips
1573           not needed any more
1574
1575 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
1576
1577         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
1578         in the library source
1579
1580 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
1581
1582         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
1583
1584 2006-04-28 Raphael Neider <rneider AT web.de>
1585
1586         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
1587         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
1588           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
1589         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
1590
1591 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
1592
1593         * device/lib/pic/libdev/Makefile.in,
1594         * device/lib/hc08/Makefile.in,
1595         * device/lib/gbz80/Makefile.in,
1596         * device/lib/z80/Makefile.in,
1597         * device/lib/ds390/Makefile.in,
1598         * device/lib/ds400/Makefile.in: added srcdir to include search path,
1599         thanks to Borut for the bug report
1600         * configure.in,
1601         * configure: always create doc/Makefile independent from --enable-doc
1602         * Makefile.in: always install from directory doc independent from
1603         --enable-doc
1604         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
1605         removed
1606         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
1607         * doc/Makefile.in: install *.txt if present
1608         * device/include/Makefile.in (install): added installation of pic/*.inc
1609         and pic/*.txt files again, they were erroneously removed
1610
1611 2006-04-28 Raphael Neider <rneider AT web.de>
1612
1613         * src/pic/{gen.c,main.h,pcode.c},
1614         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
1615             concerning signedness with casts
1616
1617 2006-04-28 Raphael Neider <rneider AT web.de>
1618
1619         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
1620             definition of an interrupt handler,
1621         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
1622             interrupt handler stuff from picglue() to separate routine,
1623           (picglue): enabled definition of intr handlers in files w/o main()
1624
1625 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1626
1627         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
1628           compilation with MSVC 2005 Express Edition (VC8)
1629
1630 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
1631
1632         * device/lib/Makefile: fixed build of gbz80 lib
1633
1634 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1635
1636         * support/regression/tests/bug-460010.c,
1637         * support/regression/tests/bug-524691.c,
1638         * support/regression/tests/bug-716242.c: removed conditional defines
1639           that are already in testfwk.h
1640
1641 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
1642
1643         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
1644           (AccAXRsh1): added, shift right by 1,
1645           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
1646            AccAXLrl1
1647         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
1648
1649 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
1650
1651         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
1652         remove cast to same type
1653         * src/SDCCast.c (decorateType): fix for RFE 1475742,
1654         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
1655         * as/z80/Makefile,
1656         * link/z80/Makefile: removed, they have moved to
1657         Makefile.in files
1658         * configure,
1659         * configure.in: replaced duplicate message about ucsim by missing sdcpp
1660         * install-sh: fix bug #1204398 by setting umask 0022
1661         * device/lib/Makefile: separate build of z80 and gbz80 lib
1662
1663 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
1664
1665         Enabled VPATH feature: changed nearly all Makefiles (149 files).
1666         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
1667
1668         One basic decision: e.g. src/clean.mk includes further files. In order
1669         to make this work there are two solutions:
1670         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
1671           run configure on them. This way they can use
1672           'include $(srcdir)/port-clean.mk'
1673         - always include clean.mk by the Makefile at the same level. To avoid
1674           that `make clean` tries to include and build Makefile.dep the
1675           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
1676           implemented, because now even `make uninstall` doesn't create
1677           Makefile.in. clean.mk could be eliminated by pasting it in
1678           Makefile.in.
1679
1680         * debugger/mcs51/Makefile.in: build own objects from library sources
1681         (SLIB, SDCC) in current directory
1682
1683         * configure, configure.in: renamed --disable-device-lib-build in
1684         --disable-device-lib; added --enable-doc, the required tools are
1685         searched by configure; added result message; the toolchain for the
1686         belonging ports are now only built, if the port is enabled.
1687
1688         * support/regression/*: all output is written in directory gen, because
1689         the fwk and ports directories don't livet in the build tree using vpath
1690
1691         * doc/sdccman.lyx: renamed --disable-device-lib-build to
1692         --disable-device-lib, added --enable-doc, added section VPATH
1693
1694         * sim/ucsim/configure.in,
1695         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
1696         z80 are enabled by default
1697
1698 2006-04-24 Raphael Neider <rneider AT web.de>
1699
1700         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
1701             to config word, "pic14_"-prefixed some extern functions
1702           (pic14_emitConfigWord): emit __config directive(s) if assignment to
1703             config word has been found
1704         * src/pic/device.h: added prototypes
1705         * src/pic/pcode.c: added "pic14_"-prefix where needed
1706         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
1707             fixup
1708         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
1709             words,
1710           (pic14emitRegularMap): ignore config words,
1711           (pic14createInterruptVect): moved generating __config directives away
1712           (picglue): have __config directives emitted
1713
1714 2006-04-24 Borut Razem <borut.razem AT siol.net>
1715
1716         * doc/Makefile: sync with nightly build makefile
1717
1718 2006-04-24 Raphael Neider <rneider AT web.de>
1719
1720         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
1721             registers that have not been assigned proper liveranges,
1722             fixes #1469504 and #1474602,
1723           (pCodeRegOptimizeRegUsage): fixed typo in comment
1724
1725 2006-04-24 Borut Razem <borut.razem AT siol.net>
1726
1727         * device/examples/main8051.c: deleted - it was removed from CVS
1728           24.mar.2000 and after that modified 18.feb.2001, so it reappered
1729           after the transition to Subversion
1730         * src/SDCCalloc.h: deleted - it was removed  from CVS
1731           3.feb.2001 and after that modified 18.feb.2001, so it reappered
1732           after the transition to Subversion
1733         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
1734           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
1735           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
1736           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
1737
1738 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
1739
1740         * as/asx8051.dsp: added mcs51/strcmpi.h
1741         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
1742         * as/hc08/aslink.h: updated lnksect prototype
1743         * as/hc08/asm.h,
1744         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
1745         * as/hc08/asmain.c,
1746         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
1747           (newdot): handle A_ABS
1748         * as/hc08/asout.c,
1749         * as/mcs51/asout.c (outarea): output address
1750         * as/hc08/lkaomf51.c,
1751         * as/mcs51/lkaomf51.c: disabled unused array UsageType
1752         * as/hc08/m08pst.c,
1753         * as/mcs51/i51pst.c,
1754         * as/z80/z80pst.c: "ABS" is not A_OVR
1755         * as/hc08/lkarea.c (newarea): read a_addr,
1756           (lnkarea): added codemap array, sort absolute areas to the front,
1757            combine all GSINITx/GSFINAL,
1758           (find_empty_space, allocate_space): new functions,
1759           (lnksect): return next address, handle absolute sections
1760         * as/mcs51/lkarea.c (newarea): read a_addr,
1761           lnksect2 prototype changed,
1762           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
1763           (find_empty_space, allocate_space): new, factored out of lnksect2,
1764           (lnksect2): return next address, handle absolute sections
1765         * as/hc08/lkhead.c,
1766         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
1767         * as/hc08/lklibr.c (addfile, fndsym),
1768         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
1769           index out of range and detect both '\' and '/'
1770         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
1771         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
1772           regression tests (ds390 cannot return bool yet)
1773         * doc/sdccman.lyx: changed version number, document changed --no-peep,
1774           document critical interrupts on z80, document changed SDCC define
1775         * src/asm.c (_asxxxx_mapping): fixed .org directive,
1776           (_a390_mapping): added .org directive
1777         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
1778           (genMultOneByte): fixed warnings
1779         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
1780           ones
1781         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
1782         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
1783           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
1784         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
1785         * src/pic16/main.c: removed newReg prototype
1786         * src/pic16/pcode.c,
1787         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
1788           warnings
1789         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
1790           ones
1791         * src/pic16/ralloc.c
1792         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
1793           to fix warnings
1794         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
1795           from short to PIC_OPTYPE
1796         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
1797         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
1798           optype from short to PIC_OPTYPE
1799         * src/port.h: made int_size unsigned to fix warnings
1800         * src/SDCC.y: fixed warning on MSVC
1801         * src/SDCCicode.c (getArraySizePtr): return unsigned int
1802         * src/SDCCopt.c (convertToFcall): fixed warnings
1803         * src/SDCCsymt.h: removed double prototype for genSymName
1804         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
1805           offset int to fix warnings
1806
1807 2006-04-22 Borut Razem <borut.razem AT siol.net>
1808
1809         * doc/sdccman.lyx, */Makefile, */Makefile.in:
1810           references to CVS replaced with Subversion
1811
1812 2006-04-21 Borut Razem <borut.razem AT siol.net>
1813
1814         * doc/sdccman.lyx, */Makefile, */Makefile.in:
1815           references to CVS replaced with Subversion
1816
1817 2006-04-19 Borut Razem <borut.razem AT siol.net>
1818
1819         * src/version.awk: adapted for svn
1820         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
1821           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
1822           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
1823           /binutils-avr/etc/*.vi, *.jin: removed all properties
1824           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
1825
1826 2006-04-19 Borut Razem <borut.razem AT siol.net>
1827
1828         * CVS to Subversion migration completed
1829
1830 2006-04-18 Borut Razem <borut.razem AT siol.net>
1831
1832         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
1833           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
1834
1835 2006-04-17 Borut Razem <borut.razem AT siol.net>
1836
1837         * device/include/Makefile.in: added pic/*.inc to the installation
1838
1839 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
1840
1841         * support/regression/collate-results.py: fixed output in case of
1842         a valdiag error
1843         * support/regression/generate-cases.py: fixed splitting of pathnames
1844         with dots
1845         * as/hc08/lklibr.c (addfile),
1846         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
1847
1848 2006-04-11 Raphael Neider <rneider AT web.de>
1849
1850         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
1851         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
1852         * src/pic16/pcode.c (assignValnums): fixed #1460578
1853
1854 2006-04-11 Raphael Neider <rneider AT web.de>
1855
1856         * device/lib/pic/libdev/*.c,
1857         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
1858           fixes #1468739, enables compilation in --std-c99 mode
1859         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
1860
1861 2006-04-11 Raphael Neider <rneider AT web.de>
1862
1863         * src/pic/device.c (find_device): removed debug output
1864           (list_valid_pics): enabled verbose listing of supported devices
1865         * device/include/stdbool.h: define bool as char for pic14/16 as well
1866
1867 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1868
1869         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
1870
1871 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1872
1873         * .version: bumped version to 2.5.6
1874         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
1875
1876 2006-04-06 Raphael Neider <rneider AT web.de>
1877
1878         * .version: bumped version to 2.5.6 (pic14 ABI changed)
1879         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
1880         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
1881           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
1882             pic14_constructAbsMap
1883           (pic14printPublics): declare absolute global symbols as global
1884           (pic14createInterruptVect),
1885         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
1886           (newReg): assume new registers unused, use correct name in
1887             hashtable (reg->name instead of name), more debugLog output
1888         * src/pic/device.h (PIC_device): added fields for verbose output
1889         * src/pic/device.c: moved device definition to pic14devices.txt,
1890             added routines for runtime parsing of pic14devices.txt,
1891             added support for second config word
1892         * src/pic/main.c (_process_pragma): removed #pragma maxram,
1893           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
1894           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
1895           (_pic14_parseOptions): moved pCodeInitRegisters here
1896           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
1897         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
1898           (pCodeInitRegisters): rewrapped comments, perpared new approach to
1899             handling the pseudo stack
1900         * device/lib/Makefile.in: ignore failures in objects-pic16,
1901         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
1902         * device/lib/pic/NEWS: document new dependency on picXXX.lib
1903         * device/lib/pic/Makefile.subdir,
1904         * device/lib/pic16/Makefile.subdir: improved clean rules
1905         * device/lib/pic/libdev/: NEW, pic14 device libraries
1906         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
1907         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
1908         * device/include/Makefile.in: create subdir and install pic14 headers
1909         * device/include/pic/p16f_common.inc: removed unused declarations
1910         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
1911             PICs from inc2h.pl v1.6,
1912             replaced BIT_AT macros with struct declarations
1913         * device/include/pic/pic14devices.txt: definition of supported devices,
1914             all above improvements contributed by Zik Saleeba, thanks
1915         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
1916         * support/scripts/sdcc.nsi: also install pic14 device libraries and
1917             headers
1918
1919 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1920
1921         * device/include/mcs51/c8051f410.h: added interrupt numbers,
1922         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
1923           thanks to Charles Olds
1924
1925 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1926
1927         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
1928
1929 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1930
1931         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
1932         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
1933         * support/regression/bug1464657.c: added, new test
1934
1935 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1936
1937         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
1938           version number
1939
1940 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1941
1942         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
1943           --no-peep and --peep-file <file> are used don't use default rules but
1944           do use the <file>
1945
1946 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1947
1948         * src/mcs51/gen.c (genCall): fixed bug 1457608
1949
1950 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1951
1952         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
1953         changes seem to cause (trigger?) problems with the build system.
1954
1955 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
1956
1957         * src/SDCCpeeph.c (operandsLiteral): new, added,
1958           (callFuncByName): inserted operandsLiteral
1959         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
1960
1961 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1962
1963         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
1964         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
1965
1966 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1967
1968         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
1969           implemented patch 1120823 Thanks to Willy De la Court (normal
1970           interrupts need an interrupt number now if they are made critical),
1971           and enabled nesting of critical functions though not for gbz80
1972           (genCritical, genEndCritical): added functions
1973           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
1974         * src/z80/mappings.i: added "ei" to all mappings
1975
1976 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1977
1978         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
1979         submitted by the Debian SDCC maintainer Aurelien Jarno:
1980         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
1981         archive with gcc 4.1 on mips and wrote the patch"
1982
1983 2006-03-16 Raphael Neider <rneider AT web.de>
1984
1985         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
1986           the left operand is shorter than the result (c* = lit-c* + int),
1987           fixes bug #1450796
1988         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
1989           OP_SYMBOL
1990
1991 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1992
1993         * src/.version: increased version number to 2.5.5
1994         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
1995         linking is done manually in pic16 port's _linkEdit,
1996         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
1997         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
1998         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
1999         allocate asmop as AOP_ACC,
2000         (aopForRemat): added parameter 'bool result' in function declaration,
2001         (pic16_aopGet): return AOP_ACC when accessing WREG,
2002         (pic16_popGetTempReg): minor modification,
2003         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
2004         'pic16_allocWithIdx',
2005         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
2006         calling function in absolute addresses,
2007         (genAssign): take into account AOP_ACC asmop,
2008         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
2009         * src/pic16/pcoderegs.c: some debug functions and lines added,
2010         * src/pic16/ralloc.c (decodeRegType): added but commented out,
2011         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
2012         register too,
2013         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
2014         call to allocReg, not by manually allocating a new one,
2015         (pic16_assignRegisters): now before going through the register
2016         allocating functions mark all registers as free. This eliminates some
2017         side effects resulting from peephole parser done earlier in the backbone
2018
2019 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
2020
2021         * src/SDCCicode.c (geniCodeLogic),
2022         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
2023
2024 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
2025
2026         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
2027           (genSend): bugfix, do not allocate and free twice,
2028           (shiftRLong): handle partially overlapping aops
2029         * support/regression/tests/bitopcse.c: fixed warning redefined idata
2030
2031 2006-03-08 Borut Razem <borut.razem AT siol.net>
2032
2033         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
2034           for pic16
2035
2036 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
2037
2038         * support/regression/tests/bug1409955.c: new, added
2039         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
2040         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
2041           (aopForSym, aopOp): increment asmop.allocated if reused,
2042           (freeAsmop): decrement asmop.allocated and check for zero instead of
2043           using asmop.freed,
2044           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
2045           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
2046            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
2047            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
2048            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
2049            genSignedRightShift, genRightShift, genDataPointerGet,
2050            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
2051            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
2052             in reverse order from allocation,
2053           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
2054             added swappedLR to keep track
2055         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
2056           pdata & code for GCC, z80, gbz80 & hc08
2057         * support/regression/tests/zeropad.c: moved defines to testfwk.h
2058
2059 2006-03-08 Raphael Neider <rneider AT web.de>
2060
2061         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
2062
2063 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
2064
2065         * device/include/mcs51/c8051f410.h: new SiLabs mcu
2066         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
2067         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
2068
2069 2006-03-06 Borut Razem <borut.razem AT siol.net>
2070
2071         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
2072           made the linker quiet
2073
2074 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2075
2076         * src/pic16/gen.c (genPcall): fixed bug #1443644
2077         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
2078         which dumps before the function entry point a data byte which represents
2079         the number of the local variables used by the specified function, added
2080         'xinst' for initial support for Extended Instruction Support,
2081         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
2082         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
2083         port->fun_prefix anymore (may change later),
2084         (genFunction, genEndFunction): do not store/restore local registers for
2085         _main (this should take care the --main-return command line option in
2086         the future),
2087         (genOr): removed some legacy pic-port instructions,
2088         * src/pic16/genarith.c (genAddLit): re-enabled old code because
2089         performing operations with SFR's causes data to be written more than
2090         once to each SFR. Perhaps SFRs should be handled in special cases...
2091         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
2092         pcode.h
2093         * src/pic16/main.c (_process_pragma): stack bound checking did not take
2094         into account for stack starting position,
2095         (struct OPTIONS pic16_optionsTable): added command line argument
2096         --extended or -y for Extended Instruction Support,
2097         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
2098         (deassignLRs): *** perhaps the most important change, old 'for' code
2099         (commented out for reference), didn't account for some registers which
2100         were left marked 'not free' after a pointer operation. The change
2101         reduces register usage a lot in some cases
2102
2103 2006-03-04 Borut Razem <borut.razem AT siol.net>
2104
2105         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
2106           _clean
2107         * support/regression/tests/bug-524697.c: decreased array size for
2108           mcs51 to fit into the internal RAM
2109         * support/regression/Makefile.in: a little bit more verbose
2110
2111 2006-03-03 Borut Razem <borut.razem AT siol.net>
2112
2113         * support/regression/fwk/lib/testfwk.c,
2114           support/regression/fwk/include/testfwk.h: introduced function
2115           _prints(), nonrecursive _printn(), call _initEmu() from main()
2116         * support/regression/ports/gbz80/support.asm,
2117           support/regression/ports/ucz80/support.asm,
2118           support/regression/ports/z80/support.asm,
2119           support/regression/ports/ds390/support.c,
2120           support/regression/ports/hc08/support.c,
2121           support/regression/ports/host/support.c,
2122           support/regression/ports/mcs51/support.c,
2123           support/regression/ports/xa51/support.c: added empty _initEmu()
2124           function
2125         * support/regression/ports/pic16/gpsim.cmd,
2126           support/regression/ports/pic16/spec.mk,
2127           support/regression/ports/pic16/support.c,
2128           support/regression/Makefile.in: added pic16 regression test
2129
2130 2006-03-01 Raphael Neider <rneider AT web.de>
2131
2132         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
2133           genConstPointerGet): use safe way of generating MOVFF to cover
2134             literals as well as registers, fixes bug #1440527
2135         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
2136             dereference
2137           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
2138             more correctly, fixes bug #1232186
2139           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
2140         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
2141             gplink guess the correct processor in more cases, applied patch
2142             from Till Riedel attached to and fixing bug #1436552
2143
2144 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2145
2146         * support/regression/tests/array.c: added, contains check for #1434401
2147         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
2148
2149 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
2150
2151         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
2152         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
2153         * device/include/mcs51/c8051f326.h,
2154         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
2155         * device/include/mcs51/c8051f000.h,
2156         * device/include/mcs51/c8051f018.h,
2157         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
2158           PCON_IDLE,PCON_STOP and added sfr16 definitions
2159
2160 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2161
2162         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
2163           genGetWord): fixed bug 1409955
2164
2165 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2166
2167         * device/include/hc08/mc68hc908gp32.h,
2168         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
2169
2170 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
2171
2172         * src/SDCCast.c (constExprValue): return NULL if not a value
2173         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
2174         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
2175         * support/regression/tests/bitfields.c: enabled signed bitfield for all
2176
2177 2006-02-13 Borut Razem <borut.razem AT siol.net>
2178
2179         * src/regression/ptrarg.c: added, fails due to bug #1430967
2180         * src/regression/Makefile: ptrarg.c added, ...
2181
2182 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2183
2184         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
2185         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
2186
2187 2006-02-11 Borut Razem <borut.razem AT siol.net>
2188
2189         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
2190           print "Processor: xxx" message to stdout only if --verbose
2191
2192 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2193
2194         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
2195         * support/regression/tests/bug1426356.c: added
2196         * support/regression/tests/bitfields.c: removed 2 tests
2197
2198 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
2199
2200         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
2201         * device/include/mcs51/c8051f330.h,
2202         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
2203           PCON_IDLE,PCON_STOP and added sfr16 definitions
2204         * device/lib/_divsint.c,
2205         * device/lib/_divuint.c,
2206         * device/lib/_divulong.c,
2207         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
2208           register bank bug for small stackauto
2209
2210 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
2211
2212         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
2213
2214 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
2215
2216         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
2217         * all.dsp: corrected several bin paths
2218         * device/include/mcs51/c8051f120.h,
2219         * device/include/mcs51/c8051f300.h,
2220         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
2221           to PCON_IDLE,PCON_STOP
2222         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
2223         * device/lib/printf_large.c (output_float): fixed bug 1388703
2224         * support/regression/tests/bug1057979.c: added test for bug 1388703
2225
2226 2006-02-08 Raphael Neider <rneider AT web.de>
2227
2228         * src/pic/pcode.c (pciTRIS): fixed typo,
2229           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
2230           (LinkFlow): fixed handling of flows that end in a call,
2231           (ReuseReg): perform safety check earlier
2232         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
2233             to work with flows at the beginning of a pBlock,
2234             fixes #1426557 (Symbol not previously defined),
2235           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
2236             usage information
2237           (RemoveUnusedRegisters): update register usage info
2238         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
2239             created, reuse existing ones instead
2240         * src/pic/gen.c (genPcall): fixed #1424719
2241
2242 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
2243
2244         * link/z80/lkmain.c,
2245         * link/z80/lklex.c,
2246         * link/z80/lkdata.c,
2247         * link/z80/aslink.h: fixed build on current cygwin:
2248         replaced getline() by lk_getline()
2249
2250 2006-02-01 Borut Razem <borut.razem AT siol.net>
2251
2252         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
2253           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
2254           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
2255           src/regression/bool1.c, src/regression/bool2.c,
2256           src/regression/bool3.c, src/regression/call1.c,
2257           src/regression/compare.c, src/regression/compare10.c,
2258           src/regression/compare2.c, src/regression/compare3.c,
2259           src/regression/compare4.c, src/regression/compare5.c,
2260           src/regression/compare6.c, src/regression/compare7.c,
2261           src/regression/compare8.c, src/regression/compare9.c,
2262           src/regression/configword.c, src/regression/for.c,
2263           src/regression/inline.c, src/regression/mult1.c,
2264           src/regression/nestfor.c, src/regression/or1.c,
2265           src/regression/pointer1.c, src/regression/ptrfunc.c,
2266           src/regression/rotate1.c, src/regression/rotate2.c,
2267           src/regression/rotate3.c, src/regression/rotate4.c,
2268           src/regression/rotate5.c, src/regression/rotate6.c,
2269           src/regression/rotate7.c, src/regression/string1.c,
2270           src/regression/struct1.c, src/regression/sub.c,
2271           src/regression/sub2.c, src/regression/switch1.c,
2272           src/regression/while.c, src/regression/xor.c,
2273           src/regression/create_stc, src/regression/simulate,
2274           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
2275           regression tests
2276         * src/regression/gpsim_assert.h: added
2277
2278 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
2279
2280         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
2281         ((void (code *) (void)) 0) ();
2282         * as/hc08/aslex.c,
2283         * as/hc08/aslink.h,
2284         * as/hc08/asm.h,
2285         * as/hc08/asmain.c,
2286         * as/hc08/lkdata.c,
2287         * as/hc08/lklex.c,
2288         * as/hc08/lkmain.c,
2289         * as/mcs51/aslex.c,
2290         * as/mcs51/aslink.h,
2291         * as/mcs51/asm.h,
2292         * as/mcs51/asmain.c,
2293         * as/mcs51/lkdata.c,
2294         * as/mcs51/lklex.c,
2295         * as/mcs51/lkmain.c,
2296         * as/z80/aslex.c,
2297         * as/z80/asm.h,
2298         * as/z80/asmain.c: fixed build on current cygwin:
2299         replaced getline() by as_getline()
2300
2301 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
2302
2303         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
2304         declarator in the symbol chain
2305         * src/SDCCsymt.h,
2306         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
2307         parameter list for function pointers
2308         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
2309         * support/regression/tests/bug-716242.c: added
2310
2311 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
2312
2313         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
2314         offset if possible
2315         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
2316
2317 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
2318
2319         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
2320         inifinitely recurseable, added static
2321         * support/regression/tests/bug-1408066.c: added
2322
2323 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
2324
2325         * src/SDCCicode.h,
2326         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
2327         renamed, added possibility to create "postLoopLbl"-labels
2328         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
2329         newiTempLoopHeaderLabel
2330         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
2331         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
2332         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
2333         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
2334         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
2335         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
2336         (basicInduction): fixed bug #136564, made static,
2337         (loopInduction): changed parameter of basicInduction, made static,
2338         (addPostLoopBlock): added
2339         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
2340         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
2341         findLoopEndSeq
2342         * support/regression/tests/bug-136564.c: added
2343         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
2344         --std-sdcc99 to LIBSDCCFLAGS
2345
2346 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
2347
2348         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
2349         while loop
2350         * support/regression/tests/bug-1406131.c: added
2351
2352 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
2353
2354         * src/SDCCast.c (decorateType): fix promotion of unary minus
2355         * src/SDCCsymt.c (computeType): beautified
2356         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
2357         (valUnaryPM, valComplement): fix sign and promotion,
2358         (valNot): ANSI: result type is int (SDCC: unsigned char)
2359         * support/regression/tests/uminus.c: speedup by removing superflous
2360         test case 'int'
2361         * support/regression/tests/onebyte.c: added promotion and signedness
2362         tests for unary minus
2363         * support/regressions/tests/bug-477927.c: disable warning about
2364         uninitialized variables
2365         * support/regression/tests/not.c: added
2366
2367 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
2368
2369         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
2370         * src/mcs51/gen.c (gen51Code): show final register usage after
2371         fillGaps in asm with --i-code-in-asm
2372         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
2373         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
2374         incUsed, rliveClear, adjustIChain): made static,
2375         (setFromRange): excluded because it's unused,
2376         (findPrevUseSym, markWholeLoop): added,
2377         (findPrevUse): rewritten; fixes bug 895992; now a complete search
2378         through all branches of predecessors enables sdcc to emit the warning
2379         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
2380         (rlivePoint): made static, added parameter emitWarnings which is only
2381         true during the first run out of two,
2382         (findRecursiveSucc, findRecursivePred): removed,
2383         (computeLiveRanges): made static, added parameter emitWarnings,
2384         (dumpIcRlive): added for debugging only
2385         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
2386         removed prototype of setFromRange()
2387         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
2388         in call of computeLiveRanges()
2389         * support/regression/tests/bug-895992.c: added
2390         * support/regression/tests/bug-971834.c: added
2391         * support/valdiag/tests/bug-895992.c: added
2392         * support/valdiag/tests/bug-971834.c: added
2393
2394 2005-12-18 Raphael Neider <rneider AT web.de>
2395
2396         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
2397           (genUnpackBits): improved code for direct operands,
2398           (genPackBits): improved code for literal assignment to bitfields
2399             and for direct destination operands (no FSR indirection),
2400             prevented redundant AND, fixes #1362800,
2401           (AccLsh): added parameter to disable masking of the result
2402         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
2403           skip instructions with side-effects (like incfsz),
2404           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
2405         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
2406         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
2407           fixes #1375263
2408
2409 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
2410
2411         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
2412         volatile variables as spill location
2413
2414 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
2415
2416         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
2417         replacing literals
2418         * support/regression/tests/bug-1376320.c: added
2419
2420 2005-12-08 Raphael Neider <rneider AT web.de>
2421
2422         * src/pic/device.c: renamed is_shared to pic14_is_shared
2423         * src/pic/gen.c (genIfx): re-enabled handling of sbits
2424         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
2425           (is_valid_identifier): added for above workaround
2426
2427 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
2428
2429         * device/lib/Makefile.in: fixed to enable port-specific-objects
2430         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
2431           char, thanks Hubert Sack
2432         * doc/sdccman.lyx: documented --xstack-loc,
2433           elaborated a bit more on interrupts and pitfalls,
2434           removed "setjmp/longjmp unsupported",
2435           documented some unsupported C99 features
2436         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
2437         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
2438           if, thanks Hubert Sack
2439         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
2440         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
2441           make make_library
2442         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
2443           regression tests can report resource usage (rfe 700441)
2444         * support/regression/collate-results.py: report resource usage
2445         * support/regression/ports/ds390/spec.mk,
2446         * support/regression/ports/hc08/spec.mk,
2447         * support/regression/ports/mcs51/spec.mk,
2448         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
2449         * support/regression/ports/ds390/uCsim.cmd,
2450         * support/regression/ports/hc08/uCsim.cmd,
2451         * support/regression/ports/mcs51/uCsim.cmd,
2452         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
2453         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
2454           library, use the default one
2455         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
2456           building the library
2457
2458 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2459
2460         * config.dsp: added dependency on .version and configure_vc.awk
2461         * device/include/setjmp.h: updated for --stack-auto and --xstack
2462         * device/include/mcs51/at89c51snd1c.h: corrected line endings
2463         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
2464         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
2465         * device/lib/libsdcc.lib: added _setjmp
2466         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
2467           (decorateType): fixed bug 1372851,
2468           (optimizeGetHbit): fixed warning
2469         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
2470           array initialisation
2471         * support/regression/tests/bug1057979.c: added test for bug 1358192
2472         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
2473
2474 2005-12-03 Borut Razem <borut.razem AT siol.net>
2475
2476         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
2477           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
2478
2479 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2480
2481         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
2482         createIval): implement symbol independant "flexible array member",
2483         (createIvalCharPtr): implemented flexible array initialisation with a
2484         string
2485         * src/SDCCsymt.c (copyStruct): removed,
2486         (getSize): fixed misleading comment,
2487         (getAllocSize): removed, the additional allocation size is now in
2488         sym->flexArrayLength,
2489         (checkStructFlexArray): new, syntax checks for flexible array members,
2490         (compStructSize): added syntax checks for "flexible array members"
2491         (copyStruct): removed,
2492         (copyLinkChain): removed inefficient fix for bug 770487
2493         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
2494         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
2495         symbol->flexArrayLength
2496         * src/SDCCerr.c,
2497         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
2498         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
2499         * support/regression/tests/structflexarray.c: added
2500         * support/valdiag/tests/structflexiblearray.c: added
2501
2502 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2503
2504         * src/SDCCast.c (decorateType): fixed bug 1368489
2505         * support/Util/SDCCerr.c,
2506         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
2507
2508 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2509
2510         * device/include/mcs51/at89c51snd1c.h: added file submitted by
2511           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
2512
2513 2005-11-27 Borut Razem <borut.razem AT siol.net>
2514
2515         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
2516           support/cpp2/mkdeps.h: added command line option
2517           -obj-ext=<extension> to SDCPP to define object file externion, used
2518           for generation of make dependencies (-M)
2519         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
2520
2521 2005-11-26 Borut Razem <borut.razem AT siol.net>
2522
2523         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
2524           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
2525           added pic and pic16 libraries
2526
2527 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2528
2529         * device/include/float.h: Corrected typo in prototype of __fsgt
2530
2531 2005-11-25 Borut Razem <borut.razem AT siol.net>
2532
2533         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
2534           added creation of model-mcs51-stack-auto libraries
2535
2536 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
2537
2538         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
2539         and fields-list too
2540         * src/SDCCast.c (createIvalArray): removed obsolete comment
2541
2542 2005-11-24 Borut Razem <borut.razem AT siol.net>
2543
2544         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
2545           added missing device/lib/mcs51/crt*.asm sources
2546
2547 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
2548
2549         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
2550
2551 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
2552
2553         * device/lib/_fs2schar.c,
2554         * device/lib/_fs2sint.c,
2555         * device/lib/_fs2slong.c: optimized inline asm
2556
2557 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2558
2559         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2560           Better handling of floats between -1.0 and 0.0.
2561
2562 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2563
2564         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
2565           (the missing "if"s prohibited removal of redundant labels)
2566
2567 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2568
2569         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2570           Properly convert floats between -1.0 and 0.0 to long, int, and char
2571           types (max integer value of negative floats tends to zero).
2572         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
2573           Removed changes made so to work properly with floats between
2574           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
2575           and _fs2char.c
2576
2577 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
2578
2579         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
2580         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
2581         (genCast) cosmetic change
2582         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
2583         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
2584         from mcs51
2585         * support/regression/tests/bitfields (testSignedBitfields): added
2586
2587 2005-11-18 Borut Razem <borut.razem AT siol.net>
2588
2589         * sdcc/device/lib/Makefile.in: remove all unnecessary files
2590         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
2591           introduced SILENT option to make building of pic16 libraries less
2592
2593 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2594
2595         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
2596           Now they work properly with floats between -1.0 and 0.0
2597         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
2598
2599 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
2600
2601         * src/SDCCicode.c (printOperand): added missing else
2602
2603 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
2604
2605         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
2606         reformatted for better readability
2607         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
2608         signed bitfields
2609
2610 2005-11-17 Borut Razem <borut.razem AT siol.net>
2611
2612         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
2613           introduced SILENT option to make building of pic16 libraries less
2614           verbose - used for nightly snapshot build
2615         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
2616           available on Win32 platforms.
2617         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
2618           medium, large, pic and pic16
2619
2620 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2621
2622         * device/lib/printf_large.c: Temporary patch for bug 1358192:
2623           printf("%f"...) sets fraction to zero.
2624
2625 2005-11-16 Raphael Neider <rneider AT web.de>
2626
2627         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
2628           fixes #1357221
2629         * src/pic/gen.c (genIfx): implemented for CARRY bit
2630         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
2631           to generic pointers, fixes #1357332,
2632           (pic16_movLit2f): NEW,
2633           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
2634
2635 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2636
2637         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
2638
2639 2005-11-11 Raphael Neider <rneider AT web.de>
2640
2641         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
2642         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
2643           compute pointer's type from operand,
2644           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
2645           improved single bit reads, fixes bug #1353379
2646
2647 2005-11-09 Borut Razem <borut.razem AT siol.net>
2648
2649         * support/scripts/sdcc.nsi: added lib/pic to the package
2650
2651 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
2652
2653         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
2654
2655 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
2656
2657         * support/regression/tests/bug1348008.c: added
2658         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
2659         * support/regression/tests/bug1337835.c: updated comment
2660
2661 2005-11-06 Borut Razem <borut.razem AT siol.net>
2662
2663         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
2664           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
2665           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2666           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
2667           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
2668           dynamic construction of cl_error_class and derivates - 2.nd try
2669
2670 2005-11-05 Borut Razem <borut.razem AT siol.net>
2671
2672         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
2673           bug, which caused Bus Errors on sparc solaris
2674
2675 2005-11-04 Borut Razem <borut.razem AT siol.net>
2676
2677         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
2678           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
2679           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2680           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
2681           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
2682           and derivates to resolve the initialization problem on OSX
2683
2684 2005-11-02 Borut Razem <borut.razem AT siol.net>
2685
2686         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2687           corrected typo - #include <winsock2.h>
2688
2689 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
2690
2691         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
2692           (_asxxxx_mapping): added org directive for future enhancements
2693
2694 2005-11-01 Borut Razem <borut.razem AT siol.net>
2695
2696         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2697           enabled sockets on WIN32
2698         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
2699
2700 2005-10-31 Borut Razem <borut.razem AT siol.net>
2701
2702         * support/regression/generate-cases.py: escape backslashes in {testcase}:
2703           WIN32 backslash path delimiters should be escaped when used in C strings
2704         * support/regression/tests/bitfields.c: exclude failing assertions for
2705           __CYGWIN32__ and __MINGW32__ hosts
2706
2707 2005-10-30 Borut Razem <borut.razem AT siol.net>
2708
2709         * src/SDCCutil.c: corrected double comparison typo
2710
2711 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
2712
2713         * device/lib/medium/Makefile: added for new memory model medium
2714         * device/include/asm/mcs51/features.h: updated for medium/pdata
2715         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
2716           added Multiply & Accumulate sbit's and MAC0_PAGE define
2717         * device/include/mcs51/c8051f300.h: added sfr16 definitions
2718         * device/include/mcs51/c8051f310.h: added sfr16 definitions
2719         * device/lib/_mullong.c: update for medium model
2720         * device/lib/incl.mk: added medium model
2721         * doc/sdccman.lyx: documented medium model
2722         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
2723         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
2724         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
2725         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
2726           (allocParms): set SCLS and OCLS to pdata for medium model
2727         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
2728           for pdata,
2729           (powof2): return <0 if not power of 2
2730         * src/avr/gen.c (genBitWise): use updated powof2
2731         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
2732           (shiftR2Left2Result): small optimization in setup, save acc when storing,
2733           (shiftLLeftOrResult): use B if necessary
2734         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
2735         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
2736         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
2737         * support/regression/Makefile.in: added test-mcs51-medium
2738         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
2739
2740 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
2741
2742         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
2743         specifier unsigned
2744         * device/lib/time.c (mktime): fixed bug 1334315
2745
2746 2005-10-28 Raphael Neider <rneider AT web.de>
2747
2748         * device/include/pic/p16f_common.inc: added common declarations
2749         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
2750
2751 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2752
2753         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
2754           (aopPutUsesAcc): added to predict accumulator use,
2755           (assignResultValue): save acc if necessary,
2756           (genMinusDec): store result if indirectly addressed,
2757           (genDivOneByte):  save acc if necessary,
2758           (movLeft2Result): bugfix if left already in acc,
2759           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
2760             attention to accumulator use (esp. pdata),
2761           (genReceive): receive pdata correctly
2762         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
2763         * src/SDCCicode.h: added isOperandInPagedSpace prototype
2764
2765 2005-10-27 Raphael Neider <rneider AT web.de>
2766
2767         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
2768
2769 2005-10-27 Raphael Neider <rneider AT web.de>
2770
2771         * .version: changed version to 2.5.4
2772         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
2773         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
2774           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
2775             arithmetics support routines
2776         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
2777         * device/lib/Makefile.in: also create installdir for pic
2778
2779         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
2780           pic14 port as well
2781         * src/pic/device.c (dump_sfr): rewritten to delegate register
2782           placement to the linker (use `extern sym' rather than sym EQU addr),
2783           (validAddress): fixed to check last specified address
2784         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
2785           (popGetLit): truncate literal value to 8 bit,
2786           (popGet): moved assert to more appropriate place
2787           (popGetExternal): create pCode operand from and mark the according
2788             symbol as being `extern'
2789           (popGetAddr): added sanity check on immediate's offset, provide
2790             GPOINTER tag on demand
2791           (aopPut): fixed for immediates,
2792           (mov2w_op): move operand's address or contents to WREG (depending on
2793             operand type), safer variant of mov2w,
2794           (movwf,call_libraryfunc): NEW, handy abbreviations,
2795           (get_argument_pcop,get_return_val_pcop,pass_argument,
2796           get_returnvalue): interface for accessing function parameters and
2797             return values,
2798           (assignResultValuei,genRet): use new parameter/return value interface
2799           (pic14_getDataSize): back to old version handling generic pointers,
2800           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
2801             provided implementation and/or fixed old one,
2802           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
2803             calls, removed legacy 8051 reference code
2804           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
2805           (loadSignToC): NEW, move the operands sign bit to CARRY,
2806           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
2807             genRightShiftSigned, accepts negative shift counts,
2808           (setup_fsr): load FSR and adjust IRP (indirect memory access),
2809           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
2810             generic pointers, __data pointers and __code pointers,
2811           (genUnpackBits,genPackBits): rewritten to work with generic pointers
2812             and signed bitfields, limit bitfields to 8 bit,
2813           (genDataPointerGet): fixed number of bytes read,
2814           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
2815           (genPointerGet,genPointerSet): fixed handling of __code pointers,
2816             pointers to constant data are no longer assumed to point to __code
2817             space, removed invalid pointer types,
2818           (bitpatternFromVal): retrieve the PICs representation of an integer
2819             or float literal,
2820           (genDataPointerSet): fixed assigning to po_immediate operands,
2821           (genGenPointerSet): implemented as library call,
2822           (genIfx): fixed incorrect condition,
2823           (genAddrOf): limit generic pointers' addresses to 2 bytes,
2824             provide GPOINTER tag according to destination's storage class,
2825           (genCast): added code to handle casting to generic pointers, added
2826             sign-/zero extension of the result
2827           (aop_isLitLike,op_isLitLike): fixed handling of immediates
2828         * src/pic/gen.h: added macros to access IRP bit in STATUS register
2829         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
2830           extend the result
2831         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
2832           address/register resides in the shared banks
2833           (emitSymbolToFile): improved to handle global and `pinned' symbols,
2834             put all variables into separate sections (have the linker arrange
2835             them)
2836           (picglue): put init code and interrupt handlers in separate sections
2837         * src/pic/main.c: added port specific options table, modified to PORT
2838           structure to make GPOINTERs 3 byte, added pic14_options
2839           (_pic14_do_link): private linking routine (update paths to libraries,
2840             add libsdcc.lib by default)
2841         * src/pic/main.h: declare pic14_options
2842         * src/pic/pcode.c: fixed instructions i/o relations,
2843           (RegCond): reverted to correct version,
2844           (newpCodeOpLit): truncate literals to 8 bit,
2845           (genericPrint): added debug output,
2846           (getRegFromInstruction): fixed for various operand types, simplified
2847           (BuildFlow): fixed broken handling of isntructions with labels
2848           (LinkFlow): start at last instruction in flow (skip trailing comments),
2849             pass the flow on to the next instruction after CALL
2850           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
2851           (insertPCodeInstruction): fixed inserting after a skip instruction,
2852           (DoBankSelect): fixed for labeled instructions
2853           (OptimizepBlock): honor --nopeep switch
2854           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
2855         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
2856         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
2857           (pCodeOptime2pCodes): allow disabling this optimization via
2858             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
2859             but is still buggy), started implementation of a dataflow based
2860             pCode optimization (CSE + dead code elimination)
2861           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
2862         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
2863           names are independant of the stack location and therefore portable across
2864           devices
2865
2866 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2867
2868         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
2869           (selectSpil): fixed bug 1337835 by not spilling bit variables
2870         * support/regression/tests/bug1337835.c: added test for this bug
2871         * src/mcs51/peeph.def: restart after rule 3.c,
2872           addded rules 263.x to optimize loading constants
2873
2874 2005-10-26 Raphael Neider <rneider AT web.de>
2875
2876         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
2877         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
2878           (genAssign): emit warning when casting literals to generic pointer
2879             type, also applies when taking the address of a fixed variable,
2880           (genCast): improved casting to generic pointers
2881         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
2882           extern variables, added verbose error message
2883         * device/include/pic16/{string.h,errno.h}: added #pragma library c
2884
2885 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
2886
2887         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
2888         carry must be complemented too
2889         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
2890         could be emitted by genMinus
2891         * src/SDCCval.c (constVal): fixed bug 1305065
2892
2893 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
2894
2895         * src/SDCCast.c (addCast): added promotion for bit variables
2896         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
2897         promotion casts + optimisation
2898         (optimizeGetWord): fix warning 'i' might be used uninitialized
2899         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
2900         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
2901
2902 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
2903
2904         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
2905         all chars are promoted to int; promotion should be handled in SDCCast.c
2906
2907 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2908
2909         * device/lib/_strcmp.c: Fixed bug 1326457
2910
2911 2005-10-11 Raphael Neider <rneider AT web.de>
2912
2913         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
2914         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
2915
2916 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2917
2918         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
2919         * support/regression/tests/sfr16.c: added test for the sfr32 bug
2920
2921 2005-10-04 Raphael Neider <rneider AT web.de>
2922
2923         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
2924           device/lib/pic16/pics.all: added pic18f1320
2925         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
2926
2927 2005-09-30 Raphael Neider <rneider AT web.de>
2928
2929         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
2930         * src/pic16/devices.inc: NEW, provides device descriptions
2931         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
2932
2933 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2934
2935         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
2936           GETHBIT
2937
2938 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
2939
2940         * doc/sdccman.lyx: updated Highest Order Bit documentation,
2941           documented Any Order Bit, Higher Order Byte and Higher Order Word
2942         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
2943         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
2944           (optimizeGetAbit): new, to get any bit, not only the high bit,
2945           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
2946           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
2947           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
2948           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
2949             RIGHT_OP: also try GETBYTE, GETWORD optimization,
2950             GETABIT, GETBYTE, GETWORD: decorate them,
2951           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
2952           (ast_print): added GETABIT, GETBYTE, GETWORD
2953         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
2954         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
2955           (geniCodeBinary): new generic binary icode,
2956           (ast2iCode): added GETABIT, GETBYTE, GETWORD
2957         * src/port.h: updated comment for PORT.hasExtBitOp
2958         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
2959           (genGetByte): new, to get a single byte,
2960           (genGetWord): new, to get a word from a long,
2961           (gen51Code): added GETABIT, GETBYTE, GETWORD
2962         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
2963
2964 2005-09-23 Raphael Neider <rneider AT web.de>
2965
2966         * configure.in, configure: have device/lib/pic configured
2967         * device/lib/Makefile.in: added model-pic14
2968         * device/lib/clean.mk: added pic/ to clean rule
2969         * device/lib/pic: added rudimentary pic14 library providing support
2970           functions for multiplication/division/generic pointer access
2971         * src/SDCCopt.c (convilong): mark support functions as extern
2972           for pic14 port as well
2973         * src/pic/gen.c (genMult): added assertions,
2974           (genpic14Code): emit warning on unhandled iCodes
2975         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
2976         * src/pic/pcode.c (pCodeOpCopy),
2977         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
2978           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
2979           SFR_REGISTER}), made safe for future extensions
2980         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
2981           instructions even if preceeded by SKIP instructions (also remove
2982           them); removed unused code
2983         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
2984           prevents leaving parts of the structure uninitialized after copying
2985
2986 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
2987
2988         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
2989           ago by me
2990         * support/regression/tests/addsub.c: added test for the bug
2991
2992 2005-09-21 Raphael Neider <rneider AT web.de>
2993
2994         * device/include/pic16/pic18f1220.h,
2995           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
2996         * device/lib/pic16/Makefile.rules: added missing opening paren
2997         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
2998           are provided in genutils.c,
2999           (genUminusFloat,genUminus,genCmpEq): added asserts on different
3000           operand/result sizes,
3001           (genCmp): assert on NULL pointers first, then check deref'ed values
3002         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
3003           result size
3004
3005 2005-09-18 Raphael Neider <rneider AT web.de>
3006
3007         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
3008           as these are now unused,
3009           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
3010         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
3011           local, avoids uninitialized pointer dereference on r->name
3012         * src/pic16/ralloc.c (newReg): fixed indentation
3013
3014 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
3015
3016         * src/SDCCval.c (constVal): fixed bug 730366
3017         * support/Util/SDCCerr.c,
3018         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
3019
3020 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3021
3022         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
3023
3024 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
3025
3026         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
3027
3028 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3029
3030         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
3031           (hex2dec): made hex_digit unsigned char, removed ascii dependance
3032         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
3033           (hex2dec): made hex_digit unsigned char, removed ascii dependance
3034         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
3035         * packihx/packihx.c (hexDigit): made c unsigned char
3036         * as/mcs51/lklibr.c (fndsym),
3037         * link/z80/lkgb.c (gb),
3038         * link/z80/lklibr.c (fndsym),
3039         * link/z80/lkrloc.c (relr),
3040         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
3041         * src/SDCC.lex (checkCurrFile, process_pragma),
3042         * src/SDCCglue.c (spacesToUnderscores),
3043         * src/SDCCmain.c (setParseWithComma, processFile),
3044         * src/asm.c (tvsprintf, printCLine),
3045         * src/avr/gen.c (emitcode, aopPut),
3046         * src/ds390/gen.c (emitcode),
3047         * src/hc08/gen.c (emitcode, emitinline),
3048         * src/mcs51/gen.c (emitcode, genInline),
3049         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
3050           tokenizeLineNode),
3051         * src/pic/ralloc.c (debugLog),
3052         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
3053           tokenizeLineNode),
3054         * src/pic16/ralloc.c (debugLog),
3055         * src/z80/main.c (_process_pragma):
3056            made all ctype.h function calls safe
3057         * src/SDCCopt.c: include math.h for fabs
3058         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
3059           and used them throughout the code to make ctype.h function calls safe
3060         * src/ds390/main.c (asmLineNodeFromLineNode),
3061         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
3062         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
3063            unsigned char*
3064         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
3065           (newpCodeAsmDir): made ctype.h function calls safe
3066         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
3067           pic16_emitcode):  made lbp unsigned char*
3068         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
3069           (pic16_newpCodeAsmDir): made ctype.h function calls safe
3070         * src/xa51/gen.c (emitcode),
3071         * src/z80/gen.c (_emit2): made lbp unsigned char*
3072         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
3073            char*
3074
3075 2005-09-05 Raphael Neider <rneider AT web.de>
3076
3077         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
3078           access bank splitpoint
3079
3080 2005-09-05 Raphael Neider <rneider AT web.de>
3081
3082         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
3083
3084 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
3085
3086         * .version: changed to version 2.5.3
3087         * doc/sdccman.lyx: changed version to 2.5.3,
3088           documented --codeseg and --constseg and pragma codeseg and constseg,
3089           documented bit parameters (reentrant) and bit returning
3090         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
3091            currFunc->recvSize, but is this ok for all ports?
3092           (ast2iCode): result of ~ on unsigned char must be cast to int for
3093            bool to work
3094         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
3095           function pointers in bit space
3096         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
3097           (processFuncArgs): call port.reg_parm() with reentrancy info
3098         * src/port.h,
3099         * src/avr/main.c,
3100         * src/ds390/main.c,
3101         * src/hc08/main.c,
3102         * src/pic/main.c,
3103         * src/pic16/main.c,
3104         * src/xa51/main.c,
3105         * src/z80/main.c: port.reg_parm prototype extended with
3106           "bool reentrant" parameter
3107         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
3108           options.stackAuto for allocating bit register parameters
3109         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
3110           (genSend): set BitBankUsed if it is,
3111           (selectRegBank): factored out of genCall for use in genPcall,
3112           (genCall): removed redundant dtype assignmen, use selectRegBank,
3113           (genPcall): handle returning in Carry properly, save in F0 if needed,
3114           (genReceive): handle bit register parameters
3115         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
3116           (mcs51_assignRegisters): enable bit registers for all reentrant
3117            functions and don't set BitBankUsed unconditionally
3118         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
3119         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
3120         * support/regression/tests/funptrs.c: added tests for BOOL and for return
3121
3122 2005-08-27 Borut Razem <borut.razem AT siol.net>
3123
3124         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
3125         ppc-osx (Darwin) does not support -u option. It seems that it is
3126         supported only on Linux - GNU cp
3127
3128 2005-08-25 Borut Razem <borut.razem AT siol.net>
3129
3130         * sim/ucsim/gui.src/serio.src/Makefile.in,
3131           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3132           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3133           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
3134           install and strip, since the strip at /usr/ccs/bin should be used
3135           on solaris
3136
3137 2005-08-24 Borut Razem <borut.razem AT siol.net>
3138
3139         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
3140
3141 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
3142
3143         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
3144         ffffffffu
3145
3146 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
3147
3148         * as/mcs51/aslink.h: completed lkrloc.c prototypes
3149         * as/mcs51/lkmain.c (link_main): fixed warning
3150         * device/include/stdbool.h: ds390 has no advanced bit support yet
3151         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
3152         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
3153         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
3154           and updated their macros
3155         * src/SDCCval.c (constVal): updated comment for renamed b_long
3156
3157 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
3158
3159         * as/mcs51/asdata.c: changed ctype['['] to BINOP
3160         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
3161           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
3162           (oprio): set priority for '['
3163         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
3164            and adb_24_bit
3165         * as/mcs51/asm.h: added defines R_BIT and S_BIT
3166         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
3167         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
3168         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
3169           added overlayable BIT_BANK area
3170         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
3171           (summary2): explain 'T' in legenda
3172         * as/mcs51/lkrloc.c: replaced old K&R style,
3173           (relr): added R_BIT processing,
3174           (errmsg): added "Bit-addressable relocation error",
3175           (adb_bit): added for converting from byte- to bit-addressable space,
3176           (adb_24_bit): added for converting from byte- to bit-addressable space
3177         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
3178            used in reentrant functions now even as return value
3179         * device/lib/_gptrput.c (_gptrput): removed obsolete code
3180         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
3181           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
3182         * src/SDCCglobl.h: added indicator BitBankUsed
3183         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
3184            the bit registers b0-b7
3185         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
3186           (geniCodeCast): fixed bug 1263853,
3187           (geniCodeLogicAndOr): put result in bool or char,
3188           (geniCodeReceive): added parameter func for accessing the return type,
3189           (geniCodeFunctionBody): pass func to geniCodeReceive
3190         * src/SDCCmain.c: added indicator BitBankUsed
3191         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
3192         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
3193           (checkSClass): don't put automatic bool/bit on stack,
3194           (checkFunction): removed check on function cannot return bit
3195         * src/SDCCsymt.h: added newBoolLink prototype
3196         * src/mcs51/gen.c (rb1regs): added bit registers,
3197           (movc): created for assigning to carry,
3198           (pushReg, popReg): created for pushing registers,
3199           (sameRegs): check both AOP_REG and AOP_CRY types,
3200           (aopOp): handle bit registers,
3201           (aopPut): optimization no self-assign,
3202           (saveRegisters): push reg->base (bits) only once for bit registers,
3203            and use pushReg,
3204           (unsaveRegisters): pop reg->base only once and use popReg,
3205           (assignResultValue): added parameter func and return in carry for bits,
3206           (genIpush): optimization no reload in A if not changed,
3207           (genSend): bit parameters in reentrant functions are passed in bit
3208            registers by first assigning to bits in B, then save registers and
3209            copy B to bits,
3210           (genCall): handle returning in Carry properly, save it in F0 if needed,
3211           (genPcall): updated assignResultValue call, this is not safe yet for bit
3212            returning function !!!
3213           (genFunction): don't generate equ's for bit registers and use pushReg,
3214           (genEndFunction): take care of bit returning functions and use popReg,
3215           (genRet): return bit in Carry,
3216           (genIfx): optimize bit registers and other directly addressable bits,
3217           (genReceive): updated assignResultValue call
3218         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
3219           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
3220            registers when using stack-auto
3221         * src/mcs51/ralloc.c (_G): added allBitregs,
3222           (regs8051): added the bit registers,
3223           (createStackSpil): use macro IS_BIT,
3224           (getRegBit): added to allocate a bit register, else spill,
3225           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
3226           (updateRegUsage): factored out to ease stepping while debugging,
3227           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
3228            also allocate bit registers,
3229           (fillGaps): handle bit registers,
3230           (findAllBitregs): added to create bit vector with all bit registers,
3231           (mcs51_allBitregs): returns this bit vector,
3232           (mcs51_assignRegisters): when using stack-auto use bit registers for
3233            passing parameters and creating local variables
3234         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
3235
3236 2005-08-22 Borut Razem <borut.razem AT siol.net>
3237
3238         * device/lib/Makefile.in: replaced find option -or with -o
3239           to make it run on solaris
3240
3241 2005-08-22 Raphael Neider <rneider AT web.de>
3242
3243         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
3244           fixes #1265442 (crash on Solaris)
3245
3246 2005-08-20 Borut Razem <borut.razem AT siol.net>
3247
3248         * configure, configure.in: added tests for libsocket and libnsl libraries,
3249           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
3250           from support/regression/Makefile.in
3251         * support/regression/Makefile.in: added
3252         * device/lib/pic16/Makefile.common.in: force make to use bash shell
3253         * sim/ucsim/libtool: regenerated on sparc-solaris
3254         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3255           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
3256           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
3257           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
3258           sparc-solaris, which doesn't use GNU ld linker
3259         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
3260         * as/Makefile: find on sparc-solaris does not support -maxdepth option
3261
3262 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
3263
3264         * src/mcs51/peeph.def: updated comments
3265
3266 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3267
3268         * device/lib/_gptrget.c,
3269         * device/lib/_gptrput.c: slightly shorter
3270         * doc/sdccman.lyx: incremented version
3271         * src/mcs51/peeph.def: moved peephole comments to the line of first
3272           change to better keep line correlation, reanimated 186.e
3273         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
3274
3275 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
3276
3277         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
3278           David Saxton with quotes around file name.
3279
3280 2005-08-15 Borut Razem <borut.razem AT siol.net>
3281
3282         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
3283           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
3284           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
3285           make tests run on x86_64 platform
3286
3287 2005-08-13 Raphael Neider <rneider AT web.de>
3288
3289         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
3290           as it might be executed DURING a build (parallel make is wonderful)
3291
3292 2005-08-13 Raphael Neider <rneider AT web.de>
3293
3294         * device/lib/Makefile.in (port-specific-objects-pic16):
3295           revert to cp $(PORT)/bin/*.* $(PORTDIR)
3296         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
3297           dependency
3298         * device/lib/pic16/Makefile.rules: build subdirs before creating
3299           the library, removed builddir rule, create $(builddir) early in
3300           recurse rule, use empty recurse rule for leaf directories
3301         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
3302           mkdir errors (race condition), removed duplicate suffix "hex"
3303           from clean rules
3304         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
3305         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
3306           prevents mkdir -p from aborting on Alpha
3307
3308 2005-08-12 Raphael Neider <rneider AT web.de>
3309
3310         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
3311           db-statements in order to allow for arrays of pointers in code
3312           sections to be placed without interspersed 0-padding, fixes
3313           bug #1256215
3314         * (emitStatistics): fixed division by zero for pic18f1220
3315         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
3316           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
3317         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
3318         * (pic16_pCodeConstString): keep track of already emitted string
3319           literals to prevent "duplicate definitions of symbol _str_NR"
3320         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
3321           debug message
3322         * device/lib/Makefile.in: ignore failing PIC16 library builds
3323         * device/lib/pic16/Makefile: do not build if gputils are missing
3324         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
3325
3326 2005-08-10 Raphael Neider <rneider AT web.de>
3327
3328         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
3329           my last commit)
3330
3331 2005-08-10 Raphael Neider <rneider AT web.de>
3332
3333         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
3334           Rokas' patch to add the new fixed point type "__fixed16x16"
3335         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
3336           functions for __fixed16x16 arithmetics
3337         * device/lib/pic16: reimplemented the build system to support
3338           a separate build directory, better handling of libio (create
3339           the library in a separate subdir for each architecture) and
3340           easier configuration (centralized in Makefile.common)
3341
3342 2005-08-07 Raphael Neider <rneider AT web.de>
3343
3344         * src/pic16/gen.c (genrshTwo): fixed sign extension
3345         * src/pic16/device.c: added pic18f2320, 4220 and 4320
3346         * device/include/pic16/pic18f2220.h: changed some bit definitions,
3347           added T0CONbits
3348         * device/include/pic16/pic18f4220.h: NEW, header for
3349           pic18f4220 and pic18f4320
3350         * device/include/pic16/pic18fregs.h: added new devices,
3351           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
3352         * device/include/pic16/signal.h: resolved name clashes
3353           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
3354           to also allow testing for interrupt enable bits, added
3355           comments on how to use the macros
3356         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
3357         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
3358           register definitions for the devices
3359         * device/lib/pic16/pics.all: added new devices
3360         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
3361           allocated memory
3362         * device/lib/pic16/libc/stdlib/memfree: do not count
3363           the block header as free memory
3364         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
3365           simplified and added missing end-of-blocklist-marker
3366           (reported by Peter Onion, fixes #1252814)
3367         * (_mergeHeapBlock): fixed loop condition
3368         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
3369           len==0, restructured code
3370         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
3371           up a bit, reduced bitfield accesses, prevent endless loops
3372           in case of heap corruption
3373         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
3374           "unreferenced arguments/must return a value" warnings
3375         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
3376           replaced BAUDREG with SPBRG
3377         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
3378           device/lib/pic16/debug/gstack/gstack.c: replaced
3379           _naked, _asm, _endasm with __naked, __asm, __endasm
3380
3381 2005-08-05 Raphael Neider <rneider AT web.de>
3382
3383         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
3384           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
3385
3386 2005-08-05 Borut Razem <borut.razem AT siol.net>
3387
3388         * device/lib/Makefile.in: added missing ';'
3389         * configure: removed ^M characters
3390
3391 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3392
3393         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
3394           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
3395           License
3396
3397 2005-08-04 Borut Razem <borut.razem AT siol.net>
3398
3399         * configure.in: pic16 libraries build 2nd try - enable running
3400           configure in device/lib/pic16
3401         * configure: regenerated from configure.in
3402         * device/lib/Makefile.in: create $(PORT)/bin directory
3403
3404 2005-08-03 Raphael Neider <rneider AT web.de>
3405
3406         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
3407           to get/set values via pointers
3408         * (genUnpackBits,genPackBits): changed detection of
3409           ptr->bitfield vs. sym.bitfield, fixed access via generic
3410           pointers, removed dead (wrong) code for multibyte bitfields
3411         * (genNearPointerGet, genGenPointerGet): removed useless code,
3412           fixed bitfield detection, fixes #1250594
3413         * (genNearPointerSet): removed useless code
3414         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
3415           and introduced macro pic16_emitpcode that conditionally emits
3416           the origin of the following pCode (useful for debugging SDCC)
3417         * src/pic16/pcode.c: changed (and disabled) some debug outputs
3418         * (createDefmap): fixed handling of LFSR for --optimize-df
3419
3420 2005-08-02 Borut Razem <borut.razem AT siol.net>
3421
3422         * device/lib/Makefile.in: pic16 libraries build enabled since
3423           gputils-0.13.2 are now localy installed at sourceforge's compile farm
3424
3425 2005-08-02 Raphael Neider <rneider AT web.de>
3426
3427         * src/pic16/gen.c (genPackBits): removed deprecated warning
3428         * (genGenPointerSet): fixed bitfield detection
3429
3430 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3431
3432         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
3433
3434 2005-07-31 Raphael Neider <rneider AT web.de>
3435
3436         * device/lib/pic16/libdev/pic18f458.c,
3437           device/include/pic16/pic18f458.h: added missing T0CONbits
3438
3439 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3440
3441         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
3442
3443 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
3444
3445         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
3446
3447 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3448
3449         * device/include/mcs51/at89c51ed2.h: added.
3450
3451 2005-07-23 Raphael Neider <rneider AT web.de>
3452
3453         * src/pic/gen.h: added emitpcode macro for debugging
3454         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
3455           and replace by macro adding debug information on demand
3456         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
3457         * (gencjne): tried to fix; replaced with correct (slower) code
3458         * (gen{Unp,P}ackBits): fixed single bit access
3459         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
3460         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
3461           previous instruction
3462         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
3463           register has to be handled with care (forbidding movement
3464           of assignments/uses, removing assignments completely, ...)
3465         * (pCodeOptime2pCodes): make use of regIsSpecial
3466         * added lots of debugging output (commented out)
3467         * src/pic/rallloc.c (deassignLRs): prevent operand registers
3468           from being reused as result UNLESS it is known to work
3469
3470 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3471
3472         * support/Util/dbuf.h: include <stddef.h> for size_t
3473         * .version: changed to version 2.5.2
3474
3475 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3476
3477         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
3478
3479 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3480
3481         * src/hc08/gen.c (genMinus): fixed bug #1241835,
3482           (genModOneByte): removed needless psha/pula
3483
3484 2005-07-22 Raphael Neider <rneider AT web.de>
3485
3486         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
3487           have PIC14 handled like PIC16, fixes broken pic14 linker calls
3488         * src/pic/gen.c (resolveIfx): do not "invent" labels
3489         * (genSkipc): changed to positive logic
3490         * (genSkipCond): removed as no longer needed
3491         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
3492           backport from PIC16
3493         * (genLeftShift): check operands are in different registers
3494         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
3495           INCF does not update CARRY...
3496         * src/pic/main.c: fixed _linkCmd
3497         * src/pic/pcode.c (unlinkpCode): added inactive code
3498         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
3499           alive (do not assign result and operand overlapping registers)
3500
3501 2005-07-22 Raphael Neider <rneider AT web.de>
3502
3503         * src/pic/device.c (dump_sfr): replaced register declaration with
3504           call to emitSymbolToFile() to avoid duplicate symbols
3505         * (assignRelocatableRegisters): do not declare external symbols
3506         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
3507           right (take size of type, not etype)
3508         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
3509         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
3510         * (packRegsForAccUse): disabled assignment of WREG as
3511           the result reg to prevent occurence of just fixed #1235003,
3512           fixes #1242954
3513         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
3514           symbols (avoids duplicate symbols in .asm file)
3515         * (pic14emitRegularMap): use emitSymbolToFile()
3516         * src/pic/gen.c (aopOp): fixed spillLocation handling
3517         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
3518         * (genDataPointerSet): removed unneccessary variables/output
3519
3520 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
3521
3522         * as/mcs51/lkarea.c: enlarged codemap for banked memory
3523         * device/lib/mcs51/crtbank.asm: added # to 0x0F
3524
3525 2005-07-21 Raphael Neider <rneider AT web.de>
3526
3527         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
3528           architecture cannot handle them efficiently, fixes bug #1235003
3529         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
3530           check for empty sets before using them (fixes bug #1232190)
3531
3532 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
3533
3534         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
3535           (lnksect2): generate warnings for memory overlap
3536         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
3537           constseg to set the name of these segments so you can instruct the linker
3538           to place them in banks
3539         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
3540         * src/SDCCglobl.h: added MODEL_HUGE to enum,
3541           added code_seg and const_seg to options
3542         * src/SDCCglue.c (emitMaps): use options.const_seg,
3543           (createInterruptVect): put interrupt vectors in segment HOME,
3544           (glue): put HOME before static segment and put the main glue in HOME,
3545           (glue): use options.code_seg
3546         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
3547         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
3548           these segments so you can instruct the linker to place them in banks
3549           (linkEdit): use code_loc for HOME segment which should be the first
3550           segment in code memory now
3551         * src/SDCCmem.c: fixed more stuff like bug 1238386
3552         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
3553           (changePointer): don't change function pointers to code pointers for
3554           banked functions,
3555           (compareType): added exceptional check for banked function pointers
3556         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
3557         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
3558           after static in code memory
3559         * src/mcs51/gen.c: added aopLiteralLong prototype,
3560           (aopForSym): use getSize for functions,
3561           (genCall): generate banked calls over one trampoline __sdcc_banked_call
3562           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
3563           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
3564           the segment,
3565           (genPcall): use call for literal function pointers and generate banked
3566           calls over the one trampoline so there's only one place for the user to
3567           modify according to his/hers hardware,
3568           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
3569           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
3570         * src/mcs51/main.c: added keyword banked,
3571           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
3572         * support/Util/SDCCerr.c,
3573         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
3574           needed for passing the bank and address to the trampoline
3575         * device/lib/mcs51/crtbank.asm: added for bankswitching
3576         * device/lib/mcs51/Makefile: added crtbank
3577
3578 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3579
3580         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
3581           for fields at offset 0 of a struct or union as reported
3582           on 2005-07-07 in the developer mailing list.
3583
3584 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
3585
3586         * src/SDCCmem.c: fixed bug 1238386
3587
3588 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3589
3590         * src/mcs51/peeph.def: added labelrefcounting for peepholes
3591           (patch #1144962), added peephole 300, enabled 259.x
3592         * doc/sdccman.lyx: removed screenshot and provided link instead
3593
3594 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3595
3596         * doc/sdccman.lyx: added section about debugging with ddd
3597         * doc/figures/ddd_example.eps: screenshot of debugging session
3598
3599 2005-07-04 Raphael Neider <rneider AT web.de>
3600
3601         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
3602           like CODE pointers, fixes #1115683
3603         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
3604           call, fixes bugs #1232211, #1228110,
3605           fixed wrong casts to pCodeFlow from pCodeInstructions
3606
3607 2005-07-04 Raphael Neider <rneider AT web.de>
3608
3609         * src/pic/gen.c (popGet): changed assert to allow for
3610           bit operands
3611         * (popGetAddr): changed signature to provide
3612           an additional index, patched all call sites
3613         * (genCmpEq): handle literal-like operands correctly
3614         * (genAddrOf): added sanity checks on __code/__data pointers
3615         * (genAssign): added handling of symbols from __code section
3616         * (gencjne): do not generate code for comparisons whose result
3617           is neither stored nor used, fixes bug #1171114
3618         * (AccLsh, AccRsh): operate on operand instead of WREG
3619         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
3620           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
3621           by known count
3622         * rewrote complete shift-by-literal logic, commented unused
3623           functions out
3624         * (genConstPointerGet): get multiple bytes (if result size > 1),
3625           fixed handling of non-immediate addresses
3626         * (genPointerGet): handle CODE pointers like CONST pointers
3627         * (genpic14Code): insert C-SRC lines as Cource-pCodes
3628         * ({aop,op}_isLitLike): NEW, single place to decide whether an
3629           operand is to be treated as a literal or not
3630         * (mov2w,genPcall,genCmpEq),
3631           src/pic/genarith.c: use aop_isLitLike() to decide between
3632           literal/register contents
3633         * (addSign): added missing offset
3634         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
3635           only emit comment in debug-mode,
3636           use {aop,op}_isLitLike throughout the file
3637         * src/pic/glue.c: fix initializers for pointers (work in progress)
3638         * src/pic/pcode.c (get_op): honor index on _const symbols
3639         * ({reset,dump}pCodeStatistics): NEW, estimate code size
3640         * (dumppBlock): added pCode size estimation
3641         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
3642           check for IS_SYMOP before OP_SYMBOL'ing
3643         * fixed indentation, compacted switch-statements
3644         * (allocReg): find free register and allocate it instead of
3645           allocating new registers all the time
3646         * (deassignLRs): prevent POINTER_GET's from being assigned the same
3647           registers as its operands (necessary only for multibyte GETs)
3648
3649 2005-07-01 Raphael Neider <rneider AT web.de>
3650
3651         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
3652           debugging .asm-output macros FENTRY + FEXIT
3653         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
3654           way... I wonder...
3655         * (emitpComment): NEW, printf to pCode
3656         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
3657           offset handling
3658         * (popGetAddr): NEW, variant of popGet to access an immediates
3659           high(er) bytes instead of the n'th byte of memory they reference,
3660           replaced popGet with popGetAddr where neccessary
3661         * (genDataPointerGet): reactivated and fixed implementation
3662         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
3663           accesses
3664         * (genDataPointerSet): fixed multibyte assignments
3665         * (genpic14Code): fixed --i-code-in-asm handling
3666         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
3667         * (genPlus): fixed index-out-of-bounds error
3668         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
3669         * src/pic/ralloc.c: added debugging output macro FENTRY2
3670         * (spillThis): fixed indentation, enbraced for-body for clarity
3671         * (rematStr): commented out as now unused
3672         * (regTypeNum): commented out special spill case (overwrites
3673           arbitrary values)
3674         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
3675
3676 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
3677
3678         * doc/sdccman.lyx: documented sfr16/sfr32,
3679           added example for using storage class with function pointers
3680         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
3681
3682 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
3683
3684         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
3685         * device/lib/_itoa.c,
3686         * device/lib/_ltoa.c: optimized codesize
3687         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
3688           but don't know how to suppress the double warning.
3689         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
3690         * support/Util/SDCCerr.c,
3691         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
3692
3693 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
3694
3695         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
3696           fixed old K&R prototypes
3697         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
3698         * device/lib/_gptrget.c,
3699         * device/lib/_gptrgetc.c,
3700         * device/lib/_gptrput.c: changed versions for new memory indicator values,
3701           also new versions for small generic pointers and banked generic pointers
3702         * src/port.h: added const_name
3703         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
3704         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
3705         * src/SDCCcse.c (findPrevIc): check all associative operators
3706         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
3707         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
3708         * src/SDCCmem.c: updated comments,
3709           set far-space to 0 for pdata, results in optimized code
3710         * src/SDCCmem.h: added macro CONST_NAME
3711         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
3712           moving the info into the highest bits, see also gptrget/gptrput
3713         * src/src.dsp: added sdcc.ico to project files
3714         * src/avr/gen.c (genCast): fixed bug 0x%d
3715         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
3716         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
3717           relation between ptr_type and DCL_TYPE,
3718           (genCast): fixed bug 0x%d
3719         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
3720           (CODE)" for const_name
3721         * src/hc08/gen.c (genCast): fixed bug 0x%d
3722         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
3723           (hc08_port): added "CONST (CODE)" for const_name
3724         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
3725           (aopForRemat, adjustArithmeticResult): disconnected direct relation
3726           between ptr_type and DCL_TYPE,
3727           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
3728           operand* and took AOP() inside function so sfr-ness can be checked,
3729           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
3730           new prototype,
3731           (genFunction, genEndFunction): optimized stack setup,
3732           (genMinus): optimized for literals with ending zeroes (in bytes),
3733           (genCast): fixed bug 0x%d
3734         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
3735           (mcs51_port): added "CONST (CODE)" for const_name
3736         * src/mcs51/peeph.def: made rule 226 more generic
3737         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
3738         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
3739         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
3740         * src/z80/main.c (z80_port): added NULL for const_name,
3741           (gbz80_port): added NULL for const_name
3742         * support/regression/tests/bug663539.c,
3743         * support/regression/tests/sfr16.c: new tests
3744
3745 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3746
3747         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
3748
3749 2005-06-24 Raphael Neider <rneider AT web.de>
3750
3751         * device/lib/pic16/libdev/pic18f[68][567]20.c:
3752           corrected typos...
3753         * device/include/pic16/signal.h: added USBIF
3754           and SIG_USB
3755
3756 2005-06-24 Raphael Neider <rneider AT web.de>
3757
3758         * device/lib/pic16/libdev/pic18f2455.c,
3759           device/include/pic16/pic18f2455.h: NEW
3760         * device/include/pic16/pic18fregs.h,
3761           device/lib/pic16/pics.all,
3762           src/pic16/device.c: added 18f2455
3763         * device/lib/pic16/libdev/pic18f[68][567]20.c,
3764           device/include/pic16/{pic18f[68][567].h,usart.h}:
3765           replaced MULTIPLE_USARTS define with more relaible
3766           compatibility sfrs (for USART access)
3767
3768 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
3769
3770         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
3771           and the output asm file line is printed on two lines.
3772
3773 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3774
3775         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
3776           BGT, BLE, BHI, and BLS instructions
3777         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
3778           genCmpEq): removed
3779         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
3780           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
3781           fixes bug #1216342
3782         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
3783
3784 2005-06-15 Raphael Neider <rneider AT web.de>
3785
3786         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
3787         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
3788         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
3789           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
3790           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
3791
3792 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3793
3794         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
3795           Marcel Telka in bug #1215704
3796
3797 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
3798
3799         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
3800           located in shared memory bank.
3801
3802 2005-05-31 Raphael Neider <rneider AT web.de>
3803
3804         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
3805           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
3806           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
3807
3808 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
3809
3810         * device/lib/_strncpy.c: fixed the fix
3811
3812 2005-05-26 Raphael Neider <rneider AT web.de>
3813
3814         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
3815           initializers with \0, bug #1208187
3816         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
3817           intializers with \0, bug #1208187
3818
3819 2005-05-26 Raphael Neider <rneider AT web.de>
3820
3821         * src/pic16/glue.c (pic16_printIvalChar): fixed string
3822           initializers with \0, bug #1208187
3823         * src/pic16/main.c (_process_pragma): added sanity checks
3824           for stack position and size, emit warnings when appropriate
3825
3826 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3827
3828         * device/lib/_strncpy.c: fixed not filling with \0
3829
3830 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3831
3832         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
3833           createFunction),
3834         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
3835           compound_statement),
3836         * src/SDCCsymt.h,
3837         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
3838
3839 2005-05-24 Raphael Neider <rneider AT web.de>
3840
3841         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
3842
3843 2005-05-24 Raphael Neider <rneider AT web.de>
3844
3845         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
3846           TRISE definitions, closes bug #1162453
3847
3848 2005-05-22 Raphael Neider <rneider AT web.de>
3849
3850         * src/pic16/main.c (_process_pragma): check for missing
3851           arguments to pragmas code and udata
3852         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
3853           consistency fixes to match other headers (thanks to Jim Paris)
3854         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
3855
3856 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3857
3858         * src/SDCCicode.c (isOperandEqual): fixed missing ;
3859
3860 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
3861
3862         * support/regression/tests/bug1198642.c: new test
3863         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
3864         * src/SDCCcse.c (findPrevIc): added comment, please have a look
3865         * support/scripts/resource.h,
3866         * support/scripts/resource.rc,
3867         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
3868         * support/scripts/sdcc.ico: added 32x32 icon
3869
3870 2005-05-18 Raphael Neider <rneider AT web.de>
3871
3872         * device/lib/pic16/libdev/pic18f*.c,
3873         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
3874           keywords to "__sfr" and "__at (X)"
3875         * device/include/pic16/pic18fregs.h: added pic18f4520
3876         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
3877           #1203088 (MPLAB compatibility)
3878
3879 2005-05-17 Raphael Neider <rneider AT web.de>
3880
3881         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
3882         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
3883         * device/lib/pic16/pics.all: added new devices
3884         * src/pic16/device.c: added support for pic18f4520
3885
3886 2005-05-16 Raphael Neider <rneider AT web.de>
3887         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
3888         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
3889         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
3890           convenience function for bit access
3891
3892 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3893
3894         * device/lib/printf_large.c: fixed bug 1193299
3895         * support/regression/tests/bug1057979.c: added test %3.3s
3896
3897 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3898
3899         * device/include/mcs51/8051.h,
3900         * device/include/mcs51/8052.h: made parseable with lint
3901         * device/include/mcs51/lint.h: added include file for (sp)lint
3902         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
3903         * doc/cdbfileformat.lyx,
3904         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
3905
3906 2005-05-14 Raphael Neider <rneider AT web.de>
3907
3908         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
3909         * device/lib/pic16/libc/stdlib/itoa.c (new)
3910         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
3911         * device/lib/pic16/libio/Makefile: exclude subdir according to
3912           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
3913         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
3914         * src/pic16/gen.c (genFunction): prevent annoying warning
3915         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
3916           nameclashes on BeOS
3917         * support/cpp2/cppmain.c (cpp_output_string): new
3918         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
3919           fixes bug 1116802
3920
3921 2005-05-13 Borut Razem <borut.razem AT siol.net>
3922
3923         * src/SDCCmain.c (linkEdit): fixed bug 1195202
3924
3925 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3926
3927         * .version: changed to version 2.5.1; back to bleeding edge development
3928
3929 2005-05-11 Borut Razem <borut.razem AT siol.net>
3930
3931         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
3932           generate PDF version 1.3 documents
3933
3934 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3935
3936         * .version: changed to version 2.5.0
3937
3938 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3939
3940         * doc/sdccman.lyx: updated weblinks, index and smaller updates
3941
3942 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3943
3944         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
3945         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
3946         well as many smaller updates.
3947         * .version: changed to version 2.5.0-pre1
3948
3949 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3950
3951         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
3952
3953 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3954
3955         * support/regression/tests/bug1185672.c: added
3956         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
3957           bug 1185672
3958         * src/mcs51/gen.c (genCall): added comments, made it look safer
3959         * src/mcs51/gen.c (genEndFunction): simplified
3960
3961 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3962
3963         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
3964
3965 2005-04-14 Borut Razem <borut.razem AT siol.net>
3966
3967         * fixed bug 1045046 - SIGSEGV with really simple code?:
3968           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
3969           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
3970
3971 2005-04-14 Borut Razem <borut.razem AT siol.net>
3972
3973         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
3974           src/pic16/device.h: temporarily disabled experimental #inline pragma
3975           for 2.5.0 release
3976
3977 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
3978
3979         * device/include/z80/stdio.h,
3980         * device/include/z80/string.h: removed these highly incomplete files so
3981           SDCC can use the default ones in device/include/
3982
3983 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3984
3985         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
3986         gcc warning.
3987         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
3988         fix sdcpp warnings.
3989
3990 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3991
3992         * device/include/malloc.h: removed redundant __reentrant prototypes
3993         * device/lib/_mullong.c: added working xstack variant in asm (C version
3994           doesn't pass regression tests)
3995         * device/lib/bpx.c: used __data and made bpx char for mcs51
3996         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
3997           (createFunction): fixed bug with xstackPtr
3998         * src/SDCCcse.c: corrected comments
3999         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
4000           (killDeadCode, eBBlockFromiCode): removed unused code
4001         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
4002           corrected comments
4003         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
4004           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
4005           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
4006           (genModOneByte): fixed warning in MSVC
4007         * src/mcs51/main.c (): added comments
4008         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
4009
4010 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
4011
4012         * src/SDCCmain.c (linkEdit): oops, changed one line too many
4013
4014 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
4015
4016         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
4017
4018 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
4019
4020         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
4021         characters arrays of larger size than the declared one.
4022
4023 2005-04-10 Borut Razem <borut.razem AT siol.net>
4024
4025         * src/pic/gen.c (genInline),
4026           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
4027           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
4028           (findNextInstruction), (findPrevInstruction),
4029           (findInstructionUsingLabel),
4030           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
4031         * src/pic/pcode.c (findLabel): added missing '\n'
4032         * src/src.dsp: added SDCCdwarf2.c to the project
4033
4034 2005-04-09 Borut Razem <borut.razem AT siol.net>
4035
4036         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
4037
4038 2005-04-08 Raphael Neider <rneider AT web.de>
4039
4040         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
4041           into the chain after a given one) and mergeDefmapSymbols (combine
4042           defmap entries for each symbol per pcode)
4043         * (createDefmap): have defmap entries merged in the end
4044         * (defmapReplaceSymRef): split defmap entries covering two accesses to
4045           a symbol before replacing one access type's symbol, merge symbols in
4046           the end (replacement symbol might already have an entry)
4047         * (assignValnums): keep reference to written WREG intact
4048
4049 2005-04-08 Raphael Neider <rneider AT web.de>
4050
4051         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
4052           Alpha)
4053
4054 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
4055
4056         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
4057         bytes
4058
4059 2005-04-07 Raphael Neider <rneider AT web.de>
4060
4061         * device/include/pic16/usart.h: added compatibility defines for
4062           devices with more than one USART
4063         * device/include/pic16/pic18f[68][567]20.h: activated above defines
4064
4065 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4066
4067         * device/lib/Makefile.in: updated for port specific include
4068
4069 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4070
4071         * support/regression/ports/mcs51/spec.mk: added mcs51 include
4072
4073 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4074
4075         * device/include/8051.h,
4076         * device/include/8052.h,
4077         * device/include/at89S8252.h,
4078         * device/include/at89c55.h,
4079         * device/include/at89x051.h,
4080         * device/include/at89x51.h,
4081         * device/include/at89x52.h,
4082         * device/include/mcs51reg.h,
4083         * device/include/reg51.h,
4084         * device/include/reg764.h,
4085         * device/include/regc515c.h,
4086         * device/include/sab80515.h: (re)moved these 12 files
4087         * device/include/mcs51/8051.h,
4088         * device/include/mcs51/8052.h,
4089         * device/include/mcs51/at89S8252.h,
4090         * device/include/mcs51/at89c55.h,
4091         * device/include/mcs51/at89x051.h,
4092         * device/include/mcs51/at89x51.h,
4093         * device/include/mcs51/at89x52.h,
4094         * device/include/mcs51/mcs51reg.h,
4095         * device/include/mcs51/reg51.h,
4096         * device/include/mcs51/reg764.h,
4097         * device/include/mcs51/regc515c.h,
4098         * device/include/mcs51/sab80515.h: and added them here
4099
4100 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4101
4102         * device/include/stdarg.h: changed SDCC specific keywords to double
4103           underlined form.
4104         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
4105           mcs51 and ds390.
4106         * device/include/hc08/mc68hc908gp32.h,
4107         * device/include/hc08/mc68hc908jb8.h,
4108         * device/include/hc08/mc68hc908jkjl.h,
4109         * device/include/hc08/mc68hc908qy.h: fixed comments
4110         * device/include/mcs51/README: updated
4111         * device/include/mcs51/c8051f120.h: added PINRSF
4112         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
4113         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
4114           amidst code. Also inline is not supported.
4115
4116 2005-04-06 Raphael Neider <rneider AT web.de>
4117
4118         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
4119         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
4120           callers stack/frame pointers
4121
4122 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4123
4124         * device/include/pic16/usart.h: added, missing in previous commit,
4125         * device/include/pic16/adc.h: fixed typo,
4126         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
4127         commit,
4128         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
4129         <p18fxxx.inc>
4130         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
4131         uninitialized because a bug appears with gplink
4132         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
4133         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
4134         complains for unrecognised option
4135
4136 2005-04-05 Raphael Neider <rneider AT web.de>
4137
4138         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
4139           structs as well (using memcpy)
4140         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
4141           on ISRs (GOTO has no label)
4142         * src/pic16/device.h: added OF_OPTIMIZE_DF
4143         * src/pic16/main.c: added compiler switch --optimize-df to enable the
4144           new data flow analysis/optimization
4145         * src/pic16/pcode.c: added (prototypes for and implementation of)
4146           dataflow analysis functions, fixed pCodeInstructions' inCond and
4147           outCond values, made RCALL a branch instruction
4148         * (pic16_unlinkpCode): keep C line if possible
4149         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
4150           C line moved if possible
4151         * (pic16_getRegFrompCodeOp): NEW, improved version of...
4152         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
4153           to use new pic16_getRegFrompCodeOp (works for more SFRs)
4154         * (pic16_BuildFlow): fixed skip instructions with label (did not start
4155           new flow)
4156         * (pic16_getJumptabpCode): NEW, needed in...
4157         * (LinkFlow): fixed handling of jumptables, calls and conditional
4158           branches
4159         * (pic16_InsertCommentAfter): NEW
4160         * (pic16_pCodeReplace): made verbose and flow preserving
4161         * (AnalyzeFlow): added call to data flow analysis
4162         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
4163         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
4164         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
4165
4166 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4167
4168         * src/SDCCast.c (decorateType): fixed bug #1105626
4169
4170 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
4171
4172         * device/include/asm/pic16/features.h,
4173         * pic18f*.h headers,
4174         * device/include/pic16/adc.h,
4175         * device/include/pic16/delay.h,
4176         * device/include/pic16/i2c.h,
4177         * device/include/pic16/malloc.h,
4178         * device/include/pic16/stdio.h,
4179         * device/include/pic16/stdlib.h,
4180         * device/include/pic16/string.h,
4181         * device/lib/pic16/libc/stdio/printf_tiny.c,
4182         * device/lib/pic16/libc/stdio/printf_small.c,
4183         * device/lib/pic16/libc/stdio/strmgpsim.c,
4184         * device/lib/pic16/libc/stdio/strmmssp.c,
4185         * device/lib/pic16/libc/stdio/strmusart.c,
4186         * device/lib/pic16/libc/stdio/vfprintf.c,
4187         * device/lib/pic16/libc/stdlib/ltoa.c,
4188         * device/lib/pic16/libc/stdlib/putchar.c,
4189         * device/lib/pic16/libc/stdlib/x_ftoa.c,
4190         * device/lib/pic16/libc/stdlib/memchrpgm.c,
4191         * device/lib/pic16/libc/stdlib/memchrram.c,
4192         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
4193         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
4194         * device/lib/pic16/libio/adc/adcbusy.c,
4195         * device/lib/pic16/libio/adc/adcread.c,
4196         * device/lib/pic16/libio/adc/adcsetch.c,
4197         * device/lib/pic16/libio/usart/ubaud.c,
4198         * device/lib/pic16/libio/usart/ubusy.c,
4199         * device/lib/pic16/libio/usart/udrdy.c,
4200         * device/lib/pic16/libio/usart/uopen.c,
4201         * device/lib/pic16/libio/usart/uputc.c,
4202         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
4203         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
4204         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
4205         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
4206         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
4207         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
4208         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
4209         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
4210         specific keywords to double underlined form,
4211         * device/lib/pic16/libc/Makefile.rules,
4212         * device/lib/pic16/libsdcc/Makefile.rules,
4213         * device/lib/pic16/libm/Makefile,
4214         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
4215         to compile with C standard set in Makefile.common
4216         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
4217         rand.c and crc.c in compilation process,
4218         * device/lib/pic16/libsdcc/int/divuint.c,
4219         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
4220         `c' from signed to unsigned,
4221         * device/lib/pic16/startup/crt0.c,
4222         * device/lib/pic16/startup/crt0i.c,
4223         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
4224         keywords to double underlined form, bug fixes in _do_cinit function
4225         which prevented the correct initialization of the .idata segment,
4226         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
4227         core to enter a infinite loop
4228         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
4229
4230 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4231
4232         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
4233
4234 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4235
4236         * device/include/Makefile.in: add support for hc08 subdirectory
4237         * device/include/hc08/: new subdirectory
4238         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
4239         Lucas Loizaga, thanks!
4240         * device/include/hc08/mc68hc908qy.h,
4241         * device/include/hc08/mc68hc908gp32.h,
4242         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
4243         their own directory. Changed internal macro names to use the compiler
4244         reserved namespace. Changed SDCC specific keywords to double
4245         underlined form.
4246         * device/include/math.h,
4247         * device/include/malloc.h,
4248         * device/include/stdarg.h,
4249         * device/include/stdbool.h
4250         * device/include/string.h,
4251         * device/include/tinibios.h,
4252         * device/include/ds400rom.h,
4253         * device/include/8051.h,
4254         * device/include/8052.h,
4255         * device/include/80c51xa.h,
4256         * device/include/at89c55.h,
4257         * device/include/at89S8252.h,
4258         * device/include/at89x51.h,
4259         * device/include/at89x52.h,
4260         * device/include/ds80c390.h,
4261         * device/include/reg764.h,
4262         * device/include/regc515c.h,
4263         * device/include/sab80515.h,
4264         * device/include/mcs51/c8051f000.h,
4265         * device/include/mcs51/c8051f018.h,
4266         * device/include/mcs51/c8051f020.h,
4267         * device/include/mcs51/c8051f040.h,
4268         * device/include/mcs51/c8051f060.h,
4269         * device/include/mcs51/c8051f120.h,
4270         * device/include/mcs51/c8051f300.h,
4271         * device/include/mcs51/c8051f310.h,
4272         * device/include/mcs51/c8051f320.h,
4273         * device/include/mcs51/c8051f330.h,
4274         * device/include/mcs51/c8051f350.h,
4275         * device/include/z180.h: Changed SDCC specific keywords to double
4276         underlined form.
4277
4278 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
4279
4280         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
4281         18F4455,
4282         * (pic16_assignConfigWordValue): disable testing of configuration
4283         register value with config mask,
4284         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
4285         function with port->fun_prefix,
4286         * (genFunction): when generating a naked interrupt function never
4287         create an absolute segment placed in interrupt vector address, place
4288         the actual interrupt function at IVA instead, when an interrupt
4289         function is generated with unspecified interrupt then do not create
4290         the absolute section,
4291         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
4292         code for generating a call to generic pointer get/put function with
4293         a call to function pic16_callGenericPointer(),
4294         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
4295         the call to the generic pointer get/put functions with prefixing the
4296         function name with port->fun_prefix,
4297         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
4298         * src/pic16/main.c (_process_pragma): prefix function with
4299         port->fun_prefix,
4300         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
4301         calling assembler, old 18Fxxxx macro is deprecated,
4302         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
4303         PC_ASMDIR in while condition,
4304         * (findInstruction): add PC_ASMDIR in while condition,
4305         * (buildCallTree): prefix main with port->fun_prefix,
4306         * (pic16_pCode2str): fixed bug that didn't emit the memory access
4307         identifier for variable with banked access in instructions BTFSS,
4308         BTFSC, BCF, BSF, BTG
4309         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
4310         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
4311         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
4312         perform optimization when enviroment variable NO_REG_OPT is set,
4313         * (insideLRBlock): NEW, return 1 if register is inside an
4314         INF_LOCALREGS block,
4315         * (RemoveRegFromLRBlock): remove a register that is completely
4316         eliminated by register optimization, but it is still left in local
4317         register store/restore in/from stack block,
4318         * (Remove2pcodes): after removing register, check to see if it
4319         should be removed from local register store/restore in/from stack
4320         block,
4321         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
4322         DUMMY_READ_VOLATILE,
4323
4324         * device/include/pic16/adc.h: minor prototype modifications and
4325         update,
4326         * device/include/pic16/malloc.h: added GPL notice various
4327         modifications,
4328         * device/include/pic16/stdint.h: NEW, standard header for ints
4329         * device/include/pic16/delay.h: NEW, header for delay functions,
4330         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
4331         delay1mtcy,
4332         * device/include/pic16/signal.h: NEW, header providing helper macros
4333         for implementing signal handlers,
4334         * device/include/pic16/stdio.h: added prototypes for functions,
4335         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
4336         prototypes for stdin and stdout, added macro PUTCHAR to
4337         automatically implement putchar function prototype,
4338         * device/include/pic16/usart.h: modified and updated USART library,
4339         * device/lib/pic16/libio/adc/,
4340         * device/lib/pic16/libio/i2c: some modifications to improve library
4341         performance,
4342         * device/lib/pic16/libc/stdio/: modifications for the new printf*
4343         family of functions,
4344         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
4345         family of functions and other sources,
4346         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
4347         of the PIC18Fxx[28] devices,
4348         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
4349         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
4350         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
4351         _do_cinit function, because the previous failed when local variables
4352         where not placed in the same memory bank,
4353         * device/lib/pic16/libsdcc/char/: various modifications to improve
4354         library performance,
4355         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
4356         information on the new functions of the c library and more...
4357
4358 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4359
4360         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
4361
4362 2005-03-26 Raphael Neider <rneider AT web.de>
4363
4364         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
4365           if condition == CARRY)
4366         * (genCmp): adapted to new genSkipc semantics
4367         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
4368           on rIfx (genCmp was broken)
4369
4370 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4371
4372         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
4373         * src/z80/main.c (_keywords[]),
4374         * src/SDCCglobal.h (struct options),
4375         * src/SDCC.y,
4376         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
4377         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
4378         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
4379         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
4380         always available in leading double underscore form. The C99 support is
4381         mostly missing, but it's a start.
4382         * support/regression/tests/bug-227710.c: fixed nonconforming use of
4383         reserved identifier "__data".
4384
4385 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4386
4387         * src/mcs51/peeph.def: fixed bug 1170013
4388
4389 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
4390
4391         * device/include/mcs51reg.h: fixed bug 842007
4392
4393 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4394
4395         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
4396         last time.
4397
4398 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4399
4400         * src/port.h (struct PORT),
4401         * src/avr/ralloc.c (avr_assignRegisters),
4402         * src/avr/main.c,
4403         * src/ds390/ralloc.c (ds390_assignRegisters),
4404         * src/ds390/main.c,
4405         * src/hc08/ralloc.c (hc08_assignRegisters),
4406         * src/hc08/main.c,
4407         * src/mcs51/ralloc.c (mcs51_assignRegisters),
4408         * src/mcs51/main.c,
4409         * src/pic/ralloc.c (pic14_assignRegisters),
4410         * src/pic/main.c,
4411         * src/pic16/ralloc.c (pic16_assignRegisters),
4412         * src/pic16/main.c,
4413         * src/xa51/ralloc.c (xa51_assignRegisters),
4414         * src/xa51/main.c,
4415         * src/z80/ralloc.c (z80_assignRegisters),
4416         * src/z80/ralloc.h,
4417         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
4418         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
4419         * src/SDCCcse.h,
4420         * src/SDCCdflow.c (computeDataFlow),
4421         * src/SDCCdflow.h,
4422         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
4423         * src/SDCCloop.h,
4424         * src/SDCCcflow.c (*),
4425         * src/SDCCcflow.h,
4426         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
4427         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
4428         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
4429         immedDom() returning wrong block; probably fixes bug #1160833)
4430
4431 2005-03-20 Borut Razem <borut.razem AT siol.net>
4432
4433         * support/scripts/inc2h.pl: WIN32 port
4434
4435 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
4436
4437         * device/lib/makefile.in: added abs.c and labs.c
4438
4439 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
4440
4441         * device/include/stdint.h: added
4442         * device/lib/abs.c: added
4443         * device/lib/labs.c: added
4444         * device/include/stdlib.h: added abs() and labs() prototypes
4445         * device/lib/libsdcc.lib: added abs and labs
4446         * device/include/float.h,
4447         * device/lib/_fsmul.c,
4448         * device/lib/printf_fast.c,
4449         * device/lib/printf_tiny.c: updated comments
4450
4451 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4452
4453         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
4454         bug #1164313
4455
4456 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4457
4458         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
4459         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
4460
4461 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
4462
4463         * device/lib/printf_large.c: removed inline assembly for portability and
4464           readability. Use printf_fast if speed or size are more important.
4465         * src/pic16/gen.c: removed conditions around use of DEBUGpc
4466         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
4467
4468 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
4469
4470         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
4471         prevent compiler warning
4472
4473 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4474
4475         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
4476         moved to level 0 and declared as static. Also they are explicit
4477         placed in access bank. This was necessery because some times they
4478         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
4479         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
4480         optimizations. Currently only compare to unsigned char is implemented,
4481         * src/pic16/gen.c: added fReturnIdx array,
4482         * (struct resolvedIfx) is moved to gen.h and made public,
4483         * (struct _G): added sregsAlloc and sregsAllocSet fields,
4484         * (aopForSym): added an optimization to directly store in stack of
4485         the operand of a SEND iCode,
4486         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
4487         but as registers instead (AOP_REG) using the fReturnIdx array,
4488         * (pic16_freeAsmop): remove the freed register from the
4489         _G.sregsAlloc field,
4490         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
4491         a compare of 'WREG',
4492         * (pic16_popGetTempRegCond): changed function prototype, now
4493         function takes also a bitVector argument v which holds the current
4494         set of registers that are allocated for stack access by aopForSym,
4495         registers allocated in aopForSym for accessing stack symbols are not
4496         any more part of the functions usedRegs field,
4497         * (genCall): some times aopOp is called for a stack variable to be
4498         send, aopForSym might perform the push, if this is true make sure
4499         that genCall doesn't push the variable twice by testing _G.resDirect,
4500         * (genFunction): changed testing for unspecified interrupt number
4501         from 256 to INTNO_UNSPEC,
4502         * modified selection scheme of frame pointer generation. Previously
4503         if function did use local registers a frame pointer was generated,
4504         now a frame pointer is generated only if function has arguments
4505         (that need PLUSW2 register access), or has stack arguments, or the
4506         compiler is not instructed to omit the frame pointer,
4507         * (genEndFunction): before restoring local registers that were saved
4508         in the function preamble, also restore the registers that *might*
4509         have been allocated for stack access,
4510         * (genRet): removed some old comments,
4511         * (genCmp, the active (RN's) version): added a call to the
4512         pic16_genCmp_special function to perform the compare with a more
4513         robust and optimized way,
4514         * (genInline): a feature has been added in inline code generation,
4515         which allows a wildcard variable substitution when writing inline
4516         assembly. Code is incomplete and experimental therefore undocumented,
4517         * (genCast): changed order of aopOp for result and right to allow
4518         aopForSym to directly load the result if possible,
4519         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
4520         perform an optimized compare on some selected special occasions,
4521         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
4522         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
4523         generate an IVT any more,
4524         * src/pic16/main.c (pic16_optionsTable): added command line option
4525         --optimize-cmp,
4526         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
4527         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
4528         macros,
4529         * src/pic16/NOTES: Raphael Neider added in list of active developers
4530         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
4531         jumptable_end to prevent bug #,
4532         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
4533         inCond and outCond fields,
4534         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
4535         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
4536         turn off register spilling,
4537         * (packRegsForOneUse): synced with other ports' versions although it
4538         is not used currently,
4539         * (pic16_packRegisters): added an optimization while reading
4540         structure bitfields, some registers may be saved (malloc code is
4541         decreased by 80 bytes)
4542
4543 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
4544
4545         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
4546         left is a bitfield, if yes, then don't optimize assignment. Perhaps
4547         this can be optimized more?
4548
4549 2005-03-10 Raphael Neider <rneider AT web.de>
4550
4551         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
4552           genNearPointerGet): (hopefully) fixed access to bitfields via
4553           pointers (p->bitN = x; and x = p->bitN; failed)
4554
4555 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
4556
4557         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
4558
4559 2005-03-09 Raphael Neider <rneider AT web.de>
4560
4561         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
4562
4563 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
4564
4565         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
4566         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
4567           (regTypeNum): set REG_BIT type if necessary
4568         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
4569         * support/regression/tests/critical.c: check bug 1144613
4570
4571 2005-03-02 Raphael Neider <rneider AT web.de>
4572
4573         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
4574
4575 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4576
4577         * src/avr/ralloc.c (serialRegAssign),
4578         * src/ds390/ralloc.c (serialRegAssign),
4579         * src/hc08/ralloc.c (serialRegAssign),
4580         * src/mcs51/ralloc.c (serialRegAssign),
4581         * src/pic/ralloc.c (serialRegAssign),
4582         * src/pic16/ralloc.c (serialRegAssign),
4583         * src/xa51/ralloc.c (serialRegAssign),
4584         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
4585
4586 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
4587
4588         * src/SDCCast.c (decorateType): fixed bug 1124787
4589
4590 2005-02-20 Hubert Sack <sack AT digiplan.de>
4591         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4592
4593         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
4594         patch #1121755
4595
4596 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4597
4598         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
4599         to keep the correct label reference count when adding/removing references
4600         to labels. A peephole file using this is appended to patch #1144962.
4601
4602 2005-02-14 Raphael Neider <rneider AT web.de>
4603
4604         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
4605         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
4606         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
4607           retrievals of result operand's value on assignment
4608
4609 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
4610
4611         * device/include/pic16/string.h: modified prototype for memccpy()
4612         to memccpy(void *, void *, char, size_t)
4613         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
4614         check whether to omit frame pointer or not,
4615         * (genInline): convert all occurences of "\n" to LF in inline
4616         assembler blocks, this helps formatting the inline text,
4617         * (pic16_loadFSR0): modified prototype,
4618         * (genNearPointerGet, genNearPointerSet): reorganization of code,
4619         removed some 8051 legacy code,
4620         * (genPackBits): enabled handling bitfields exceeding one byte in size,
4621         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
4622         before allocating temporary registers in functions,
4623
4624 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4625
4626         * support/regression/tests/bitvars.c: corrected the "fix"
4627
4628 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4629
4630         * support/regression/tests/bitvars.c,
4631         * support/regression/tests/bitwise.c,
4632         * support/regression/tests/rotate.c: "fixed" problems on Alpha
4633
4634 2005-02-10 Raphael Neider <rneider AT web.de>
4635
4636         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
4637           different size for Alpha
4638         * src/pic16/gen.c (genCmpEq) : improved compare with 0
4639
4640 2005-02-09 Raphael Neider <rneider AT web.de>
4641
4642         * src/SDCC.lex(doPragma) : save and restore warning options as well
4643           (also added new stack plus clone- and copyAndFreeSDCCERRG())
4644         * have #pragma less_pedantic set the errorlevel to WARNING
4645           (fixes #1117001)
4646         * (cloneOptimize) : fixed wrong malloc's size
4647         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
4648           facilitate correct handling of #pragma (save|restore)
4649
4650 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4651
4652         * src/mcs51/gen.c: removed non-standard C nameless struct/union
4653
4654 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
4655
4656         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
4657
4658 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
4659
4660         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
4661
4662 2005-02-02 Raphael Neider <rneider AT web.de>
4663
4664         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
4665         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
4666         * (pic16_storeForReturn): fixed to allow returning function pointers
4667         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
4668         * device/include/pic16/{stddef.h,stdbool.h}: added
4669
4670 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
4671
4672         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
4673
4674 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
4675
4676         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
4677         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
4678          appeared to be required
4679
4680 2005-01-31 Borut Razem <borut.razem AT siol.net>
4681
4682         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
4683           include/mcs51 and include/z80 directories to the package
4684
4685 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4686
4687         * src/hc08/gen.c (genFunction): fixed bug #1112752
4688
4689 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4690
4691         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
4692
4693 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4694
4695         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
4696
4697 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
4698
4699         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
4700
4701 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
4702
4703         * device/include/c8051fxxx.h: removed these 6 files
4704         * device/include/mcs51/c8051fxxx.h: added these 11 new files
4705
4706 2005-01-26 Raphael Neider <rneider AT web.de>
4707
4708         * src/pic16/gen.c (genAssign): fixed assignment from longs
4709           in codespace (were cut to three bytes)
4710         * (genDummyRead): implemented (except for CODESPACE...),
4711           fixed bug #1108575
4712         * src/pic16/glue.c (emitStatistics): beautified
4713         * device/lib/pic16/libm/Makefile: added include path
4714
4715 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4716
4717         * src/z80/gen.c (aopPut): fixed bug #1103902
4718
4719 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4720
4721         * device/lib/expf.c: fixed bug #1095792
4722
4723 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
4724
4725         * device/lib/pic16/libm: added Math library sources
4726
4727 2005-01-24 Raphael Neider <rneider AT web.de>
4728
4729         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
4730           to enable upcast to pCodeOpReg2 (there is no type tag to
4731           differenciate the two and pic16_popGet2p cast into PCOR2)
4732         * src/pic16/main.c (_process_pragma): fixed another malloc bug
4733           (sizeof(sectNames) changed to sizeof(sectName))
4734           Both patches fix segfaults under MinGW.
4735
4736 2005-01-23 Raphael Neider <rneider AT web.de>
4737
4738         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
4739           Safe_[mc]?alloc()'ed variables
4740         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
4741           of (byte sized) temporaries (assign them to WREG for now)
4742         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
4743           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
4744           this might fix SIGSEGVs on MinGW...
4745         * src/SDCCopt.c (killDeadCode): restored original behaviour
4746           (volatile operands might get thrown away though)
4747
4748 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
4749
4750         * src/pic16/gen.c: fixed bug #1106975,
4751         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
4752         pointer update, INTCON is saved, global interrupts are disabled and
4753         restored after updateing TOS.
4754         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
4755         * added function attribute 'shadowregs' to take advantage of shadow
4756         registers,
4757         * added function attribute 'wparam' as an alternative to the wparam
4758         pragma,
4759         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
4760         user declares a non-ISR function as 'shadowregs',
4761         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
4762
4763 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
4764
4765         * .version: bumped version number to 2.4.8
4766         * device/lib/pic16/pics.all: list of PIC18F devices supported by
4767         pic16 port,
4768         * device/lib/pic16/libio/i2c/: I2C module support library,
4769         * device/include/pic16/i2c.h: I2C support library header,
4770         * device/lib/pic16/libc/stdio/: standard IO support sources,
4771         * (printf_small.c): printf_small() source, supports float print,
4772         * (printf_tiny.c): printf_tiny() source, does not support floats,
4773         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
4774         enable global optimizations for entire library source, other
4775         Makefiles in the source tree are also modified to reflect this,
4776         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
4777         function,
4778         * doc/sdccman.lyx: updated to reflect new changes,
4779         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
4780         sym->onStack if-case,
4781         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
4782         sbit, idata, _idata, xdata, _xdata,
4783         * added pragma library, to link an external library, (see doc),
4784         * removed command line options, --pomit-config-words, --pomit-ivt,
4785         --pleave-reset-vector,
4786         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
4787         when calling assembler to reflect memory model used, also define
4788         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
4789         reflect stack model used,
4790         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
4791         on stack return NULL,
4792
4793 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4794
4795         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
4796           of the operands is volatile. Fixes #1020220
4797
4798 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4799
4800         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
4801         * (OptimizeRegUsage): make sure that there is really no other flow where
4802           the first pCode is used
4803
4804 2005-01-22 Raphael Neider <rneider AT web.de>
4805
4806         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
4807           to fix #1106967 (pCode->seq are not set up correctly)
4808
4809 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4810
4811         * src/SDCCglue.c (glue): make sure code area is declared before the
4812         static initialization area.
4813
4814 2005-01-21 Raphael Neider <rneider AT web.de>
4815
4816         * device/lib/Makefile.in: fixed test for pic16 install dir
4817         * device/lib/pic16/*/Makefile*: modified compile flags to enable
4818           optimizations
4819         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
4820           added --optimize-goto compiler switch and pragma wparam documentation
4821         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
4822         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
4823           and PRODH closing bug #1071770 (peephole optimizer)
4824
4825 2005-01-19 Raphael Neider <rneider AT web.de>
4826
4827         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
4828           cmdLine buffers (used when calling sdcpp...) are large enough
4829           (MAX_PATH=256 truncates arguments leading to system halts when
4830           used in MinGW...)
4831         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
4832         * (genUminus): rewritten to for efficiency
4833         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
4834           used uninitialized in some cases)
4835         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
4836           copy the third byte from the int -- now assumes 0x80 (data memory)
4837         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
4838           operands (genAddLit expects the iCode's operands to swapped as
4839           well), fixed leftover bytes (crashed for short left operands)
4840         * (pic16_genMinusDec): performance improvements, removed false
4841           PIC14 emitSKPNCs
4842         * (pic16_genMinus): fixed to cope with differently sized operands
4843         * src/pic16/glue.c (pic16_glue): added new banksel optimization
4844           for --obanksel > 1
4845         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
4846         * src/pic16/graph.[ch]: implementation of directed graphs, used by
4847           new banksel optimization
4848         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
4849           analysis for temporary registers (segfaults...)
4850         * src/pic16/peeph.def: added rule
4851
4852 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
4853
4854         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
4855         which converts a float number to its ASCII representation
4856         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
4857         functions to convert the fractional and integer part of a float to ASCII,
4858         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
4859         realloc.c): added _MALLOC_SPEC to explicit place variables in data
4860         ram
4861         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
4862         _STATMEM macros,
4863         * device/include/pic16/adc.h: added GPL info,
4864         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
4865         a pCodeOp as tested operand,
4866         * (genNearPointerGet): optimized bit testing, does not use
4867         intermediate register for bit value, test directly instead with
4868         BTFSS, BTFSC, works only for single bits,
4869         * (genpic16Code): dump the name of the iCode in the asm,
4870         * src/pic16/ralloc.c (decodeOp): removed static declaration and
4871         renamed to pic16_decodeOp,
4872         * (serialRegAssign): do not allocate a temporary register for iCode
4873         sequences that test a single bit for 1/0
4874
4875 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
4876
4877         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
4878         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
4879         access stack and frame pointers. They are initially assigned to
4880         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
4881         accessing SFRs. Updated all occurences of modification of stack or
4882         frame pointer in gen.c and pcode.c,
4883         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
4884         assigning of a literal value to pointers,
4885         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
4886         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
4887         selected
4888
4889 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
4890
4891         * doc/sdccman.lyx: update documentation about stack pragma, added
4892         some info for stack memory models
4893
4894 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4895
4896         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
4897
4898 2005-01-08 Raphael Neider <rneider AT web.de>
4899
4900         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
4901           udata sections to fix bug #1097823
4902
4903 2005-01-05 Raphael Neider <rneider AT web.de>
4904
4905         * src/pic16/gen.c (genGenericShift): added handling of differently
4906           sized left operand and result
4907
4908 2005-01-04 Raphael Neider <rneider AT web.de>
4909
4910         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
4911         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
4912           to hold the condition bit)
4913         * added new version of genCmp (old code available via #define)
4914         * added new version of genShiftLeft/genShiftRight in a generic
4915           way, now supports shifting by negative values
4916         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
4917           shiftCount (expected by genGenericShift)
4918         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
4919         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
4920           dump
4921         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
4922           is an invalid literal too...)
4923
4924 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
4925
4926         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
4927         from Raphael Neider,
4928         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
4929         for 8-bit literals. This fixes some literal operands which are sign
4930         extended to 16-bits ints when instruction needs only 8-bits.
4931
4932 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
4933
4934         * device/lib/logf.c: added mcs51 assembly version
4935         * device/lib/expf.c: added mcs51 assembly version
4936         * device/lib/_logexpf.c: new shared asm code for expf and logf
4937         * device/include/math.h: add defines for assembly math library
4938         * device/lib/Makefile.in: build new _logexpf.c
4939         * device/lib/libfloat.lib: use new _logexpf.c
4940
4941 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4942
4943         * src/pic/device.c
4944         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
4945           device types which have less than 0x7f registers.
4946
4947 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4948
4949         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
4950
4951 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4952
4953         * device/lib/printf_fast.c: only build on supported arch.
4954         * device/lib/printf_tiny.c: only build on supported arch.
4955         * device/lib/printf_fast_f.c: only build if asm float lib
4956         * device/lib/_fsget1arg.c: only build if asm float lib
4957         * device/lib/_fsget2args.c: only build if asm float lib
4958         * device/lib/_fsnormalize.c: only build if asm float lib
4959         * device/lib/_fsreturnval.c: only build if asm float lib
4960         * device/lib/_fsrshift.c: only build if asm float lib
4961         * device/lib/_fsswapargs.c: only build if asm float lib
4962         * device/include/stdio.h: don't provide print_fast,
4963           print_fast_f, print_tiny prototypes if --xstack used
4964
4965 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
4966
4967         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
4968         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
4969           to the SOURCES
4970
4971 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4972
4973         * device/lib/printf_fast_f.c: same as printf_fast, but
4974           with floating point enabled
4975         * device/lib/printf_fast.c: minor tweaks
4976         * device/include/stdio.h: add printf_fast_f
4977
4978 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4979
4980         * src/SDCCmain.c: make --float-reent default for mcs51
4981         * device/lib/_fsadd.c: added mcs51 assembly version
4982         * device/lib/_fssub.c: added mcs51 assembly version
4983         * device/lib/_fsmul.c: added mcs51 assembly version
4984         * device/lib/_fsdiv.c: added mcs51 assembly version
4985         * device/lib/_fseq.c: added mcs51 assembly version
4986         * device/lib/_fsneq.c: added mcs51 assembly version
4987         * device/lib/_fsgt.c: added mcs51 assembly version
4988         * device/lib/_fslt.c: added mcs51 assembly version
4989         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
4990         * device/lib/Makefile.in: add _fscmp to build
4991         * device/lib/libfloat.lib: add _fscmp to build
4992
4993 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4994
4995         * device/lib/_fs2slong.c: added mcs51 assembly version
4996         * device/lib/_fs2sint.c: added mcs51 assembly version
4997         * device/lib/_fs2schar.c: added mcs51 assembly version
4998         * device/lib/_fs2ulong.c: added mcs51 assembly version
4999         * device/lib/_fs2uint.c: added mcs51 assembly version
5000         * device/lib/_fs2uchar.c: added mcs51 assembly version
5001         * device/lib/_slong2fs.c: added mcs51 assembly version
5002         * device/lib/_sint2fs.c: added mcs51 assembly version
5003         * device/lib/_schar2fs.c: added mcs51 assembly version
5004         * device/lib/_ulong2fs.c: added mcs51 assembly version
5005         * device/lib/_uint2fs.c: added mcs51 assembly version
5006         * device/lib/_uchar2fs.c: added mcs51 assembly version
5007         * device/include/float.h: added #define to select asm vs c
5008
5009 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
5010
5011         * device/lib/printf_fast.c: improvements to float output
5012         * device/include/float.h: add defines for assembly float library
5013         * device/lib/_fsget1arg.c: receive 1 float arg
5014         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
5015         * device/lib/_fsnormalize.c: normalize a float
5016         * device/lib/_fsreturnval.c: return float, various helper routines
5017         * device/lib/_fsrshift.c: right shift a float's mantissa
5018         * device/lib/_fsswapargs.c: swap 2 floats
5019         * device/lib/Makefile.in: build these 6 new files for mcs51
5020         * device/lib/libfloat.lib: add these 6 files to the library
5021
5022 2004-12-26 Borut Razem <borut.razem AT siol.net>
5023
5024         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
5025           built by gcc 3.4.2
5026
5027 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
5028
5029         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
5030           and fully reentrant and register bank neutral.
5031         * device/lib/printf_fast.c: added float (not enabled by default),
5032           added compact/slower integer (also not enabled by default),
5033           improved size/speed of fast integer code, other minor changes
5034         * device/include/stdio.h, device/lib/Makefile.in,
5035           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
5036
5037 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
5038
5039         * src/pic16/pcode.c: declaring variables other than at the start of a
5040           block is not supported in C by VC6.
5041
5042 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
5043
5044         * applied a previous patch from Raphael Neider that wasn't included
5045         in the previous commits, which fixes infinite loops within jumptable
5046         improvements,
5047         * made some fixes that previous patches introduced
5048
5049 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
5050
5051         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
5052         that fixes an issue with AOP_PCODE asmop's offset,
5053         * (pic16_popCopyReg): update instance field too,
5054         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
5055         function of pic port,
5056         * (genCmp, genAnd, genAssign),
5057         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
5058
5059 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
5060
5061         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
5062         variables initial values to idata section,
5063         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
5064         variables in some functions. This utilizes parmBytes field of iCode
5065         structure to hold the offset of the variable in stack. (might be
5066         able to use the stack field too?)
5067         * applied patch from Raphael Neider # ### , # ###
5068         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
5069         variable initial values in idata section,
5070         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
5071         for static variables with initial value
5072         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
5073         applied fix in while loop from Raphael Neider.
5074
5075 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
5076
5077         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
5078         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
5079         * src/ds390/ralloc.c (serialRegAssign): spill bits
5080         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
5081         * support/Util/SDCCerr.c,
5082         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
5083         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
5084         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
5085
5086 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
5087
5088         * device/include/sdcc-lib.h: inserted LGPL, added includes
5089           asm/ds390/features.h and asm/mcs51/features.h
5090         * device/include/asm/default/features.h,
5091         * device/include/asm/gbz80/features.h,
5092         * device/include/asm/z80/features.h: added empty _AUTOMEM
5093           and _STATMEM
5094         * device/include/asm/ds390/features.h,
5095         * device/include/asm/mcs51/features.h: added files with defines for
5096           _AUTOMEM and _STATMEM indicating automatic and static storage class
5097         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
5098         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
5099         * src/SDCCicode.c (geniCodeCast),
5100         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
5101         * src/SDCCloop.c (loopInduction): removed unused variable lr
5102         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
5103           to convertToFcall to include char modulo (RFE 1065037), added check
5104           if left operand is unsigned and use abs of literal value
5105         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
5106           as it doesn't work after conversion from peephole.def to peephole.rul
5107         * src/mcs51/gen.c (toBoolean): added check for size,
5108           (genModOneByte): optimized code for signed char modulo a literal
5109           power of 2 (thanks to Hubert Sack),
5110           (genRRC): removed unnecessary "clr c",
5111           (genRLC): replaced "add a,acc" with cheaper "rlc a"
5112         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
5113           jump optimization,
5114           swapped rules 256.c and 256.d,
5115           extended 256.d by using new multiple checks (thanks Erik),
5116           added rules 256.e and 256.f,
5117           updated rule 261.a and 261.b to new generated code
5118         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
5119
5120 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5121
5122         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
5123           induction related bugs, including first part of bug #1074377
5124
5125 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
5126
5127         * applied patch from bug-report #1076292,
5128         * applied patches for genAnd and Goto-optimizations for Raphael
5129         Neider,
5130         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
5131         dump a less iCode information,
5132         * src/pic16/device.h (pic16_options_t): added field debgen,
5133         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
5134         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
5135         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
5136         puclic,
5137         * (various functions): added macros FENTRY and FENTRY2 to functions,
5138         to emit function prologue,
5139         * (various functions): fixed indentation,
5140         * (genNearPointerGet): fixed loading of FSR0,
5141         * (genPackBits): applied patch from Raphael Neider to fix updating
5142         of FSR0 and touching only the modified bits,
5143         * src/pic16/genarith.c (various functions): added macros FENTRY to
5144         emit function prologue in comments,
5145         * src/pic16/pcode.h: added functions debugf2, debugf3,
5146         * src/pic16/ralloc.c: partial fix for packForPush caused
5147         segmentation fault,
5148
5149 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5150
5151         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
5152           <stsp AT users.sourceforge.net> with reversed byte order
5153         * support/regression/tests/rotate.c: added (ds390 skips some tests)
5154
5155 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5156
5157         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
5158           bug #1074377
5159         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
5160         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
5161
5162 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
5163
5164         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
5165
5166 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5167
5168         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
5169           conditions,
5170           (setFromConditionArgs): friendly operand parser for peephole rules,
5171           (operandBaseName, operandsNotRelated): new peephole condition
5172           "operandsNotRelated" -- similar to "operandsNotSame", but takes
5173           architecture specific register naming into account, handles n-way
5174           comparisons, and supports quoted literals
5175         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
5176
5177 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5178
5179         * src/mcs51/peeph.def: fixed bug #1076940
5180
5181 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
5182
5183         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
5184
5185 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5186
5187         Adding support for replacing ljmps with sjmps in jumptables
5188         generated for switch statements. For now you need to set the
5189         environment variable SDCC_SJMP_JUMPTABLE to enable this.
5190         Now 4 algorithms for mcs51 jumptable generation are used:
5191         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
5192         addresses loaded pc-relative for up to 112 cases and stack-pushing
5193         target addresses loaded with offset from dptr for up to 256 cases.
5194
5195         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
5196         * src/mcs51/main.c: adapted constants for switch table generation
5197         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
5198
5199 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
5200
5201         * device/lib/printf_large.c (_print_format): fixed bug 1073386
5202         * support/regression/tests/bug1057979.c: added test for bug 1073386
5203
5204 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
5205
5206         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
5207         compilers
5208
5209 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
5210
5211         * src/pic16/device.h,
5212         * src/pic16/genarith.c,
5213         * src/pic16/glue.c,
5214         * src/pic16/main.c,
5215         * src/pic16/pcode.c: applied patches #1068154 and #1070213
5216
5217 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
5218
5219         Large cummulative patch for pic16 port.
5220         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
5221         to call when a stack overflow occurs,
5222         * (malloc.h): added CVS Id tag,
5223         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
5224         variable,
5225         * added libc directory. The current version of LibC contains string
5226         functions, ctype functions and macros and some functions of the
5227         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
5228         be extensively tested in the future. Standard disclaimer here.
5229         Library is not automatically build yet. But one can build it by
5230         invoking 'make' inside the libc directory.
5231         * added ADC library under libio. Preliminary version yet.
5232
5233         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
5234         * src/pic16/gen.c (aopForRemat): asmop size is filled by
5235         aopForRemat() now and not by pic16_aopOp(),
5236         * (pic16_popGetTempReg): removed warning messgae when allocating
5237         temporary registers, its a buggy feature and will be removed,
5238         * (pic16_popGet): set register instance field in AOP_CRY,
5239         * (pic16_outBitC): fixed for results in size greater than 1,
5240         * (genUminusFloat): fixed for pic16, ported code from mcs51,
5241         * (pic16_storeForReturn): optimized return of 0,
5242         * (genCmp): experimental code for new genCmp which uses PIC18's
5243         special compare&skip instructions. Initial tests fail some times
5244         with variables grater than 1 byte in size, so new code is disabled,
5245         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
5246         a single bit,
5247         * (genCast): began a fix to optimize the casting of a bit to another
5248         bit, now assigning a bitfield to another bitfield will fail, sorry,
5249         * src/pic16/main.c: disabled the use of lr-support feature,
5250         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
5251         * added some function prototypes, added function _debugf prototype,
5252         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
5253         bits with offset (case PO_GPR_BIT),
5254         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
5255         command line,
5256         * (isBankInstruction): modified to return 0 for no banking instruction,
5257         and 1 for banking instruction,
5258         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
5259         caused stop processing pCodes after a inline assembly block,
5260         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
5261         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
5262         registers when it shouldn't,
5263         * src/pic16/ralloc.c (allocReg): add preliminary support for
5264         supporting a limited set of temporary registers,
5265
5266 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5267
5268         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
5269           genDataPointerSet): ensure assignments always copy in MSB to LSB
5270           order,
5271           (loadRegFromAop): recognize CLRH optimization,
5272           (genFunction): optimize RECEIVE iCodes in reentrant functions
5273
5274 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5275
5276         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
5277           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
5278           selected.
5279         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
5280         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
5281           contiguous with data
5282
5283 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5284
5285         * device/lib/_gptrget.c (_gptrget),
5286         * device/lib/_gptrgetc.c (_gptrgetc),
5287         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
5288           instead of sjmp to ret
5289         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
5290           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
5291
5292 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5293
5294         * .version: bumped version to 2.4.7
5295         * device/lib/_gptrget.c (_gptrget): is now _naked
5296         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
5297         * device/lib/_gptrput.c (_gptrput): is now _naked
5298         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
5299           (createFunction): fixed xstack
5300         * src/SDCCglue.c (emitMaps): set allocation required for bit area
5301         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
5302           or bit either,
5303           (geniCodeCritical): store original interrupt state in an iTemp bit
5304           var unless stack-auto
5305         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
5306         * src/SDCCmain.c (setIncludePath): added include/target to search path
5307         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
5308         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
5309           prototype,
5310           (processFuncArgs): put bit vars in bit area
5311         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
5312           unsaveRBank): fixed xstack,
5313           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
5314           (genFunction, genEndFunction): fixed xstack,
5315           (genAssign): optimization don't walk backwards through mem
5316         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
5317         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
5318         * support/regression/Makefile: also make library (for stack-auto) when
5319           making "all" and added "test-mcs51-xstack-auto"
5320         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
5321         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
5322         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
5323         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
5324         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
5325           make-library by MAKE_LIBRARY
5326         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
5327           regression tests for xstack
5328         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
5329         * support/regression/tests/critical.c: test for critical on mcs51
5330
5331 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5332
5333         * support/regression/ports/ucz80/spec.mk: use include and lib files from
5334           built version of sdcc instead of installed version
5335
5336 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5337
5338         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
5339         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
5340           vprintf.c now
5341         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
5342         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
5343           WARNING: remove device/lib/build/z80/printf.o by hand when
5344           updating from previous build!
5345         * device/lib/z80/printf.c: updated comment
5346         * support/regression/tests/bug1057979.c: test all ports now
5347         * support/regression/tests/bug1065458.c: file added
5348
5349 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5350
5351         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
5352           *_start and *_end symbols for static functions
5353
5354 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
5355
5356         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
5357           and search crt0.o in all library paths,
5358           (setIncludePath): proper handling of --nostdinc,
5359           (setLibPath): proper handling of --nostdlib
5360         * support/regression/Makefile,
5361         * support/regression/ports/ds390/spec.mk,
5362         * support/regression/ports/gbz80/spec.mk,
5363         * support/regression/ports/hc08/spec.mk,
5364         * support/regression/ports/mcs51/spec.mk,
5365         * support/regression/ports/mcs51-large/spec.mk,
5366         * support/regression/ports/mcs51-stack-auto/spec.mk,
5367         * support/regression/ports/z80/spec.mk: use include and lib files from
5368           built version of sdcc instead of installed version
5369         * doc/sdccman.lyx: fixed typo in --nostdinc
5370
5371 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
5372
5373         * src/pic/pcode.c,
5374         * src/pic/device.c,
5375         * src/pic/ralloc.c,
5376         * src/pic/gen.c : added support to generate code for struct bit fields.
5377
5378 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5379
5380         * as/xa51/xa_version.h,
5381         * device/include/errno.h,
5382         * device/include/regc515c.h,
5383         * device/lib/_itoa.c,
5384         * device/lib/_ltoa.c,
5385         * device/lib/ser_ir_cts_rts.c,
5386         * sim/ucsim/xa.src/glob.cc,
5387         * sim/ucsim/xa.src/inst_gen.cc,
5388         * sim/ucsim/xa.src/xa_bit.cc,
5389         * sim/ucsim/xa.src/xa_sfr.cc,
5390         * sim/ucsim/z80.src/inst_dd.cc,
5391         * sim/ucsim/z80.src/inst_fdcb.cc,
5392         * support/scripts/keil2sdcc.pl,
5393         * src/pic16/pic16.dsp,
5394         * src/pic16/pic16a.dsp: corrected cvs line endings
5395         * device/lib/printf_large.c: fixed bug 1057979
5396         * src/pic16/gen.c: fixed non-C standard code
5397         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
5398         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
5399         * support/regression/ports/mcs51/support.c: reload T1 asap
5400         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
5401           pdata use and clear idata startup behaviour
5402         * support/regression/tests/bug1057979.c: added
5403
5404 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
5405
5406         * device/examples/ds390/ow390/ad26.h,
5407         * device/examples/ds390/ow390/cnt1d.h,
5408         * device/examples/ds390/ow390/crcutil.c,
5409         * device/examples/ds390/ow390/ownet.h,
5410         * device/examples/ds390/ow390/owsesu.c,
5411         * device/examples/ds390/ow390/swt12.h,
5412         * device/examples/ds390/ow390/swtoper.c,
5413         * device/examples/ds390/ow390/temp10.h,
5414         * device/examples/ds390/ow390/thermodl.c,
5415         * device/examples/ds390/tinitalk/tinitalk.dsp,
5416         * device/examples/ds390/tinitalk/tinitalk.dsw,
5417         * device/examples/mcs51/clock/hw.h,
5418         * device/examples/mcs51/simple2/go.bat,
5419         * device/examples/serialcomm/windows/serial.h,
5420         * device/examples/xa51/dummy.c,
5421         * device/examples/xa51/hello.c,
5422         * device/include/80c51xa.h,
5423         * device/include/at89x051.h: corrected cvs line endings
5424
5425 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
5426
5427         * src/pic16/main.c (options): added command line --gstack, to trace
5428         stack over/under flows,
5429         * added pragma 'wparam' to allow passing first byte of function
5430         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
5431         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
5432         call to __gstack_test function and sets up the symbol as extern,
5433         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
5434         * popaop): added call to pic16_testStackOverflow,
5435         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
5436         wparamList list,
5437         * (genCall, genPcall): now all parameters are passed via stack
5438         except in functions that are pass to wparam pragma in which WREG is
5439         used too,
5440         * (genPcall): REENTRANT flag is checked to see if variable prototype
5441         contains reentrant keyword, don't call a non-reentrant function, via
5442         a reentrant function pointer or vice versa, functions are never
5443         passed via WREG,
5444         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
5445         D.Winkler,
5446         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
5447         SIGSEGV when accessing a NULL register stucture,
5448         * (pic16_printGPointerType): modified to handle UPPER modifier for
5449         function initializers, changed prototype of function to simpler one,
5450         * (pic16_printIvalFuncPtr): check to see if function is already
5451         added in externs list,
5452         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
5453         optimized a move from W to SFR with a move to the same register
5454         later after a CALL,
5455         * device/lib/pic16/debug: NEW directory, contains debug features
5456         which are enabled when linking with libdebug.lib, currently command
5457         line option --gstack enables stack pointer tracing for over/under
5458         flow, corresponding sources are in debug/gstack
5459
5460 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
5461
5462         * doc/sdccman.lyx: updated SDCC version,
5463         * (PIC16 port): update list of command line options,
5464         * src/pic16/device.h (structure pic16_options_t): added field gstack
5465         to enable stack overflow tracing on push/pops,
5466         * src/pic16/device.c (statistics structure): added statistics
5467         structure,
5468         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
5469         pic16_dump_int_registers): increase statistics counters for each
5470         * variable which is encountered
5471         * (pic16_dump_usection): emit each .udata variable to its own udata
5472         section,
5473         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
5474         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
5475         parameters via stack, otherwise use old scheme,
5476         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
5477         assembler output file,
5478         * src/pic16/main.c: added command line options --gstack to enable
5479         push/pop tracing for stack overflow,
5480         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
5481         instructions): added size of each instruction,
5482         * (pic16_countInstruction): estimate size of instructions in
5483         the_pFile list, inline assembly blocks are not counted,
5484         * (pic16_FixRegisterBanking): trace previous register usage, when
5485         banksel optimizations is greater than 0, don't emit a redudant
5486         banksel directive,
5487
5488 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
5489
5490         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
5491         * src/pic16/ralloc.c : applied same fix for pic16.
5492         * src/pic/gen.c : tidied it up a little.
5493
5494 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5495
5496         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
5497         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
5498
5499 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5500
5501         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
5502
5503 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5504
5505         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
5506         non-reentrant function __modsint in the interrupt function (thus
5507         corrupting math operations during serial I/O)
5508         * device/lib/ser_ir.c: as above, changed buffersize
5509         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
5510         256.c,d for zeroing
5511         * doc/Makefile: added option -t for rsync
5512
5513 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5514
5515         * src/SDCCast.h (struct ast),
5516         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
5517
5518 2004-10-20 Borut Razem <borut.razem AT siol.net>
5519
5520         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
5521         package
5522
5523 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
5524
5525         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
5526         makefile targets,
5527         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
5528         support functions to replace long sequences of MOVFF's from access
5529         bank registers to stack and vice versa,
5530         * src/pic16/device.h: added new field opt_flags, where optimization
5531         flags can be set to enable certain features,
5532         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
5533         * pBlock, (genFunction, genEndFunction): surroung loop for
5534         saving/loading used registers in stack with PC_INFO pCodes,
5535         INF_LREGS. Code in between can then be optimized by pCode optimizer
5536         to support function calls,
5537         * (genDataPointerSet): fixed bug which loaded float fields in
5538         structures with corrupt data,
5539         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
5540         in a standard way debug info on stderr. Feature used for developing
5541         and debugging only,
5542         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
5543         obsolete chunks of code,
5544         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
5545         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
5546         * pic16/src/pcode.c (pic16_newpCodeInfo,
5547         * (pic16_newpCodeOpLocalRegs),
5548         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
5549         feature,
5550         * (pic16_pCodeConstString): printing of the initial value of a
5551         symbol as a comment is inhibited since parsing was already done by
5552         copyStr and output is corrupt,
5553         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
5554
5555 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5556
5557         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
5558
5559 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
5560
5561         * as/mcs51/lkarea.c: removed old K&R style,
5562           (lnksect): changed check on boundary error,
5563           (lnksect2): changed check on boundary error,
5564           (lnksect2): extend XSTK to end of page if size = 1
5565         * as/mcs51/lkmain.c: removed old K&R style,
5566           (Areas51): create l_IRAM symbol
5567         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
5568         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
5569           model-mcs51-stack-auto, added model-mcs51-xstack-auto
5570         * device/lib/_mullong.c: added version to be compiled with xstack
5571         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
5572         * device/lib/mcs51/crtxclear.asm: clear pdata as well
5573         * device/lib/mcs51/crtxstack.asm: fixed comment
5574         * src/SDCCglue.c: maxInterrupts defaults to 0,
5575           (emitMaps): added pdata,
5576           (createInterruptVect): (re)moved default,
5577           (glue): added pdata,
5578           (glue): moved __start__xstack to XSTK with default size 1
5579         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
5580           and options.float_rent when options.stackAuto is set,
5581           (linkEdit): only write XDATA_NAME if provided on command line
5582         * src/SDCCmem.h,
5583         * src/SDCCmem.c: added pdata
5584         * src/port.h: added pdata_name to PORT
5585         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
5586           (saveRegisters, unsaveRegisters): removed usage of B,
5587           (genMinus): fixed accumulator clash,
5588           (genJumpTab): added comment, this needs another look
5589         * src/mcs51/gen.c: added check for "B in use" paranoia,
5590           added pushB() and popB()
5591         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
5592           chance
5593         * src/avr/main.c,
5594         * src/ds390/main.c,
5595         * src/hc08/main.c,
5596         * src/mcs51/main.c,
5597         * src/pic/main.c,
5598         * src/pic16/main.c,
5599         * src/xa51/main.c,
5600         * src/z80/main.c: (reset_regparms) made void parameter explicit and
5601           added PSEG (PAG,XDATA) or NULL to port specifier
5602         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
5603         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
5604           (_mcs51_genInitStartup): removed __start__xstack equ,
5605           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
5606         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
5607         * src/z80/gen.c (_rleAppend): fixed warnings
5608         * support/regression/tests/zeropad.c: added pdata test
5609         * .version: bumped to 2.4.6
5610
5611 2004-10-17 Borut Razem <borut.razem AT siol.net>
5612
5613         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
5614         as a part of nightly build
5615
5616 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
5617
5618         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
5619         WREG holds the first byte function parameters,
5620         * (aopForSym): take special case for symbols which are in FARSPACE
5621         but in CODESPACE too,
5622         * (assignResultValue): modified to take into account _G.useWreg,
5623         * (genCall): don't use wreg for parameter passing when function is
5624         declared as reentrant, too, added optimization INCF to stack
5625         pointer when stack parameter count is 1,
5626         * (genFunction, genEndFunction): refurnished and fixed to not using
5627         wreg for passing parameters when function has varargs or is
5628         reentrant, fixed bug with symbol name compare for generating
5629         functions in absolute address,
5630         * (pic16_storeForReturn): refurnished,
5631         * (genCmp): began writing a new version of the function, not ready
5632         yet, therefore it is disabled,
5633         * (genAssign): do not read code memory when assigning a function to
5634         a pointer function,
5635         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
5636         array of characters, not pointer,
5637         * (pic16initialComments): in debug mode emit an .ident directive for
5638         the assembler,
5639         * (_process_pragma): emit a new warning type (internal to pic16)
5640         when setting stack to default length, emit a similar warning when
5641         placing a function at absolute address and address is not word aligned
5642         * (_pic16_parseOptions): added 'return TRUE' statement,
5643         * (_pic16_linkEdit): if compiling a source, then add the source's
5644         file object, first in the list of objects to link,
5645
5646 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
5647
5648         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
5649         * src/pic/main.c : removed VC warning.
5650         * src/pic/gen.c : changed comment.
5651
5652 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
5653
5654         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
5655         reference to a deprecated symbol _GPTRREG was causing failure to
5656         link. Thanks G. M. Gallant for the info.
5657
5658 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
5659
5660         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
5661         comments for Bugs item #954788.
5662
5663 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
5664
5665         * src/pic16/device.c (pic16_dump_gsection,
5666         * pic16_groupRegistersInSection): handle symbols declared to be in
5667         access bank differently,
5668         * src/pic16/gen.c (struct _G): added field resDirect,
5669         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
5670         send values read from stack directly to result and don't allocate
5671         temporary values,
5672         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
5673         same registers,
5674         * (pic16_sameRegsOfs): NEW,
5675         * (freeAsmop): if _G.resDirect is set then do not mark registers as
5676         free because they were not allocated from temporary pool,
5677         * pic16_popRegFromString): workaround to fix a problem with
5678         allocating variables twice or never,
5679         * (genGenPointerGet): using PRODL instead of FSR0H,
5680         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
5681         instead of FSR0H,
5682         * (genAssign): take advantage of the _G.resDirect flag,
5683         * (genCast): around line 11844, use mov2f instead of directly
5684         MOVFF'ing between operands to account for literal values,
5685         * src/pic16/genutils.c: some new debug functions for gpsim have been
5686         added,
5687         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
5688         float with integer part only,
5689         * src/pic16/main.c (_process_pragma): handle pragma udata access to
5690         place variables in access bank
5691         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
5692         updated sources to reflect recent changes in gen.c
5693
5694 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
5695
5696         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
5697         sources that searched for headers in installation path, now the
5698         device/include/pic16 is used,
5699         * src/pic16/glue.c (pic16glue),
5700         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
5701         .line directives if not in debug mode, this suppresses assembler's
5702         warnings for ignored directives
5703
5704 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5705
5706         * src/port.h: made reset_regparms prototype void parameter explicit.
5707         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
5708         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
5709         * doc/sdccman.lyx: documented warning disabling and how to use
5710           printf_large to make it print floats.
5711         * device/include/stdbool.h: NEW
5712         * device/lib/_atof.c,
5713         * device/lib/_divuint.c,
5714         * device/lib/_divulong.c,
5715         * device/lib/expf.c,
5716         * device/lib/printf_large.c,
5717         * device/lib/sincosf.c,
5718         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
5719         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
5720           a completely reentrant lib.
5721
5722 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
5723
5724         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
5725         * device/include/pic16/stdio.h: fixed bug with colon
5726
5727 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
5728
5729         * device/include/pic16/stdio.h,
5730         * device/include/pic16/stdlib.h,
5731         * device/include/pic16/math.h: NEW
5732         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
5733         declared as _naked to reduce overhead
5734         * device/lib/Makefile.in (target port-specific-objects-pic16):
5735         changed * to *.* so to ignore the CVS directory,
5736         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
5737         stacked variables back in stack,
5738         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
5739         corruption
5740
5741 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
5742
5743         * .version: bumped version number to 2.4.5
5744         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
5745         * support/Util/SDCCerr.c (messages structure): added entry for
5746         W_POSSBUG2
5747
5748         Large cumulative patch for pic16 port and libraries.
5749         * device/include/pic16/sdcc-lib.h,
5750         * device/include/pic16/stdarg.h,
5751         * device/include/asm/pic16/features.h,
5752         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
5753         * device/include/pic16/float.h: changes reentrant keyword with
5754         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
5755         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
5756         updated target build-libraries to include objects from gptr,
5757         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
5758         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
5759         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
5760         all function headings,
5761         * src/SDCCmain.c: added global parameter userIncDirsSet,
5762         * (parseCmdLine): when option -I is encountered add directory to
5763         userIncDirsSet too,
5764         * src/version.awk: added space between control and long,
5765         * src/pic16/NOTES: added some notes for the port,
5766         * src/pic16/gen.c: added prototype for mov2fp function,
5767         * (fReturnpic16[]): properly named return value registers,
5768         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
5769         * (aopForSym): added code to handle symbols with onStack flag set,
5770         symbols onStack are allocated PTRSIZE bytes,
5771         * (aopFreeAsmop): handles special case where asmops are stack objects,
5772         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
5773         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
5774         added argument lock to trace flaws in allocating temporary registers
5775         when developing port,
5776         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
5777         * (pic16_popRegFromString): reenabled allocating a direct register
5778         from string,
5779         * (assignResultValue): various beautifications,
5780         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
5781         referenced function argument,
5782         * (genIpush): reenabled to allow stacked arguments, handles only
5783         ic->parmPush iCodes,
5784         * (genCall, genPcall): major changes to allow for variable argument
5785         functions, fixed a bug with falsely restoring stack pointer after
5786         returning from call,
5787         * (genFunction): pending code for critical function,
5788         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
5789         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
5790         * (genNearPointerGet): fixed bug with indirect reading, was always
5791         reading from INDF0
5792         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
5793         pointers,
5794         * (genAddrOf): rewrote code to take address of a stacked function parameter
5795         * (genCast): fixed casting to generic pointer type,
5796         * src/pic16/gen.h: added AOP_STA,
5797         * (struct asmop): added field stk,
5798         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
5799         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
5800         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
5801         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
5802         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
5803         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
5804         generic pointers,
5805         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
5806         and library paths,
5807         * (pic16_port structure): generic pointer size is set to 3,
5808         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
5809         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
5810         compiler warning,
5811         * src/pic16/ralloc.c (allocReg): prevent allocating register when
5812         operand is an iTemp,
5813
5814 2004-09-24 Martin Helmling <mh AT octo-soft.de>
5815
5816         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
5817         * debugger/mcs51/simi.c: addapt new syntax of s51
5818
5819 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
5820
5821         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
5822         * src/pic16/pcode.c: commented out some calls to free() in order to
5823         fix bug #989576,
5824
5825 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5826
5827         * src/SDCCicode.h,
5828         * src/SDCCicode.c (isiCodeInFunctionCall),
5829         * src/avr/ralloc.c (selectSpil),
5830         * src/pic/ralloc.c (selectSpil),
5831         * src/pic16/ralloc.c (selectSpil),
5832         * src/ds390/ralloc.c (selectSpil),
5833         * src/hc08/ralloc.c (selectSpil),
5834         * src/xa51/ralloc.c (selectSpil),
5835         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
5836         stack in the middle of a function call sequence (fixes bug #1020268)
5837         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
5838         costs associated with the minimum switch case.
5839
5840 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5841
5842         * src/SDCC.lex: fixed bug #1030549
5843
5844 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5845
5846         * src/SDCCcse.h (struct cseDef),
5847         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
5848         over a function call if the CSE is derived from a symbol whose
5849         address has been taken (fixes bug #1029883)
5850         * support/regression/tests/bug-1029883: a new regression test for
5851         this bug
5852
5853 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5854
5855         * src/hc08/gen.c (emitinline): fixed bug #1029778
5856         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
5857         to a cast object is no longer a syntax error ("fixes" bug #1030006,
5858         and starts toward RFE #905167)
5859
5860 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
5861
5862         * src/pic16/gen.c (mov2f): New function to move an operand to
5863         another without considering if it is a literal or a register,
5864         * (pic16_sameRegs): don't check if they are both AOP_REG,
5865         * (AccRsh): removed andmask=0 lines,
5866         * (genLeftShift): duplicated to be improved in future versions,
5867         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
5868         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
5869         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
5870         * (pic16initMnemonics): added initialization for POC_INFSNZW,
5871         * (insertBankSwitch): fixed inserting banksel directives algorithm
5872         for instructions that follow a skip instruction, this fixes a report
5873         for broken subtraction code generation,
5874         * src/pic16/ralloc.c (deassignLRs): do not free register if current
5875         iCode is a left op, just in case result and right share the same
5876         registers
5877
5878 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5879
5880         * src/hc08/main.c,
5881         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
5882         preservation of HX
5883         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
5884         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
5885         on 2004-09-12; it was buggy
5886
5887 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
5888
5889         * src/SDCCsymt.h: removed RESULT_CHECK
5890         * src/SDCCast.c,
5891         * src/SDCCglue.c,
5892         * src/SDCCval.c,
5893         * src/pic/glue.c,
5894         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
5895
5896 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
5897
5898         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
5899         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
5900         configuration values no more rejected by compiler, they are assigned
5901         to configuration registers with a warning message instead,
5902         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
5903         the for-loop so last conf register is emitted too,
5904         * (_pic16_initPaths): link library libsdcc.lib by default,
5905         * (_hasNativeMulFor): modified test for multiplication according to
5906         Raphael Neider's remarks. Integer multiplication is also done with
5907         support functions,
5908         * device/include/pic16/pic18fregs.h: corrected type error in while
5909         testing and including 18f6720 header file
5910
5911 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
5912
5913         * src/pic16/device.h (pic16_options): removed field use_crt,
5914         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
5915         until an optimization to handle single bits is added,
5916         * (pic16_loadFSR0): moved before genUnpackBits,
5917         * (genAnd): some white lines removed,
5918         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
5919         leave_reset flags in pic16_options when using crt modules,
5920
5921 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
5922
5923         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
5924           for bugs 898889 & 979599. Also used some safer print instructions.
5925
5926 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
5927
5928         * src/pic16/device.h (pic16_options_t): added field use_crt,
5929         crt_name, no_crt,
5930         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
5931         catch a probable future bug,
5932         * src/pic16/gen.c: aopIdx function commented out,
5933         * (genAssign): commented out old code which used aopIdx,
5934         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
5935         code, added if conditionals to take into account the --use-crt
5936         command line options,
5937         * src/pic16/main.c (pic16_optionsTable): added new command line
5938         options, --use-crt= and --no-crt,
5939         * (_pic16_linkEdit): now the proper crt object is added in the
5940         linker command line except than when --no-crt is specified,
5941         * src/pic16/pcode.c,
5942         * src/pic16/pcode.h: added some structures and functions for a new
5943         optimization scheme to compansate for instruction overhead between
5944         same iCodes, this scheme is currently under development and is not
5945         working in any way,
5946         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
5947         to && operator,
5948         * device/lib/pic16/startup/crt0i.c,
5949         * device/lib/pic16/startup/crt0iz.c: added global char variable
5950         __uflags to force the generation of an idata section
5951
5952 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
5953
5954         * doc/Makefile,
5955         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
5956         * doc/sdccman.lyx: updated sdcc version to 2.4.4
5957
5958 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5959
5960         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
5961         Frieder) and clarified the default code optimization mode
5962
5963 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5964
5965         * src/SDCC.lex (doPragma, process_pragma),
5966         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
5967         "opt_code_size", and "opt_code_balanced"
5968         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
5969         regrouped options by category, added support for category headers
5970         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
5971         and "--opt-code-size"
5972         * doc/sdccman.lyx: documented these new options and pragmas
5973         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
5974         preference into account
5975
5976 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5977
5978         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
5979           geniCodePreDec): Fixed bug 904237 by generating a warning
5980         * src/SDCCerr.h,
5981         * src/SDCCerr.c: added warning W_SIZEOF_VOID
5982
5983 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
5984
5985         * src/pic/device.c : When no max ram set validate full memory range.
5986         * src/pic/pcode.c,
5987         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
5988
5989 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5990
5991         * device/lib/_gptrget.c,
5992         * device/lib/_gptrput.c: updated comment
5993         * device/lib/calloc.c,
5994         * device/lib/free.c,
5995         * device/lib/malloc.c,
5996         * device/lib/realloc.c: added LGPL, made them reentrant-safe
5997         * src/SDCCcse.c (cseBBlock),
5998         * src/SDCCicode.c (printOperand, geniCodeArray),
5999         * src/SDCCicode.h (struct operand): fixed bug 868103
6000         * support/regression/tests/bug-868103.c: added
6001         * src/SDCCast.c (searchLitOp),
6002         * src/SDCCcse.h (struct cseDef),
6003         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
6004         * src/SDCCicode.h (struct operand),
6005         * src/SDCCsymt.h (struct sym_link),
6006         * src/avr/gen.c (hasInc),
6007         * src/ds390/gen.c (hasInc),
6008         * src/hc08/gen.c (genPlusIncr, hasInc),
6009         * src/mcs51/gen.c (hasInc),
6010         * src/pic16/glue.c (pic16_printIvalChar),
6011         * src/pic16/ralloc.c (regWithIdx),
6012         * src/xa51/gen.c (hasInc) : removed warnings
6013         * src/SDCCast.c (createBlock): added comment ???
6014         * src/hc08/ralloc.c: updated comments
6015
6016 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6017
6018         * doc/sdccman.lyx: updated section on switch statements, added
6019         section about semaphore locking
6020         * doc/Makefile: added option -info for latex2html
6021         * device/lib/_gptrget.c,
6022         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
6023
6024 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
6025
6026         * src/pic/device.h,
6027         * src/pic/device.c,
6028         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
6029          maxram is less than 0x100.
6030
6031 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
6032
6033         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
6034
6035 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6036
6037         * src/port.h,
6038         * src/mcs51/main.c,
6039         * src/ds390/main.c,
6040         * src/z80/main.c,
6041         * src/hc08/main.c,
6042         * src/pic/main.c,
6043         * src/pic16/main.c,
6044         * src/avr/main.c,
6045         * src/xa51/main.c
6046         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
6047         a jump table is the best form for a switch statement, including
6048         automatic insertion of missing cases to make the case range
6049         continuous. Developed in collaboration with Frieder Ferlemann.
6050
6051 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6052
6053         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
6054         accumulator result if it needs sign extension
6055
6056 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6057
6058         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
6059
6060 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6061
6062         * device/lib/gbz80/printf.c,
6063         * device/lib/z80/printf.c: removed define for NULL
6064
6065 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6066
6067         * as/xa51/xa_link.c,
6068         * device/examples/ds390/ow390/ad26.c,
6069         * device/examples/ds390/ow390/cnt1d.c,
6070         * device/examples/ds390/ow390/counter.c,
6071         * device/examples/ds390/ow390/ds2480.h,
6072         * device/examples/ds390/ow390/ds2480ut.c,
6073         * device/examples/ds390/ow390/findtype.c,
6074         * device/examples/ds390/ow390/gethumd.c,
6075         * device/examples/ds390/ow390/owllu.c,
6076         * device/examples/ds390/ow390/ownetu.c,
6077         * device/examples/ds390/ow390/swt12.c,
6078         * device/examples/ds390/ow390/swtloop.c,
6079         * device/examples/ds390/ow390/temp.c,
6080         * device/examples/ds390/ow390/temp10.c,
6081         * device/examples/ds390/ow390/thermo21.c,
6082         * device/examples/ds390/ow390/tinilnk.c,
6083         * device/examples/ds390/ow390/tstfind.c,
6084         * device/examples/serialcomm/windows/serial.cpp,
6085         * device/examples/serialcomm/windows/test_serialcomm.cpp,
6086         * device/include/reg51.h: fixed line endings for cvs
6087
6088 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6089
6090         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
6091         packRegsForAccUse, packRegisters): new accumulator register
6092         packing algorithm
6093         * support/regression/ports/hc08/support.c (_putchar): suppress
6094         warning of unused variable
6095         * src/SDCCicode.c: added SWAP entry to codeTable
6096
6097 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
6098
6099         * device/lib/sprintf.c: forgot to add this file before previous commit
6100
6101 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
6102
6103         * src/pic16/gen.c (genPackBits): added operand right in function
6104         parameters, load result directly if p_type is POINTER (that is
6105         called by genNearPointerSet)
6106         * (genUnPackBits): added operand left in function parameters,
6107         * (genNearPointerGet, genNearPointerSet): prevent the loading of
6108         FSR0 if accessing bitfields,
6109
6110 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
6111
6112         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
6113           _print_format; updated printf, sprintf, vsprintf
6114         * device/include/asm/default/features.h: corrected comment/define
6115         * device/lib/Makefile.in: added sprintf.c
6116         * device/lib/libsdcc.lib: added sprintf module
6117         * device/lib/printf_large.c,
6118         * device/lib/vprintf.c,
6119         * device/lib/sprintf.c: totally refactored printf_large and vprintf
6120           into these 3 files
6121         * support/regression/Makefile: changed ALL_PORTS into a usefull default
6122         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
6123         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
6124           hc08 test
6125         * support/regression/tests/zeropad.c: define idata as data for hc08
6126
6127 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6128
6129         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
6130         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
6131         labels are referenced at least once (even if a reference is not found)
6132         * src/hc08/gen.c (emitcode): set isComment flag for comments
6133         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
6134         loads), rules 6a..6b (optimize jumps to return)
6135
6136 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6137
6138         * device/lib/acosf.c (acosf),
6139         * device/lib/asinf.c (asinf),
6140         * device/lib/atanf.c (atanf),
6141         * device/lib/ceilf.c (ceilf),
6142         * device/lib/cosf.c (cosf),
6143         * device/lib/coshf.c (coshf),
6144         * device/lib/cotf.c (cotf),
6145         * device/lib/fabsf.c (fabsf),
6146         * device/lib/floorf.c (floorf),
6147         * device/lib/log10f.c (log10f),
6148         * device/lib/logf.c (logf),
6149         * device/lib/sinf.c (sinf),
6150         * device/lib/sinhf.c (sinhf),
6151         * device/lib/sqrtf.c (sqrtf),
6152         * device/lib/tanf.c (tanf),
6153         * device/lib/tanhf.c (tanhf),
6154         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
6155         replaced all instances of "reentrant" in the library functions
6156         defined in math.h with this macro.
6157         * support/regression/tests/float_trans.c: reenabled test for hc08
6158
6159 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
6160
6161         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
6162         erroneously deleted
6163
6164 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6165
6166         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
6167         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
6168         multi-byte volatile operands are used
6169         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
6170         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
6171         initialization to area GSINIT0 so that it would always precede
6172         any static initializers in GSINIT
6173         * support/regression/tests/zeropad.c: fixed idata define for hc08
6174         * support/regression/tests/bug-927659.c,
6175         * support/regression/tests/float_trans.c: disabled tests for hc08
6176         pending missing library routines
6177         * .version: increased version number to 2.4.4 - hc08 port now passes
6178         regression tests
6179
6180
6181 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
6182
6183         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
6184         * Makefile.common.in,
6185         * as/Makefile,
6186         * as/hc08/Makefile.in,
6187         * as/mcs51/Makefile.in,
6188         * as/z80/Makefile.in,
6189         * debugger/mcs51/Makefile.in,
6190         * device/include/Makefile.in,
6191         * device/lib/Makefile.in,
6192         * doc/Makefile,
6193         * link/Makefile,
6194         * link/z80/Makefile.in,
6195         * packihx/Makefile.in,
6196         * sim/ucsim/main_in.mk,
6197         * sim/ucsim/avr.src/Makefile.in,
6198         * sim/ucsim/doc/Makefile.in,
6199         * sim/ucsim/gui.src/serio.src/Makefile.in,
6200         * sim/ucsim/hc08.src/Makefile.in,
6201         * sim/ucsim/s51.src/Makefile.in,
6202         * sim/ucsim/xa.src/Makefile.in,
6203         * sim/ucsim/z80.src/Makefile.in,
6204         * src/Makefile.in,
6205         * support/cpp2/Makefile.in,
6206         * support/librarian/Makefile,
6207         * support/makebin/Makefile: added DESTDIR to the install path proposed
6208         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
6209         * doc/sdccman.lyx: added DESTDIR documentation
6210
6211 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
6212
6213         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
6214         instruction for interrupt handlers, use fast returns when returning
6215         from high priority interrupts
6216
6217 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6218
6219         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
6220         code generation
6221         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
6222         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
6223         bugs, ported much of Bernhard's code from mcs51
6224         * src/mcs51/gen.c (genSend),
6225         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
6226         than one when calling a reentrant function
6227         * device/lib/_mullong.c: defined an alternate struct layout for big
6228         endian ports (hc08)
6229
6230 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6231
6232         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
6233         test
6234
6235 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6236
6237         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
6238         are sane and complete before asking the port its prefered parameter
6239         passing method (fixes bug #1017633)
6240         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
6241         and _ret3
6242
6243 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6244
6245         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
6246         problem in bitfields >= 8 bits.
6247
6248 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
6249
6250         * src/SDCCsymt.c: undid changes that were not meant to be committed
6251
6252 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
6253
6254         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
6255
6256 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
6257
6258         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
6259           copied and wrong bit got inverted
6260
6261 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6262
6263         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
6264         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
6265         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
6266         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
6267         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
6268         assignments to bitfields at known addresses
6269         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
6270         reads from bitfields at known addresses
6271         * src/hc08/ralloc.c (packRegisters),
6272         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
6273         genhc08Code): optimize pointer get values used as conditionals
6274         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
6275         and branch
6276
6277 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6278
6279         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
6280         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
6281         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
6282         as conditionals
6283
6284 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6285
6286         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
6287
6288 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6289
6290         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
6291         related problems
6292
6293 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
6294
6295         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
6296
6297 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6298
6299         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
6300         mcs51 port
6301
6302 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6303
6304         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
6305
6306 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6307
6308         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
6309         cases use more compact code.
6310
6311 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
6312
6313         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
6314
6315 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6316
6317         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
6318
6319 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6320
6321         * src/SDCCsymt.h,
6322         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
6323         parameter of changePointer() from symbol* to sym_link*
6324         * src/SDCCast.c (decorateType): call changePointer() for CAST op
6325         * src/SDCCsymt.c (compareType): void* type is castable to other
6326         pointers, but not necesarily an exact match.
6327         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
6328         is no longer blindly treated as an exact match.
6329         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
6330
6331 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
6332
6333         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
6334
6335 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
6336
6337         * src/pic/gen.c,
6338         * src/pic/pcode.c,
6339         * src/pic/ralloc.h,
6340         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
6341
6342 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
6343
6344         * src/pic/device.c,
6345         * src/pic/device.h,
6346         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
6347
6348 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6349
6350         * src/mcs51/gen.c (emitcode): fixed bug #992819
6351
6352 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
6353
6354         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
6355           there's no need to make it worse
6356
6357 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6358
6359         * src/mcs51/ralloc.c (deassignLR),
6360         * src/ds390/ralloc.c (deassignLR),
6361         * src/hc08/ralloc.c (deassignLR),
6362         * src/z80/ralloc.c (deassignLR),
6363         * src/pic/ralloc.c (deassignLR),
6364         * src/pic16/ralloc.c (deassignLR),
6365         * src/avr/ralloc.c (deassignLR),
6366         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
6367         rlivePoint): fixed another part of bug #971834
6368
6369 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6370
6371         * src/z80/main.c: enabled "critical" keyword
6372         * src/z80/mappings.i,
6373         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
6374         functions (fixes bug #979646)
6375         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
6376
6377 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6378
6379         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
6380           such as c:\mydir.
6381
6382 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
6383
6384         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
6385           doesn't disable too much optimizations
6386
6387 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
6388
6389         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
6390
6391 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
6392
6393         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
6394
6395 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
6396
6397         * src/pic/gen.c tidied up tabs
6398         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
6399         * src/pic/main.c tidied up tabs
6400         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
6401         * src/pic/pcoderegs.c tidied up tabs
6402         * src/pic/ralloc.c tidied up tabs
6403
6404 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
6405
6406         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
6407         to S_FIXED for pic16 port and when symbol is not in level 0,
6408         allocate for S_REGISTER storage class and pic16 port, too,
6409         * src/pic16/device.h: prototype for checkSym,
6410         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
6411         * (pic16_assignConfigWordValue): test the value and the mask to
6412         validate that the value is suitable for the configuration word,
6413         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
6414         collect extern declared symbols, don't emit symbol twice, check
6415         first if symbol is in publics set first,
6416         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
6417         * added command line '--fstack' which enables an experimental
6418         feature for stack access, too buggy to be used yet...
6419         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
6420         * (pic16_allocDirReg): when register has storage class S_REGISTER
6421         allocate in pic16_dynAccessRegs,
6422         * device/include/pic16/pic18f????.h: modified configuration word
6423         naming convention, words started as CONFIG0H but should be CONFIG1H
6424
6425 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6426
6427         * device/include/mcs51reg.h: fixed bug 970993
6428
6429 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
6430
6431         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
6432         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
6433         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
6434         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
6435         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
6436         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
6437           error/warning numbers,
6438           added function setWarningDisabled()
6439         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
6440         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
6441           _memcmp.c _memmove.c calloc.c realloc.c free.c
6442         * support/regression/tests/malloc.c: added tests for new functionality
6443         * support/regression/tests/zeropad.c: added tests for truncated initializers
6444           and initialized char arrays starting with '\x0'
6445         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
6446
6447 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
6448
6449         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
6450
6451 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6452
6453         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
6454         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
6455         peephole 177.e. Thanks to anonymous
6456
6457 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
6458
6459         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
6460         function isn't used in the source but referenced as a
6461         variable initializer then declare it as extern in .asm file
6462
6463 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
6464
6465         * .version: increased version number to 2.4.3
6466
6467         Adding version extension according to ChangeLog CVS revision
6468         * src/Makefile.in (target all): added dependency 'version.h'
6469         * (rule version.h): added rule to create version.h from ChangeLog,
6470         * (rule dep): added dependency version.h,
6471         * src/version.awk: AWK script to create version.h
6472         * src/SDCCdwarf2.c (dwWriteModule),
6473         * src/SDCCglue.c (initialComments),
6474         * src/SDCCmain.c (printVersionInfo): modified to write after
6475         version string the version extension number,
6476         * src/SDCCutil.c: included "version.h"
6477         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
6478         number,
6479         * src/SDCCutil.h: added prototype for getBuildNumber
6480
6481         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
6482         includeDirsSet, too,
6483         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
6484         const char [] is found in function prototype...
6485
6486         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
6487         moving to WREG with source is already in WREG,
6488         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
6489         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
6490         * (aopForSym): stack'ed symbols are partially supported, added
6491         if-clause to support symbols in FARSPACE,
6492         * (sameRegs): added test for AOP_ACC to see if registers are same,
6493         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
6494         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
6495         * (pic16_popRegFromString): will not allocate a new register if it
6496         doesn't find one by name, bug may have introduced...
6497         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
6498         * (genIpush): revived to use pic16 port's stack,
6499         * (genAddrOf): added incomplete case for stack'ed operand,
6500         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
6501         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
6502         can handle multibyte operands,
6503         * src/pic16/glue.c (pic16_printIval*): some debug info added,
6504         * (pic16initialComments): added message for MPLAB compatibility
6505         mode enabled,
6506         * src/pic16/main.h: prototype for pic16_mplab_comp,
6507         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
6508         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
6509         * (_pic16_linkEdit): NEW, handles link stage, transferred here
6510         because of increased complexity of procedure,
6511         * (_process_pragma): stack pragma changed to format 'stack pos len',
6512         emit symbol '_stack_end' to conform with gplink,
6513         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
6514         to search for register,
6515         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
6516         PO_GPR_REGISTER,
6517         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
6518         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
6519         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6520         case for PO_GPR_REGISTER,
6521         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
6522         dies, the new era is ahead !...
6523         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
6524         pic16_dynInternalRegs,
6525         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
6526         * (pic16_allocDirReg): minor optimizations and bug fixes,
6527         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
6528
6529         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
6530         load stack and frame pointer with address of 'stack_end' symbol
6531
6532 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
6533
6534         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
6535         without source code but only variable initializers
6536
6537 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
6538
6539         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
6540         external are not declared as extern to reduce overhead while linking
6541
6542 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
6543
6544         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
6545
6546 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
6547
6548         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
6549           Yee Keat for the patch
6550         * src/SDCCast.c (decorateType): fixed bug #979599
6551         * src/ds390/gen.h: removed local fReturnSizeDS390
6552         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
6553         * src/ds390/gen.c (genAnd, genOr, genXor),
6554         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
6555
6556 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
6557
6558         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
6559         add relFilesSet to $3, manipulate $2 to handle linking of object
6560         files without source files in command line,
6561         * device/include/pic16 (all headers): added ID location macros,
6562         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
6563         entries for ID location bytes,
6564         * (pic16_assignIdByteValue): NEW,
6565         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
6566         added field dumpcalltree to pic16_options_t,
6567         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
6568         is used instead of pic16_Gstack_base_addr, check if (ifx) before
6569         emitting rFalseIfx label after check_carry label,
6570         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
6571         pic16_emitDIRegs), NEW
6572         * (pic16glue): dump .calltree file when option --calltree found,
6573         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
6574         * (_pic16_genAssemblerPreamble): emit ID locations after
6575         configuration registers,
6576         * (pic16_linkCmd): modifications of the link command,
6577         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
6578         * (pic16_pCodeInitRegisters): don't init stack registers,
6579         * (pic16_findPrevInstruction): fixed bug,
6580         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
6581         bug with immediate registers,
6582         * (buildCallTree): traces stack push and pop,
6583         * (pct2): dump also stack usage for each function,
6584         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
6585         * (pic16_allocDirReg): various modifications,
6586         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
6587         fixed to 1,
6588
6589 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
6590
6591         * src/pic16/pcode.c: removed buggy double colon
6592
6593 2004-07-01 Borut Razem <borut.razem AT siol.net>
6594
6595         * support/scripts/sdcc.nsi: added include/pic16 to setup
6596
6597 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
6598
6599         * device/lib/Makefile.in: fixed bug in target objects-pic16,
6600         * device/lib/pic16/Makefile: prefixed with dash (-) command under
6601         target 'clean',
6602         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
6603         specific command line arguments. Also added sample lkr script
6604         for placing a variable at a specific memory bank.
6605         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
6606         at a specific memory bank,
6607         * (pic16_dump_isection): fixed bug which caused string literals to
6608         be omitted when dumping idata section,
6609         * (pic16_groupRegistersInSection): added code to handle registers
6610         in specific memory banks,
6611         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
6612         public, all references are renamed too,
6613         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
6614         AOP_DPTR2,
6615         * (pic16_storeForReturn): added case to handle when dest is WREG,
6616         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
6617         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
6618         pic16_rel_udata, check to see if that register is marked as being
6619         a member of a specific memory bank,
6620         * (pic16_printIvalCharPtr): added code to add string literals either
6621         to code or the idata sections,
6622         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
6623         also accept the 'udata' pragma,
6624         * src/pic16/main.h: new structure types sectName and sectSym
6625         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
6626         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
6627         * (pic16_findPrevInstruction): fixed, it returned nothing,
6628         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
6629         instruction combinations,
6630         * (pic16_FixRegisterBanking): heavily reorganised,
6631         * (pic16_AnalyzeBanking): if generating banksel directives is
6632         disabled, then don't call FixRegisterBanking at all,
6633         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
6634         completely removed,
6635         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
6636
6637 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
6638
6639         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
6640         Phuah Yee Keat <yk.phuah AT nestac.com>
6641
6642 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
6643
6644         * src/pic16/glue.c (pic16createInterruptVect): function now emits
6645         correctly the IVT even if it is relocated to some other location
6646
6647 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
6648
6649         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
6650         * device/include/pic16/pic18f2220.h: NEW,
6651         * device/lib/pic16/libdev/pic18f2220.c: NEW,
6652         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
6653         * src/pic16/device.c (struct Pics16): added info for 18f2220,
6654         * src/pic16/device.h (struct pic16_options): added ivt_loc and
6655         nodefaultlibs, ivt_loc is the location of the interrupt vector
6656         table, and nodefaultlibs signs that default libraries should not be
6657         linked in link stage,
6658         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
6659         according to --ivt-loc argument,
6660         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
6661         when pragma stack is found,
6662
6663 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6664
6665         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
6666         256 (range check), 257 (do while), 258.a-f (bit banging
6667         f.e. on 3-wire SPI bus)
6668
6669 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6670
6671         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
6672         variables used exclusively within a loop
6673
6674 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
6675
6676         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
6677
6678 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6679
6680         * src/SDCClrange.c (computeClash): fixed bug #971834
6681
6682 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6683
6684         * src/mcs51/gen.c (genCmp): fixed bug #975903
6685         * src/hc08/gen.c (operandsEqu),
6686         * src/ds390/gen.c (operandsEqu),
6687         * src/z80/gen.c (operandsEqu),
6688         * src/pic/gen.c (operandsEqu),
6689         * src/pic16/gen.c (operandsEqu),
6690         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
6691         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
6692
6693 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6694
6695         * src/SDCCcse.c (cseBBlock): fixed bug #966963
6696
6697 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
6698
6699         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
6700         default case in switch statement,
6701         * glue.c (pic16_initPointer): expr is initialised via decoarteType
6702         to eliminate problem with initialisation of pointers, but problem
6703         still exists,
6704         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
6705         * (emitStaticSegment): removed various lines emitting debug info,
6706         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
6707         added processor registers for utilizing EEPROM,
6708         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
6709         configurable and set 8
6710
6711 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
6712
6713         * .version: increased version number to 2.4.2,
6714
6715         Cumulative patch for pic16 port
6716         * src/pic16/device.c: changed scheme to dump initial values for
6717         variables in idata segment, all print_idata* functions were removed,
6718         now the pic16_printIval* will be called,
6719         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
6720         * _pic16_printPointerType, pic16_printPointerType,
6721         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
6722         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
6723         NEW, similar to the respective functions in SDCCglue.c,
6724         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
6725         way, emitting hex bytes,
6726         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
6727
6728 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6729
6730         * src/avr/ralloc.c (serialRegAssign),
6731         * src/xa51/ralloc.c (serialRegAssign),
6732         * src/pic/ralloc.c (serialRegAssign),
6733         * src/pic16/ralloc.c (serialRegAssign),
6734         * src/hc08/ralloc.c (serialRegAssign),
6735         * src/z80/ralloc.c (serialRegAssign),
6736         * src/ds390/ralloc.c (serialRegAssign),
6737         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
6738
6739 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6740
6741         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
6742         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
6743
6744 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
6745
6746         Cumulative patch for pic16 port:
6747         * src/pic16/device.h (typedef PIC16_device) modified fields for
6748         defining microcontrollers,
6749         * src/pic16/device.c: added new info for all devices in Pics16 array,
6750         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
6751         to be optimised out by the pCode optimiser,
6752         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
6753         specially, bug reported by G.M. Gallant,
6754         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
6755         as force'd so that cannot be optimised out by pCode optimiser,
6756         * src/pic16/pcode.c,
6757         * src/pic16/pcodepeeph.c,
6758         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
6759         they are disabled by default, but can be enabled explicit with
6760         command argument --denable-peeps, for testing,
6761         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
6762         --pomit-ivt in COMPILE_FLAGS
6763
6764 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6765
6766         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
6767           compilation on MSVC
6768
6769 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6770
6771         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
6772
6773 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6774
6775         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
6776         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
6777
6778 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
6779
6780         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
6781         would only assign 0x300001 register.
6782
6783 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
6784
6785         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
6786         in COMPILE_FLAGS. Thanks to G. Gallant for report.
6787
6788 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6789
6790         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
6791         for ds80c400
6792         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
6793         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
6794         added peephole 254 (left shift), 255 (jump table)
6795
6796 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
6797
6798         * device/lib/Makefile.in: removed comment line with model-pic16,
6799         * (target port-specific-objects-pic16): the libraries and objects
6800         are copied to the build directory form the device/lib/pic16/bin
6801         directory
6802
6803         Cumulative patch concerning pic16 port:
6804         * library directory has been re-organized,
6805         * added support for PIC18F1220,
6806         * added headers and library sources for chips 18f1220,18f6520,
6807         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
6808
6809         * configuration registers setting has changed, now each supported
6810         device has a complete description of the registers it uses,
6811         * all initialisations are moved to idata sections, these section
6812         can be absolute or relocatable,
6813         * fixed initialisation of codespace variables,
6814         * fixed warning about PCLATU and gpsim,
6815         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
6816         * (genAssign): use table reads when assigning from variables in codespace,
6817         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
6818         char/int variables placed in codespace,
6819         * (pic16_emitConfigRegs): NEW, emits a list with configuration
6820         registers set in .asm file, no need for --pomit-config-words anymore,
6821         * (pic16glue): some 8051 legacy segments are commented out
6822         (to be removed completely),
6823         * added support for alternative assembler and linker with --asm=
6824         and --link= command line arguments,
6825         * peepholes are disabled automatically in the port, no need to
6826         specify on command line,
6827         * port supports natively char/int/long multiplication, but converts
6828         all divisions to support functions,
6829         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
6830         to the file set in variable $2,
6831         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
6832         strings in ASCII format and not in hex,
6833         * ralloc.c (serialRegAssign): added a triplet of conditional calls
6834         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
6835         allocate proper register if iCodes aren't temporary,
6836
6837 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6838
6839         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
6840
6841 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
6842
6843         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
6844         is commented out
6845
6846 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6847
6848         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
6849         computed address is reused
6850         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
6851         multi-byte bitfields
6852
6853 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6854
6855         * src/z80/gen.c: (genArrayInit): must check for pointers too
6856
6857 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6858
6859         * support/regression/tests/zeropad.c: never meant to commit the
6860           nestedstruct test: removed, added check for GCC version
6861
6862 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
6863
6864         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
6865         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
6866         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
6867           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
6868           bugs 928906 and 954082 half-empty initializers
6869         * src/SDCCsymt.h,
6870         * src/SDCCsymt.c (getAllocSize): added for above fix
6871         * src/z80/gen.c (genArrayInit): fixed bug 741044
6872         * support/regression/tests/zeropad.c: added tests
6873
6874 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
6875
6876         * src/pic16/device.c (pic16_dump_section): corrected bug which
6877         caused some symbols of the libraries to be misplaced
6878
6879 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6880
6881         * src/pic16/glue.c,
6882         * src/pic16/ralloc.h,
6883         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
6884         to fix conflict with pic port
6885
6886 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6887
6888         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
6889         externs configuration variables,
6890         * src/pic16/ralloc.h,
6891         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
6892         prototype in header, commented out some debug messages
6893
6894 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
6895
6896         * src/pic16/glue.c,
6897         * src/pic16/main.c,
6898         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
6899         for gpasm COFF object generation. Thanks to D. Hawkins for
6900         his patch info
6901
6902 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6903
6904         * src/ds390/main.c,
6905         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
6906         Brock for spotting this)
6907         * src/ds390/gen.c (genEndFunction),
6908         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
6909         interrupt handler and critical. Disable push/pop optimizations when
6910         peephole optimizations disabled.
6911
6912 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6913
6914         Updated pic16 library sources and headers.
6915         * device/lib/pic16/pic18f*/ ,
6916         * device/include/pic16/*.h: modified to handle structured SFR
6917         definitions
6918
6919 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6920
6921         * src/port.h (PORT structure): added hook initPaths, now each
6922         port can declare its own default search paths,
6923         which can been seen with the --print-search-dirs option,
6924         see pic16 port for example,
6925         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
6926         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
6927         * (doPrintSearchDirs): NEW, replaces in a central manner the
6928         printing of search dirs which was split in set*Paths functions,
6929         * (main): added call to port->initPaths and doPrintSearchDirs,
6930         * src/avr/main.c,
6931         * src/ds390/main.c,
6932         * src/hc08/main.c,
6933         * src/izt/i186.c,
6934         * src/izt/tlcs900h.c,
6935         * src/mcs51/main.c,
6936         * src/pic/main.c,
6937         * src/pic16/main.c: modified port structures to reflect addition of
6938         initPaths hook,
6939
6940         * src/pic16/device.c (regCompare): registers are finally sorted by name,
6941         * (pic16_dump_section): for registers in same address reserve memory once,
6942         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
6943         to no_banksel,
6944         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
6945         result is greater in size than right or left,
6946         * (pic16_genUMult8X8_8): there are some cases where the result can
6947         be 16 bits size, so handle these,
6948         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
6949         * (pic16_outBitC): modified to emit pcodes,
6950         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
6951         or not,
6952         * (genDivOneByte): implemented algorithm to divide 8-bits,
6953         * (genCmp): uncommented goto, but issues still exist,
6954         * (genAnd): fixed a bug with variables >8bits,
6955         * (genPackBits): optimization added that uses BCF/BSF to change a
6956         single bit,
6957         * (genAssign): fixed bug when assigning floating point literals,
6958         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
6959         __sdcc_gsinit_startup label,
6960         * src/pic16/main.c (_pic16_init): removed search directory
6961         initialisations,
6962         * (_pic16_initPaths): NEW, used to initialise search directories,
6963         * (_hasNativeMulFor): support functions for all except char/int
6964         multiplication, and char division,
6965         * (PIC16_port struct): modified entry for native mul support,
6966         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
6967         no_banksel option,
6968         * (buildCallTree): call to register_usage is ifdef'ed out,
6969
6970 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6971
6972         * device/include/string.h: applied Stas Sergeev's patch to make this
6973         header file compatible with the preprocessor -Wundef option
6974         * src/SDCCmain.c (main): abort compilation if preprocessor reports
6975         failure (fixes bug #941458)
6976
6977 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6978
6979         * src/SDCCopt.c (killDeadCode): fixed bug #907733
6980         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
6981         that the variable, not the function, should be static
6982         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
6983         to be consistent with non-literal case
6984
6985 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6986
6987         * src/SDCCast.c (isConformingBody): fixed bug #949967
6988         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
6989         convilong): fixed bug #952086
6990
6991 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6992
6993         * src/SDCCmem.c (allocVariables): fixed bug #955321
6994
6995 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6996
6997         * src/hc08/main.c (_hc08_genAssemblerEnd),
6998         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
6999         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
7000         completely eliminated the use of a temporary file
7001         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
7002         when more than one file linked
7003         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
7004
7005 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7006
7007         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
7008         which fixes bug #543481
7009         * support/regression/tests/bug-751703.c: fixed comments left from a
7010         cut and paste error
7011         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
7012         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
7013         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
7014         scopes
7015         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
7016         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
7017         are now changed to underscores in moduleName
7018
7019 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7020
7021         * as/mcs51/lkmem.c: better fix for bug #954173
7022
7023 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7024         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7025
7026         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
7027         * device/include/c8051f000.h,
7028         * device/include/c8051f120.h,
7029         * device/include/c8051f300.h,
7030         * device/include/c8051f310.h,
7031         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
7032         PWM16) and detab'ed
7033
7034 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7035
7036         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
7037         and mailing lists, doc'ed --no-peep-comments, removed reference
7038         to knoppix (newest version has no LyX/LaTeX), other minor changes
7039         * src/SDCCglue.c (glue): save 2 bytes stack space with
7040         option --main-return. The ljmp could probably be avoided too
7041
7042 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7043
7044         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
7045
7046 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7047
7048         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
7049         * src/SDCCopt.c (isLocalWithoutDef),
7050         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
7051         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
7052         (credit to Maarten Brock for patch #949363, on which this is based)
7053         * support/regression/tests/bug-751703.c: some test cases of extern used
7054         within inner scopes.
7055
7056 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7057
7058         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
7059         SPEC_STRUCT
7060         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
7061         struct definitions
7062         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
7063         dwWriteLabel): fix to create valid debugger symbols even when
7064         the module name has non-alphanumeric symbols in it
7065         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
7066         when a variable's allocation has been optimized away
7067
7068
7069 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7070
7071         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
7072         * src/hc08/main.c,
7073         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
7074         * src/mcs51/main.c,
7075         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
7076         * src/ds390/main.c,
7077         * src/z80/gen.c (z80_emitDebuggerSymbol),
7078         * src/z80/main.c,
7079         * src/pic/gen.c (pic14_emitDebuggerSymbol),
7080         * src/pic/main.c,
7081         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
7082         * src/pic16/main.c,
7083         * src/avr/gen.c (avr_emitDebuggerSymbol),
7084         * src/avr/main.c,
7085         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
7086         * src/xa51/main.c,
7087         * src/SDCCdebug.c (emitDebuggerSymbol),
7088         * src/SDCCdebug.h,
7089         * src/port.h: added a debugger struct to the port struct. Added a
7090         callback for defining debugger symbols
7091
7092         * src/SDCCast.c (createLabel),
7093         * src/SDCC.y (labeled_statement): mark all compiler generated labels
7094         with isitmp = 1
7095         * src/SDCCicode.h,
7096         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
7097         iCode back to the ast for the function
7098
7099         * src/hc08/ralloc.c (hc08_assignRegisters),
7100         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
7101         unneeded fields from the regs struct.
7102         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
7103         pushReg() & pullReg() functions instead of emitcode()
7104
7105         * src/hc08/gen.c (genLabel, genhc08Code),
7106         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
7107
7108         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
7109         debugger hooks
7110
7111         * src/hc08/gen.c (genEndFunction, genhc08Code),
7112         * src/hc08/gen.h,
7113         * src/mcs51/gen.c (genEndFunction, gen51Code),
7114         * src/mcs51/gen.h,
7115         * src/ds390/gen.c (genEndFunction, gen390Code),
7116         * src/ds390/gen.h,
7117         * src/z80/gen.c (genEndFunction, genZ80Code),
7118         * src/z80/gen.h,
7119         * src/z80/z80.h,
7120         * src/pic/gen.c (genEndFunction, genpic14Code),
7121         * src/pic/gen.h,
7122         * src/pic16/gen.c (genEndFunction, genpic16Code),
7123         * src/pic16/gen.h,
7124         * src/avr/gen.c (genEndFunction, genAVRCode),
7125         * src/avr/gen.h,
7126         * src/xa51/gen.c (genEndFunction, genXA51Code),
7127         * src/xa51/gen.h,
7128         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
7129         specific code to cdbFile.c and out of the backend code generators
7130
7131         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
7132         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
7133         starting address is now 0
7134
7135         * as/hc08/asm.h,
7136         * as/hc08/m08pst.c,
7137         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
7138         assembler directive for DWARF support
7139         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
7140
7141         * src/src.dsp,
7142         * src/Makefile.in,
7143         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
7144
7145 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7146
7147         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
7148         and inappropriate peephole optimization in jump tables
7149
7150 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7151
7152         * as/hc08/m08pst.c,
7153         * src/SDCCglue.c: sdccopt works for the hc08 port now
7154
7155 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
7156
7157         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
7158
7159 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7160
7161         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
7162
7163 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7164
7165         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
7166         rules
7167         * src/SDCCmain.c,
7168         * src/SDCCglobl.h,
7169         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
7170         comments from the peephole optimizer replacement rules
7171         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
7172         symbols
7173         * src/SDCCcse.c (updateSpillLocation),
7174         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
7175         equivalents
7176         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
7177         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
7178         objects far pointers
7179
7180 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7181
7182         * src/SDCCsymt.h: a missing part of my last change
7183         * src/pic/ralloc.c (regTypeNum),
7184         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
7185
7186 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7187
7188         * src/SDCCicode.h,
7189         * src/SDCCicode.c (aggrToPtrDclType),
7190         * src/SDCCptropt.h,
7191         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
7192         ptrPseudoSymConvert),
7193         * src/pic/ralloc.c (regTypeNum),
7194         * src/pic16/ralloc.c (regTypeNum),
7195         * src/hc08/ralloc.c (regTypeNum),
7196         * src/ds390/ralloc.c (regTypeNum),
7197         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
7198         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
7199
7200 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7201
7202         * link/z80/lkmain.c (afile),
7203         * as/hc08/lkmain.c (afile),
7204         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
7205         prevent a pointer problem when a filename has no directory and
7206         no extension specified.
7207
7208 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7209
7210         * link/z80/lkmain.c (afile): allow periods in directory names
7211         * link/z80/lkmain.c (afile),
7212         * as/mcs51/lkmain.c (afile),
7213         * as/hc08/lkmain.c (afile): allow linker script file to have an
7214         extension other than ".lnk"
7215         * link/z80/lklex.c (getfid),
7216         * link/z80/lkmain.c (parse),
7217         * as/mcs51/lklex.c (getfid),
7218         * as/mcs51/lkmain.c (parse),
7219         * as/hc08/lklex.c (getfid),
7220         * as/hc08/lkmain.c (parse): Support comments in the linker script
7221         file on lines by themselves and after filenames
7222
7223 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7224
7225         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
7226
7227 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7228
7229         * src/z80/peeph-z80.def: removed some peephole rules that don't
7230         work with multibyte arithmetic (fixed bug #937126)
7231         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
7232         to registers and not global variables
7233         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
7234         geniCodePreInc, geniCodePostDec, geniCodePreDec,
7235         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
7236         checking for assignments not internally generated (fixed bug #931895)
7237         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
7238         structure member (fixed bug #930072)
7239
7240 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7241
7242         * src/SDCCmain.c (linkEdit),
7243         * src/hc08/main.c (_hc08_parseOptions),
7244         * as/hc08/Makefile.in,
7245         * as/hc08/aslink.h,
7246         * as/hc08/asm.h,
7247         * as/hc08/m08pst.c,
7248         * as/hc08/lkrloc.c (relr, rele),
7249         * as/hc08/lkarea.c (lnkarea)
7250         * as/hc08/lkmain.c (afile, parse),
7251         * as/hc08/lkelf.c: support for ELF output
7252         * as/hc08/lks19.c (s19),
7253         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
7254
7255 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7256
7257         * as/mcs51/lkihx.c: Fixed bug #899105.
7258
7259 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7260
7261         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
7262         .dsp files from Unix to DOS.
7263
7264 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7265
7266         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
7267         function pointers; we have been compliant for several months now.
7268         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
7269         change that was accidently commented out
7270         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
7271         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
7272         bug #922319
7273
7274 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7275
7276         * src/hc08/gen.c: output of all of the internal debugging information
7277         is now controlled by the D() macro; it is disabled by default
7278
7279 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7280
7281         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
7282         harder to keep the same registers during a CAST iCode
7283         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
7284         long via int can be done in a single cast, if the signedness is
7285         correct.
7286         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
7287         putchar() in tinibios.c in ds390's library
7288
7289 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
7290
7291         * src/SDCCast.c (decorateType): fixed bug #898889,
7292         cast result of a literal complement too
7293         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
7294         fixed check for bitfields
7295
7296 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
7297
7298         * src/SDCCicode.c (geniCodeLogic): made it static,
7299         (geniCodeLogicAndOr): added in order to fix bug #905492,
7300         (ast2iCode): fixed bug #905492
7301         * support/regression/tests/bug-905492.c: added
7302         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
7303         (processParms): fixed bug #927659: don't copy parms, this will clear
7304         decorated flag
7305         * support/regression/tests/bug-927659.c: added
7306
7307 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
7308
7309         * src/SDCCast.c (addCast): don't cast float to char
7310         * device/lib/libsdcc.lib: added _memmove
7311
7312 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
7313
7314         * device/lib/large/Makefile: fixed parallel execution by
7315         replacing `make` by `$(MAKE)`
7316
7317 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7318
7319         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
7320         offsets (fixes bug #923936)
7321
7322 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
7323
7324         * device/lib/small/Makefile: fixed parallel execution by
7325         replacing `make` by `$(MAKE)`
7326
7327 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
7328
7329         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
7330
7331 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
7332
7333         * src/pic/gen.c (genCpl): multi-byte complements were not working.
7334         * src/regression/Makefile: Regression test was not running.
7335
7336 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
7337
7338         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
7339         complement if possible
7340         * src/SDCCval.c (valComplement),
7341         * src/SDCCicode.c (operandOperation): fixed complement of literal
7342         * support/regression/tests/onebyte.c (testComplement): added
7343
7344 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
7345
7346         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
7347         return an optimized tree; actually replace actParm with the new tree
7348         * src/SDCCast.h: added some parantheses to remove side effects
7349         * support/regression/tests/bug-920866.c
7350
7351 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
7352         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
7353         Bit operands were not being handled properly in the pic14 port.
7354         (now src/regression/add.c passes again).
7355
7356 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7357
7358         * src/SDCC.y (labeled_statement): case and default no longer require
7359         a following statement (RFE #893037)
7360
7361 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7362
7363         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
7364         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
7365         disabled (fixes bug #916294)
7366         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
7367         "mov a,acc"; patch provided by Lenny Story
7368         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
7369
7370 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7371
7372         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
7373         functions
7374         * src/ds390/gen.c (genFunction, genEndFunction),
7375         * src/ds390/ralloc.c (ds390_assignRegisters),
7376         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
7377         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
7378         pushed if there are parameters passed on the stack. Also, a cleaner
7379         way to decide if r0/r1 should be pushed/popped. (Together they fix
7380         bug #918693)
7381
7382 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7383
7384         * doc/sdccman.lyx,
7385         * device/lib/mcs51/crtpagesfr.asm,
7386         * device/lib/mcs51/crtxinit.asm,
7387         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
7388         to avoid confusion with Si Lab's SFRPAGE register.
7389
7390 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7391
7392         * src/SDCCglue.c (emitMaps): allow public sfr variables
7393         * src/SDCCglue.c (initialComments): include compiler build date
7394         with compiler version and put the timestamp of the generated
7395         assembly file on a serperate line to be less confusing.
7396         * src/port.h: added genInitStartup hook
7397         * src/avr/main.c,
7398         * src/ds390/main.c,
7399         * src/hc08/main.c,
7400         * src/pic/main.c,
7401         * src/pic16/main.c,
7402         * src/xa51/main.c,
7403         * src/z80/main.c: genInitStartup initialize as NULL (default to
7404         historical behaviour)
7405         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
7406         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
7407         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
7408         library instead of hard coding it into the compiler.
7409         * support/regression/ports/mcs51-stack-auto/spec.mk,
7410         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
7411         * device/lib/mcs51/Makefile,
7412         * device/lib/small/Makefile,
7413         * device/lib/large/Makefile,
7414         * device/lib/mcs51/crtpagesfr.asm,
7415         * device/lib/mcs51/crtstart.asm,
7416         * device/lib/mcs51/crtxclear.asm,
7417         * device/lib/mcs51/crtxinit.asm,
7418         * device/lib/mcs51/crtclear.asm,
7419         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
7420         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
7421         and into user configurable files.
7422         * device/lib/clean.mk: clean mcs51 directory too
7423         * support/regression/tests/longlit.c: added static to T1 declaration
7424         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
7425         accesses in the initialization code
7426
7427 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7428
7429         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
7430         OSCTRIMVAL as noted in bug #916008
7431
7432 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7433
7434         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
7435         in loops with multiple exits (reported as incorrect registers
7436         used by Martin Helmling in Sdcc-user list)
7437
7438 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7439
7440         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
7441         made ds390 register extensions look less like error messages
7442
7443 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7444
7445         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
7446         reported by Adam Wozniak in Sdcc-user list
7447
7448 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
7449
7450         * src/SDCCast.c (decorateType): fixed with bug and promotion in
7451         arithmetic optimizations, added debug output
7452
7453 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
7454
7455         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
7456         * sdcc.spec: updated and split sdcc into 3 rpms
7457         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
7458         needed for literals of LEFT_OP and '+'
7459         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
7460         introduced RESULT_TYPE_NOPROM
7461         (geniCodeMultiply): fixed logic for decision if mul is optimized to
7462         left shift
7463         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
7464         limited promotion to int only for '*'
7465         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
7466
7467 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
7468
7469         * src/pic16/gen.c (genSkip),
7470         (genc16bit2lit), (gencjneshort): commented out
7471         (is_LitOp): new helper function, checks operand type
7472         (genCmpEq): rewritten
7473
7474 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
7475
7476         * support/regression/tests/bug-908454.c: added
7477
7478 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
7479
7480         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
7481         * src/SDCCicode.c (usualBinaryConversions): op needs int type
7482         (geniCodeCast): cosmetic, don't preserve bit storage class
7483         (geniCodeLeftShift): added promotion
7484         (geniCodeLogic): fixed regression
7485         * src/SDCCsymt.c (computeTypeOr): accept bits too
7486         (compareType): 2nd part of fix for bug #908454, needed for bitfields
7487
7488 2004-03-07  Borut Razem <borut.razem AT siol.net>
7489
7490         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
7491
7492 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
7493
7494         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
7495         version of pic16_genPackRegisters which does not check if ic is a
7496         CAST operator,
7497         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
7498         function cause string1.c regression test fails
7499
7500 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
7501
7502         * sim/ucsim/configure.in,
7503         * sim/ucsim/configure,
7504         * sim/ucsim/doc/Makefile.in: use docdir
7505         * src/SDCC.y: fixed sbit atrributes
7506         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
7507         * src/SDCCast.c (decorateType): |^& need special promotion handling
7508         * src/SDCCast.h,
7509         * src/SDCCsymt.h: moved definition of RESULT_TYPE
7510         * src/SDCCsymt.h (computeType),
7511         * src/SDCCicode.c: computeType() needs op
7512         * src/SDCCsymt.c (checkTypeSanity),
7513         * doc/sddman.lyx: "plain" bitfields are unsigned
7514         * src/SDCCsymt.c (computeTypeOr): added
7515         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
7516         |^& ops
7517         * src/SDCCval.c (val*): computeType() needs op
7518         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
7519         * support/regression/tests/onebyte.c: added tests for |^&
7520
7521 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
7522
7523         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
7524         for writing icode into asm output.
7525
7526 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
7527
7528         * src/pic16/device.c: added some debug lines enabled
7529         with macro DEBUG_CHECK,
7530         * src/pic16/genarith.c: more debug in genPlus,
7531         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
7532         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
7533         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
7534         * (aopForSym): onStack symbols are re-placed in data memspace,
7535         and onStack flag is cleared,
7536         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
7537         copy temporary pcodeop,
7538         * (genPcall): added warning for not updating PCLATU,
7539         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
7540         always true for pic16 port,
7541         * (genMultOneWord): NEW, supports integer multiplication,
7542         * (genMult): modified to call genMultOneWord,
7543         * (ifxForOp): added warning when return NULL,
7544         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
7545         flag is set before call to operandFromSymbol for implicit
7546         added structures,
7547         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
7548         options.intlong_rent are set by default,
7549         * (_hasNativeMulFor): modified to allow port generation of integer
7550         multiplication,
7551         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
7552         set regtype to REG_SFR for all registers, restricting seting the
7553         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
7554
7555 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7556
7557         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
7558         more than 500 times in the regression tests
7559
7560 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7561
7562         * support/Util/SDCCerr.h,
7563         * support/Util/SDCCerr.c,
7564         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7565         enumerator_list),
7566         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
7567         for symbol conflicts.
7568         * support/valdiags/tests/enum.c,
7569         * support/valdiags/tests/tentdecl.c,
7570         * support/valdiags/tests/struct.c: expect possible error messages
7571         referring to original symbol definitions.
7572         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
7573         * src/SDCCsymt.h,
7574         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
7575
7576 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
7577
7578         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
7579
7580 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
7581
7582         * src/pic16/ralloc.c (newReg): fixed bug #908929
7583
7584 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7585
7586         * src/ds390/gen.c: added missing #include "main.h"
7587
7588 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
7589
7590         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
7591         checking if symbol is already in set,
7592         * src/pic16/device.h: prototype for checkAddSym,
7593         * src/pic16/gen.c: (_G): added entry interruptvector,
7594         * (assignResultValue): removed some commented out lines,
7595         * (genFunction): check for ISR via sym->type, absolute section for
7596         interrupt code is created via a new pBlock, the goto instruction is
7597         placed now correctly at the interrupt vector position, changed all
7598         references from ivec to _G.interruptvector,
7599         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
7600         is the interrupt is a high priority one, same for return from ISR,
7601         * src/pic16/glue.c: changed all calls of addSetHead for publics and
7602         externs to calls of checkAddSym,
7603         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
7604         pic16_pcode_verbose flag is set,
7605         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
7606         * src/pic16/pcoderegs.c: message about how many registers are saved
7607         will only be emitted if pic16_pcode_verbose flag is set,
7608
7609 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7610
7611         * src/ds390/ralloc.h,
7612         * src/ds390/ralloc.c (ds390_regWithIdx),
7613         * src/ds390/gen.c (emitcode),
7614         * src/ds390/main.h,
7615         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
7616         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7617         ds390operandCompare, getRegsRead, getRegsWritten,
7618         initializeAsmLineNode): customized instruction size calculation for
7619         ds390, started basis for some register optimizations
7620         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
7621         corresponding assembly output
7622         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
7623         missing push/pop of r0/r1. Optimized push/pops
7624
7625 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7626
7627         * src/mcs51/main.c (instructionSize): fixed ACALL size
7628         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
7629
7630 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
7631
7632         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
7633         the sorting of rlist with NULL elements
7634         * (print_idataType, print_idata): NEW to create idata sections
7635         * src/pic16/device.h: idataSymSet new variable
7636         * src/pic16/gen.c (genFunction): fixed some bugs in string
7637         comparing, improved the absolute section creation for ISRs,
7638         added FSR0L/FSR0H in registers that are saved in an ISR,
7639         * (genInline): fixed the processing of inline snippets,
7640         now they undergo no process by the peephole optimizer
7641         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
7642         are placed in idataSymSet,
7643         * (pic16emitStaticSeg): extern symbols are added in externs,
7644         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
7645         switching when aboslute variables are placed in access bank memory
7646         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
7647         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
7648         commented out with #if,
7649         * (pic16_packRegisters): reintroduce the check for CAST because some
7650         symbols are not correctly handled,
7651         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
7652         pCodeInstruction instead of pCode,
7653         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
7654         pCodeAsmDir definition,
7655         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
7656         directive, then the argument directive is emitted without the leading
7657         tab, hack for inline labels which must be in the first column,
7658         * (compareLabel,pic16_findNextInstruction),
7659         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
7660         * (insertBankSwitch): modified for the new pCodeAsmDir,
7661
7662 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7663         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
7664
7665         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
7666         instance,
7667         * (pushSide): commented out with #if,
7668         * (assignResultValue): fixed some typos in saving
7669         registers,
7670         * (genPcall): FIXED and sync'ed with genCall,
7671         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
7672         * (genNearPointerGet): fixed to handle some more cases,
7673         implementation scheme via table reads,
7674         * (genConstPointerGet): modified to access code memory correct,
7675         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
7676         and improved to handle some cases
7677         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
7678         instead of "RETLW" for init data
7679         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
7680         not IN_DIRSPACE, work around to reduce bank switching when aboslute
7681         variables are placed in access bank memory (<0x80 and >=0xf80),
7682         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
7683         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
7684         TBLWT_POSTDEC,TBLWT_PREINC
7685         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
7686         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
7687         directives
7688         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
7689         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
7690         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
7691         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
7692
7693 2004-02-29  Borut Razem <borut.razem AT siol.net>
7694
7695         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
7696         support/Util/findme.h, support/Util/system.h: enhance binary relative
7697         search for lib and include by using findProgramPath()
7698
7699 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7700
7701         * src/SDCCpeeph.h,
7702         * src/SDCCpeeph.c (pcDistance),
7703         * src/port.h,
7704         * src/mcs51/ralloc.h,
7705         * src/mcs51/ralloc.c (mcs51_regWithIdx),
7706         * src/mcs51/main.h,
7707         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
7708         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7709         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
7710         size calculation port specific, started basis for some register
7711         optimizations
7712         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
7713         missing push/pop of r0/r1. Optimized push/pops
7714         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
7715         * device/lib/_modsint.c (_modsint),
7716         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
7717         and stack version so regression tests pass
7718
7719 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
7720
7721         * src/Makefile.in (dep): include SLIBOBJS in dependency check
7722         * src/SDCCast.c (decorateType): catch another small optimization
7723         with '?' operator
7724         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
7725         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
7726         modified to finally use computeType() all over SDCC,
7727         see Feature Request #877103
7728         * src/SDCCval.h: cosmetic
7729         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
7730         valCompare(); regression tested in muldiv.c
7731         * support/regression/tests/muldiv.c (testMod): mod sign follows
7732         dividend only
7733
7734 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
7735
7736         * src/SDCCast.c (decorateType): fixed bug #902362
7737         * doc/INSTALL.txt: fixed install instructions for win32
7738
7739 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
7740
7741         * device/include/Makefile.in (install): fixed by replacing spaces
7742         by tabs
7743         * doc/README.txt,
7744         * doc/INSTALL.txt: updated for release
7745         * doc/sdccman.lyx: added warning for --xstack being buggy
7746
7747 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
7748
7749         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
7750         to eliminate build warnings.
7751         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
7752
7753 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
7754            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7755
7756         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
7757         removed -penable-stack, added comment for stack pragma, added
7758         warning for not initializing the stack/frame registers, removed
7759         comment at interrupts section
7760
7761         Stack is made permanent, there is no ability to disable stack usage.
7762         * src/pic16/device.h,
7763         * src/pic16/device.c: removed all references to USE_STACK macro,
7764         * src/pic16/device.c (pic16_dump_section): when no elements in
7765         rlist, free rlist before return,
7766         * (pic16_dump_int_registers): NEW, internal registers are a new set
7767         of general purpose registers reused by each function,
7768         * (checkAddReg): returns 1 if registers is added to set,
7769         * (pic16_groupRegistersInSection): when a registers is of type
7770         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
7771         * src/pic16/device.h: memRange and Assigned Memory are deleted,
7772         SRCASECMP macro is moved here from device.c
7773         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
7774         PO_PCLATU, PO_PRODL, PO_PRODH,
7775         * (pic16_pCodeOpType, genMinus,
7776         changed compares to "a" register, with AOP_ACC,
7777         * (pic16_genPlus): fixed some bugs and indented properly,
7778         * (pic16_addSign): changed size to size+offset in the MOVWF
7779         instruction,
7780         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
7781         multiply 8-bit operand by literal, result is 8-bit,
7782         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
7783         multiply 2 8-bit operand, result is 8-bit,
7784         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
7785         genUMult8X*_16,
7786         * src/pic16/gen.c: changed accUse to contain WREG only,
7787         * (pic16_emitcomment): renamed to pic16_emitpcomment,
7788         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
7789         true, do not use immediate addressing any more unless sym is a
7790         pointer in codespace,
7791         * (aopForRemat): do not use immediate addressing when symbol not in
7792         codespace and when symbol's address is requested,
7793         * (aopOp): for-loop in if(sym->accUse) is modified for the new
7794         accUse size (= 1),
7795         * (aopGet): added case for AOP_ACC and don't return "accumulator
7796         bug" but WREG instead,
7797         * (popGetTempReg): pushes contents of temporary register in stack,
7798         * (popReleaseTempReg): pops contents of temporary register from
7799         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
7800         * (pic16_popGet): separated case AOP_ACC to return register WREG
7801         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
7802         or PO_IMMEDIATE and initializes their instance/offset appropriately,
7803         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
7804         the use of immediate pointers to certain cases only.
7805
7806         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
7807         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
7808         * (assignResultValue, genCall, genRet): modified to use the new
7809         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
7810         genPcall is still broken,
7811         * (genFunction): added code to create 'A' type pBlocks when
7812         interrupt functions are generated, code not extensively tested yet,
7813         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
7814         * (genEndFunction): modified so ISRs pop stored registers from stack,
7815         * (genMultOneByte): cleanup,
7816         * (AccRsh): added flag andmask, to and result with appropriate mask,
7817         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
7818         * (genDataPointerGet): fixed and reenabled its use,
7819         * (genNearDataPointerGet): bugs fixed,
7820         * (genDataPointerSet): bugs fixed,
7821         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
7822         pic16_DumpSymbol, pic16_DumpOp,
7823         * src/pic16/genutils.h: function prototypes for the above functions,
7824         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
7825         pointers,
7826         * (pic16emitRegularMap): many many many improvements, but needs a
7827         major cleanup,
7828         * src/pic16/main.c: enable_stack in pic16_options is removed,
7829         * (_pic16_parseOptions): removed command line options -penable-stack,
7830         * (_process_pragma): emit stack symbol only when stack pragma is
7831         processed,
7832         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
7833         redirected to FSR0L/FSR0H pair,
7834         * (pic16_get_op, pic16_get_op2): modifications and improvements,
7835         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
7836         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
7837         for immediates,
7838         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
7839         * (dumpPicOptype): NEW,
7840         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
7841         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
7842         with movff instruction,
7843         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
7844         added pic16_int_regs, some packRegsFor* functions are commented out,
7845         because produce errors,
7846         * src/pic16/NOTES: minor modifications
7847
7848 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7849
7850         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
7851         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
7852         --pack-iram.
7853         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
7854         * as/mcs51/lkaomf51.c: fixed bug #895763
7855
7856 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
7857
7858         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
7859
7860 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7861
7862         * doc/sdccman.lyx: added details about the HC08 storage classes and
7863         interrupts, fixed the register usage info for z80 & gbz80
7864
7865 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
7866
7867         * doc/sdccman.lyx: added more pic16 port documentation
7868         * device/include/pic16/: added header pic18fregs.h
7869
7870 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
7871
7872         * doc/sdccman.lyx: added Vangelis' contribution
7873
7874 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7875
7876         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
7877         extend to the next CALL or PCALL, not just to the next CALL.
7878
7879 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
7880
7881         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
7882
7883 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7884
7885         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
7886         bug #895752 and a better fix for bug #716790
7887
7888 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7889
7890         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
7891
7892 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7893
7894         * doc/sdccman.lyx: minor changes, minor changed
7895
7896 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
7897
7898         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
7899         which can't handle SDCC_NEWONEBYTEOPS,
7900         (geniCodeMultiply): removed conversion from mult to shift for pic14
7901         and pic16
7902
7903 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7904
7905         * src/hc08/gen.h,
7906         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
7907         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
7908         thus fixing bug #895406
7909
7910 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
7911
7912         * device/lib/_modsint.c,
7913         * device/lib/_modslong.c: sign follows divisor only
7914         * src/hc08/gen.c (genMultOneByte): if result size is 1,
7915         signs or signedness can be ignored
7916         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
7917         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
7918         added optimization for IFX,
7919         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
7920         arguments;
7921         reenabled optimization for IFX, which was removed on 2004-01-11
7922         * src/SDCCast.h: added return type IFX
7923         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
7924         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
7925         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
7926         SDCC_OLDONEBYTEOPS selects the old behaviour
7927         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
7928         changed again and commented promotion rule
7929         * src/SDCCval.c (valDiv): promotion no longer necessary
7930         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
7931         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
7932         rewritten
7933         * support/regression/tests/onebyte.c: added
7934
7935 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
7936
7937         * gen.c (genInline): reverted to old code for assemnling inline
7938         code because of bug reported James Chadd
7939
7940 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
7941
7942         * ralloc.h: missing declarations from previous patch,
7943         seems that patch for ralloc.h was never applied, fixed
7944
7945 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7946            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7947
7948         * pcode.c,
7949         * pcode.h,
7950         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
7951         indirect addressing. Marked FSR0 as deprecated
7952         * gen.c (pointerCode): commented out, not needed now
7953         (pic16_popGet2p): new MOVFF helper function
7954         (genGenPointerGet),
7955         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
7956         (shiftRLong): removed duplicate debugging info
7957
7958 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7959
7960         * src/ds390/gen.c (genNearPointerGet),
7961         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
7962         optimization with bits, but not bitfields.
7963         * src/ds390/ralloc.c (packRegisters),
7964         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
7965
7966 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
7967
7968         * src/SDCCcse.c (algebraicOpts): copy operands before modification
7969
7970 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7971
7972         * src/SDCCsymt.h,
7973         * src/SDCCicode.c (operandFromSymbol),
7974         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
7975         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
7976         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
7977         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
7978         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
7979         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
7980         bug #892038
7981         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
7982         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
7983         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
7984         * src/SDCCsymt.c (newSymbol),
7985         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7986         enumerator_list),
7987         * src/SDCCval.h,
7988         * src/SDCCval.c (newiList): fixed bug #885705
7989
7990 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7991
7992         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
7993         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
7994
7995 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7996
7997         * device/include/c8051f120.h,
7998         * device/include/c8051f300.h,
7999         * device/include/c8051f310.h: added/updated header files for Silicon
8000         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
8001         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
8002         in new section Submitting patches
8003
8004 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8005
8006         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
8007         genFarPointerGet, genCodePointerGet, genGenPointerGet,
8008         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8009         genGenPointerSet),
8010         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
8011         genFarPointerGet, genCodePointerGet, genGenPointerGet,
8012         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8013         genGenPointerSet),
8014         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
8015         genFarPointerGet, genCodePointerGet, genGenPointerGet,
8016         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8017         genGenPointerSet),
8018         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
8019         genFarPointerGet, genCodePointerGet, genGenPointerGet,
8020         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8021         genGenPointerSet): fixed bug #892400
8022         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
8023         to eliminate build warnings.
8024         * src/SDCCast.c (processParms),
8025         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
8026         fixed bug 751859
8027         * support/valdiag/valdiag.py: added GCC to the list of defines active
8028         when compiling with gcc
8029
8030 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8031
8032         * support/Util/SDCCerr.h,
8033         * support/Util/SDCCerr.c,
8034         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
8035         with an incomplete type (fixed bug #883734)
8036         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
8037
8038 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8039
8040         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
8041
8042 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8043
8044         * src/SDCCast.c (decorateType),
8045         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
8046         function pointer implementation
8047         * support/regression/tests/funptrs.c: added tests to verify both forms
8048         of function pointers work correctly. Added tests to verify parameters
8049         are passed in the correct order.
8050
8051 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
8052
8053         * device.c (regCompare): registers are sorted by ascending
8054         address and increasing size,
8055         * main.c (_pic16_finaliseOptions): removed the declaration
8056         of compiler macro MCU. Now a macro of the format pic18fxxxx
8057         will be defined from the command line
8058
8059 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8060             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
8061
8062         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
8063         PCOP_RLCF was overwritten!
8064         * gen.c (genSkip): commented out calls to pic16_emitcode,
8065         * (genCmpEQ): fixed "long" compares, only high word did get compared,
8066         * (genlshTwo),
8067         * (genRRC): added debugging info,
8068         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
8069         overwritten while shifting,
8070         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
8071         overwritten while shifting,
8072         * (AccLsh),
8073         * (AccRsh),
8074         * (shiftLLeftOrResult),
8075         * (shiftRLeftOrResult),
8076         * (shiftRLong),
8077         * (shiftLLong): Implemented with pic16_emitpcode
8078         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
8079         * (genLeftShift): Fixed bug, operand for shift by variable always
8080         was "and"ed with 0x0f,
8081         * (genLeftShiftLiteral),
8082         * (genrshTwo),
8083         * (genRightShiftLiteral): added debugging info,
8084         * (genrshFour): added comment,
8085         * (genRightShift): determined signedness from operand "left"
8086         instead of "result"
8087
8088 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8089
8090         * src/SDCCicode.c (geniCodeParms),
8091         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
8092         function pointers, fixed function pointer bugs #861242 and #861896
8093
8094 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8095
8096         * device/include/c8051f000.h,
8097         * device/include/c8051f120.h,
8098         * device/include/c8051f300.h: added header files for Silicon
8099         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
8100
8101 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
8102
8103         * src/SDCCast.c (processParams): added new type flow and restructured
8104         (gatherAutoInit): added new type flow
8105         (addCast): cosmetic changes
8106         (getLeftResultType): added new type flow for array indices, patch
8107         provided by Stas, see FR #877103
8108         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
8109         array index patch by Stas
8110         * src/SDCCast.h: added prototype getResultTypeFromType()
8111         * src/SDCCval.h,
8112         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
8113         * src/pic/glue.c (pic14emitStaticSeg),
8114         * src/pic16/glue.c (pic16emitStaticSeg),
8115         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
8116         for initialization of symbols
8117         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
8118         * support/Util/SDCCerr.h:
8119         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
8120         * .version: bumped version number to 2.3.8
8121         * device/include/Makefile.in (install),
8122         * doc/Makefile (install): changed to 'rm `find ...`' construct to
8123         avoid warnings
8124
8125 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
8126
8127         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
8128         Slade Rich fixed an optimization bug
8129         * src/pic/pcodepeep.c,
8130         * src/pic/pcoderegs.c
8131         * doc/Makefile (install): added test for directory
8132
8133 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8134
8135         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
8136         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
8137         * src/pic/ralloc.c (getRegPtr, getRegGpr),
8138         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
8139         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
8140         * as/mcs51/asexpr.c (term),
8141         * as/hc08/asexpr.c (term): fixed bug #887146
8142
8143 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8144
8145         * src/z80/gen.c (genMult): handle single byte result product
8146         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
8147         DUMMY_READ_VOLATILE (fixed bug #886367)
8148
8149 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
8150
8151         * support/regression/tests/libmullong.c: fixed logic, on little endian
8152         hosts we ended without a mullong_wrapper()
8153
8154 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8155
8156         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
8157         virus/worm forged address usage.
8158
8159 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
8160
8161         Fixed promotion, it should be done on AST level:
8162         * src/SDCCast.c (addCast): added promotion to int
8163         (decorateType): updated call to upCast()
8164         * src/SDCCicode.c (geniCodeLeftShift): removed call to
8165         usualUnaryConversions()
8166
8167 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
8168
8169         * support/regression/tests/literalop.c (mulWrapper): Added a
8170         wrapper to remove integer overflow warnings.
8171
8172         * support/regression/tests/float_trans.c: Made work on host.
8173
8174         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
8175         location of sz80.
8176
8177         * support/regression/generate-cases.py (main): Changed from inline
8178         to a main method.
8179
8180         * doc/Makefile (install): Changed to depth first to get rid of
8181         missing directory install warning.
8182
8183         * as/Makefile (install-doc): Made work on Mac.
8184
8185 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
8186
8187         * src/SDCCast.c: added an additional type flow in decorateType() of
8188         opposite direction, see feature request #860006; it's enabled at runtime
8189         by setting the environment variable SDCC_NEWTYPEFLOW
8190         * src/SDCCast.h: changed prototype of decorateType()
8191         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
8192         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
8193         'char' to 'int' can be omitted, if both operands are 'unsigned char';
8194         see feature request #877103
8195         * src/SDCCval.c: updated call of decorateType()
8196         (valBitwise): fixed bug #882876
8197         (valMinus): added promotion
8198         (valLogicAndOr): result is unsigned
8199         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
8200         * src/SDCCsymt.c (computeType),
8201         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
8202         must not cause an unsigned operation
8203         * src/pic/glue (pic14emitRegularMap),
8204         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
8205
8206 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
8207
8208         * src/pic/pcode.c (PCodeID): commented out left over debug code
8209
8210 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
8211
8212         * support/valdiag/tests/overflow.c: added shift tests
8213         * src/pic/device.c,
8214         * src/pic/gen.c,
8215         * src/pic/gen.h,
8216         * src/pic/glue.c,
8217         * src/pic/main.c,
8218         * src/pic/pcode.c,
8219         * src/pic/pcode.h,
8220         * src/pic/pcodepeep.c,
8221         * src/pic/pcoderegs.c,
8222         * src/pic/ralloc.c,
8223         * src/pic/ralloc.h: applied patch from Slade Rich;
8224         added support for multiple code pages and multiple RAM banks on the
8225         PIC 14 port. The ASM files now no longer simply assume all the
8226         code / RAM are in the same page / bank. This means the linker can
8227         safely allocate code/RAM of separate ASM files to different pages/banks.
8228         * doc/sdccman.lyx: added Slade's tips
8229         * src/mcs51/peeph.def: fixed bug #880768
8230
8231 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8232
8233         * src/hc08/ralloc.c (rematStr): fixed bug #879282
8234         * src/SDCCast.c (decorateType): fixed bug #880197
8235
8236 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
8237
8238         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
8239         getopt.h.
8240
8241         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
8242         strtof is not part of C89 and isn't included with Mac OS X.
8243
8244 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8245
8246         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
8247         shiftL2Left2Result): fixed bug #879326
8248         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
8249         (genMultOneByte): fixed bug in signed vs unsigned multiplication
8250         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
8251         address fetch for clr instruction
8252         * device/lib/hc08/_mulint.c: created optimized assembly version
8253         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
8254
8255 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
8256
8257         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
8258         proposed in FR #877103
8259
8260 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
8261
8262         * src/SDCCval.c (cheapestVal): added missing checks
8263         * src/SDCCicode.c (usualBinaryConversions): fixed condition
8264         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
8265
8266 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
8267
8268         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
8269         equal operands
8270
8271 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
8272
8273         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
8274         loaded with the linker search paths (-L arguments) and the libraries
8275         to be linked with the current source (-l arguments). Changes
8276         currently will affect only the pic16 port.
8277         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
8278         include path the port specific paths and port specific libraries,
8279         * gplink command now contains the $3 argument,
8280         * src/pic16/device.h,
8281         * src/pic16/device.c,: structure PIC_device is made public and
8282         renamed to PIC16_device, the same for variable Pics which is renamed
8283         to Pics16. Updated all references to them.
8284         * src/pic16/glue.c (pic16glue): corrected bug with code
8285         initialization which bypassed the variable initializations block.
8286
8287         * device/lib/pic16/Makefile.rules: removed --penable-stack from
8288         COMPILE_FLAGS and added the --nostdinc option
8289
8290 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8291
8292         * device/include/mc68hc908jb8.h: Register defs for another member
8293         of the hc08 family. Contributed by Bjorn Bringert - thanks!
8294
8295 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
8296
8297         Documenting changes from previous commits.
8298         * configure.in (version 1.56),
8299         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
8300         when generating output files to configure the pic16 library,
8301         but now I've commented it out, since gputils aren't installed in the
8302         SF compile farm, so library won't compile
8303
8304         * device/lib/Makefile.in (version 1.56): initially I've added in
8305         target 'all' the prerequestive 'model-pic16' so it compiled the
8306         pic16 library, but now I've commented it out for the same reasons
8307         above,
8308         * added targets 'model-pic16' and 'objects-pic16' to compile the
8309         library
8310         * added target 'port-specific-objects-pic16' to handle the
8311         generated libraries and copy them into the build/ directory
8312         * added target 'clean-intermediate-pic16' to clean intermediate
8313         files into pic16 directory
8314         * in target 'installdirs' added line to create directory pic16 in
8315         the installation path
8316
8317         * device/include/Makefile.in (version 1.11): in target 'install'
8318         added lines to copy all header files to installation path,
8319         * in target 'installdirs' added line create directory for pic16
8320         headers in the installation path
8321
8322 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
8323
8324         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
8325          a function call
8326
8327 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
8328
8329         * configure,
8330         * device/lib/configure.in,
8331         * device/lib/configure: fixed for autoconf 2.57
8332
8333 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8334
8335         * src/z80/main.c (_parseOptions): fixed the portmode= command line
8336         option so that it actually works. Made it specific to the z80, since
8337         the gbz80 doesn't have these kinds of I/O ports.
8338
8339 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8340
8341         * device/include/z180.h,
8342         * device/lib/_memcpy.c,
8343         * device/lib/_memmove.c,
8344         * device/lib/_mulint.c,
8345         * device/lib/ser_ir.c,
8346         * device/lib/ser_ir_cts_rts.c,
8347         * device/lib/_strcmp.c,
8348         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
8349         * src/z80/main.c (_process_pragma): add support for pragmas bank and
8350         portmode; added deprecation warning for bank= and protmode= forms.
8351         Also, guard against buffer overflow.
8352         * src/z80/gen.c (aopGet): generate better code for sfr banked read
8353
8354 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8355
8356         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
8357         changed interrupt vector table generation to only emit declared vectors.
8358         * device/include/Makefile.in: added missing backslash
8359         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
8360
8361 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
8362
8363         Mainly changes to support compilation of the device libraries
8364         * src/pic16/device.c: stack is allocated via symbol and not
8365         via literal number. The symbol is placed in the corresponding
8366         position of the data ram
8367         * (pic16_dump_section): relocatable and absolute uninitialized
8368         data are now emitted in sorted order to reduce section naming,
8369         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
8370         weren't marked as being in the access bank,
8371
8372 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
8373
8374         Added portion of GNU PIC Library under the directory
8375         device/include/pic16 and device/lib/pic16. These files
8376         contain the declarations of SFRs for the PIC18Fxx2 devices.
8377         The directory is initialized via configure from toplevel.
8378
8379 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
8380
8381         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
8382         the spilllocations to be compared correctly
8383
8384 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8385
8386         * src/SDCCast.c (decorateType): fixed bug introduced today
8387
8388 2004-01-12  Borut Razem <borut.razem AT siol.net>
8389
8390         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
8391         doc/sdccman.lyx: upper case pragmas are deprecated
8392
8393 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8394
8395         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
8396         in simpler and even better code
8397
8398 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
8399
8400         * src/SDCCicode.c (operandOperation): fixed bug #874819
8401         * src/SDCCast.c (decorateType): fixed
8402         char foo (unsigned long ul) { return ul > 0; }
8403
8404 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8405
8406         * doc/sdccman.lyx: Moved and added some sections, small changes
8407         all over. Telling LaTeX to be less strict with word spacing
8408         to better keep the right margin. Changed some notes about
8409         maintainance of the ports in section 3.2.1 - is it OK like this?
8410
8411 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8412
8413         SDCC source changes:
8414         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
8415         convilong): modified to inform the pic16 port that builtin functions
8416         are external
8417
8418         PIC16 PORT specific changes:
8419         * src/pic16/device.c pic16_dump_equates() added,
8420         processor registers declared internally by the port are emitted in
8421         the translation as equates,
8422         * src/pic16/gen.c: inline code is passed unprocessed to the
8423         translation,
8424         * (pic16_popGetLit2): fnuction modified to take second operand as
8425         pCodeOp pointer and not as literal,
8426         * (popRegFromIdx): prefixed with pic16_,
8427         * (pic16_popCombine2): modified to receive already allocated pCode
8428         operands,
8429         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
8430         * (genFunction): initializes local stack frame and pushes on stack
8431         all the registers used by this function,
8432         * (genEndFunction): restores all registers from stack and restores
8433         stack frame,
8434         * src/pic16/glue.c (pic16emitRegularMap): various changes and
8435         improvements,
8436         * (pic16glue): changed the program startup sequence,
8437         * added new dbName code 'A' for functions placed in absolute section
8438         * src/pic16/main.c: added function attribute _naked,
8439         * added pragma 'code' to place a fnuction at an absolute address,
8440         * added command line arguments --debug-ralloc and --pcode-verbose,
8441         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
8442         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
8443         * (pic16_newpCodeOpLit2): modified to take the second operand as
8444         pCodeOp pointer,
8445         * (pic16_printpBlock): modified to emit each function in a separate
8446         section,
8447         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
8448         UPPER for immediate operands,
8449         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
8450         instruction,
8451         * src/pic16/peeph.def: all peepholes with movff are commented out,
8452         because there is a problem in the pcode peep optimizer,
8453         * src/pic16/ralloc.c: the register allocator can now reuse local
8454         function symbols for another function. This saves register usage.
8455         * src/pic16/ralloc.h: added flag isLocal in structure regs,
8456
8457         Added file src/pic16/NOTES with information about program writing on
8458         the current port version.
8459
8460 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8461
8462         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
8463         and peephole 252 (array access)
8464
8465 2004-01-09  Borut Razem <borut.razem AT siol.net>
8466
8467         * src/SDCCmain.c : fixed #872250: -l command line defined library
8468           files are scanned before standard library files
8469
8470 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8471
8472         * src/SDCCast.c (decorateType): fixed bug #874046
8473
8474 2004-01-09  Borut Razem <borut.razem AT siol.net>
8475
8476         * support/scripts/sdcc.nsi: remove previous installation
8477
8478 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8479
8480         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
8481         bytes for last interrupt vector (mcs51)
8482         * sdcc.spec: fixed typo
8483
8484 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8485
8486         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
8487         gen51Code): more efficient parameter receive for --model-large
8488         ("bug" #845294)
8489
8490 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8491
8492         * src/ds390/main.c,
8493         * src/z80/main.c: added missed needLinkerScript flags (more than
8494         one port structure defined in these file)
8495         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
8496         bug #795325
8497
8498 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
8499
8500         * src/SDCCmain.c: removed various references to DEFAULT_PORT
8501         * src/port.h: added flag needLinkerScript in port->linker
8502         structure to inform whether to create a .lnk file or not,
8503         * src/avr/main.c,
8504         * src/ds390/main.c,
8505         * src/hc08/main.c,
8506         * src/mcs51/main.c,
8507         * src/pic/main.c,
8508         * src/pic16/main.c,
8509         * src/xa51/main.c,
8510         * src/z80/main.c: changed appropriately to configure
8511         needLinkerScript flag
8512         * src/pic/gen.c,
8513         * src/pic16/gen.c (genAddrOf): fixed bug #863624
8514         * src/pic/glue.c: added variable udata_section_name to
8515         override default uninitialized data segment definition for
8516         devices only with SHAREBANK memory (reported from Erik Epetrich)
8517         * (pic14emitOverlay): modified to emit a commented overlay segment
8518         directive when no overlay data exist
8519         * (picglue): modified to emit uninitialized data segment
8520         according to udata_section_name
8521         * src/pic/main.c (_pic14_parseOptions): added command line
8522         options --udata-section-name=[name] to override default
8523         udata definition name
8524         * modified _linkCmd and _asmCmd to include compiler passed
8525         arguments via -W option
8526         * src/pic16/main.c: added $l in _asmCmd, changed extension for
8527         object file from '.rel' to '.o' in port->linker structure,
8528         changed size of fptr from 2 to 3 in port structure
8529
8530 2004-01-07  Borut Razem <borut.razem AT siol.net>
8531
8532         * support/scripts/sdcc.nsi: update PATH
8533         * support/scripts/sdcc.ico: craeted
8534
8535 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
8536
8537         * device/include/Makefile.in: fix install
8538         * doc/Makefile: fix install
8539
8540 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8541
8542         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
8543         in bug #860505
8544         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
8545         how the function variable allocation summary is displayed; also
8546         include information about variables allocated to the overlay
8547         segment
8548
8549 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8550
8551         * as/mcs51/lkmain.c: Help about -Y option
8552         * as/mcs51/lkarea.c: Fixed gcc warnings
8553
8554 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
8555
8556         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
8557         fixed warning
8558         * support/valdiag/tests/overflow.c: added
8559         * src/SDCCast.c (decorateType),
8560         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
8561         LEFT_OP (left shift)
8562
8563 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8564
8565         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
8566         (default behaviour).
8567
8568 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8569
8570         A python script to validate compiler diagnostic messages. It can be
8571         used to verify that sdcc complains about bad c source code and
8572         gives a good location of the error.
8573         * support/valdiag/Makefile,
8574         * support/valdiag/valdiag.py,
8575         * support/valdiag/tests/*
8576
8577 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8578
8579         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
8580         * src/SDCCsymt.c (newEnumType),
8581         * src/SDCCsymt.h
8582         * support/Util/SDCCerr.c,
8583         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
8584         enum related bugs.
8585         * support/regression/tests/enum.c: added test for enum values that
8586         require at least 2 bytes of storage.
8587
8588 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
8589
8590         * src/common.h: added ifndef/define/endif macros
8591         around the header file.
8592         Bug reported from Jesus Calvino-Fraga
8593
8594 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
8595
8596         * sdcc.spec: updated
8597         * device/include/Makefile.in: don't install CVS directories
8598         * device/lib/Makefile.in: added removal of CVS directories after install
8599         * doc/Makefile: fixed install, added local_icons
8600         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
8601         * src/mcs51/gen.c (genRightShift): fixed bug #870788
8602         * src/ds390/gen.c (genRightShift): fixed bug #870788
8603         * src/SDCCast.c (decorateType): fixed bug #870781
8604
8605 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
8606
8607         PIC16 port related changes:
8608         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
8609         added variable stackPos,
8610
8611         * gen.c: genCall, assignResultValue: added support for
8612         pushing/retrieving function parameters to/from stack,
8613         genFunction,genEndFunction: setup stack frame for the
8614         generated function,
8615         genAddrOf: will be changed according to bug 863624
8616
8617         * added files genutils.c and genutils.h which contain gen*
8618         debugged and optimised functions extracted from gen.c
8619
8620         * glue.c: added variable 'externs' which holds extern symbols,
8621         pic16emitRegularMap: is modified to properly handle relocatable
8622          symbols under the new scheme,
8623         pic16createInterruptVect: is modified
8624         pic16printPublics: is modified to emit 'global' assembler directives,
8625         added pic16_printExterns to print extern symbols,
8626         pic16glue: initializes stack/frame pointer in the beginning of
8627         the assembly output. Temporary hack, will be corrected later,
8628         because gplink yet does not support stack and SDCC does not
8629         yet support a type of crt0.o object to create the final binary.
8630
8631         * Removed many lines that contain 8051 legacy code.
8632         * The code is finally placed under a 'code' directive.
8633         * Added port specific options.
8634
8635         * _process_pragma: simplified since now we do not need *special*
8636         include file to define SFR registers. But a separate header
8637         will be needed. This will be developed later.
8638         * _pic16_parseOptions: added, parses port specific options:
8639         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
8640         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
8641         --preplace-udata-with=
8642
8643         * _pic16_setDefaultOptions: modified to initialize section names,
8644         but hack is temporarly out of order since it needs improvement.
8645         * _pic16_genAssemblerPreamble: configuration words are emitted by
8646         their address instead of their name. This part is incomplete and
8647         supports only the 18Fxx2 devices. Other devices will emit an error
8648         during assembly since they do not contain the same set of config
8649         registers
8650         * _pic16_genIVT: is modified,
8651
8652         * pcode.c: added definitions for some hardware registers that are needed
8653         for stack support
8654         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
8655         All PCI entries are updated. Now LFSR is supported.
8656         * Removed pic16_pciTRIS is mentioned by mdubuc in source
8657         * added pic16_newpCodeOpLit2 to support instructions with
8658         two literal arguments
8659         * pic16_pCode2str: corrected code that emits assembler instructions
8660         with two literal operands and those that have an access bit modifier
8661         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
8662         this fixes a bug which caused some labels to be lost, when an
8663         assembler directive was added, i.e. banksel,
8664         * pic16_FixRegisterBanking: improved logic that causes the insertion
8665         of bank switching,
8666         * InlineFunction: functions that are called once, are not any more
8667         inlined. This can be a port option in the future,
8668
8669         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
8670
8671         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
8672         hold the corresponding uninitialized symbols,
8673         * pic16_allocProcessorRegister: registers have explicit marked the
8674         accessBank field,
8675         * pic16_allocInternalRegister: registers are explicit marked as
8676         not used,
8677         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
8678         processing list, so bit registers were lost,
8679         *
8680
8681         * ralloc.h: added field 'accessBank' and original symbol operand
8682         in register definition,
8683         * removed the field isMapped from register definition,
8684
8685         ** Several functions have been removed from various sources:
8686         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
8687         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
8688         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
8689         pic16_assignRelocatableRegisters
8690
8691         ** others have been introduced:
8692         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
8693         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
8694
8695 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
8696
8697         * support/scripts/inc2h.pl: changed definition of BIT_AT
8698         to emit 'sbit at' instead of 'bit at'. This was a request.
8699
8700         PIC16 port related preliminary changes:
8701         * gen.c: prefixed function popRegFromString with
8702         pic16_ and all references to it corrected
8703         * pcode.c: all pic16_pc_* hardware registers prefixed
8704         with underscore (_),
8705         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
8706         * ralloc.c: newReg(): when register is REG_SFR then
8707         set address to rIdx,
8708         pic16_allocProcessorRegister(): marks register wasUsed=0
8709         pic16_writeUsedRegs(): added a call to assign processor
8710         registers via pic16_assignFixedRegisters
8711
8712 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8713
8714         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
8715         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
8716         variables in unused register banks.  Also the SSEG is placed
8717         wherever there is enough space for it, and IDATA can be anywhere
8718         in internal RAM.  For now compile using -Wl-Y[stack_size].
8719         The mem file is different for this option as well, since it
8720         makes no sense of talking about DSEG lenght.
8721
8722 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
8723
8724         * src/SDCClrange.c: fixed bug 869095 that caused segfault
8725         in certain cases, e.g. when ROM assignment, patch provided
8726         from Albert den Haan.
8727
8728 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
8729
8730         Many signedness and type propagation fixes:
8731         * src/SDCCicode.c: made geniCodeCast() static
8732         replaced SPEC_ by IS_ (cosmetic)
8733         (operandOperation): fixed div and mod operation
8734         (usualBinaryConversions): added support for promotion of char
8735         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
8736         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
8737         (geniCodeAdd): an array index will stay unsigned, even if promoted
8738         from char to int
8739         (geniCodeArray): ditto
8740         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
8741         * src/SDCCsymt.c (computeType): added more support for char;
8742         promotion of char is selectable by promoteCharToInt, fixed signedness
8743         for all cases
8744         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8745         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8746         * src/SDCCval (val*): replaced signedness calculation by
8747         computeType()
8748         rearranged if-branches (cosmetic)
8749         (valShift): added warning W_SHIFT_CHANGED
8750         (valCompare): fixed problem with different types
8751         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
8752         * support/regression/tests/literalop.c: added many cases
8753         * support/regression/tests/ast_constant_folding.c: changed finally to
8754         'unsigned int'
8755         * .version: new year, new version: 2.3.7
8756         * src/SDCCmain.c (main): applied patch #866468
8757         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
8758         provided by Scott Bronson
8759         * doc/sdccman.lyx: updated documentation for sdcdb
8760         updated and added chapter tips
8761
8762 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8763
8764         * src/SDCCsymt.h: missing from yesterday's commits
8765
8766 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8767
8768         * src/SDCC.y (struct_or_union_specifier),
8769         * support/Util/SDCCerr.c,
8770         * support/Util/SDCCerr.h: verify that struct & union tags are used
8771         as declared.
8772
8773 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8774
8775         * src/SDCCglobl.h: missing from yesterday's commits
8776
8777 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8778
8779         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
8780         sft_attributes, struct_declaration, parameter_declaration,
8781         type_name, start_block, declaration_list),
8782         * src/SDCC.lex (check_type): support redefinition of typedef names
8783
8784 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8785
8786         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
8787         aligned xdata arrays. Erik helped me with the if clause.
8788
8789 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8790
8791         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
8792         warning
8793
8794 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8795
8796         * src/SDCCast.h,
8797         * src/SDCCast.c (newAst_),
8798         * src/SDCCicode.h,
8799         * src/SDCCicode.c (ast2iCode, newiCode),
8800         * src/SDCCglobl.h,
8801         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
8802         expr, statement, expression_statement, selection_statement,
8803         iteration_statement, expr_opt, jump_statement): foundation for tracking
8804         sequence points
8805         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
8806         point code too)
8807
8808 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8809
8810         * support/Util/SDCCerr.c,
8811         * src/SDCCast.h,
8812         * src/SDCCast.c (createCase, createDefault, decorateType),
8813         * src/SDCClabel.c (labelUnreach),
8814         * src/SDCC.y (labeled_statement, jump_statement): More improvements
8815         to error messages.
8816         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
8817         (with thanks to Stas Sergeev)
8818         * device/include/time.h,
8819         * device/lib/time.c (CheckTime): suppress unreachable code warning
8820
8821 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8822
8823         * src/SDCCast.c (createIvalCharPtr),
8824         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
8825         bug #753752)
8826         * support/regression/tests/nullstring.c: tests for these two bugs
8827
8828 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8829
8830         * support/Util/SDCCerr.h,
8831         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
8832         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
8833         about storage class and 'at' used inside struct or union
8834         * src/SDCCBBlock.c (iCodeFromeBBlock),
8835         * src/SDCCcse.c (ifxOptimize),
8836         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
8837         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
8838         printIval, emitStaticSeg, emitOverlay),
8839         * src/SDCClabel.c (deleteIfx),
8840         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
8841         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
8842         gatherAutoInit, processParms),
8843         * support/Util/SDCCerr.h,
8844         * support/Util/SDCCerr.c (werrorfl): Support for better error location
8845         reporting for post-parse errors.
8846
8847 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8848
8849         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
8850         implicit casts via union; they don't work on big endian systems
8851         (possible fix for bug #861138)
8852
8853 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8854
8855         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
8856         * src/mcs51/main.c: fixed the fix for bug #737001
8857
8858 2003-12-15  Borut Razem <borut.razem AT siol.net>
8859
8860         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
8861
8862 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8863
8864         * support/makebin/makebin.c: put output in binary mode
8865
8866 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8867
8868         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
8869         xdata and data memory on startup. Set the environment variable
8870         SDCC_NOGENRAMCLEAR to disable this.
8871         * src/mcs51/peephole.def,
8872         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
8873         (allows non-interrupt and interrupt code to safely compete for a resource
8874         without the non-interrupt code having to disable interrupts)
8875
8876 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8877
8878         * src/SDCCicode.c (geniCodeAdd),
8879         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
8880         with valFromType if type might be a pointer and host is big endian).
8881         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
8882         types, not just integer types.
8883         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
8884         multiply defined with mismatching "at" address.
8885
8886 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8887
8888         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
8889         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
8890         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
8891         with embedded nulls (fixed bug #753752)
8892
8893 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8894
8895         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
8896         Apparently this did not see much testing (endless loop)
8897
8898 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8899
8900         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
8901
8902 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8903
8904         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
8905         gracefully handle NULL memmap pointers
8906
8907 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8908
8909         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
8910         instead of deleting the iCode when an operand is volatile
8911         * src/z80/gen.c (genDummyRead),
8912         * src/mcs51/gen.c (genDummyRead),
8913         * src/ds390/gen.c (genDummyRead),
8914         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
8915         not just IC_RIGHT
8916         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
8917         * src/SDCC.y: fixed bug #850420
8918
8919 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8920
8921         Applied z80 i/o port patch from Peter Townson and fixed some operators
8922         to better handle operands in A register.
8923         * device/include/z180.h
8924         * src/SDCC.y
8925         * src/SDCCglue.c
8926         * src/z80/gen.c
8927         * src/z80/gen.h
8928         * src/z80/main.c
8929         * src/z80/peeph-z80.def
8930         * src/z80/peeph.def
8931         * src/z80/z80.h
8932
8933 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8934
8935         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
8936
8937 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8938
8939         * device/lib/hc08/_mullong.c: Removed extra #endif
8940
8941 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8942
8943         * sim/ucsim/hc08.src/inst.cc,
8944         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
8945         carries from x to h
8946         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
8947         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
8948         * device/include/stdarg.h: fixed varargs for hc08
8949         * device/lib/Makefile.in,
8950         * device/lib/hc08/Makefile,
8951         * device/lib/hc08/_mulint.c,
8952         * device/lib/hc08/_mullong.c: fixed some endian problems
8953
8954 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8955
8956         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
8957         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
8958         * device/lib/_gptrget.c,
8959         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
8960
8961 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8962
8963         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
8964         * src/SDCCast.c (astErrors): fixed bug #846007
8965         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
8966
8967 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8968
8969         * src/SDCCast.c (decorateType): disabled a transformation I added in
8970         revision 1.188 (access to fields of a structure at an absolute address);
8971         it breaks with bitfields, extern declarations, and gcse analysis.
8972         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
8973         could be assigned through a pointer, so don't complain.
8974         * src/SDCCast.c (astErrors),
8975         * src/SDCCast.h,
8976         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
8977
8978 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
8979
8980         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
8981         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
8982         output of __config directives, since gpasm now supports them
8983         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
8984         pre-processor macro, i.e. -DMCU=p18f452
8985         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
8986         and modified to handle 'cast' icode similarly to '=' icode
8987         * src/pic16/device.h (typedef struct PIC_device): added field
8988         'extMIface' to indicate that chip has external memory interface
8989         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
8990         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
8991         18F8720
8992
8993 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8994
8995         * src/SDCC.y (pointer): fixed bug #846006
8996         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
8997         * src/SDCCast.c (decorateType): fixed bug #846009
8998         * src/ds390/peeph.def,
8999         * src/ds390/gen.c (genAnd, genOr),
9000         * src/mcs51/peeph.def,
9001         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
9002
9003 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9004
9005         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
9006         * src/SDCCdflow.c
9007         * src/SDCCcse.c
9008         * src/SDCCcse.h
9009         * src/SDCCBBlock.h
9010         * src/SDCCBBlock.c
9011
9012 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
9013
9014         fixed bug #845089
9015         * src/SDCCbitv.h,
9016         * src/SDCCbitv.c: added function to free a bitvector
9017         * src/SDCClrange.h,
9018         * src/SDCClrange.c: added function to recompute the liveranges
9019         * src/avr/ralloc.c,
9020         * src/ds390/ralloc.c,
9021         * src/hc08/ralloc.c,
9022         * src/mcs51/ralloc.c,
9023         * src/pic/ralloc.c,
9024         * src/pic16/ralloc.c,
9025         * src/xa51/ralloc.c,
9026         * src/z80/ralloc.c: recompute the liveranges after register packing
9027
9028 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
9029
9030         * src/SDCCloop.c (newInduction): fixed bug #845630
9031
9032 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9033
9034         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
9035         inadvertantly left behind from my 2003-11-12 change
9036
9037 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9038
9039         Updated headers I neglected to commit yesterday.
9040         * src/SDCClrange.h,
9041         * src/SDCCicode.h
9042
9043 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9044
9045         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
9046         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
9047         * src/SDCCopt.c (eBBlockFromiCode),
9048         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
9049         the creation of the key hash table from the sequencing so it can be used
9050         earlier (for some GCSE bug fixes still pending)
9051
9052 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9053
9054         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
9055         * support/regression/tests/addsub.c: testing genPlus shortcut
9056
9057 2003-11-15  Borut Razem <borut.razem AT siol.net>
9058
9059         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
9060
9061 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9062
9063         * src/SDCCcse.c (cseBBlock): fixed bug #527779
9064         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
9065         ordering is immaterial.
9066         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
9067
9068 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9069
9070         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
9071         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
9072         (SIGSEV) of bug #840381
9073         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
9074         unlink new file before rename if new and old filenames are the same)
9075
9076 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9077
9078         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
9079         uninitialized variables) for the mcs51. Set environment variable
9080         SDCC_GENRAMCLEAR to test.
9081         xdata initialization slightly shorter
9082
9083 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9084
9085         * src/SDCCsymt.h,
9086         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
9087         #838241 & 780691 (basicly the same bug)
9088         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
9089         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
9090
9091 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
9092
9093         * src/SDCCmain.c (linkEdit): "fix" #834252
9094
9095 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9096
9097         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
9098         * src/SDCCast.h,
9099         * src/SDCC.y: fixed bug #819403
9100
9101 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9102
9103         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
9104         the reentrant attribute.
9105         * src/hc08/gen.c (genPackBits): added missing stack readjustment
9106         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
9107         simulation
9108         * src/SDCCast.c (decorateType): fixed bug with storage class not being
9109         updated during pointer dereference; f.e. ~(((char *)1)*) was being
9110         erroneously reduced to a literal.
9111         * src/hc08/ralloc.c (packRegisters, rematStr),
9112         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
9113         some cases
9114
9115 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9116
9117         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
9118         * doc/sdccman.lyx: changed from 'article' to 'book'
9119         * doc/Makefile: readded test_suite_spec and cdbfileformat
9120
9121 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
9122
9123         * device/include/stdlib.h: include malloc.h to comply with ANSI
9124         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
9125
9126 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9127
9128         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
9129         * doc/clean.mk: also remove *.out files
9130         * doc/sdccman.lyx: some additions, larger top/bottom margins
9131
9132 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9133
9134         * src/SDCC.y: fixed bug #837365
9135         * support/regression/tests/bitopcse.c
9136         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
9137         a symbol (might be valop instead)
9138         * device/lib/Makefile.in: added errno.c to HC08SOURCES
9139         * device/lib/clean.mk: added hc08 to the cleaning list
9140
9141 2003-11-04  Borut Razem <borut.razem AT siol.net>
9142
9143         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
9144           made 2003-11-04
9145         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
9146           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
9147           malloc is declared in standard stdlib.h
9148
9149 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9150
9151         * device/lib/hc08/Makefile: need to clean .rel not .o files
9152         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
9153
9154 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9155
9156         * src/port.h,
9157         * src/hc08/main.c,
9158         * src/mcs51/main.c,
9159         * src/ds390/main.c,
9160         * src/z80/main.c,
9161         * src/avr/main.c,
9162         * src/pic/main.c,
9163         * src/pic16/main.c,
9164         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
9165         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
9166         tests (which uses the port's oclsExpense function)
9167         * src/SDCC.y,
9168         * src/SDCCast.c,
9169         * src/SDCCicode.c,
9170         * src/hc08/gen.c,
9171         * src/ds390/gen.c,
9172         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
9173
9174 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9175
9176         * src/SDCCcse.c (ifxOptimize),
9177         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
9178         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
9179         deleting the IFX iCode.
9180         * src/hc08/ralloc.c: reduced unneeded slocs
9181         * src/hc08/gen.c: fixed bug in asmopToBoolean
9182
9183 2003-11-04  Borut Razem <borut.razem AT siol.net>
9184
9185         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
9186           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
9187           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
9188           transferred to configure
9189
9190 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
9191
9192         Use headers defined in the C[++] standards:
9193         * sim/ucsim/gui.src/serio.src/fileio.cc
9194         * sim/ucsim/gui.src/serio.src/frontend.cc
9195         * sim/ucsim/gui.src/serio.src/main.cc
9196         * sim/ucsim/gui.src/serio.src/posix_signal.cc
9197         * support/Util/NewAlloc.c
9198         * as/hc08/lklibr.c
9199         * as/mcs51/lklibr.c
9200         * as/z80/aslist.c
9201         * as/z80/assym.c
9202
9203 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9204
9205         * Added MSVC projects for hc08 assembler and linker:
9206         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
9207         /as/hc08/link_hc08.dsp
9208
9209 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
9210
9211         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
9212
9213 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
9214
9215         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
9216
9217 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9218
9219         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
9220
9221 2003-10-31  Borut Razem <borut.razem AT siol.net>
9222
9223         * support/cpp2/cpplib.h,
9224           support/cpp2/cpplib.c,
9225           support/cpp2/cpplex.c,
9226           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
9227           to switch _asm block preprocessing on / off. Default is
9228           #pragma preproc_asm +
9229
9230 2003-10-31  Borut Razem <borut.razem AT siol.net>
9231
9232         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
9233           when outputting comment blocks (when executed with -C option) and
9234           _asm (SDCPP specific) blocks
9235
9236 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9237
9238         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
9239
9240 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
9241
9242         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
9243
9244 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
9245
9246         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
9247         * src/SDCCast.c (decorateType): fixed bug #832664
9248
9249 2003-10-31  Borut Razem <borut.razem AT siol.net>
9250
9251         * support/cpp2/cpplex.c: fixed for SDCPP:
9252           comments(when executed with -C option) and _asm blocks
9253           were included even if they where in skipped #if block.
9254           Applied solution from GCC cpp 3.3.2
9255
9256 2003-10-31  Borut Razem <borut.razem AT siol.net>
9257
9258         * src/SDCC.lex: sdcc now understands both formats:
9259           '# <line_number> <file_name>' and
9260           '#line <line_number> <file_name>'
9261         * support/cpp2/cppmain.c: sdcpp now generates the standard
9262           '# <line_number> <file_name>' instead of former
9263           '#line <line_number> <file_name>'
9264
9265 2003-10-30  Borut Razem <borut.razem AT siol.net>
9266
9267         * support/cpp2/cpphash.h,
9268         * support/cpp2/cpplib.h
9269         * support/cpp2/cpplex.c,
9270         * support/cpp2/cppmain.c,
9271         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
9272
9273 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9274
9275         Fixed a number of problems revealed by bug #827883.
9276         * src/SDCCloop.c (loopInvariants): Spill location of the
9277         result operand should be recomputed if extracted from
9278         a loop. Also, don't extract assignments of an iTemp
9279         from a literal.
9280         * src/SDCCast.c (isConformingBody): loop reversal should
9281         not occur if the control variable is involved with a
9282         relational operator.
9283
9284 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
9285
9286         * .version: bumped to 2.3.6 to reflect the big improvements
9287         made by Erik and Klaus. Thanks!
9288
9289 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
9290
9291         Replaced the livrange code.
9292         * src/SDCClrange.c: added new LR code
9293         * src/SDCCloop.c,
9294         * src/SDCCBBlock.h: removed remainig parts from old LR code
9295         * src/ds390/ralloc.c,
9296         * src/ds390/gen.c: minor fixes to make it work with new code
9297
9298 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9299
9300         * as/hc08/asm.h,
9301         * as/hc08/lkrloc.c,
9302         * src/hc08/gen.c,
9303         * src/hc08/ralloc.c: Fix various warnings related to the hc08
9304         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
9305         (tweaked fix for bug #818696)
9306
9307 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9308
9309         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
9310
9311 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9312
9313         * src/SDCCmain.c,
9314         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
9315         * src/mcs51/gen.c (gencjneshort),
9316         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
9317         more efficient (per Scott Bronson's suggestion)
9318
9319 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9320
9321         Extended the semantics of the critical keyword to include
9322         individual statements. See RFE #827755 and #799831
9323         * src/SDCC.y
9324         * src/SDCCicode.c
9325         * src/SDCCopt.c
9326         * src/SDCCast.c
9327         * support/Util/SDCCerr.c
9328         * support/Util/SDCCerr.h
9329         * src/mcs51/gen.c
9330         * src/ds390/gen.c
9331         * src/hc08/gen.c
9332
9333 2003-10-19  Borut Razem <borut.razem AT siol.net>
9334
9335         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
9336
9337 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9338
9339         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
9340         Fixed bug #818696
9341         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
9342         and predecrement operand is displayed
9343
9344 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
9345
9346         * src/SDCCval.c (valMinus): fixed bug #826041
9347
9348 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9349
9350         Some hc08 related updates that I missed earlier
9351         * sim/ucsim/stypes.h
9352         * support/regression/ports/hc08/spec.mk
9353
9354 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9355
9356         New target "hc08" for the Motorola 68hc08 family of micros
9357
9358         * configure
9359         * configure.in
9360         * Makefile
9361         * src/hc08/*
9362         * src/SDCCmain.c
9363         * src/port.h
9364         * sim/ucsim/hc08.src/*
9365         * sim/ucsim/configure.in
9366         * src/ucsim/configure
9367         * sim/ucsim/packages_in.mk
9368         * as/hc08/*
9369         * as/Makefile
9370         * device/include/mc68hc908qy.h
9371         * device/lib/hc08/*
9372         * device/lib/Makefile.in
9373         * support/regression/ports/hc08/*
9374         * support/regression/Makefile
9375
9376 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9377
9378         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
9379         regression test
9380         * src/ds390/gen.c (genCast): fixed bug #821957
9381
9382 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
9383
9384         * device/lib/logf.c: "fixed" overlay bug
9385         * support/regression/ports/host/spec.mk: added m library
9386         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
9387         * support/regression/tests/float_trans: added (for Eric)
9388
9389 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
9390
9391         * src/mcs51/gen.c (genCpl): fixed bug
9392         http://sf.net/mailarchive/message.php?msg_id=6263915
9393
9394 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
9395
9396         * src/SDCCast.c (decorateType): added extended constant folding
9397         * src/SDCCsymt.c (computeType): cleanup
9398         * src/SDCCval.c (valShift): minor optimization
9399         * support/regression/tests/ast_constant_folding.c: added
9400
9401 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9402
9403         * src/SDCCmain.c: removed some unintended changes
9404
9405 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9406
9407         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
9408         * src/z80/gen.c: fixed part of bug #817589
9409         * src/SDCCsymt.c (checkFunction): fixed bug #817895
9410
9411 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
9412
9413         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
9414         * src/SDCCcflow.c
9415         * src/SDCCcse.c
9416         * src/SDCCdflow.c
9417         * src/SDCClabel.c
9418         * src/SDCClrange.c
9419         * src/SDCCmem.c
9420         * src/SDCCopt.c
9421         * src/SDCCpeeph.c
9422         * src/SDCCset.c
9423         * src/avr/ralloc.c
9424         * src/ds390/ralloc.c
9425         * src/izt/ralloc.c
9426         * src/mcs51/ralloc.c
9427         * src/pic/ralloc.c
9428         * src/pic16/ralloc.c
9429         * src/xa51/ralloc.c
9430         * src/z80/ralloc.c
9431         * src/z80/gen.c: removed unused label "release:"
9432
9433 2003-10-06  Borut Razem <borut.razem AT siol.net>
9434
9435         * src/SDCC.lex: removed definition of unused variables
9436           save_optimize and save_options
9437
9438 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
9439
9440         * clean.mk: removed '=' in "-maxdepth=1"
9441         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
9442         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
9443
9444 2003-10-06  Borut Razem <borut.razem AT siol.net>
9445
9446         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
9447           my_unput() replaced by unput()
9448
9449 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
9450
9451         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
9452         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
9453         type-punned pointer will break strict-aliasing rules"
9454         Old LR behaviour is again default; Klaus' LR can be choosen by
9455         defining the environment variable LRKLAUS
9456         * src/SDCCBBlock.h
9457         * src/SDCCloop.c
9458         * src/SDCClrange.c
9459         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
9460         * clean.mk: fixed removal of files in bin/CVS/
9461         * device/lib/clean.mk: fixed removal of directories small and large
9462         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
9463         * src/SDCCicode.c,
9464         * src/SDCCval.c: removed superflous test for pedantic
9465
9466 2003-10-05  Borut Razem <borut.razem AT siol.net>
9467
9468         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
9469           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
9470           message "unmatched #pragma SAVE and #pragma RESTORE"
9471
9472 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9473
9474         * doc/sdccman.lyx: various additions and updates (interrupts, inline
9475           assembly, critical functions, atomic, nojtbound)
9476
9477 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
9478
9479         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
9480         * src/SDCCBBlock.h
9481         * src/SDCCloop.c
9482         * src/SDCCloop.h
9483         * src/SDCClrange.c
9484
9485 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9486
9487         * src/z80/gen.h,
9488         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9489         * src/mcs51/gen.h
9490         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9491         * src/ds390/gen.h
9492         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9493         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
9494         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
9495
9496 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9497
9498         * src/z80/gen.c (genRet): fixed bug #524753
9499         * src/z80/gen.c (genCast): fixed internal error on cast from
9500         pointer to long
9501         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
9502         fix for bug #477835 to the z80
9503         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
9504         for tracking iCodes in the peephole optimizer for z80
9505
9506 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9507
9508         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
9509         the other part of bug #814548
9510         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
9511
9512 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
9513
9514         * src/SDCCcse.c: fixed part of bug #814548
9515
9516 2003-09-28  Borut Razem <borut.razem AT siol.net>
9517
9518         * src/asm.c: rewrite of printILine() to use temporary file instead
9519           a pipe
9520         * src/xa51/main.c: commented out declaration of int rewinds
9521
9522 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9523
9524         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
9525
9526 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9527
9528         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
9529         * src/asm.c (printILine): Fixed bug #811015
9530
9531 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9532
9533         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
9534         freeing.
9535
9536 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9537
9538         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
9539         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
9540         to correctly handle general case of AOP_PAIRPTR
9541         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
9542
9543 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9544
9545         * src/mcs51/ralloc.c (fillGaps),
9546         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
9547         register positioning bug)
9548
9549 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
9550
9551         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
9552
9553 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9554
9555         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
9556         genCodePointerGet, genGenPointerGet, genFarPointerSet,
9557         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
9558         (ralloc doesn't intentionally do this now, but perhaps later)
9559         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
9560         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
9561         register positioning bugs (Fixed bug #762602 and #795325)
9562         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
9563         (Fixed bug #808779)
9564         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
9565         lines that --i-code-in-asm generates
9566
9567 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9568
9569         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
9570         trying to fclose a FILE* that was already closed.
9571
9572 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9573
9574         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
9575         of const struct should be treated as if const themselves)
9576
9577 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
9578
9579         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
9580
9581 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9582
9583         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
9584         Unix (/n) and DOS (/r/n) line terminations.
9585
9586 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9587
9588         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
9589         bug #613775
9590
9591 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9592
9593         * src/mcs51/gen.c (genFunction, genEndFunction),
9594         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
9595         and restore of EA so that stack offsets to parameters are
9596         correct when using both critical and reentrant/stack-auto.
9597         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
9598         size (can be triggered in error if sloc is shared between
9599         different sized objects)
9600         * device/include/float.h: fixed macros to explicitly use
9601         unsigned long where needed
9602
9603 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
9604
9605         Feature req. 799831: added code to allow nesting of critical functions
9606         * src/mcs51/gen.c (genFunction, genEndFunction)
9607         * src/ds390/gen.c (genFunction, genEndFunction)
9608
9609 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9610
9611         * src/SDCCsymt.c (sclsFromPtr),
9612         * src/SDCCsymt.h,
9613         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
9614         support for standard C idiom of memory mapped variables; for
9615         example, *((xdata int*)0x1234) = 1 is now internally equivalent
9616         to xdata int at 0x1234 tempvar = 1.
9617         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
9618         provided by Akiya ISHIDA
9619
9620 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
9621
9622         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
9623         * src/SDCCval.c (constVal): added reduction from int to char
9624         * src/SDCCval.c (valMult, valDiv): fixed sign handling
9625         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
9626         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
9627         to ignore the sign
9628         * support/regression/tests/shifts.c: fixed
9629
9630 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9631
9632         * src/z80/gen.c (genXor): Fixed bug #805445
9633
9634 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9635
9636         Fixed bug #621531 (const & volatile confusion in the type chain).
9637         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
9638         refer to the const or volatile state of the pointer itself.
9639
9640         * src/SDCCast.c
9641         * src/SDCCglue.c
9642         * src/SDCCicode.c
9643         * src/SDCCsymt.c
9644         * src/SDCCval.c
9645         * src/SDCC.y
9646         * src/SDCCsymt.h
9647         * src/pic/gen.c
9648         * src/pic/ralloc.c
9649         * src/pic16/gen.c
9650         * src/pic16/ralloc.c
9651         * support/regression/tests/const.c
9652
9653 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9654
9655         When checking for duplicated modules, use absolute paths
9656         instead of relative paths.  Files changed:
9657
9658         * as/mcs51/lklib.c
9659         * link/z80/lklib.c
9660
9661 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9662
9663         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
9664
9665 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9666
9667         * device/include/string.h: added size_t typedef, changed
9668         prototypes to use size_t, eliminated separate reentrant and
9669         non-reentrant declarations, added _memmove declaration
9670         * device/lib/_memcpy.c: changed to use size_t instead of int,
9671         changed /4 to >>2 to avoid division library call
9672         * device/lib/_memcmp.c,
9673         * device/lib/_memset.c,
9674         * device/lib/_strncat.c,
9675         * device/lib/_strncpy.c,
9676         * device/lib/_strncmp.c: changed to use size_t instead of int
9677         * device/lib/_memmove.c: new file (fixed bug #772294)
9678         * device/lib/Makefile.in: added _memmove.c
9679         * device/lib/z80/asm_strings.s: fixed bug #772290
9680         * support/regression/tests/bitfields.c: attempt to fix host assertion
9681         failure on amd64-unknown-linux2.2
9682
9683 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9684
9685         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
9686         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
9687         * as/z80/asmain.c (main): fixed bug #801766
9688
9689 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
9690
9691         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
9692         compilers
9693
9694 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9695
9696         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
9697         reported in bug #800609
9698
9699 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
9700
9701         * Top header beautifications in src/pic16 directory:
9702           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
9703           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
9704           pcoderegs.h, ralloc.c, ralloc.h
9705         * main.c: added top header and GPL license notice
9706         * pcode.c: fixed the if-conditional warning
9707
9708 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
9709
9710         * device/lib/_mullong.c: replaced int by short for gcc
9711
9712 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9713
9714         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
9715         and JUMPTABLE iCodes properly now (worked by accident before)
9716         * src/mcs51/gen.c (leftRightUseAcc),
9717         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
9718         iCode properly now. Use getSize instead of nRegs since a & b
9719         aren't part of the nRegs tally.
9720
9721 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
9722
9723         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
9724         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
9725           before instructions that use the _STATUS register
9726
9727 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
9728
9729         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
9730         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
9731         fetching of the pointer
9732         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
9733         copied from genNearPointerSet()
9734         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
9735         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
9736         If they pop r0/r1 they must be called in the opposite order than aopOp().
9737         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
9738         (resp. --stack-auto), prepared for --xstack
9739
9740 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9741
9742         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
9743
9744 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
9745
9746         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
9747         these ports have their own __sdcc_external_start()
9748
9749 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
9750
9751         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9752         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
9753         type for bits was changed. It resulted in bit variables becoming
9754         global, which is not permitted in PIC 14 assembly output.
9755
9756 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9757
9758         * doc/sdccman.lyx: various additions and updates. Rearranged sections
9759
9760 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9761
9762         Z80 and MCS51 linkers complaint if a public symbol is defined
9763         in more than one library module:
9764
9765         * as/mcs51/lklib.c
9766         * link/z80/lklib.c
9767         * as/mcs51/Makefile.in
9768
9769 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9770
9771         A few small changes that speed up the peephole optimizer.
9772
9773         * src/SDCCpeeph.c
9774
9775 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9776
9777         Try to make the peephole optimizer smarter by maintaining
9778         an association between the assembly source code and the
9779         iCodes that originated them. Put this information to use
9780         with a new peephole rule condition "notVolatile" so that
9781         the rules can be aggressive yet still safe.
9782
9783         * src/SDCCpeeph.c
9784         * src/SDCCpeeph.h
9785         * src/mcs51/gen.c
9786         * src/mcs51/peeph.def
9787
9788 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9789
9790         Fixed bug #741761
9791
9792         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
9793         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
9794         if the left or right operand symbols have the accuse flag set.
9795
9796 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9797
9798         Changed the type of the result of the ! (NOT) operator to char;
9799         previously it returned the same type as the source. This allows
9800         us to eliminate all the genFloatNot functions (all of its target
9801         implementations were very buggy) since !float can use the same
9802         code as !long now.
9803
9804         * src/SDCCicode.c (ast2iCode): ! returns char
9805         * src/mcs51/gen.c (genNot, genNotFloat),
9806         * src/ds390/gen.c (genNot, genNotFloat),
9807         * src/z80/gen.c (genNot, genNotFloat),
9808         * src/pic/gen.c (genNot, genNotFloat),
9809         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
9810
9811 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
9812
9813         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9814         1. Interrupt would not compile properly. Ensure PCLATH register is saved
9815            during interrupts. Ensure WSAVE is located at a shared bank address.
9816         2. Fixed page selection in some places
9817         3. Fixed BTFSS/C to where necessary use registers directly and not simply
9818            the registers name strings.
9819         4. Fixed "signed / unsigned compare" compiler warnings.
9820         5. The PIC port manages its own allocation of the general purpose
9821            registers, but makes no attempt to reuse them. As a result when
9822            compiling it soon runs out of general purpose registers. Some
9823            additional code was added to the files pcode.c and device.c to walk
9824            through the function call tree and rename the registers so that they
9825            get reused.
9826
9827         * src/pic/device.c
9828         * src/pic/gen.c
9829         * src/pic/glue.c
9830         * src/pic/pcode.c
9831         * src/pic/pcode.h
9832         * src/pic/ralloc.c
9833         * src/pic/ralloc.h
9834         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
9835         genPlus() & genMinus() when the result is the same as left or right
9836
9837 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9838
9839         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
9840
9841 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9842
9843         Made bitfield a distinct type from bit so that bitfields
9844         convert as per ANSI C and bits retain their traditional
9845         boolean style behaviour. Implemented bitfield support in
9846         the z80 port.
9847
9848         * src/SDCCsymt.h,
9849         * src/SDCCsymt.c,
9850         * src/SDCCast.c,
9851         * src/cdbFile.c,
9852         * src/mcs51/gen.c,
9853         * src/ds390/gen.c: bit v bitfield split
9854         * src/z80/gen.c: New support for bitfields
9855         * support/regression/tests/bitfields.c: reenabled z80,
9856         added more tests
9857
9858 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9859
9860         Rules 246.x, 247.x relate to bitfields, the others speed up
9861         access to xdata mapped I/O devices.
9862
9863         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
9864
9865 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9866
9867         Cleaned up genPackBits and genUnpackBits and added two helper
9868         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
9869         for literal assignments in genPackBits (thanks to Frieder for
9870         reminding me).
9871
9872         * src/mcs51/gen.c
9873         * src/ds390/gen.c
9874
9875 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9876
9877         Fixed bug #748310 (pointer to function type mishandled when the
9878         function name is omitted). Also fixed a SIGSEGV when a function
9879         attribute (reentrant, etc) is used on a non-function or on a
9880         function but misplaced before the parameter list.
9881
9882         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
9883         bug #748310
9884         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
9885         * support/Util/SDCCerr.h,
9886         * support/Util/SDCCerr.c: Added func attr misuse error msg
9887
9888 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
9889
9890         Fixed bug #787649 by anonymous
9891         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
9892         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
9893
9894 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9895
9896         Fixed numerous bitfield problems.
9897
9898         * src/SDCC.y: More bitfield related error checking
9899         * src/SDCCsymt.h,
9900         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
9901         * support/Util/SDCCerr.h,
9902         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
9903         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9904         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9905         * support/regression/tests/bitfields.c: tests added
9906
9907 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9908
9909         Made the constant following the "interrupt" keyword optional. If
9910         omitted, the function will not automatically be given an entry
9911         in the interrupt vector table (similar to #pragma NOIV, but
9912         less syntacticly kludgy). The interrupt number is also now
9913         range checked. Also fixed a bug in the high order bit example
9914         in the manual.
9915
9916         * src/SDCC.y
9917         * src/SDCCmem.c
9918         * src/SDCCglue.c
9919         * src/SDCCsymt.h
9920         * support/Util/SDCCerr.c
9921         * support/Util/SDCCerr.h
9922         * doc/sdccman.lyx
9923
9924 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
9925
9926         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
9927         * src/SDCCicode.c (operandOperation): rewritten some ops
9928         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
9929         * src/SDCCsymt.c (computeType): literals are handled the same way as any
9930         other type
9931         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
9932         be re-activated by defining REDUCE_LITERALS)
9933         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
9934         unsigned, but are signed by default
9935         * src/SDCCval.c (constVal): rearranged
9936         * src/SDCCval.c (valMod): preliminary fix
9937         * src/SDCCval.c (valCastLiteral): use TYPE_* types
9938         * support/regression/literalop.c: added, work in progress
9939
9940 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9941
9942         Generate warnings for useless declarations like "char data;"
9943         that don't do what new users expect.
9944
9945         * src/SDCC.y
9946         * support/Util/SDCCerr.h
9947         * support/Util/SDCCerr.c
9948
9949 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
9950
9951         * src/SDCCval.c (valMult): fix overflow detection of negative int
9952
9953 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9954
9955         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
9956
9957         Changes to support big endian targets:
9958
9959         * src/ports.h
9960         * src/SDCCglue.c
9961         * src/avr/main.c
9962         * src/ds390/main.c
9963         * src/izt/i186.c
9964         * src/mcs51/main.c
9965         * src/pic/main.c
9966         * src/pic16/main.c
9967         * src/xa51/main.c
9968         * src/z80/main.c
9969
9970 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
9971
9972         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
9973         * device/lib/time.c: fixed warning "integer overflow in expression"
9974
9975 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
9976
9977         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
9978         * src/SDCCval.c (constVal): changed default to signed; hex and octal
9979         constants are unsigned; added recognition of "u" flag for unsigned
9980         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
9981         * src/SDCCval.c (valDiv, valMod): fixed signdness
9982         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
9983         signedness of modulo, left and right shift
9984         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
9985         * support/Util/SDCCerr.h: added warning W_INT_OVL
9986         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
9987         * src/SDCCast.c (ast_print): improved output of constants
9988
9989 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9990
9991         Fixed some warnings when building with MSVC:
9992
9993         * as/mcs51/asdata.c
9994         * as/z80/asdata.c
9995         * as/mcs51/asm.h
9996         * as/z80/asm.h
9997         * link/z80/aslink.h
9998         * link/z80/lkdata.c
9999         * link/z80/lkeval.c
10000         * link/z80/lkgb.c
10001         * link/z80/lkihx.c
10002         * link/z80/lks19.c
10003         * link/z80/lksym.c
10004         * support/cpp2/cpplib.c
10005         * src/ds390/gen.c
10006         * src/mcs51/gen.c
10007
10008 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
10009
10010         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
10011
10012 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10013
10014         * support/librarian/clean.mk: Do not remove Makefile.
10015         * support/librarian/Makefile: added.
10016
10017 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10018
10019         Added librarian to MSVC build:
10020         * all.dsp
10021         * sdcc.dsw
10022         * support/librarian/librarian.dsp
10023
10024         'configure' not needed for librarian, removed:
10025         * support/librarian/configure
10026         * support/librarian/configure.in
10027         * support/librarian/config_in.h
10028         * support/librarian/Makefile.in
10029
10030         Hopefully these ones built the librarian and the rest of sdcc properly:
10031         * Makefile
10032         * Makefile.common.in
10033
10034         Messed up 'configure', so revert to previous version:
10035         * configure
10036         * configure.in
10037
10038 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
10039
10040         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
10041         there, while the mantissa of a double is "only" 53 bits wide.
10042
10043 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10044
10045         Adding sdcclib to the build.  MSVC project coming soon.
10046         Files added/changed:
10047
10048         * support/librarian/clean.mk
10049         * support/librarian/configure
10050         * support/librarian/configure.in
10051         * support/librarian/config_in.h
10052         * support/librarian/Makefile.bcc
10053         * support/librarian/Makefile.in
10054         * support/librarian/sdcclib.c
10055         * Makefile.bcc
10056         * Makefile
10057         * Makefile.common.in
10058         * configure
10059         * configure.in
10060
10061 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10062
10063         Linker now complaints if linked modules have conflicting options, for
10064         example, one compiled using --model-large and another one compiled with
10065         --model-small.  The following files were modified:
10066
10067         * as/mcs51/asdata.c
10068         * as/mcs51/aslink.h
10069         * as/mcs51/asm.h
10070         * as/mcs51/asmain.c
10071         * as/mcs51/asout.c
10072         * as/mcs51/i51pst.c
10073         * as/mcs51/lkdata.c
10074         * as/mcs51/lklibr.c
10075         * as/mcs51/lkmain.c
10076         * as/z80/asdata.c
10077         * as/z80/asm.h
10078         * as/z80/asmain.c
10079         * as/z80/asout.c
10080         * as/z80/z80pst.c
10081         * link/z80/aslink.h
10082         * link/z80/lkdata.c
10083         * link/z80/lklibr.c
10084         * link/z80/lkmain.c
10085         * src/SDCCglue.c
10086
10087 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10088
10089         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
10090         as/mcs51/lklibr.c: Generate a warning when a library is not found.
10091
10092 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
10093
10094         * src/z80/mappings.i: fix _mul[us][int,long] entries
10095
10096 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10097
10098         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
10099
10100 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
10101
10102         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
10103         * support/regression/tests/bitopcse.c: added
10104         fixed warning:
10105         * src/avr/gen.c:
10106         * src/pic/gen.c:
10107         * src/pic16/gen.c:
10108         * src/z80/gen.c:
10109         * src/xa51/gen.c:
10110
10111 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10112
10113         added support for new library format to z80, gbz80 linkers:
10114         *link/z80/aslink.h
10115         *link/z80/lklex.c
10116         *link/z80/lklib.c
10117         *link/z80/lklist.c
10118
10119 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
10120
10121         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
10122         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
10123
10124 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
10125
10126         added DUMMY_READ_VOLATILE:
10127         * src/SDCC.y:
10128         * src/avr/gen.c:
10129         * src/xa51/gen.c:
10130         * src/z80/gen.c:
10131         * src/pic/gen.c:
10132         * src/pic16/gen.c:
10133         * src/mcs51/gen.c:
10134         * src/ds390/gen.c:
10135         * src/SDCCcse.c (algebraicOpts): many improvements
10136         * src/SDCCcse.h: removed algebraicOpts()
10137         * src/SDCCicode.c (picDummyRead): added
10138
10139 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10140
10141         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
10142         "Insufficient space in data memory".
10143
10144 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10145
10146         * src/mcs51/gen.c: fixed bug #771358
10147         * src/z80/gen.c: fixed bug #759087
10148
10149 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
10150
10151         * src/pic16/glue.c: minor cleanup by Vangelis
10152
10153 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10154
10155         * device/include/regc515c.h: fixed #758477
10156         * device/lib/_gptrget.c: saving some cycles in generic pointer get
10157         * device/lib/_gptrput.c: saved a few bytes
10158         * my tab spacing is 8, yours too?)
10159         * device/lib/_ser.c: process RX bytes earlier than TX bytes
10160         * device/lib/serial.c: process RX bytes earlier than TX bytes
10161         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
10162
10163 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10164
10165         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
10166
10167 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10168
10169     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
10170
10171 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
10172
10173         * device/lib/Makefile.in: bad fix, reverted to 1.43
10174
10175 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
10176
10177         * device/lib/Makefile.in: added missing z80 object files
10178
10179 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
10180
10181         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
10182         pic16 progress by Vangelis:
10183         * src/SDCCglobl.h:
10184         * src/SDCCmain.c:
10185         * src/pic/Makefile:
10186         * src/pic:
10187         * pic/Makefile:
10188         * pic16/device.c:
10189         * pic16/device.h:
10190         * pic16/gen.c:
10191         * pic16/gen.h:
10192         * pic16/genarith.c:
10193         * pic16/glue.c:
10194         * pic16/main.c:
10195         * pic16/pcode.c:
10196         * pic16/pcode.h:
10197         * pic16/pcodepeep.c:
10198         * pic16/peeph.def:
10199
10200 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10201
10202     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
10203
10204 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10205
10206     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
10207     added gbz80 build to MSVC project.
10208     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
10209     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
10210     from 8051 stuff and setup so it links using a .lnk file.
10211
10212 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10213
10214     * support/librarian/sdcclib.c: sdcc librarian.
10215     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
10216     with sdcclib.
10217
10218 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10219
10220     * as/mcs51/lkmain.c: properly handle extensions in function afile.
10221
10222 2003-07-02  Borut Razem <borut.razem AT siol.net>
10223
10224         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
10225         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
10226         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
10227         src/xa51/main.c, src/z80/main.c:
10228         virtualization of glue() function: each port has it's own glue function,
10229         which is accessed by do_glue function pointer in PORT.general structure
10230
10231 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
10232
10233         * DS800C400 fun, improved ROM interface and tinibios.
10234
10235 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
10236
10237         * More support for DS80C400. Now includes beginning of interface to ROM.
10238
10239 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
10240
10241         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
10242
10243 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10244
10245         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
10246
10247 2003-06-19  Borut Razem <borut.razem AT siol.net>
10248
10249         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
10250
10251 2003-06-19  Borut Razem <borut.razem AT siol.net>
10252
10253         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
10254         fixed Z80 port - crt0.o: cannot open.
10255
10256 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
10257
10258         * support/Util/MySystem.c (merge_command): revert bad fix
10259
10260 2003-06-18  Borut Razem <borut.razem AT siol.net>
10261
10262         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
10263
10264 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10265
10266         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
10267         option --use-stdout sends errors to stdout instead of stderr.
10268
10269 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
10270
10271         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
10272
10273 2003-06-15  Borut Razem <borut.razem AT siol.net>
10274
10275         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
10276         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
10277         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
10278         fixed width array of pointers replaced with sets;
10279         multiple include and lib paths ared transferred to preprocessor and linker
10280         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
10281         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
10282         fixed width array of pointers
10283         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
10284         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
10285         fixupPath(), getPathDifference()
10286         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
10287         fixed width array of pointers
10288
10289 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
10290
10291         * src/pic16/ralloc.c: fix warnings
10292         * src/pic16/pcode.c: fix warning
10293
10294 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
10295
10296          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
10297         know all the details, but essentially this set of changes enable
10298         the pic16 port to generate movff instructions and generate assembler
10299         directives,
10300         * src/SDCCmain.c:
10301         * src/pic16/gen.c:
10302         * src/pic16/glue.c:
10303         * src/pic16/pcode.c:
10304         * src/pic16/device.c:
10305         * src/pic16/main.c:
10306         * src/pic16/pcode.h:
10307         * src/pic16/pcoderegs.c:
10308         * src/pic16/ralloc.c:
10309         * src/pic16/ralloc.h:
10310
10311 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10312
10313         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
10314         added option --vc, so sdcc errors and warnings are compatible with
10315         Microsoft Visual Studio.
10316
10317 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10318
10319         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
10320           device/lib/libfloat.lib: added atof function.
10321
10322 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
10323
10324         * doc/sdccman.lyx: updated to Lyx 1.3
10325         * doc/cdbfileformat.lyx: updated to Lyx 1.3
10326         * doc/test_suite_spec.lyx: updated to Lyx 1.3
10327         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
10328
10329 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
10330
10331         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
10332
10333 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10334
10335         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
10336           additions to the "related tools/documentation" section
10337
10338 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
10339
10340         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
10341
10342 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
10343
10344         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
10345         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
10346
10347 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
10348
10349         * doc/sdccman.lyx: fix double dash and other minor things
10350         * doc/Makefile: fix double dash
10351
10352 2003-05-28  Karl Bongers(patches from Martin Helmling)
10353         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
10354           condition and ignore commands.
10355
10356 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10357
10358         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
10359           is in parts still quite out of date, I did changes as far as I felt makes sense
10360           for a non-native english speaker.
10361           Please feel free to add to the manual or to correct my changes.
10362         * doc/Makefile: undid touching the date of intermediate tex files.
10363
10364 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10365
10366         * doc/sdccman.lyx: Manual has an index now
10367
10368 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
10369
10370         Finalize muluint/mulsint and mululong/mulslong merging:
10371         * device/lib/_mulint.c
10372         * device/lib/_mullong.c
10373         * device/lib/gbz80/mul.s
10374         * device/lib/gbz80/stubs.s
10375         * device/lib/z80/mul.s
10376         * device/lib/z80/stubs.s
10377         * src/SDCCsymt.c (initCSupport)
10378
10379 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10380
10381         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
10382         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
10383           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
10384           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
10385           instead of /Zm500.
10386
10387 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10388
10389         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
10390           the regression tests I'm not brave enough to enable 245.b, 245.c
10391         * doc/sdccman.lyx: added latex preamble for hyperref package.
10392           Using pdflatex this will give you a hyperlinked pdf file with
10393           bookmarks. (prepend '%' before /usepackage if this breaks something)
10394
10395 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10396
10397          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
10398
10399 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
10400
10401         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
10402
10403 2003-05-21    <johan AT balder>
10404
10405         * src/SDCCglue.c (printIval): fixed bug #739934
10406
10407 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
10408
10409         Applied patch from bug 737905 (renamed yylineo to mylineno):
10410         * src/altlex.c
10411         * src/SDCCast.c
10412         * src/SDCglobl.h
10413         * src/SDCC.lex
10414         * src/SDCCsymt.c
10415         * src/SDCCval.c
10416         * src/pic16/pcode.c: Cleaned warnings
10417         * src/pic16/pcodeflow.c: Cleaned warnings
10418         * src/pic16/pcoderegs.c: Cleaned warnings
10419
10420 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
10421
10422         * src/pic16/pcode.c: Cleaned warnings
10423         * src/pic16/pcodepeep.c: Cleaned warnings
10424         * src/pic16/ralloc.c: Cleaned warnings
10425
10426 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
10427
10428         * doc/sdccman.lyx: fixed bug 739745
10429         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
10430
10431 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
10432
10433         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
10434         it can be defined with CFLAGS when running configure
10435         * src/SDCCmain.c: fixed compiling + linking with object files
10436
10437 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
10438
10439         * configure.in: configure for pic16 port,
10440             added --disable-pic16-port
10441         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
10442         * src/SDCCmain.c: linkOptions is changed to set *,
10443             added if/endif conditional macros to remove options help
10444             messages from optionsTable when a port is not configured, added
10445             support for the PIc16 port in the ports table, when executing
10446             the compiler with no port specified on command line, a default
10447             port is selected with the new macro DEFAULT_PORT which is
10448             defined in port.h, in setDefaultOptions() linkOptions is removed
10449             from initialization assignment, since now it is a set,
10450             parseCmdLine uses setParseWithComma for linkOptions, in
10451             linkEdit() linkOptions are accessed with new function indexSet()
10452             which returns the i'th item of a set variable. See SDCCset.c, in
10453             linkEdit() when calling buildCmdLine(), added linkOptions as
10454             last argument. Now users can pass arguments to gplink via the
10455             -Wl option, main() uses pic16glue() to glue up pic16 programs
10456         * src/SDCCpeeph.c: various changes to support pic16
10457         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
10458             return the i'th item of the set
10459         * src/SDCCset.h: added function prototype for indexSet()
10460         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
10461         * src/clean.mk: added pic16 in CLEANALLPORTS variable
10462         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
10463             added macro DEFAULT_PORT
10464         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
10465         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
10466             generated
10467         * src/pic16/glue.c: commented out some error producing lines
10468         * src/pic16/main.c: __config directives are commented out to stop
10469             gpasm complaining and test the linkage with gplink, _linkCmd and
10470             _asmCmd changed to be more gplink and gpasm friendly
10471         * src/pic16/peeph.def: peep rule 3 is commented out, since it
10472             produced an error when parsed, peep rule 12 is added to utilize
10473             movff, but it is commented out since the pCode does not support
10474             yet a command with 2 address arguments
10475
10476 2003-05-18    <johan AT balder>
10477
10478         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10479         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10480 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
10481
10482         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
10483   Added feature to script commands from file.
10484
10485 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
10486
10487         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
10488         * src/SDCCutil.c: include ctype.h for win32
10489
10490 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
10491
10492         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
10493
10494 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
10495
10496         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
10497   Fixed so you can set breakpoints prior to run, run does not stop
10498   on entry now.  Add tbreak.  Other enhancements and fixes for use
10499   with ddd.
10500
10501 2003-05-12  Borut Razem <borut.razem AT siol.net>
10502
10503         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
10504
10505 2003-05-11  Borut Razem <borut.razem AT siol.net>
10506
10507         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
10508         the path of bin directory, so that PATH is the only env. variable, which has to be set
10509         in case of standard installation.
10510         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
10511         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
10512         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
10513
10514 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
10515
10516         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
10517         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
10518         temp files are in the port dir; clean the gen/test directory when
10519         generating new test.c
10520         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
10521         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
10522         * support/regression/tests/zeropad.c: added
10523
10524 2003-05-09    <johan AT balder>
10525
10526         * src/SDCCglue.c: fixed bug #597940
10527
10528 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
10529
10530         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10531   cache sfr, optimize next,step, fix off by one sourceline,
10532   support ddd list function.
10533         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
10534
10535 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
10536
10537         * support/regression/HTMLgen.py: added compare_s2f()
10538         * support/regression/Makefile: redo 1.27
10539         * support/regression/generate-cases.py: redo 1.5
10540
10541 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
10542
10543         * support/regression/tests/float.c: workaround 33 bit hex constant
10544         * support/regression/tests/simplefloat.c: fix division for host
10545
10546 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
10547
10548         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
10549         that tame's the PIC's over-aggressive optimizer.
10550
10551 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10552
10553          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
10554          support for MSVC.
10555
10556 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
10557
10558         Initial support for DS80C400. "Hello world" runs on TINIm400
10559         (with polled I/O).
10560
10561 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
10562
10563          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10564          * Some notes on ddd usage added in debugger/README
10565          Martin Helmling adding more features and fixes for ddd GUI debugger.
10566          Code added for nexti, stepi, up, down, and other adjustments.
10567
10568 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
10569
10570         * src/pic/pCodepeep.c non-wildcard asmops are now handled
10571         * src/pic/peeph.def Added two rules to optimize carry manipulation
10572         * src/pic/* removed debug printfs
10573
10574 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
10575
10576         * debugger/mcs51/cmd.c: added header newalloc.h
10577
10578 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
10579
10580         * as/Makefile: new EXEEXT
10581         * as/z80/Makefile: remove trailing slash of BUILDIR
10582         * as/z80/clean.mk: new EXEEXT
10583         * Makefile.common.in: add to CFLAGS (and others), don't replace it
10584         * support/cpp2/Makefile.in: new EXEEXT
10585         * src/pic/glue.c (pic14emitRegularMap): fixed warning
10586
10587 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
10588
10589         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
10590         EXEEXT was introduced to fix all related problems with targets
10591         "clean", "install" and "uninstall"; a couple of further flaws
10592         especially with "clean" have been fixed too
10593         * as/mcs51/Makefile.in
10594         * as/mcs51/clean.mk
10595         * as/z80/Makefile
10596         * Makefile
10597         * clean.mk
10598         * debugger/mcs51/Makefile.in
10599         * debugger/mcs51/clean.mk
10600         * link/z80/Makefile
10601         * link/z80/Makefile.in
10602         * link/z80/clean.mk
10603         * link/Makefile
10604         * packihx/Makefile.in
10605         * packihx/clean.mk
10606         * sim/ucsim/Makefile
10607         * sim/ucsim/clean.mk
10608         * sim/ucsim/avr.src/Makefile.in
10609         * sim/ucsim/avr.src/clean.mk
10610         * sim/ucsim/s51.src/Makefile.in
10611         * sim/ucsim/s51.src/clean.mk
10612         * sim/ucsim/xa.src/Makefile.in
10613         * sim/ucsim/xa.src/clean.mk
10614         * sim/ucsim/z80.src/Makefile.in
10615         * sim/ucsim/z80.src/clean.mk
10616         * sim/ucsim/main_in.mk
10617         * sim/ucsim/packages_in.mk
10618         * sim/ucsim/gui.src/Makefile.in
10619         * sim/ucsim/gui.src/serio.src/Makefile.in
10620         * sim/ucsim/gui.src/serio.src/clean.mk
10621         * src/Makefile.in
10622         * src/clean.mk
10623         * support/cpp2/Makefile.in
10624         * support/cpp2/clean.mk
10625         * support/makebin/Makefile
10626         * support/makebin/clean.mk
10627         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
10628         * doc/sdccman.lyx: --program-suffix no longer needed
10629
10630 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
10631
10632          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
10633          Martin Helmling added support for ddd GUI debugger.
10634          Code added to display assembly, set variables, and other commands
10635          to interface to ddd.
10636
10637 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
10638
10639         * as/Makefile: fix target clean
10640         * as/clean.mk: fix target clean
10641         * as/z80/clean.mk: fix target clean
10642
10643 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
10644
10645         * Makefile.common.in: added  AT EXEEXT AT
10646         * configure.in: removed all mingw32 stuff
10647         * configure: rebuilt from configure.in
10648         * doc/sdccman.lyx: updated section "installation"
10649         * support/scripts/sdcc_mingw32: adapted to configure
10650         * support/scripts/sdcc_cygwin_mingw32: added
10651
10652 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
10653
10654         * src/pic Added object file support for the PIC port
10655         * src/pic Applied patch from Craig Franklin (this started the object file support)
10656         * src/regression Updated the PIC regression tests for object files
10657
10658 2003-04-20  Borut Razem <borut.razem AT siol.net>
10659
10660         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
10661           lklex.c: In function `getfid':
10662           lklex.c:203: warning: array subscript has type `char'
10663         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
10664           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
10665         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
10666           stack handling macros
10667
10668 2003-04-19  Borut Razem <borut.razem AT siol.net>
10669
10670         * "handling space characters in file path" task:
10671         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
10672         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
10673         * support/Util/MySystem.h: make it self-sufficient
10674         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
10675           src/z80/main.c, sdcc/as/mcs51/lklex.c:
10676           handling space characters in file path
10677         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
10678           (it will be used by assemblers, which have their own includes, e.g. gpasm)
10679         * support/Util/MySystem.c: handling space characters in executable's path
10680
10681 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
10682
10683         * as/z80/Makefile: fix permanent rebuild of z80
10684         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
10685         * support/regression/tests/bitfields.c: added Johan's bitfields.c
10686
10687 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
10688
10689         * src/SDCCopt.c: add special case optimization to replace modulo by
10690           a power of two with a bitwise AND.
10691
10692 2003-04-18    <johan AT balder>
10693
10694         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
10695
10696 2003-04-17    <johan AT balder>
10697
10698         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
10699         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
10700
10701 2003-04-13  Borut Razem <borut.razem AT siol.net>
10702
10703         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
10704         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
10705           fixed mingw problem in adl_NORMALIZE_PATH
10706
10707 2003-04-12  Borut Razem <borut.razem AT siol.net>
10708
10709         * fixed "#pragma SAVE/RESTORE can not be nested":
10710         * src/SDCC.lex: reworked pragma handling functions
10711         * sdcc/src/SDCCglobl.h: reworked stack handling macros
10712         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
10713
10714 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
10715
10716         * src/SDCCutil.c (pathEquivalent): defined but not used
10717         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
10718         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
10719         * configure: rebuilt from configure.in
10720         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10721         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10722         * device/include/Makefile.in: replace sdcc_datadir
10723         * device/lib/Makefile.in: replace sdcc_datadir
10724         * Makefile.common.in: add LDFLAGS from configure
10725         * packihx/Makefile.in: use LDFLAGS
10726         * src/Makefile.in: use LDFLAGS
10727         * support/cpp2/Makefile.in: add LDFLAGS from configure
10728         * support/makebin/Makefile: use LDFLAGS
10729         * .version: bumped version number to 2.3.5
10730
10731 2003-04-12  Borut Razem <borut.razem AT siol.net>
10732
10733         * completed "different paths" task:
10734         * src/SDCCmacro.c: fixed bug in handling quotes
10735         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
10736         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
10737
10738 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
10739
10740         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
10741
10742 2003-04-11 kevin Vigor <kevin AT vigor.nu>
10743
10744         * ds390/gen.c ds390/peeph.def: fix bug 706781
10745
10746 2003-04-11  Borut Razem <borut.razem AT siol.net>
10747
10748         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
10749
10750 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
10751
10752         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
10753         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
10754          set - this bit used to not be set...).
10755         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
10756           bad code in PIC Port
10757         * src/regression/and2.c added to test bug 609268
10758         * src/regression/Makefile added and2.c to regression test
10759
10760
10761 2003-04-08    <johan AT CP255758-A>
10762
10763         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
10764         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
10765         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
10766
10767 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
10768
10769         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
10770         fix bug #487815
10771         * support/cpp2/Makefile.in: fix bug #487815
10772         * configure: rebuilt from configure.in
10773         * Makefile.common.in: docdir changed, new path suffixes
10774         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10775         * sdcc_vc_in.h: reflect changes from sdccconf.h
10776         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
10777         * src/SDCCutil.h: remove BINDIR hack
10778         * doc/sdccman.lyx: update new path hierarchy
10779
10780 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10781
10782         * src/SDCCpeeph.c: added okToRemoveSLOC test
10783
10784 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10785
10786         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
10787
10788 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10789
10790         * src/SDCCpeeph.c: added labelIsReturnOnly test
10791         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
10792
10793 2003-04-05    <johan AT balder>
10794
10795         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
10796         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
10797         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
10798         * src/SDCCast.c: fixed a warning
10799         * src/SDCCast.h: fixed a warning
10800         * src/SDCCicode.c (operandFromAst): fixed a warning
10801
10802 2003-04-04    <johan AT balder>
10803
10804         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
10805         * src/SDCCast.c (decorateType): fixed bug #715076
10806         * src/SDCC.y: fixed bug #702907
10807
10808 2003-04-03    <johan AT balder>
10809
10810         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
10811         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
10812         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
10813         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
10814         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
10815
10816 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
10817
10818         * _decdptr.c: fix return values
10819         * _gptrget.c: fix return values
10820         * _gptrgetc.c: fix return values
10821         * _gptrput.c: fix return values
10822         * _mulint.c: fix return values
10823         * as/z80/Makefile: fix 'make -j' problem
10824
10825 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
10826
10827         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
10828         * configure.in: big cleanup, updated to autoconf 2.5x
10829         * configure: rebuilt from configure.in
10830         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10831         * sdcc_vc_in.h: reflect changes from sdccconf.h
10832         * doc/Makefile: fixed a flaw in "make install"
10833
10834 2003-04-02    <johan AT balder>
10835
10836         * src/ds390/gen.c (genCmp): no comments
10837         * src/mcs51/gen.c (genCmp): no comments
10838         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
10839         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
10840
10841 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
10842
10843         * support/regression/generate-cases.py: place generated file in given sub directory
10844         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
10845         * support/regression/Makefile: improvements for 'make -j';
10846         side effect: it's simpler and faster now
10847
10848 2003-03-31  Borut Razem <borut.razem AT siol.net>
10849
10850         * src/z80/main.c: link-{port} and as-{port} defined without path
10851         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
10852
10853 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
10854
10855         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
10856
10857 2003-03-30  Borut Razem <borut.razem AT siol.net>
10858
10859         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
10860           changed type of list parameter to set
10861         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
10862         * src/port.h: changed type of do_assemble() parameter to set
10863         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
10864           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
10865           definition of "cppoutfilename" macro with NULL value in preProcess()
10866         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
10867         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
10868         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
10869           replaced with set *binPathSet
10870         * shash_add() deallocates the item, if allready exsists, before adding the new one
10871         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
10872
10873 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
10874
10875         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
10876           a nested for loop bug in the PIC port
10877         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
10878           for loops
10879
10880 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
10881
10882         * support/Util/dbuf.h: remove C++ stuff to make it portable
10883
10884 2003-03-28  Borut Razem <borut.razem AT siol.net>
10885
10886         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
10887           literal strings in stringLiteral()
10888         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
10889         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
10890           to the project
10891
10892 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
10893
10894         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
10895
10896 2003-03-26    <johan AT balder>
10897
10898         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
10899         * src/ds390/gen.c (saveRegisters): catched symbol abuse
10900         * src/SDCCast.c (decorateType): fixed " -v < 3"
10901
10902 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
10903
10904         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
10905         Added Lenny Story's debug infrastructure changes:
10906         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
10907         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
10908         * src/cdbFile.c: added
10909         * src/SDCCdebug.c: added
10910         * src/SDCCdebug.h: added
10911         * src/SDCCast.c (createFunction)
10912         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
10913         * src/SDCCmain.c (parseCmdLine, main)
10914         * src/SDCCmem.c (redoStackOffsets)
10915         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
10916         * src/SDCCsymt.h
10917         * src/common.h
10918         * src/avr/gen.c (genAVRCode)
10919         * src/ds390/gen.c (gen390Code)
10920         * src/mcs51/gen.c (gen51Code)
10921         * src/pic/gen.c (genpic14Code)
10922         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
10923         * src/xa51/gen.c (genXA51Code)
10924         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
10925
10926 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10927
10928         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
10929         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
10930
10931 2003-03-22    <johan AT balder>
10932
10933         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
10934
10935 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
10936
10937         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
10938         * doc/cdbfileformat.lyx: added, written by Lenny Story
10939         * doc/Makefile: added cdbfileformat.lyx
10940         * doc/clean.mk: added cdbfileformat.lyx
10941
10942 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
10943
10944         * src/mcs51/peeph.def: fix bug #705773
10945
10946 2003-03-20    <johan AT balder>
10947
10948         An sfr/sbit can have an "at #" AND an initializer
10949         * src/SDCCsymt.c (checkSClass):
10950         * src/SDCCmem.c (allocGlobal):
10951         * src/SDCCmem.c (allocLocal):
10952         * src/SDCCast.c (createBlock):
10953
10954 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
10955
10956         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
10957
10958 2003-03-16    <johan AT balder>
10959
10960         Undid the hackup of const and volatile, the problem is much bigger
10961         * src/SDCC.y:1.65
10962         * src/SDCCast.c:1.171
10963         * src/SDCCglue.c:1.138
10964         * src/SDCCicode.c:1.146
10965         * src/SDCCsymt.c:1.150
10966         * src/SDCCval.c:1.65
10967
10968 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
10969
10970         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
10971         * src/ds390/gen.c (genAddrOf): fixed bug #704087
10972
10973 2003-03-13    <johan AT balder>
10974
10975         Hackup const and volatile modifiers in type chains a bit:
10976         * src/SDCC.y:1.63
10977         * src/SDCCast.c:1.169
10978         * src/SDCCglue.c:1.136
10979         * src/SDCCicode.c:1.143
10980         * src/SDCCsymt.c1.146
10981         * src/SDCCsymt.h1.59
10982         * src/SDCCval.c:1.63
10983
10984 2003-03-12    <johan AT balder>
10985
10986         * src/SDCCBBlock.h: more LRH debugging junk
10987         * src/SDCCcflow.h: more LRH debugging junk
10988         * src/SDCCloop.c: more LRH debugging junk
10989         * src/SDCC.y (struct_declaration): fixed bug #697590
10990         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
10991         * src/ds390/gen.c (aopForRemat): fixed bug #700031
10992         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
10993
10994 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10995         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
10996         test function names must now match exactly).
10997         * src/SDCCcse.c: added special case in findCheaperOp to allow
10998         extending a short integer. Makes less awful code for bug 700121 test case.
10999
11000 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11001
11002         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
11003         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
11004
11005 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11006
11007         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
11008         actually called (operandsNotEqual() was called for all
11009         operandsNotEqualX tests).
11010
11011 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11012
11013         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
11014         with shorter literals. Fixes bug 700121.
11015
11016 2003-03-11    <johan AT balder>
11017
11018         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
11019
11020 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
11021
11022         * src/SDCCloop.c (mergeRegions): an evil beast is dead
11023         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
11024
11025 2003-03-10  Borut Razem <borut.razem AT siol.net>
11026
11027         * src/SDCCmain.c: pipe preprocessor's output
11028         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
11029         * sdcc_vc_in.h: define pclose as _pclose for WIN32
11030         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
11031         which closes all pipes in pipeSet set
11032         * src/SDCCset.c: free deleted item in function deleteSetItem()
11033         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
11034         moved from z80 to src subproject
11035         * .version: increased version number to 2.3.4
11036
11037 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
11038
11039         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
11040         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
11041         * support/regression/ports/xa51/spec.mk: fix typo
11042
11043 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
11044
11045         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
11046
11047 2003-03-09  Borut Razem <borut.razem AT siol.net>
11048
11049         * src/SDCCmain.c: pipe preprocessor's output
11050         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
11051         * sdcc_vc_in.h: define pclose as _pclose for WIN32
11052         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
11053         which closes all pipes in pipeSet set
11054         * src/SDCCset.c: free deleted item in function deleteSetItem()
11055         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
11056         moved from z80 to src subproject
11057
11058 2003-03-09  Borut Razem <borut.razem AT siol.net>
11059
11060         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
11061         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
11062         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
11063         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
11064         * src/SDCCglobl.h: unification of WIN32 native definitions
11065
11066 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11067
11068         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
11069
11070 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
11071
11072         * src/configure.in:   check for endianess (even while cross-compiling)
11073         * src/configure:      check for endianess (even while cross-compiling)
11074         * src/configure_in.h: check for endianess (even while cross-compiling)
11075         * src/avr/gen.c:        remove old endianess stuff
11076         * src/mcs51/gen.c:      remove old endianess stuff
11077         * src/ds390/gen.c:      remove old endianess stuff
11078         * src/pic/gen.c:        remove old endianess stuff
11079         * src/pic/genarith.c:   remove old endianess stuff
11080         * src/pic/glue.c:       fix endianess check
11081         * src/pic16/gen.c:      remove old endianess stuff
11082         * src/pic16/genarith.c: remove old endianess stuff
11083         * src/pic16/glue.c:     fix endianess check
11084         * src/xa51/gen.c:       remove old endianess stuff
11085         * src/z80/gen.c:        fix endianess check
11086         * src/SDCCglue.c:       fix endianess check
11087         * src/ds390/peeph.def: fix bug 700036
11088
11089 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
11090
11091         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
11092         * src/configure: find appropriate data-types on host for SDCC's int and long
11093         * src/configure.in: find appropriate data-types on host for SDCC's int and long
11094         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
11095         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
11096
11097 2003-03-07    <johan AT balder>
11098
11099         Just a big NOOP:
11100                 some minor cleanups before the big shot
11101                 OP_DEFS and OP_USES now use Kevin's protection
11102                 new option --nolabelopt
11103
11104         * src/SDCCBBlock.c:
11105         * src/SDCCast.c,:
11106         * src/SDCCcflow.c:
11107         * src/SDCCcse.c:
11108         * src/SDCCicode.c:
11109         * src/SDCCicode.h:
11110         * src/SDCClabel.c:
11111         * src/SDCCloop.c:
11112         * src/SDCCmain.c:
11113         * src/ds390/ralloc.c:
11114         * src/mcs51/ralloc.c:
11115         * src/pic/ralloc.c:
11116         * src/xa51/ralloc.c:
11117         * src/z80/ralloc.c:
11118
11119 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
11120
11121         * src/pic/pcode.c (get_op): fix 64 bit warnings
11122         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
11123         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
11124         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
11125         * support/regression/tests/malloc.c: fix 64 bit warnings
11126
11127 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
11128
11129         * src/mcs51/gen.c (genMinus): fixed bug 696436
11130
11131 2003-03-02  Borut Razem <borut.razem AT siol.net>
11132
11133         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
11134
11135 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
11136
11137         * configure.in: test for mkstemp
11138         * sdccconf_in.h: add HAVE_MKSTEMP
11139
11140 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
11141
11142         * device/include/ctype.h: removed warning while using --stack-auto
11143         * device/include/malloc.h: removed warning while using --stack-auto
11144         * device/include/string.h: removed warning while using --stack-auto
11145
11146 2003-02-23  Borut Razem <borut.razem AT siol.net>
11147
11148         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
11149         because NDEBUG is defined (see man assert)
11150         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
11151
11152 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11153
11154         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
11155         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
11156
11157 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11158
11159         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
11160         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
11161
11162 2003-02-18    <johan AT balder>
11163
11164         * as/mcs51/asmain.c (asmbl): module can start with a digit
11165         * as/z80/asmain.c (asmbl): module can start with a digit
11166
11167 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
11168
11169         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
11170         * src/asm.c: fix pipe() for Mingw32
11171
11172 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
11173
11174         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
11175         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
11176         make -V work again; --c1mode reads now from stdin
11177         * doc/sdccman.lyx: added --c1mode
11178         * support/Util/SDCCerr.c: new messages for c1 mode
11179         * support/Util/SDCCerr.h: new messages for c1 mode
11180         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
11181
11182 2003-02-15    <johan AT balder>
11183
11184         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
11185
11186 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
11187
11188         * doc/sdccman.lyx: Environment variables, -o and other minor things
11189
11190 2003-02-14    <johan AT balder>
11191
11192         * src/xa51/main.c: before anyone really tries to use it :)
11193
11194         * Install doc's in share/sdcc/doc
11195         * removed some obsolete files
11196         * Do a proper make distclean and uninstall
11197         M Makefile.common.in
11198         R sdccbuild.sh
11199         M as/Makefile
11200         M device/include/Makefile.in
11201         M device/lib/Makefile.in
11202         M doc/sdccman.lyx
11203         M link/Makefile
11204         M sim/ucsim/doc/Makefile.in
11205         M src/clean.mk
11206         R src/avr/peeph.rul
11207         R src/xa51/peeph.rul
11208         M support/cpp2/Makefile.in
11209         M support/makebin/Makefile
11210
11211
11212 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
11213
11214         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
11215
11216 2003-02-10  Borut Razem <borut.razem AT siol.net>
11217
11218         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
11219         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
11220         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
11221         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
11222         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
11223         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
11224         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
11225         src/z80/Makefile.bcc: Borland Makefile cleanup
11226         * as/z80/Makefile.bcc: Added Borland Makefile
11227         * support/cpp2/borland.h: Removed
11228
11229 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
11230
11231         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
11232         * src/SDCC.lex: new pragma NOIV
11233         * src/SDCCglobl.h: new pragma NOIV
11234         * src/SDCCmem.c: new pragma NOIV
11235
11236 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
11237
11238         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
11239
11240 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
11241
11242         * src/SDCCmain.c: signal handling is switched off by --debug
11243         * doc/Makefile: small fix for install; use clean.mk again
11244         * doc/clean.mk: clean *.pdf and *.html too
11245
11246 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
11247
11248         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
11249         * device/lib/printfl.c: fix a ds390 bug by making it portable
11250         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
11251         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
11252         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
11253         * debugger/mcs51/cmd.c: converted multi-line string literals
11254         * sim/ucsim/globals.cc: converted multi-line string literals
11255         * src/SDCCmain.c: introduced signal handler to remove temp files
11256         * doc/Makefile: small tweaks, implement clean
11257         * doc: removed generated files
11258
11259 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11260
11261         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
11262         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
11263         Address Record is not correctly generated for DS390."
11264
11265 2003-02-02  Borut Razem <borut.razem AT siol.net>
11266
11267         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
11268         * as/mcs51/asm.h: fixed compilation with Borland C
11269         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
11270         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
11271         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
11272         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
11273         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
11274         src/z80/Makefile.bcc: delete $(LIB) only if exist
11275         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
11276
11277 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
11278
11279         * device/include/malloc.h: introduced NULL
11280         * device/include/string.h: introduced NULL
11281         * device/include/stdlib.h: introduced NULL
11282         * device/lib/_memcpy.c: removed NULL
11283         * device/lib/_strcat.c: removed NULL
11284         * device/lib/_strchr.c: removed NULL
11285         * device/lib/_strcmp.c: removed NULL
11286         * device/lib/_strcpy.c: removed NULL
11287         * device/lib/_strcspn.c: removed NULL
11288         * device/lib/_strlen.c: removed NULL
11289         * device/lib/_strncat.c: removed NULL
11290         * device/lib/_strncmp.c: removed NULL
11291         * device/lib/_strncpy.c: removed NULL
11292         * device/lib/_strpbrk.c: removed NULL
11293         * device/lib/_strrchr.c: removed NULL
11294         * device/lib/_strspn.c: removed NULL
11295         * device/lib/_strstr.c: removed NULL
11296         * device/lib/_strtok.c: removed NULL
11297         * device/lib/malloc.c: removed NULL, include own header
11298
11299 2003-02-02    <johan AT balder>
11300
11301         * 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
11302         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
11303         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
11304         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
11305         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
11306         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
11307
11308 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11309
11310         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
11311         area 'DATA'"
11312
11313 2003-02-01    <johan AT balder>
11314
11315         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
11316
11317 2003-01-31    <johan AT CP255758-A>
11318
11319         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
11320
11321 2003-01-30    <johan AT balder>
11322
11323         * src/SDCCBBlock.c: automatic bug detection
11324         * src/SDCCicode.c: automatic bug detection
11325
11326 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11327
11328         * src/SDCCglobl.h:   now --xram-size 0 works
11329         * src/SDCCmain.c:    now --xram-size 0 works
11330
11331 2003-01-29    <johan AT balder>
11332
11333         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
11334
11335 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11336
11337         * as/mcs51/aslink.h: Added options --xram-size and --code-size
11338         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
11339         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
11340         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
11341         * src/SDCCglobl.h:   Added options --xram-size and --code-size
11342         * src/SDCCmain.c:    Added options --xram-size and --code-size
11343
11344 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
11345
11346         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
11347         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
11348
11349 2003-01-27    <johan AT balder>
11350
11351         * src/SDCC.y: fixed bug #613764
11352
11353 2003-01-26    <johan AT balder>
11354
11355         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
11356         * src/SDCCsymt.h: fixed bug #673374
11357         * src/SDCCglue.c: fixed bug #661910
11358         * src/SDCCast.c: fixed bug #458099 and 673374
11359
11360 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
11361
11362         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
11363         * as/mcs51/strcmpi.h: added
11364         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
11365         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
11366         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
11367         * as/mcs51/assym.c: strcmpi -> as_strcmpi
11368         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
11369         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
11370         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
11371         * as/mcs51/Makefile.aslink: new module strcmpi
11372         * as/mcs51/Makefile.asx8051: new module strcmpi
11373         * as/mcs51/Makefil.bcc: new module strcmpi
11374         * as/mcs51/Makefile.in: new module strcmpi
11375         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
11376
11377 2003-01-26    <johan AT balder>
11378
11379         * src/SDCCglue.c: reverted back to 1.124
11380         * src/SDCCast.c: reverted back to 1.156
11381         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
11382
11383 2003-01-25    <johan AT balder>
11384
11385         * src/SDCCglue.c: A better fix for bug #661910
11386         * src/SDCCast.c: A better fix for bug #661910
11387         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
11388
11389 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
11390
11391         * src/Makefile.in: remove spawn.o
11392         * src/SDCCmain.c: remove spawn.h
11393         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
11394         * src/spawn.c: removed
11395         * src/spawn.h: removed
11396         * support/regression/ports/ds390/spec.mk: link with -r
11397
11398 2003-01-24    <johan AT CP255758-A>
11399
11400         * src/ds390/gen.c (aopOp): fixed bug #667458
11401         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
11402         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
11403         (createIvalCharPtr): an ival doesn't always have a storage class anymore
11404
11405 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
11406
11407         * src/mcs51/peeph.def: better assembler identation by Frieder
11408         * src/mcs51/gen.c: better assembler identation by Frieder
11409
11410 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
11411
11412         * as/z80/string.h: removed for gcc 3.2
11413         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
11414         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
11415
11416 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
11417
11418         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
11419         * src/SDCCpeeph.c (replaceRule): fix bug #663503
11420         * support/regression/Makefile: separate temp files for ports
11421         * support/regression/generate-cases.py: separate temp files for ports
11422         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
11423         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
11424
11425 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
11426
11427         * moved tinitalk to device/examples/ds390
11428
11429 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
11430
11431         * as/mcs51/lkmem.c: rflag is for DS390
11432         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
11433         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
11434                          (linkEdit): move mem- and map-files the same way as ihx-files
11435         * src/z80/main.c (_setDefaultOptions): removed --generic
11436         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
11437         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
11438         * src/pic/glue.c (picglue): --c1mode works again
11439         * src/pic16/glue.c (pic16glue): --c1mode works again
11440         * src/asm.c (printCLine): fix #660034
11441
11442 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
11443
11444         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
11445         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
11446         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
11447         * as/mcs51/lkmem (summary): better fix for sp problem
11448         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
11449         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
11450         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
11451                                               remove --stack-after-data
11452
11453 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
11454
11455         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
11456         * src/SDCCutil.c (join): ugly bug: missing '\0'
11457         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
11458
11459 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
11460
11461         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
11462         * src/port.h: typo
11463         * src/pic/main.c (_asmCmd): gpasm supports -o
11464         * src/z80/main.c: more general macros
11465         * device/lib/Makefile.in: remove intermediate files
11466
11467 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
11468
11469         * .version: Bumped version number to 2.3.3
11470         * src/SDCCBBlock.c: new option -o
11471         * src/SDCCglobl.h: new option -o
11472         * src/SDCCglue.c: new option -o
11473         * src/SDCCmain.c: new option -o
11474         * src/asm.c: new option -o
11475         * src/ds390/main.c: new option -o
11476         * src/pic/glue.c: new option -o
11477         * src/pic/pcode.c: new option -o
11478         * src/pic/ralloc.c: new option -o
11479         * src/pic16/glue.c: new option -o
11480         * src/pic16/pcode.c: new option -o
11481         * src/pic16/ralloc.c: new option -o
11482         * src/z80/main.c: new option -o
11483         * device/lib/Makefile.in: use -o
11484         * support/regression/ports/ds390/spec.mk: use -o
11485         * support/regression/ports/gbz80/spec.mk: use -o
11486         * support/regression/ports/mcs51/spec.mk: use -o
11487         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
11488         * support/regression/ports/z80/spec.mk: use -o
11489         * support/regression/ports/ucz80/spec.mk: use -o
11490         * support/regression/ports/xa51/spec.mk: use -o
11491         * support/regression/fwk/lib/timeout.c: fix usage string
11492
11493 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
11494         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
11495
11496 2003-01-07    <johan AT balder>
11497
11498         * src/SDCCast.c (decorateType): fixed bug #600035
11499
11500 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
11501         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
11502         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
11503         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
11504         * src/pic/pcode.c: outcommented unused variable to remove warnings
11505         * src/pic/ralloc.c: outcommented unused variable to remove warnings
11506
11507 2003-01-06    <karl AT turbobit.com>
11508         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
11509    regression tests.
11510
11511 2003-01-06    <johan AT balder>
11512
11513         * src/SDCCicode.c: fixed array add
11514
11515 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
11516         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
11517         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
11518
11519 2003-01-04    <johan AT balder>
11520
11521         * src/SDCCval.c (getNelements): fixed the initialized array of structures
11522
11523 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11524         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
11525
11526 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
11527         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
11528         * support/regression/tests/bug-524697.c: fit mem usage into 8032
11529
11530 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
11531         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
11532
11533 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
11534         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
11535
11536 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
11537         * src/mcs51/main.c: removed {bindir}{sep} from aslink
11538
11539 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11540
11541     * in /sdcc/as/mcs51/ changed these files in order to create an
11542     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
11543     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
11544     following files to include the previous two files: aslink.dsp,
11545     Makefile.aslink, Makefile.bcc, and Makefile.in.
11546
11547     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
11548     .adb instead of .cdb
11549
11550 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11551
11552         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
11553         value from option --iram-size.
11554
11555 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11556
11557         * /sdcc/as/mcs51/lklist.c: added boundary check before using
11558         dram[] array.
11559
11560 2002-09-18    <wiml AT hhhh.org>
11561
11562         * SDCClrange.h: exposed setFromRange() and setToRange()
11563         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
11564           packRegsForAccUse() (bug 542397)
11565         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
11566           multiple times and emitting the fetch operations more than once
11567           added aopGetUsesAcc() function to allow binary operators to
11568           fetch their operands in the correct order; made genMinus() emit
11569           compact code for X = LITERAL - Y
11570
11571 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11572         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
11573         sprintf() in line 1267.
11574
11575 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11576         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
11577         like ports.
11578
11579 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11580         Changes to aslink (All the changes are marked with 'JCF'):
11581
11582         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
11583         summary().
11584
11585         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
11586         area BSEG.  Also moves, if possible, the DATA area down into the internal
11587         ram so more space is available.
11588
11589         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
11590         sflag.
11591
11592         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
11593         not bytes.  Function summary() which creates a memory usage summary
11594         file with extension .mem.  Reports of overlaping stack and small stack
11595         size.  If the space for the stack is less than 16 bytes aslink trows a
11596         warning.
11597
11598         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
11599         the 8051.  Option 'y' for memory summary output file.
11600
11601         Changes to sdcc (All the changes are marked with 'JCF'):
11602
11603         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
11604
11605         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
11606         overlaying area for it (uses RegBankUsed[4]).
11607
11608         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
11609         bank zero as used by default.  By default aslink locates the stack
11610         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
11611         the creation of the .mem file.  Delegates the allocation of data area
11612         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
11613         the begining of the stack area to aslink.
11614
11615         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
11616         glue() in SDCCglue.c creates an area for it.
11617
11618 2002-09-03  Borut Razem <borut.razem AT siol.net>
11619         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
11620         sdcc/src/pic/glue.c:
11621         introduced atexit() handler for teporay files removal in case of
11622         errors, assertions, ...
11623
11624 2002-08-29  Borut Razem <borut.razem AT siol.net>
11625         * sdcc/support/cpp2/auto-host_vc_in.h:
11626         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
11627         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
11628         Maybe there is a similar problem with BORLANDC? It should be checked!
11629
11630         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
11631         corrected improper use of assert: the assignment to clr variable was done inside the assert.
11632         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
11633         was not executed, and the compiler (cl) launched a warning:
11634         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
11635
11636 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11637         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
11638
11639 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
11640         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
11641
11642         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
11643           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
11644           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
11645           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
11646           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
11647           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
11648           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
11649         - added Release configuration in VS projects
11650         - review of compiler an linker options
11651         - VC .exe files are generated in bin_vc directory, not to interfere
11652           with binaries generated from other projects (cygwin, mingw, bcc ...)
11653
11654         * sdcc/src/yacc.dsp: added
11655
11656         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
11657         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
11658         and insert the version number definitions from .version
11659
11660         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
11661
11662         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
11663         added - genarate auto-host.h using auto-host_vc_in.h as template
11664
11665         * sdcc/sdcc_vc.h,
11666         removed from CVS, generated automatically
11667
11668 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
11669         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
11670
11671 2002-08-11  Borut Razem <borut.razem AT siol.net>
11672         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
11673
11674 2002-08-10  Borut Razem <borut.razem AT siol.net>
11675         * src/SDCCmain.c (main):
11676         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
11677         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
11678         The consequence was that some temporary files were not removed.
11679
11680         * src/SDCCglue.c:
11681         unification of code in functions tempfilename() and tempfile():
11682         function tempnam() is defined in Visual Studio 6.0 and .NET
11683
11684         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
11685
11686         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
11687           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
11688         - removed compiler command line option /WX: Treats all warnings as errors
11689         - update a list of source files, included into the project
11690
11691         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
11692           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
11693         changed project type to Generic Project so that can be correcly converted to VS.NET project
11694
11695         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
11696
11697         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
11698
11699         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
11700
11701         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
11702         added return 0 statements after assert() to make compiler happy
11703
11704         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
11705         added newline in the def file to keep MSC compiler satisfied
11706
11707         * sdcc/src/z80/gen.c:
11708         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
11709           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
11710         - solved MSC error in function aopDump()
11711
11712         * sdcc_vc.h: define PREFIX as "\\sdcc"
11713
11714 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
11715         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
11716
11717 2002-06-22  Scott Dattalo <scott AT dattalo.com>
11718         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
11719         - Rewrote the register banking algorithm.
11720         - Added pCode live-range analysis to registers (for now, only non-used and
11721         singly-used registers optimized away)
11722
11723         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
11724
11725         * 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.
11726
11727 2002-05-10  Scott Dattalo <scott AT dattalo.com>
11728         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
11729
11730 2002-04-22  Michael Hope  <michaelh AT vroom>
11731
11732         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
11733
11734         * configure.in (DD_COPT): Added include support required for gbdk.
11735
11736         * .version: Bumped version number just to increase it.
11737
11738         * src/SDCCmain.c: Added -nostdinc to the default options.
11739
11740 2002-04-15  Michael Hope  <michaelh AT vroom>
11741
11742         * device/lib/z80/printf.c (sprintf): Added.
11743
11744         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
11745
11746         * src/z80/peeph.def: Added transpose redundent load rule.
11747
11748         * src/z80/main.c: Added force callee saves for jaune.
11749
11750         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
11751
11752         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
11753
11754 2002-03-28  Johan Knol  <johan AT balder>
11755
11756         * src/SDCCval.c: fixed bug #532436
11757
11758 2002-03-14  Scott Dattalo <scott AT dattalo.com>
11759         * /src/port.h:
11760         Added "char *Processor" field to the port structure.
11761
11762         * /src/SDCCmain.c:
11763         Added -p option. Allows port dependent processor to be specified.
11764
11765         * all ports:
11766         Initialized the new field char *Processor field to NULL in all ports
11767
11768         * /src/pic/*:
11769         Compiler generated registers for interrupt context saving
11770         were not getting allocated.
11771
11772 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
11773
11774         * /src/SDCCast.c:
11775         Fixed left shift. Will promote the left side of a left shift
11776         if a) left shifting more than size of operand or b) when assigned
11777         to something size > size of left side
11778
11779 2002-03-14  Scott Dattalo <scott AT dattalo.com>
11780         * src/pic/*
11781         tons of changes. Register allocation has been
11782         rewritten. Added customization for the various PICs. Flow
11783         analysis is restructured. ...
11784
11785         * src/pic/device.h:
11786         Added
11787
11788         * src/pic/device.c:
11789         Added. device.c is a PIC port hack to accomodate variations
11790         in PIC devices.
11791
11792 2002-03-13  Michael Hope  <michaelh AT vroom>
11793
11794         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
11795
11796 2002-03-04  johanknol  <johanknol AT manik>
11797
11798         * /src/SDCCval.c: fixed
11799
11800         const unsigned char arr[][2] = { { 0, 1 } };
11801         t18.c:1: error: Initializer element is not constant
11802
11803 2002-03-04  bela  <bela AT manik>
11804
11805         * /device/include/mcs51reg.h:
11806         ds89c420 register definition update
11807
11808 2002-03-03    <johan AT FRIJA>
11809
11810         * support/Util/SDCCerr.c: did something, but don't no why anymore
11811
11812         * support/regression/tests/bug-524691.c: made it a little less shy
11813
11814         * src/SDCCast.c (decorateType): fixed bug #524697
11815
11816         * src/SDCCast.c: made some lineno improvements
11817
11818         * src/SDCCval.c (getNelements): changed warning to error
11819
11820         * src/SDCCglue.c (printIvalArray): changed warning to error
11821
11822         * src/SDCCicode.c: fixed a warning for mingw
11823
11824         * src/SDCCast.c (decorateType): fixed the << promotion for ops
11825
11826         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
11827
11828 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
11829
11830         * src/ds390/peeph.def:
11831         Added some more peephole rules
11832
11833         * src/ds390/gen.c: Various fixes & enhancements
11834
11835         * src/SDCClrange.c, src/SDCClrange.h:
11836         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
11837
11838         * src/ds390/ralloc.c:
11839         various fixes & enhancements (ds390) specific
11840
11841         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
11842         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
11843         from rallocs.
11844
11845         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
11846
11847 2002-03-02    <johan AT FRIJA>
11848
11849         * src/SDCCast.c (decorateType): fixed bug #524708
11850
11851         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
11852
11853         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
11854
11855 2002-03-01  Michael Hope  <michaelh AT vroom>
11856
11857         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
11858
11859         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
11860
11861 2002-03-01    <johan AT FRIJA>
11862
11863         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
11864
11865         * src/SDCCast.c (decorateType): fixed bug #524209
11866
11867         * src/SDCCval.c (valNot): fixed bug #524195
11868
11869 2002-02-26    <johan AT balder>
11870
11871         * src/xa51/gen.c: fixed a warning
11872
11873         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
11874
11875         * src/SDCCast.c (decorateType): fixed bug #522534
11876
11877 2002-02-23    <johan AT balder>
11878
11879         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
11880
11881 2002-02-22    <johan AT balder>
11882
11883         * src/SDCCast.c: fixed bug #514865
11884
11885         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
11886
11887 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
11888
11889         * sdcc/src/SDCCloop.c:
11890         Previous fix was not good. basic blocks that have "break" or "return" are
11891         not really partof a loop , but live ranges used in these blocks should
11892         be live thru the entire loop, so set partOfLoop but don't add them to
11893         loop region
11894
11895 2002-02-21    <johan AT FRIJA>
11896
11897         * src/SDCCcse.c: fixed bug #514308
11898
11899 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
11900
11901         * src/SDCCloop.c:
11902         Fixed BUG #519583. If a conditional block ended in a return/break
11903         statement inside a loop, it was not being considered part of the loop.
11904
11905         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
11906
11907 2002-02-10  Karl Bongers <karl AT turbobit.com>
11908
11909         * debugger/*:
11910         Fixed up SDCDB debugger somewhat.  Updated debugger/README
11911         with lots of comments and notes.
11912
11913         * device/examples/test2.c:
11914         Fix bug, "red" variable not being initialized(compiler complained).
11915
11916         * device/examples/Makefile, examples/test3.c:
11917         Add Makefile in device/examples folder, compiles test3.c
11918         for use as a multiple module SDCDB test case.
11919
11920         * sim/ucsim/cmd.src/cmdset.cc:
11921         Took out debug printfs in ucsim "next" command.
11922
11923         * sim/ucsim/xa.src:
11924         Karl and Johan start ucsim XA support.  Most dissassembly working,
11925         about 75% emulation done(plenty of work remaining).
11926
11927         * sim/ucsim/z80.src:
11928         Add Z80 support to ucsim, add test-ucz80 regression test,
11929         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
11930         Notice z80 compiler fails on examples/test3.c/crc code.
11931
11932 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
11933
11934         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
11935         Added support for --parms-in-bank1
11936
11937         * src/ds390/peeph.def:
11938         added a few more peephole optimzations
11939
11940         * src/ds390/main.c:
11941         1) added __builtin_inp & __builtin_outp used to read in data of given length
11942            from a memory mapped port
11943         2) added __builtin_memcmp
11944         3) added __builtin_swapw swap bytes of a short
11945
11946         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
11947         1) handle multiple send & receives from register bank1
11948         2) ralloc can now allocate DPTR1 to some liveRanges
11949
11950         * src/SDCCsymt.c, src/SDCCsymt.h:
11951         changes to handle multiple sends & receives
11952
11953         * src/SDCCptropt.h:
11954         added some pointer arithmetic optimization
11955
11956         * src/SDCCptropt.c:
11957         added some pointer arithmetic optimizations but not stable yet so not
11958         called from anywhere (will get this working shortly)
11959
11960         * src/SDCCopt.c: fixed for multiple sends & receives
11961
11962         * src/SDCCmain.c:
11963         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
11964         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
11965            set preprocessor defines (depending on options)
11966
11967         * src/SDCCicode.c, src/SDCCicode.h:
11968         changes made to handle multiple sends & receives
11969
11970         * src/SDCCglobl.h:
11971         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
11972
11973         * src/SDCCcse.c, src/SDCCcse.h:
11974         added function findbackward def (to be used in upcoming optimization)
11975
11976         * src/SDCCcflow.c, src/SDCCcflow.h:
11977         added function returnAtEnd - to determine if a basic block terminates with
11978         a RETURN iCode
11979
11980         * src/SDCCast.c, src/SDCCast.h:
11981         added option parms-in-bank1
11982
11983         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
11984         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
11985         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
11986         adjusted for --parms-in-bank1 option
11987
11988         * device/include/string.h:
11989         donot redefine "reentrant" keyword
11990
11991         * device/include/ds80c390.h: Added some more SFRs
11992
11993 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
11994
11995         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
11996
11997 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
11998
11999         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
12000
12001 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
12002
12003         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
12004
12005 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
12006
12007         * Added --xram-movc option
12008
12009 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
12010
12011         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
12012
12013 2002-01-11  Johan Knol
12014
12015         * Added math lib of Jesus Calvino-Fraga
12016
12017 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
12018
12019         * src/SDCCmain.c (processFile): fix processing of ../../src.c
12020         * support/regression/Makefile: new target test-mcs51-stack-auto
12021         * support/regression/ports/mcs51-stack-auto/spec.mk: added
12022
12023 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
12024
12025         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
12026
12027 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
12028
12029         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
12030
12031 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
12032
12033         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
12034
12035         * src/SDCCglue.h: add definition for printIvalChar()
12036
12037 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
12038
12039         * src/SDCCast.c: fix #498138 by Johan
12040
12041         * src/SDCCglue.c: fix #498138 by Johan
12042
12043 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
12044
12045         * support/regression/Makefile: fix clean
12046
12047         * support/regression/ports/ds390/support.c: fix transmission of last character
12048
12049 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
12050
12051         * /sdcc/src/ds390/gen.c:
12052         a) improved computing address of stack variable
12053         b) took out some #if 0 code
12054         c) improved parmBytes adjustment
12055         d) improved genPlusIncr & genMinusIncr
12056         e) genCmp could generate bad code (when left assigned to DPTR)
12057         f) Fixed bug in hasInc
12058
12059         * /sdcc/src/ds390/ralloc.c:
12060         a) packRegsForSupport could mess up live information (Fixed)
12061         b) packRegsDPTRuse could be incorrect for left & right shift
12062
12063         * /sdcc/src/mcs51/ralloc.c:
12064         packRegsForSupport could mess up the live information (Fixed)
12065
12066         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
12067
12068         * /sdcc/src/SDCCast.c:
12069         can reverse a loop even if function call is present as long
12070         as the loop control variable is local & is not passed as parameter
12071
12072 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
12073
12074         * /sdcc/ChangeLog: *** empty log message ***
12075
12076         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
12077         More builtin function additions for TININative
12078
12079         * /sdcc/src/ds390/ralloc.c:
12080         Had broken the regression testsuite
12081
12082         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
12083
12084         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
12085         Added funcattr hasStackParms will be set for reentrant functions when there
12086         are paramteres on the stack, this helps in minimizing frame pointer generation
12087         typeFromStr can handle function pointers now
12088
12089         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
12090         *** empty log message ***
12091
12092 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
12093
12094         * /src/ds390/gen.c, /src/ds390/main.c:
12095         More builtin function additions for TININative
12096
12097         * /src/ds390/ralloc.c:
12098         Had broken the regression testsuite
12099
12100         * /src/SDCCast.c: Fixed a bug in dumptree
12101
12102         * /src/SDCCsymt.c, /src/SDCCsymt.h:
12103         Added funcattr hasStackParms will be set for reentrant functions when there
12104         are paramteres on the stack, this helps in minimizing frame pointer generation
12105         typeFromStr can handle function pointers now
12106
12107         * /doc/builtins.txt, /doc/TININative.txt:
12108         *** empty log message ***
12109
12110
12111 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
12112
12113         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
12114         ALPHA version for -mTININative
12115
12116         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
12117         updated to reflect changes in the port structure
12118
12119         * /src/port.h:
12120         added function do_assemble (similar to do_link) if non-null this function
12121         will be called to do assembly (-mTININative) requires a multi command
12122         assembly
12123         added function genAssemblerEnd will be called to generate assembler Epilogue
12124
12125         * /src/SDCCsymt.c:
12126         added _JavaNative to debug info printing
12127
12128         * /src/SDCCmain.c: added option --tini-libid
12129         added port->do_assemble function (-mTININative) has a multi command assemble
12130
12131         * /src/SDCCglue.c: Disabled "constExpr" check
12132         added port->genAssemblerEnd function
12133
12134         * /src/SDCCglobl.h: Added option --tini-libid value
12135
12136         * /src/SDCCast.h:
12137         tookout optimizeCompare from the header (has no external references)
12138
12139         * /src/SDCCast.c: made one more function "static"
12140
12141 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
12142
12143         * src/z80/mappings.i: Added z80asm support.
12144
12145         * src/z80/main.c: Added z80asm support on --asm=z80asm
12146
12147         * src/z80/gen.c: Fixed asm portability issues.
12148
12149         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
12150
12151         * src/SDCCglue.c (printExterns): Added global/extern split.
12152
12153 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
12154
12155         * support/regression/Makefile: added test for mcs51 model large
12156
12157         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
12158
12159         * support/regression/ports/gbz80/spec.mk: added -mgbz80
12160
12161 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
12162
12163         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
12164
12165 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
12166
12167         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
12168
12169         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
12170
12171 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
12172
12173         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
12174
12175         * support/regression/tests/simplefloat.c: Port to mcs51.
12176
12177 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
12178         * support/regression/tests/bug-485362.c: Added.
12179
12180         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
12181
12182         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
12183
12184         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
12185
12186         * src/z80/gen.c (aopDump): Added a dump function.
12187
12188 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
12189         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
12190
12191         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
12192
12193         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
12194
12195         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
12196
12197         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
12198
12199         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
12200
12201         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
12202
12203         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
12204
12205         * support/regression/ports/ds390/support.c: Use tinibios.
12206
12207         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
12208
12209 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
12210
12211         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
12212         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
12213
12214         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
12215
12216         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
12217
12218 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
12219
12220         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
12221
12222         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
12223         (packRegsForIYUse): Created and optimised.
12224
12225 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
12226
12227         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
12228 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
12229
12230         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
12231
12232         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
12233
12234         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
12235
12236 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
12237
12238         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
12239
12240         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
12241
12242 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
12243
12244         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
12245
12246         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
12247
12248         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
12249
12250 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
12251
12252         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
12253         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
12254         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
12255
12256         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
12257
12258         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
12259         (genNotFloat): Added.
12260         (genUminusFloat): Added.
12261
12262         * device/lib/z80/Makefile: Added floating pt stubs.
12263
12264         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
12265
12266         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
12267
12268         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
12269
12270 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
12271
12272         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
12273
12274         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
12275
12276         * sdcc/support/regression/Makefile: Add port ds390.
12277
12278         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
12279
12280         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
12281
12282         * sdcc/support/regression/ports/ds390/spec.mk: Added.
12283
12284         * sdcc/support/regression/ports/ds390/support.c: Added.
12285
12286         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
12287
12288         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
12289
12290         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
12291
12292 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
12293
12294         * device/include/malloc.h: Added z80 and gbz80 support.
12295
12296         * device/lib/gbz80/heap.s: Added.
12297
12298         * device/lib/z80/heap.s: Added.
12299
12300         * device/lib/malloc.c: Added z80 and gbz80 support.
12301
12302         * support/regression/tests/malloc.c (testMalloc): Added.
12303
12304         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
12305
12306         * support/regression/tests/bug-478094.c: Added.
12307
12308         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
12309
12310 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
12311
12312         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
12313
12314         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
12315
12316         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
12317
12318         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
12319
12320         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
12321
12322 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
12323
12324         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
12325
12326 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
12327
12328         * support/regression/tests/bug-477927.c: Added.
12329
12330         * src/z80/peeph.def: Added minor rules.
12331
12332         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
12333
12334         * src/z80/peeph.def: Added jump optimisation modification.
12335
12336 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
12337
12338         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
12339
12340 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
12341
12342         * support/regression/tests/funptrs.c: Added.
12343
12344 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
12345
12346         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
12347
12348 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
12349
12350         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
12351
12352         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
12353
12354         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
12355         (movLeft2ResultLong): Created.
12356
12357         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
12358         (joinPushes): Added.  Joins two char pushes into a word push.
12359
12360 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
12361
12362         * support/cpp2/Makefile.in (install): Added creation of dest dir.
12363
12364         * support/makebin/Makefile (install): Added creation of dest dir.
12365
12366 2001-10-24 Karl Bongers <karl AT turbobit.com>
12367
12368         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
12369
12370 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
12371
12372         * src/z80/ralloc.c: Turned off faulty pack for one use.
12373
12374         * src/z80/peeph-gbz80.def: Removed redundent restart options.
12375
12376         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
12377
12378 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
12379
12380         * support/regression/Makefile: Improved clean
12381
12382         * support/regression/ports/gbz80/spec.mk: Added clean
12383
12384         * support/regression/ports/host/spec.mk: Added clean
12385
12386         * support/regression/ports/z80/spec.mk: Added clean
12387
12388         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
12389
12390         * support/regression/ports/mcs51/timeout.c: little improvements
12391
12392 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
12393
12394         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
12395
12396         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
12397
12398         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
12399
12400 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
12401
12402         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
12403
12404         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
12405
12406 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
12407         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
12408
12409         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
12410
12411         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
12412
12413         * src/mcs51/main.c (_linkCmd): Added bin path to command.
12414
12415         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
12416
12417         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
12418
12419         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
12420
12421         * support/regression/tests/longor.c: Added.
12422
12423 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
12424
12425         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
12426
12427         * as/mcs51/aslink.h: define PATH_MAX
12428
12429         * as/mcs51/asm.h: define PATH_MAX
12430
12431         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
12432
12433         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
12434
12435         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
12436
12437         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
12438
12439         * src/SDCCglobl.h: define PATH_MAX
12440
12441         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
12442
12443         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
12444
12445 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
12446
12447         * src/z80/gen.c (gencjneshort): Fixed
12448
12449         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
12450
12451 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
12452
12453         * support/regression/tests/bug-469671.c: Added.
12454
12455         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
12456
12457 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
12458
12459         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
12460
12461         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
12462
12463 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
12464
12465         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
12466
12467         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
12468
12469         * src/device/lib/_mullong.c : removed hint: nooverlay bug
12470
12471         * src/device/lib/_divuint.c : removed hint: nooverlay bug
12472
12473         * src/device/lib/_divulong.c: removed hint: nooverlay bug
12474
12475         * src/device/lib/_moduint.c : removed hint: nooverlay bug
12476
12477         * src/device/lib/_modulong.c: removed hint: nooverlay bug
12478
12479 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
12480
12481         * 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.
12482
12483         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
12484
12485         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
12486
12487 2001-10-07    <johan AT FRIJA>
12488
12489         * device/lib/gets.c (gets): fixed the return value.
12490
12491 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
12492         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
12493
12494         * 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.
12495
12496         * 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.
12497
12498         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
12499
12500         * src/pic/gen.c: Removed Safe_strdup.
12501
12502         * configure.in: Added option to enable libgc support.
12503
12504         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
12505         (bitVectUnion): Optimised.
12506         (bitVectIntersect): Optimised.
12507         (bitVectBitsInCommon): Optimised.
12508         (bitVectCplAnd): Optimised.
12509
12510         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
12511
12512 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12513
12514         * src/SDCCmain.c: distinguish between assembler debug and plain options
12515
12516         * src/avr/main.c:   remove standard assembler options
12517
12518         * src/ds390/main.c: remove standard assembler options
12519
12520         * src/mcs51/main.c: remove standard assembler options
12521
12522         * src/port.h: removed "PENDING" comment
12523
12524 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12525
12526         * src/device/lib/_mulint.c  : new, with assember functions
12527
12528         * src/device/lib/_mullong.c : new, with assember functions
12529
12530         * src/device/lib/_divuint.c : with assember functions
12531
12532         * src/device/lib/_divsint.c : with assember functions
12533
12534         * src/device/lib/_divulong.c: with assember functions
12535
12536         * src/device/lib/_divslong.c: with assember functions
12537
12538         * src/device/lib/_moduint.c : with assember functions
12539
12540         * src/device/lib/_modsint.c : with assember functions
12541
12542         * src/device/lib/_modulong.c: with assember functions
12543
12544         * src/device/lib/_modslong.c: with assember functions
12545
12546         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
12547
12548         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
12549
12550         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
12551                                       replaced _mululong.c and _mulslong.c by _mullong.c
12552
12553 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12554
12555         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
12556
12557 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12558
12559         * src/SDCCglue.c: test, if win32api is available for MINGW
12560
12561 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12562
12563         * src/SDCCsymt.c: no more _modifier in printTypeChain()
12564         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
12565         * support/regression/ports/gbz80/spec.mk: removed GENERIC
12566         * support/regression/ports/host/spec.mk: removed GENERIC
12567         * support/regression/ports/mcs51/spec.mk: removed GENERIC
12568         * support/regression/ports/z80/spec.mk: removed GENERIC
12569
12570 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
12571
12572         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
12573
12574         * support/regression/tests/bug-467035.c: Created.
12575
12576 2001-10-01    <johan AT FRIJA>
12577
12578         * src/SDCC.y: fixed bug #466586 part 1
12579
12580 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
12581
12582         * SDCCicode.c: z80 has no generic pointers
12583         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
12584
12585 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
12586
12587         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
12588
12589 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
12590
12591         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
12592
12593         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
12594
12595 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
12596
12597         * configure.in: Fixed up so that ucsim is only configured once.
12598
12599         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
12600
12601         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
12602         (getPathDifference): As above.
12603
12604         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
12605
12606         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
12607
12608 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
12609         * .version: Updated to 2.3.1
12610
12611         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
12612         Added copyright header.
12613
12614         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
12615         (assemble): Added support for macro based assembler commands.
12616         (linkEdit): Added support for macro based linker commands.
12617         (preProcess): Changed the pre-processor to use macros.
12618         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
12619         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
12620
12621         * device/lib/z80/crt0.s: Added module name for debugging.
12622
12623 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
12624
12625         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
12626
12627         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
12628
12629         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
12630
12631         * src/Makefile.in: Added SDCCmacro and SDCCutil
12632
12633 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
12634
12635         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
12636
12637 2001-09-16    <johan AT FRIJA>
12638
12639         * 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.
12640
12641 2001-09-15    <johan AT FRIJA>
12642
12643         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
12644         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
12645
12646 2001-09-11    <johan AT FRIJA>
12647
12648         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
12649
12650 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
12651
12652         * support/regression/tests/bug-460444.c: Added test case.
12653
12654         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
12655         (genCast): Added justification for all of the asserts.
12656
12657 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
12658
12659         * support/regression/support.c: _xdata replaced by xdata
12660
12661         * support/regression/spec.mk: removed _generic
12662
12663 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
12664
12665         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
12666
12667         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
12668         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
12669
12670         * src/z80/peeph.def: Added a rule to optimise shift then compare.
12671
12672         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
12673
12674         * support/regression/tests/bug-460010.c: Added test case.
12675
12676         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
12677
12678 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
12679
12680         * support/regression/Makefile: inter-port-clean adjusted for mcs51
12681
12682         * support/regression/testfwk.c: removed workaround for bug #436344
12683
12684         * support/regression/tests/bp.c: use less memory with mcs51
12685
12686         * support/regression/tests/bug-441448.c: use less memory
12687
12688         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
12689
12690         * support/regression/collate-results.py: typo
12691
12692 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
12693
12694         * support/regression/tests/fetchoverlap.c: Added new test case.
12695
12696         * support/regression/tests/bp.c: Added new test case.
12697
12698         * support/regression/tests/bug-448984.c: Added new test case.
12699
12700         * support/regression/tests/pow2shifts.c: Added new test case.
12701
12702         * src/z80/gen.c: Turned off the noise it normally generates for the release.
12703         (genlshTwo): Fixed right shift for count > 8.
12704
12705         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
12706
12707 2001-09-08    <johan AT FRIJA>
12708
12709         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
12710
12711 2001-09-07    <johan AT FRIJA>
12712
12713         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
12714
12715         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
12716
12717 2001-09-06    <johan AT FRIJA>
12718
12719         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
12720         * bernhard noted me at this: "() equals to (void)" (1.38)
12721
12722 2001-09-05    <johan AT FRIJA>
12723
12724         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
12725
12726 2001-09-04    <johan AT FRIJA>
12727
12728         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
12729
12730
12731 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
12732
12733         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
12734
12735 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
12736
12737         * link/z80/aslink.h: Fixed path for PATH_MAX
12738
12739 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
12740
12741         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
12742
12743         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
12744
12745         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
12746
12747         * 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.
12748
12749 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
12750
12751         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
12752         (genCmp): Fixed up genCmp for the GB with longs.
12753
12754         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
12755
12756         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
12757
12758         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
12759
12760         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
12761
12762 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
12763
12764         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
12765
12766 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
12767
12768         * 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.
12769
12770         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
12771
12772 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
12773
12774         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
12775
12776         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
12777
12778 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
12779
12780   * sim/ucsim/configure:    little improvement of Cygwin-detection
12781   * sim/ucsim/configure.in: little improvement of Cygwin-detection
12782   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
12783   * support/regression/tests/bug-221100.c: small changes for mcs51
12784   * support/regression/tests/bug-221168.c: small changes for mcs51
12785   * support/regression/tests/bug-227710.c: small changes for mcs51
12786   * support/regression/tests/staticinit.c: small changes for mcs51
12787   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
12788   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
12789   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
12790
12791 $Revision$