* partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
[fw/sdcc] / ChangeLog
1 2006-09-16 Borut Razem <borut.razem AT siol.net>
2
3         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4           thanks to dfulab:
5           - sdcc.dsw: changed property eol-style to CRLF
6           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
7
8 2006-10-04 Raphael Neider <rneider AT web.de>
9
10         * device/include/pic/{pic16f84.h,pic16f84a.h},
11         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
12           from patch #1522504, thanks to Robas Teodor
13
14 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
15
16         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
17           fixes bug 1566015
18
19 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
20
21         * src/pic16/glue.c (pic16emitMaps),
22         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
23         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
24         * device/lib/pic16/libc/string/memcpypgm2ram.c,
25         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
26           Philipp Krause
27         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
28         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
29
30 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
31
32         * support/librarian/sdcclib.c: Added option -l.
33         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
34           usage totals.
35         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
36           using Windows command prompt.
37
38 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
39
40         * device/lib/libsdcc.lib: added module rand
41         * src/ds390/ralloc.c (rematStr),
42         * src/hc08/ralloc.c (rematStr),
43         * src/mcs51/ralloc.c (rematStr),
44         * src/z80/ralloc.c (rematStr): made output more consistent
45         * src/mcs51/gen.c: cosmetic changes
46
47 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
48
49         * src/port.h: added mem.cabs_name to PORT
50         * src/ds390/main.c,
51         * src/hc08/main.c,
52         * src/mcs51/main.c,
53         * src/pic16/main.c,
54         * src/pic/main.c,
55         * src/xa51/main.c,
56         * src/z80/main.c: added cabs_name initializers
57         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
58           constants
59           (emitMaps): emit absolutes in code memory into cabs_name
60         * src/SDCCmem.c,
61         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
62         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
63         * support/regression/fwk/include/testfwk.h: added define for at
64         * support/regression/tests/absolute.c: added, new
65
66 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
67
68         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
69           optimizations, see also patch 887161 by Stas Sergeev
70         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
71           to be necessary anymore,
72           (102, 103, 104, 127): renamed all occurances of bp to _bp
73
74 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
75
76         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
77           thanks Weston T. Schmidt for patch 1555221
78         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
79         * src/SDCCicode.c(geniCodeMultiply): small optimization
80
81 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
82
83         * device/include/stdlib.h: added rand prototypes
84         * device/lib/rand.c: new, added
85         * device/lib/Makefile.in: added rand.c
86         * src/z80/peeph.def,
87         * src/z80/peeph-gbz80.def,
88         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
89
90 2006-09-20 Raphael Neider <rneider AT web.de>
91
92         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
93
94 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
95
96         * as/link/aslink.h: cosmetic changes
97         * as/link/mcs51/Makefile.in,
98         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
99
100 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
101
102         * as/link/aslink.h,
103         * as/link/mcs51/aslink.h,
104         * as/link/z80/aslink.h: merged and moved to as/link/
105         * as/link/lkstore.c,
106         * as/link/mcs51/lkstore.c: moved to as/link/
107         * as/link/clean.mk: remove *.o
108         * as/link/mcs51/alloc.h: deleted
109         * as/link/mcs51/lkarea.c: added lnksect prototype
110         * as/link/mcs51/lkdata.c,
111         * as/link/mcs51/lklex.c,
112         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
113         * as/link/mcs51/lkmem.c,
114         * as/link/mcs51/lknoice.c: removed include strcmpi.h
115         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
116         * as/link/mcs51/aslink.dsp,
117         * as/link/mcs51/Makefile.aslink,
118         * as/link/mcs51/Makefile.bcc,
119         * as/link/mcs51/Makefile.in: updated for moved files
120         * as/link/z80/lkarea.c,
121         * as/link/z80/lkhead.c,
122         * as/link/z80/lklex.c,
123         * as/link/z80/lklibr.c,
124         * as/link/z80/lklist.c,
125         * as/link/z80/lkmain.c,
126         * as/link/z80/lkrloc.c,
127         * as/link/z80/lksym.c: synced with mcs51
128         * as/link/z80/lkdata.c,
129         * as/link/z80/lkeval.c,
130         * as/link/z80/lkihx.c,
131         * as/link/z80/lks19.c: cosmetic changes
132         * as/link/z80/Makefile.in,
133         * as/link/z80/linkgbz80.dsp,
134         * as/link/z80/linkz80.dsp: updated for moved files
135
136 2006-09-16 Borut Razem <borut.razem AT siol.net>
137
138         * debugger/mcs51/sdcdb.c: partially fixed
139           [ 1203664 ] sdcdb fails to open files w. two "." periods
140         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
141           debugger/mcs51/symtab.h: fixed indenting
142         * configure.in, configure: up to date with latest Maarten's changes
143
144 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
145
146         as/link/mcs51
147         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
148         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
149         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
150         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
151         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
152         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
153         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
154         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
155         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
156         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
157         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
158         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
159         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
160         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
161         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
162         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
163         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
164         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
165         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
166         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
167         as/link/mcs51/alloc.h,
168         as/link/mcs51/clean.mk,
169         as/link/mcs51/conf.mk,
170         as/link/mcs51/Makefile.bcc,
171         as/link/mcs51/Makefile.in,
172         as/link/mcs51/readme.390,
173         as/link/mcs51/strcmpi.c,
174         as/link/mcs51/strcmpi.h,
175         as/mcs51/clean.mk,
176         as/mcs51/Makefile.bcc,
177         as/mcs51/Makefile.in,
178         configure,
179         Makefile.in,
180         sdcc.dsw: moved mcs51 linker to as/link/mcs51
181
182 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
183
184         * as/link,
185         * as/link/Makefile.in,
186         * as/link/z80/linkgbz80.dsp,
187         * as/link/z80/linkz80.dsp,
188         * configure,
189         * link,
190         * link/clean.mk,
191         * link/Makefile.in,
192         * link/README,
193         * link/z80,
194         * link/z80/aslink.h,
195         * link/z80/clean.mk,
196         * link/z80/conf.mk,
197         * link/z80/linkgbz80.dsp,
198         * link/z80/linkz80.dsp,
199         * link/z80/lkarea.c,
200         * link/z80/lkdata.c,
201         * link/z80/lkeval.c,
202         * link/z80/lkgb.c,
203         * link/z80/lkgg.c,
204         * link/z80/lkhead.c,
205         * link/z80/lkihx.c,
206         * link/z80/lklex.c,
207         * link/z80/lklibr.c,
208         * link/z80/lklist.c,
209         * link/z80/lkmain.c,
210         * link/z80/lkrloc.c,
211         * link/z80/lks19.c,
212         * link/z80/lksym.c,
213         * link/z80/Makefile.in,
214         * Makefile.in,
215         * sdcc.dsw: moved link/ to as/link/
216
217 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
218
219         * as/mcs51/i51mch.c (machine): fixed warning
220
221 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
222
223         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
224
225 2006-09-09 Borut Razem <borut.razem AT siol.net>
226
227         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
228           sdcdb WIN32 native port
229         * src/clean.mk: fixed
230
231 2006-09-08 Borut Razem <borut.razem AT siol.net>
232
233         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
234
235 2006-09-08 Raphael Neider <rneider AT web.de>
236
237         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
238         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
239             to gplink to disable processor mismatch warning and to allow
240             the use of devices with only aliased (shared) memory banks,
241           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
242
243 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
244
245         * doc/sdccman.lyx: Some re-formating plus example on using
246           #pragma preproc_asm +/-
247
248 2006-09-07 Borut Razem <borut.razem AT siol.net>
249
250         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
251           section
252
253 2006-09-06 Borut Razem <borut.razem AT siol.net>
254
255         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
256           line at sdcc.nsi:153
257         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
258
259 2006-09-05 Borut Razem <borut.razem AT siol.net>
260
261         * configure.in, configure: support for winsock2
262         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
263           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
264           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
265           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
266           debugger/mcs51/symtab.h: sdcdb WIN32 native port
267
268 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
269
270         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
271           and OP_DEFS
272         * support/regression/tests/bug1551947.c: new, added
273         * src/SDCCsymt.h: strings are char* not byte*
274
275 2006-09-05 Raphael Neider <rneider AT web.de>
276
277         * device/lib/pic16/libdev/pic18f4550.c,
278           device/include/pic16/pic18f4550.h: added PORTD/TRISD
279             declarations/definitions from patch #1520949
280
281 2006-09-05 Raphael Neider <rneider AT web.de>
282
283         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
284           byte-aligned bitfields, fixes #1539278
285
286 2006-09-05 Raphael Neider <rneider AT web.de>
287
288         * src/pic/gen.c (genReceive): skip unreferenced arguments,
289           fixes #1544120
290
291 2006-09-04 Borut Razem <borut.razem AT siol.net>
292
293         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
294         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
295           -mno-cygwin is a part of the compiler name
296         * support/scripts/sdcc_mingw32: don't disable ucsim
297
298 2006-09-03 Borut Razem <borut.razem AT siol.net>
299
300         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
301         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
302
303 2006-09-03 Raphael Neider <rneider AT web.de>
304
305         * src/pic/ralloc.c,
306         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
307           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
308           fixes #1550049
309
310 2006-09-01 Borut Razem <borut.razem AT siol.net>
311
312         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
313           to make ppc-osx happy
314
315 2006-08-31 Borut Razem <borut.razem AT siol.net>
316
317         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
318         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
319         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
320         * support/regression/ports/ds390/spec.mk,
321           support/regression/ports/mcs51/spec.mk,
322           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
323           To run regression tests in mingw environment:
324           make DEV_NULL=NUL CC=gcc
325
326 2006-08-30 Borut Razem <borut.razem AT siol.net>
327
328         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
329           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
330           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
331           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
332           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
333           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
334           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
335           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
336           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
337           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
338           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
339           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
340           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
341           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
342           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
343           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
344           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
345           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
346           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
347           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
348           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
349           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
350           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
351           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
352           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
353           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
354           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
355           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
356           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
357           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
358           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
359           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
360           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
361           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
362           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
363           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
364           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
365           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
366           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
367           ucsim WIN32 native port
368
369 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
370
371         * doc/sdccman.lyx: added note on dynamic memory heap initialization
372
373 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
374
375         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
376         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
377
378 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
379
380         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
381         * support/regression/tests/bug1546986.c: new, added
382         * as/mcs51/.cvsignore,
383         * debugger/mcs51/.cvsignore,
384         * src/.cvsignore: deleted
385
386 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
387
388         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
389           definitions)
390
391 2006-08-20 Borut Razem <borut.razem AT siol.net>
392
393         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
394           removed cl_listen_console::match(), cl_console::match(),
395           restructured cl_commander::proc_input()
396
397 2006-08-16 Borut Razem <borut.razem AT siol.net>
398
399         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
400           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
401           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
402
403 2006-08-14 Borut Razem <borut.razem AT siol.net>
404
405         * support/regression/Makefile.in,
406           support/regression/ports/pic14/gpsim.cmd,
407           support/regression/ports/pic14/spec.mk,
408           support/regression/ports/pic14/support.c:
409           added pic14 regression test
410
411 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
412
413         * as/doc/asxhtm.html: documented changed ABS behaviour
414         * as/doc/README: fixed some typos
415
416 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
417
418         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
419           not defined on host
420
421 2006-08-12 Borut Razem <borut.razem AT siol.net>
422
423         * support/regression/fwk/include/testfwk.h,
424           support/regression/fwk/lib/testfwk.c,
425           support/regression/generate-cases.py,
426           support/regression/Makefile.in:
427           regression test framework does not depend on function pointers and
428           variable arguments
429
430 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
431
432         * device/include/stddef.h: c temporary hack to fix bug 1518273
433
434 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
435
436         * device/include/mcs51/cc2510fx.h: added
437         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
438           to projects.
439
440 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
441
442         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
443         * as/z80/Makefile.in: added strcmpi.c
444         * as/z80/z80adr.c: added upper case registers and lower case conditionals
445         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
446
447 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
448
449         * device/lib/gbz80/asm_strings.s,
450         * device/lib/gbz80/crt0_rle.s,
451         * device/lib/gbz80/div.s,
452         * device/lib/gbz80/mul.s,
453         * device/lib/gbz80/shift.s,
454         * device/lib/z80/asm_strings.s,
455         * device/lib/z80/crt0_rle.s,
456         * device/lib/z80/div.s,
457         * device/lib/z80/mul.s,
458         * device/lib/z80/shift.s: changed to all lower case menmonics except the
459           flags which are all upper case
460
461 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
462
463         * as/z80/asm.h: made CASE_SENSITIVE 1
464         * link/z80/aslink.h: made CASE_SENSITIVE 1
465         * src/z80/gen.c (throughout): made all conditionals upper case
466         * support/regression/tests/bug1503067.c: new
467
468 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
469
470         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
471           (shiftIntoPair): added case 2 for PAIR_IY,
472           (setupToPreserveCarry): replaced parameters with iCode and check if
473            PAIR_DE is in use to fix bug 1399290,
474           (genPlus, genMinus): updated call to setupToPreserveCarry
475         * support/regression/tests/bug1399290.c: new
476
477 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
478
479         * device/lib/Makefile.in (Z80SOURCES): enabled float support
480         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
481         * src/ds390/gen.c (shiftRLong),
482         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
483         * src/mcs51/gen.c (sameReg): changed to sameByte,
484           (xch_a_aopGet): new,
485           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
486            shiftRLong): fixed bug 1533966
487         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
488           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
489         * support/regression/Makefile.in: disabled z80, enabled ucz80
490         * support/regression/tests/float_trans.c: enabled test for z80 and host
491         * support/regression/tests/shifts2.c: new, for testing bug 1533966
492
493 2006-08-01 Borut Razem <borut.razem AT siol.net>
494
495         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
496           comparison is always false due to limited range of data type
497           on PPC64 machine (openpower-linux1) where "char = unsigned char"
498
499 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
500
501         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
502         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
503         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
504         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
505
506 2006-07-31 Borut Razem <borut.razem AT siol.net>
507
508         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
509           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
510           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
511           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
512           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
513           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
514           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
515           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
516           enable ucsim mingw compilation. Serial port is disabled,
517           since it uses termios.h API, which is not available on native
518           WIN32
519
520 2006-07-31 Borut Razem <borut.razem AT siol.net>
521
522         * Small Device C Compiler 2.6.0 released
523         * support/scripts/sdcc.nsi: added FULL_DOC option
524         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
525
526 2006-07-28 Borut Razem <borut.razem AT siol.net>
527
528         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
529         * doc/INSTALL.txt: updated
530
531 2006-07-27 Borut Razem <borut.razem AT siol.net>
532
533         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
534           device/lib/pic/libdev/Makefile.in: fixed bug
535           [ 1438354 ] pic libsdcc: distclean doesn't work
536         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
537           device/lib/pic16/libio/Makefile.in: fixed bug
538           [ 1438344 ] pic16 lib: clean doesn't work properly
539         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
540
541 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
542
543         * device/lib/pic/libsdcc/fsdiv.c,
544         * device/lib/pic/libsdcc/fsmul.c,
545         * device/lib/pic16/libsdcc/float/fsdiv.c,
546         * device/lib/pic16/libsdcc/float/fsmul.c,
547         * device/lib/_fsdiv.c,
548         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
549         * support/regression/tests/bug1520966.c: added
550         * doc/knownbugs.html: removed [ 1520966 ] from the list
551
552 2006-07-25 Borut Razem <borut.razem AT siol.net>
553
554         * configure.in, configure, sdccconf_in.h: fixed bug
555           [ 1519095 ] regression test onebyte.c fails on ppc64 host
556         * doc/knownbugs.html: removed [ 1519095 ] from the list
557
558 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
559
560         * doc/knownbugs.html: added, contains list of known bugs at release
561         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
562
563 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
564
565         * device/include/mcs51/compiler.h: added SFRX for xdata based special
566           function registers and corrected defaults with additional warning
567         * device/lib/malloc.c: cosmetic changes
568         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
569         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
570           (fillGaps): and used it
571
572 2006-07-20 Raphael Neider <rneider AT web.de>
573
574         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
575           output unless SDCCPICDEBUG is set
576         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
577           output if SILENT is set
578
579 2006-07-11 Borut Razem <borut.razem AT siol.net>
580
581         * doc/README.txt: updated
582
583 2006-07-10 Borut Razem <borut.razem AT siol.net>
584
585         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
586           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
587           in WIN32 installation
588         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
589           release candidate 1
590
591 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
592
593         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
594         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
595
596 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
597
598         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
599
600 2006-07-06 Borut Razem <borut.razem AT siol.net>
601
602         * support/regression/tests/bitfields.c:
603           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
604         * support/regression/tests/constantRange.c:
605           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
606
607 2006-07-04 Borut Razem <borut.razem AT siol.net>
608
609         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
610           src/port.mk,
611           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
612           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
613           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
614           reverted changes from 2006-07-03
615         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
616         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
617           added CPPFLAGS, used by the host port
618
619 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
620
621         * support/regression/valdiag/tests/switch.c,
622         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
623         * support/regression/tests/libmullong.c: fixed for host
624         * support/regression/ports/host/spec.mk: disable all warnings for host,
625         SDCC runs with --less-pedantic too
626
627 2006-07-03 Borut Razem <borut.razem AT siol.net>
628
629         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
630           defined CPPFLAGS
631         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
632         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
633           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
634           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
635           include ../port.mk
636         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
637           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
638           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
639           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
640
641 2006-07-02 Raphael Neider <rneider AT web.de>
642
643         * src/pic16/devices.inc,
644         * device/include/pic16/pic18fregs.h,
645         * device/include/pic16/pic18f4550.h,
646         * device/lib/pic16/pics.all,
647         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
648
649 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
650
651         * as/hc08/lkaomf51.c (OutputName),
652         * as/mcs51/lkaomf51.c (OutputName),
653         * as/z80/asmain.c (asmbl),
654         * src/ds390/main.c (asmLineNodeFromLineNode),
655         * src/hc08/ralloc.c (hc08_assignRegisters),
656         * src/mcs51/main.c (asmLineNodeFromLineNode),
657         * src/xa51/ralloc.c (checkRegMask),
658         * src/xa51/gen.c (emitcode),
659         * src/z80/gen.c (_emit2),
660         * src/SDCCast.c (searchLitOp),
661         * src/SDCCglobl.h,
662         * support/packihx/packihx.c,
663         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
664         * src/ds390/gen.c (aopPutUsesAcc),
665         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
666         * support/regression/tests/libmullong.c (mullong_wrapper),
667         * src/SDCCsymt.c (powof2),
668         * src/SDCCast.c,
669         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
670         * src/SDCCsymt.h: added TYPE_TARGET_*
671         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
672         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
673         SDCCast because 1) header problems 2) this is the right place
674         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
675         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
676         prototype
677
678 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
679
680         * src/SDCCicode.h: removed buggy semicolon in unused macro
681         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
682         search for previous definiton of auto symbols too,
683         (findPrevUse): fixed logic of emitWarnings
684
685 2006-06-26 Raphael Neider <rneider AT web.de>
686
687         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
688           PCLATH and PCLATU on interrupts, potentially fixes #1505141
689
690 2006-06-25 Raphael Neider <rneider AT web.de>
691
692         * device/lib/pic/libm: NEW, added math library functions
693         * device/lib/pic/libsdcc: NEW; added float support functions
694         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
695         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
696           NEW, added math related headers
697         * device/include/asm/pic/features.h: NEW
698         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
699           (popGet): allow larger offsets for AOP_PCODE,
700           (genDataPointerSet): handle literals explicitly, more debug output,
701           (genAssign): fixed for float using aopLiteral ;-)
702         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
703           GOTO initialisation routine
704         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
705           flag on registers, fixes #1469043 (local variables do not work)
706         * src/pic/main.c (_pic14_do_link),
707         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
708           available
709
710 2006-06-25 Borut Razem <borut.razem AT siol.net>
711
712         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
713           characters printed (not including the trailing '\0' used to end
714           output to strings). Problem detected in regression test bug-927659.c.
715           NOTE: printf() family functions should return int instead
716           unsigned int!
717         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
718           specifier are printed as themselves
719         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
720           support flags, width and precision specifiers
721
722 2006-06-24 Borut Razem <borut.razem AT siol.net>
723
724         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
725           to the list of sdcc tagrets not supporting bit type
726         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
727           testfor pic16 due to bug:
728           [ 1511794 ] pic16: regression test bug-895992.c fails
729
730 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
731
732         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
733         * src/SDCCglue.c (initPointer), fixed bug 1496419
734         * support/regression/tests/bug1496419.c: new, added
735
736 2006-06-22 Borut Razem <borut.razem AT siol.net>
737
738         * support/regression/ports/pic16/support.c: use gpsim usart module from
739           libgpsim_modules library
740
741 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
742
743         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
744         IP0H to IPH0.
745
746 2006-06-19 Raphael Neider <rneider AT web.de>
747
748         * src/pic/glue.h,src/pic16/glue.h: added prototypes
749         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
750           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
751           (pic14printExterns,pic14printPublics,pic16printPublics,
752           pic16_printExterns): use new functions to emit symbols
753           (picglue,pic16glue): emit publics before emitting externs
754         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
755           locally defined functions to avoid bug #1443651
756         * support/regression/tests/bug-716242.c: removed pic16 workaround
757         * support/regression/ports/pic16/spec.mk: ignore errors during build
758
759 2006-06-19 Raphael Neider <rneider AT web.de>
760
761         * src/pic/glue.h: added pic14aopLiteral prototype
762         * src/pic/glue.c (pic14aopLiteral): return unsigned int
763         * src/pic/gen.c: removed stdint.h dependency
764           (aopGet): use Safe_strdup()
765           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
766           (genDataPointerSet): use pic14aopLiteral()
767         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
768           for pic16; thanks to Bernhard and Maarten
769
770 2006-06-18 Borut Razem <borut.razem AT siol.net>
771
772         * support/regression/tests/structflexarray.c: flexible array members
773           not supported by gcc < 3
774         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
775           GUI tool by default
776         * src/pic/gen.c: don't include [p]strdin.h on solaris
777         * support/Util/pstdint.h: addad svn attributes
778         * support/regression/tests/constantRange.c,
779           support/regression/tests/rotate.c: include inttypes.h instead
780           stdint.h on solaris, addad svn attributes
781
782 2006-06-18 Raphael Neider <rneider AT web.de>
783
784         * src/SDCCsymt.c (initCSupport): change return type of divschar to
785           int for PIC16
786         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
787           (pic16_genMinusBits): simplified sign-extension
788           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
789             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
790             adjusted to correctly handle mixed-signed operands, disabled
791             now unused multiplciation routines
792         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
793           (assignResultValue): added argument denoting the size of the result
794             as returned by the function (fixes upcasts in assigning from
795             function calls: char foo(); int i = foo();)
796           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
797             function result to assignResultValue
798           (genMult): disabled inlined multiplication code
799           (genDiv): augmented to also handle the modulus operator, fixed to
800             handle mixed-signed operands correctly
801           (genMod): simply call genDiv, disabled unused code
802           (genAssign): fixed missing (sign-)extension on result
803         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
804             valid char operands, allow signed operands for native code, added
805             division and modulo operator handling
806         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
807
808         As a consequence, onebyte.c (if split into two files) and muldiv.c
809         pass regression tests.
810
811 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
812
813         * doc/Makefile.in: two runs of makeindex seem needed to get
814         correct page references in the index of sdccman.pdf
815         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
816
817 2006-06-17 Borut Razem <borut.razem AT siol.net>
818
819         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
820
821 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
822
823         * doc/sdccman.lyx: updated, added (porting source code, debugging),
824         mentioned ec2drv and paulmon
825
826 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
827
828         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
829           consecutive abs areas
830           (find_empty_space, allocate_space): added map to handle codemap or
831            xdatamap,
832           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
833            absolute idata and xdata
834         * as/mcs51/lkmem.c (summary2): updated legend
835
836 2006-06-16 Raphael Neider <rneider AT web.de>
837
838         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
839
840 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
841
842         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
843           1208515
844         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
845
846 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
847
848         * src/port.h (struct PORT): added field gp_tags, to hold the tag
849         value of generic pointers,
850         * src/avr/main.c,
851           src/ds390/main.c,
852           src/hc08/main.c,
853           src/izt/i186.c,
854           src/izt/tlcs900h.c,
855           src/mcs51/main.c,
856           src/pic/main.c,
857           src/pic16/main.c,
858           src/xa51/main.c,
859           src/z80/main.c: PORT structure, added elements for gp_tags field,
860         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
861         fields in the PORT structure of each port,
862         * src/SDCCast.c (decorateType): allow processing of generic pointers
863         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
864         S_FIXED symbols
865
866 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
867
868         * link/z80/lkgb.c,
869         * link/z80/lkgg.c,
870         * src/pic16/gen.c,
871         * src/pic16/main.c,
872         * src/pic16/pcode.c,
873         * src/pic/main.c,
874         * src/pic/pcoderegs.c,
875         * src/SDCCicode.c,
876         * src/SDCCmain.c,
877         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
878           bug 1504689 on minGW
879
880 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
881
882         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
883
884 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
885
886         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
887
888 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
889
890         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
891           for optimization
892
893 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
894
895         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
896         to a char variable. Fixed bug #1504211
897         * device/include/pic16/adc.h,
898         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
899         and fixed bug #1364390
900
901 2006-06-10 Borut Razem <borut.razem AT siol.net>
902
903         * CVSROOT: removed the CVS left-over
904
905 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
906
907         * as/hc08/asmain.c (asexit),
908         * as/hc08/lkmain.c (lkexit),
909         * as/mcs51/asmain.c (asexit),
910         * as/mcs51/lkmain.c (lkexit),
911         * src/SDCCglue.c (DEFSETFUNC),
912         * src/SDCCmain.c (linkEdit, assemble),
913         * support/librarian/sdcclib.c (AddRel),
914           replaced unlink() by standard C remove()
915         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
916         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
917           gatherImplicitVariables): new, added to fix bug 608752,
918           (createFunction): added gatherImplicitVariables()
919         * src/SDCCast.h: added createRMW prototype
920         * src/SDCCsymt.h (struct symbol): added infertype
921         * support/regression/tests/bug608752.c: new, added
922
923 2006-06-10 Raphael Neider <rneider AT web.de>
924
925         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
926           multibyte dummy reads (fixes #1503234)
927
928 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
929
930         * device/include/mcs51/compiler.h: new, added header file to enable
931           creating common sfr definition header files for different compilers
932
933 2006-06-05 Raphael Neider <rneider AT web.de>
934
935         * src/pic16/{pcode.h,genarith.c}:
936           introduced pCodeOp combining any two pCodeOps (previously only
937           two register operands could be combined), removed pcop2 from
938           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
939         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
940         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
941           rewritten to use new PO_TWO_OPS
942         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
943         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
944           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
945           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
946           (pic16_get_op): embraced return arg to allow #define return(x),
947             added new case for combined opcodes
948           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
949           (pic16_pCode2str,pic16_getRegFrompCodeOp,
950            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
951
952 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
953
954         * src/SDCCval.c (checkConstantRange): added
955         * src/SDCCval.h: added checkConstantRange
956         * support/Util/SDCCerr.c,
957         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
958         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
959         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
960         * src/SDCCast.c (decorateType): added checkConstantRange,
961         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
962         can be emitted with the correct always true/false warning,
963         added optimization for double '!';
964         result of decorateType() must be assigned back to the tree, because
965         decorateType() can change the tree
966         * src/SDCCicode.c (geniCodeLogic),
967         (geniCodeAssign): replaced new checkConstantRange, added warnings,
968         (checkConstantRange): removed, it was only a fragment which never
969         emitted a warning
970         * src/SDCCsymt.c (computeType): fixed promotion for
971         "-1 < (unsigned bit) b"
972         * src/pic/ralloc.c (packRegsForAssign),
973         * src/pic16/ralloc.c (packRegsForAssign),
974         * src/hc08/ralloc.c (packRegsForAssign),
975         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
976         from mcs51
977         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
978         * support/regression/tests/constantRange.c: added
979         * support/valdiag/tests/constantRange.c: added
980         * support/valdiag/valdiag.py: added -DPORT_HOST=1
981
982 2006-06-02 Borut Razem <borut.razem AT siol.net>
983
984         * support/regression/ports/pic16/support.c: increase stack size
985           to 255 bytes
986         * support/regression/Makefile.in: sort tests by name so that the
987           resutlts can be compared on different machines / platforms
988
989 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
990
991         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
992         * src/ds390/gen.c (emitLabel): new, added,
993           (genDjnz): fixed stack overflow bug,
994           (throughout): cosmetic changes to sync with mcs51/gen.c,
995           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
996         * src/mcs51/gen.c (genEndFunction): small optimization,
997           (throughout): cosmetic changes to sync with ds390/gen.c
998
999 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1000
1001         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
1002           (_print_format): fixed printing pointers
1003         * src/mcs51/gen.c (emitLabel, movb): new, added,
1004           (genAssign): small optimization,
1005           (genDjnz): fixed stack overflow bug,
1006           (throughout): replaced sprintf with SNPRINTF,
1007           replaced mcs51_regWithIdx with REG_WITH_INDEX,
1008           replaced emitcode("mov", "b,...") with MOVB(...),
1009           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
1010           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
1011         * src/mcs51/peeph.def: added rules 140 and 264
1012         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
1013           so they may get optimized into registers
1014
1015 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
1016
1017         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
1018           immediately when encountered,
1019           (printUsage): always use stderr even on windows
1020
1021 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
1022
1023         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
1024         (processParms): fixed bug #1247551
1025         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
1026         parseCmdLine, main): print '--version' to stdout,
1027         print 'help' to stdout if --help is given,
1028         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
1029         arguments are given; fixed --help
1030
1031 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
1032
1033         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
1034         * support/regression/tests/bug-1493710.c: added
1035
1036 2006-05-27 Borut Razem <borut.razem AT siol.net>
1037
1038         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
1039           static instead auto
1040         * support/regression/ports/pic16/support.c: increase stack size
1041           from default 64 bytes to 128 bytes
1042         * support/regression/tests/staticinit.c,
1043           support/regression/tests/float.c: regression tests fully enabled
1044           for pic16 port by putting the initialized data arrays into the code
1045           section
1046         * support/regression/ports/pic16/spec.mk: don't link default libraries.
1047           This was changed by mistake in the previous version.
1048
1049 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
1050
1051         * src/pic16/gen.c (genFunction, genEndFunction): some
1052         beautifications, fixed bug with falsely restoring FSR2 in large
1053         stack model, thanks to Beau E. Cox for reporting the bug
1054
1055 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
1056
1057         * debugger/mcs51/break.c,
1058         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
1059           use %p to print pointers, made address variables unsigned
1060         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
1061         * debugger/mcs51/symtab.c (parseSymbol): must return something
1062         * src/mcs51/gen.c (aopForSym): small optimization,
1063            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
1064           (freeAsmop): added missing break,
1065           (aopPut): removed parameter bvolatile, determine it inside the function,
1066           (saveRegisters, unsaveRegisters): small optimization,
1067           (genIpush): removed pointless check,
1068           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
1069           replaced sprintf with SNPRINTF,
1070           replaced strcpy with strncpyz,
1071           updated aopPut calls,
1072           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
1073         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
1074
1075 2006-05-24 Borut Razem <borut.razem AT siol.net>
1076
1077         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
1078           modification of test for the pic16 port, put the array to the code
1079           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
1080
1081 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1082
1083         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
1084         * support/Util/pstdint.h: added
1085
1086 2006-05-22 Borut Razem <borut.razem AT siol.net>
1087
1088         * src/regression/Makefile: removed bool2.c test, added -q linker option
1089         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
1090           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
1091           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
1092           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
1093           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
1094           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
1095           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
1096           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
1097           define SUPPORT_BIT_TYPES 0, removed unused bit variables
1098
1099 2006-05-22 Raphael Neider <rneider AT web.de>
1100
1101         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
1102           bug #1492360 (problematic due to generic pointers, see code)
1103
1104 2006-05-22 Borut Razem <borut.razem AT siol.net>
1105
1106         * support/regression/ports/pic16/specs.mk: removed stack size linker
1107           directive
1108         * support/regression/tests/array.c,
1109           support/regression/tests/bitopcse.c,
1110           support/regression/tests/bug-908454.c,
1111           support/regression/tests/malloc.c: modified for pic16 regression test
1112         * support/regression/tests/bitfields.c:
1113           pic16 - excluded bitfileds of size > 8
1114         * support/regression/tests/bp.c: pic16 - reduced data size
1115         * support/regression/tests/bug-221100.c: pic16 - reduced data size
1116         * support/regression/tests/bug-460010.c:
1117           pic16 - used the absolute address the fits in memory
1118         * support/regression/tests/bug-716242.c:
1119           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
1120         * support/regression/tests/float.c:
1121           pic16 - excluded - data size too big
1122         * support/regression/tests/onebyte.c:
1123           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
1124         * support/regression/tests/shifts.c:
1125           pic16 - function names probably have to differ in first X characters
1126           (gpasm limitation?)
1127         * support/regression/tests/staticinit.c:
1128           pic16 - excluded some tests due error: no target memory available for
1129           section ".idata"
1130
1131 2006-05-22 Borut Razem <borut.razem AT siol.net>
1132
1133         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
1134           second try. Thanks Stas Sergeev once more.
1135
1136 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1137
1138         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
1139           (genLeftShift, genRightShift): fixed bug 1491627
1140         * src/hc08/peeph.def (rules 7, 8.x): added
1141         * support/regression/tests/shifts.c (ShiftLeftByParam,
1142           ShiftRightByParam, testShiftByParam): added to test variable shifting
1143
1144 2006-05-20 Raphael Neider <rneider AT web.de>
1145
1146         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
1147         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
1148           (allocReg): add only new registers to dynAllocRegs,
1149           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
1150             #1489055, #1445850, and probably #1483693
1151
1152 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
1153
1154         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
1155         bug in for-loop that didn't emit the last of CONFIG and ID registers
1156
1157 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
1158
1159         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
1160           with offset
1161         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
1162           1489016, 1434401 and 1490124
1163         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
1164           1489016, 1434401 and 1490124
1165
1166 2006-05-17 Borut Razem <borut.razem AT siol.net>
1167
1168         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
1169           thanks Stas Sergeev
1170
1171 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1172
1173         * device/include/mcs51/P89c51RD2.h,
1174         * device/include/mcs51/P89LPC901.h,
1175         * device/include/mcs51/P89LPC922.h,
1176         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
1177
1178 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1179
1180         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
1181         to fix missing stack pragma in compiled binary object file,
1182
1183 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
1184
1185         * support/packihx/configure.in,
1186         * support/packihx/configure: removed warning, autoconf >= 2.5x can
1187         determine sizeof basic types even while cross compiling
1188
1189 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
1190
1191         * src/avr/gen.c (aopop),
1192         * src/ds390/gen.c (aopOp),
1193         * src/hc08/gen.c (aopOp),
1194         * src/mcs51/gen.c (aopop),
1195         * src/pic16/gen.c (pic16_aopOp),
1196         * src/pic/gen.c (aopOp),
1197         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
1198         if size of operand is smaller than spill location
1199
1200 2006-05-12 Borut Razem <borut.razem AT siol.net>
1201
1202         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
1203           have to have CR/LF line endings even if they are checked out on *nix
1204           or on WIN32 in cygwin binmode
1205
1206 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
1207
1208         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
1209         * device/include/ds80c390.h: added sfr16 definitions
1210         * src/ds390/gen.c,
1211         * src/ds390/gen.h,
1212         * src/ds390/main.c,
1213         * src/ds390/ralloc.c,
1214         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
1215           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
1216           bit returning functions
1217         * support/regression/tests/sfr16.c: enabled test on ds390
1218
1219 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1220
1221         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
1222         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
1223
1224 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1225
1226         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
1227         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
1228           (cl_address_space constructor): removed expensive initialization,
1229           (cl_address_space::get_cell): extended for late initialization,
1230           (cl_address_space::*): use late initialization,
1231           (cl_address_decoder::activate): removed expensive initialization,
1232           This reduced regression test running time by 25%
1233
1234 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
1235
1236         * packihx/,
1237         * configure.in,
1238         * configure,
1239         * sdcc.dsw,
1240         * Makefile.bcc,
1241         * Makefile.in,
1242         * support/packihx/Makefile.in,
1243         * support/packihx/clean.mk,
1244         * support/packihx/Makefile.bcc,
1245         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
1246
1247 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1248
1249         * src/SDCCval.c (valNot): fix for regression test failure
1250           of not.c on big endian hosts
1251
1252 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1253
1254         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
1255
1256 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1257
1258         * device/lib/mcs51/Makefile.in: changed string comparison operator
1259           to = for POSIX compliance; == is bash extension
1260
1261 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1262
1263         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
1264           kosmonaut_pirx
1265
1266 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
1267
1268         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
1269         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
1270         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
1271         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
1272         bug report #1478657,
1273
1274 2006-05-05 Borut Razem <borut.razem AT siol.net>
1275
1276         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
1277           making the html
1278
1279 2006-05-02 Borut Razem <borut.razem AT siol.net>
1280
1281         * doc/Makefile.in: removed *.ind dependency since there is no rule to
1282           create *.ind, which made make to fail if invoked with -j 2
1283
1284 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
1285
1286         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
1287           Hubert Sack for patch 1479782
1288
1289 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
1290
1291         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
1292
1293 2006-05-01 Raphael Neider <rneider AT web.de>
1294
1295         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
1296           (create_pic): store only prefix-free device name,
1297           (init_pic): check for device names with "16" prefix,
1298           (list_valid_pics),
1299         * src/pic/device.h (struct PIC_device),
1300         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
1301             stored device name,
1302         * device/include/pic/pic12f{635,675,629,683}.h,
1303         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
1304         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
1305         * device/include/pic/pic16f505.h,
1306         * device/lib/pic/libdev/pic16f505.c: removed
1307         * device/include/pic/pic14devices.txt: added support for pic12f
1308             devices, removed unsupported non 16-bit devices
1309             [above changes provided by patch from Zik Saleeba]
1310         * src/pic/*, src/pic16/*, device/include/pic16/*,
1311           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
1312
1313 2006-05-01 Borut Razem <borut.razem AT siol.net>
1314
1315         * configure.in, configure, doc/Makefile.in:
1316           sync with nightly build makefile - latex, dvipdf and dvips
1317           not needed any more
1318
1319 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
1320
1321         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
1322         in the library source
1323
1324 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
1325
1326         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
1327
1328 2006-04-28 Raphael Neider <rneider AT web.de>
1329
1330         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
1331         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
1332           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
1333         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
1334
1335 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
1336
1337         * device/lib/pic/libdev/Makefile.in,
1338         * device/lib/hc08/Makefile.in,
1339         * device/lib/gbz80/Makefile.in,
1340         * device/lib/z80/Makefile.in,
1341         * device/lib/ds390/Makefile.in,
1342         * device/lib/ds400/Makefile.in: added srcdir to include search path,
1343         thanks to Borut for the bug report
1344         * configure.in,
1345         * configure: always create doc/Makefile independent from --enable-doc
1346         * Makefile.in: always install from directory doc independent from
1347         --enable-doc
1348         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
1349         removed
1350         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
1351         * doc/Makefile.in: install *.txt if present
1352         * device/include/Makefile.in (install): added installation of pic/*.inc
1353         and pic/*.txt files again, they were erroneously removed
1354
1355 2006-04-28 Raphael Neider <rneider AT web.de>
1356
1357         * src/pic/{gen.c,main.h,pcode.c},
1358         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
1359             concerning signedness with casts
1360
1361 2006-04-28 Raphael Neider <rneider AT web.de>
1362
1363         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
1364             definition of an interrupt handler,
1365         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
1366             interrupt handler stuff from picglue() to separate routine,
1367           (picglue): enabled definition of intr handlers in files w/o main()
1368
1369 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1370
1371         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
1372           compilation with MSVC 2005 Express Edition (VC8)
1373
1374 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
1375
1376         * device/lib/Makefile: fixed build of gbz80 lib
1377
1378 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1379
1380         * support/regression/tests/bug-460010.c,
1381         * support/regression/tests/bug-524691.c,
1382         * support/regression/tests/bug-716242.c: removed conditional defines
1383           that are already in testfwk.h
1384
1385 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
1386
1387         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
1388           (AccAXRsh1): added, shift right by 1,
1389           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
1390            AccAXLrl1
1391         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
1392
1393 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
1394
1395         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
1396         remove cast to same type
1397         * src/SDCCast.c (decorateType): fix for RFE 1475742,
1398         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
1399         * as/z80/Makefile,
1400         * link/z80/Makefile: removed, they have moved to
1401         Makefile.in files
1402         * configure,
1403         * configure.in: replaced duplicate message about ucsim by missing sdcpp
1404         * install-sh: fix bug #1204398 by setting umask 0022
1405         * device/lib/Makefile: separate build of z80 and gbz80 lib
1406
1407 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
1408
1409         Enabled VPATH feature: changed nearly all Makefiles (149 files).
1410         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
1411
1412         One basic decision: e.g. src/clean.mk includes further files. In order
1413         to make this work there are two solutions:
1414         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
1415           run configure on them. This way they can use
1416           'include $(srcdir)/port-clean.mk'
1417         - always include clean.mk by the Makefile at the same level. To avoid
1418           that `make clean` tries to include and build Makefile.dep the
1419           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
1420           implemented, because now even `make uninstall` doesn't create
1421           Makefile.in. clean.mk could be eliminated by pasting it in
1422           Makefile.in.
1423
1424         * debugger/mcs51/Makefile.in: build own objects from library sources
1425         (SLIB, SDCC) in current directory
1426
1427         * configure, configure.in: renamed --disable-device-lib-build in
1428         --disable-device-lib; added --enable-doc, the required tools are
1429         searched by configure; added result message; the toolchain for the
1430         belonging ports are now only built, if the port is enabled.
1431
1432         * support/regression/*: all output is written in directory gen, because
1433         the fwk and ports directories don't livet in the build tree using vpath
1434
1435         * doc/sdccman.lyx: renamed --disable-device-lib-build to
1436         --disable-device-lib, added --enable-doc, added section VPATH
1437
1438         * sim/ucsim/configure.in,
1439         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
1440         z80 are enabled by default
1441
1442 2006-04-24 Raphael Neider <rneider AT web.de>
1443
1444         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
1445             to config word, "pic14_"-prefixed some extern functions
1446           (pic14_emitConfigWord): emit __config directive(s) if assignment to
1447             config word has been found
1448         * src/pic/device.h: added prototypes
1449         * src/pic/pcode.c: added "pic14_"-prefix where needed
1450         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
1451             fixup
1452         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
1453             words,
1454           (pic14emitRegularMap): ignore config words,
1455           (pic14createInterruptVect): moved generating __config directives away
1456           (picglue): have __config directives emitted
1457
1458 2006-04-24 Borut Razem <borut.razem AT siol.net>
1459
1460         * doc/Makefile: sync with nightly build makefile
1461
1462 2006-04-24 Raphael Neider <rneider AT web.de>
1463
1464         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
1465             registers that have not been assigned proper liveranges,
1466             fixes #1469504 and #1474602,
1467           (pCodeRegOptimizeRegUsage): fixed typo in comment
1468
1469 2006-04-24 Borut Razem <borut.razem AT siol.net>
1470
1471         * device/examples/main8051.c: deleted - it was removed from CVS
1472           24.mar.2000 and after that modified 18.feb.2001, so it reappered
1473           after the transition to Subversion
1474         * src/SDCCalloc.h: deleted - it was removed  from CVS
1475           3.feb.2001 and after that modified 18.feb.2001, so it reappered
1476           after the transition to Subversion
1477         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
1478           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
1479           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
1480           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
1481
1482 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
1483
1484         * as/asx8051.dsp: added mcs51/strcmpi.h
1485         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
1486         * as/hc08/aslink.h: updated lnksect prototype
1487         * as/hc08/asm.h,
1488         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
1489         * as/hc08/asmain.c,
1490         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
1491           (newdot): handle A_ABS
1492         * as/hc08/asout.c,
1493         * as/mcs51/asout.c (outarea): output address
1494         * as/hc08/lkaomf51.c,
1495         * as/mcs51/lkaomf51.c: disabled unused array UsageType
1496         * as/hc08/m08pst.c,
1497         * as/mcs51/i51pst.c,
1498         * as/z80/z80pst.c: "ABS" is not A_OVR
1499         * as/hc08/lkarea.c (newarea): read a_addr,
1500           (lnkarea): added codemap array, sort absolute areas to the front,
1501            combine all GSINITx/GSFINAL,
1502           (find_empty_space, allocate_space): new functions,
1503           (lnksect): return next address, handle absolute sections
1504         * as/mcs51/lkarea.c (newarea): read a_addr,
1505           lnksect2 prototype changed,
1506           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
1507           (find_empty_space, allocate_space): new, factored out of lnksect2,
1508           (lnksect2): return next address, handle absolute sections
1509         * as/hc08/lkhead.c,
1510         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
1511         * as/hc08/lklibr.c (addfile, fndsym),
1512         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
1513           index out of range and detect both '\' and '/'
1514         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
1515         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
1516           regression tests (ds390 cannot return bool yet)
1517         * doc/sdccman.lyx: changed version number, document changed --no-peep,
1518           document critical interrupts on z80, document changed SDCC define
1519         * src/asm.c (_asxxxx_mapping): fixed .org directive,
1520           (_a390_mapping): added .org directive
1521         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
1522           (genMultOneByte): fixed warnings
1523         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
1524           ones
1525         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
1526         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
1527           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
1528         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
1529         * src/pic16/main.c: removed newReg prototype
1530         * src/pic16/pcode.c,
1531         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
1532           warnings
1533         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
1534           ones
1535         * src/pic16/ralloc.c
1536         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
1537           to fix warnings
1538         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
1539           from short to PIC_OPTYPE
1540         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
1541         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
1542           optype from short to PIC_OPTYPE
1543         * src/port.h: made int_size unsigned to fix warnings
1544         * src/SDCC.y: fixed warning on MSVC
1545         * src/SDCCicode.c (getArraySizePtr): return unsigned int
1546         * src/SDCCopt.c (convertToFcall): fixed warnings
1547         * src/SDCCsymt.h: removed double prototype for genSymName
1548         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
1549           offset int to fix warnings
1550
1551 2006-04-22 Borut Razem <borut.razem AT siol.net>
1552
1553         * doc/sdccman.lyx, */Makefile, */Makefile.in:
1554           references to CVS replaced with Subversion
1555
1556 2006-04-21 Borut Razem <borut.razem AT siol.net>
1557
1558         * doc/sdccman.lyx, */Makefile, */Makefile.in:
1559           references to CVS replaced with Subversion
1560
1561 2006-04-19 Borut Razem <borut.razem AT siol.net>
1562
1563         * src/version.awk: adapted for svn
1564         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
1565           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
1566           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
1567           /binutils-avr/etc/*.vi, *.jin: removed all properties
1568           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
1569
1570 2006-04-19 Borut Razem <borut.razem AT siol.net>
1571
1572         * CVS to Subversion migration completed
1573
1574 2006-04-18 Borut Razem <borut.razem AT siol.net>
1575
1576         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
1577           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
1578
1579 2006-04-17 Borut Razem <borut.razem AT siol.net>
1580
1581         * device/include/Makefile.in: added pic/*.inc to the installation
1582
1583 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
1584
1585         * support/regression/collate-results.py: fixed output in case of
1586         a valdiag error
1587         * support/regression/generate-cases.py: fixed splitting of pathnames
1588         with dots
1589         * as/hc08/lklibr.c (addfile),
1590         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
1591
1592 2006-04-11 Raphael Neider <rneider AT web.de>
1593
1594         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
1595         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
1596         * src/pic16/pcode.c (assignValnums): fixed #1460578
1597
1598 2006-04-11 Raphael Neider <rneider AT web.de>
1599
1600         * device/lib/pic/libdev/*.c,
1601         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
1602           fixes #1468739, enables compilation in --std-c99 mode
1603         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
1604
1605 2006-04-11 Raphael Neider <rneider AT web.de>
1606
1607         * src/pic/device.c (find_device): removed debug output
1608           (list_valid_pics): enabled verbose listing of supported devices
1609         * device/include/stdbool.h: define bool as char for pic14/16 as well
1610
1611 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1612
1613         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
1614
1615 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
1616
1617         * .version: bumped version to 2.5.6
1618         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
1619
1620 2006-04-06 Raphael Neider <rneider AT web.de>
1621
1622         * .version: bumped version to 2.5.6 (pic14 ABI changed)
1623         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
1624         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
1625           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
1626             pic14_constructAbsMap
1627           (pic14printPublics): declare absolute global symbols as global
1628           (pic14createInterruptVect),
1629         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
1630           (newReg): assume new registers unused, use correct name in
1631             hashtable (reg->name instead of name), more debugLog output
1632         * src/pic/device.h (PIC_device): added fields for verbose output
1633         * src/pic/device.c: moved device definition to pic14devices.txt,
1634             added routines for runtime parsing of pic14devices.txt,
1635             added support for second config word
1636         * src/pic/main.c (_process_pragma): removed #pragma maxram,
1637           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
1638           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
1639           (_pic14_parseOptions): moved pCodeInitRegisters here
1640           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
1641         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
1642           (pCodeInitRegisters): rewrapped comments, perpared new approach to
1643             handling the pseudo stack
1644         * device/lib/Makefile.in: ignore failures in objects-pic16,
1645         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
1646         * device/lib/pic/NEWS: document new dependency on picXXX.lib
1647         * device/lib/pic/Makefile.subdir,
1648         * device/lib/pic16/Makefile.subdir: improved clean rules
1649         * device/lib/pic/libdev/: NEW, pic14 device libraries
1650         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
1651         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
1652         * device/include/Makefile.in: create subdir and install pic14 headers
1653         * device/include/pic/p16f_common.inc: removed unused declarations
1654         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
1655             PICs from inc2h.pl v1.6,
1656             replaced BIT_AT macros with struct declarations
1657         * device/include/pic/pic14devices.txt: definition of supported devices,
1658             all above improvements contributed by Zik Saleeba, thanks
1659         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
1660         * support/scripts/sdcc.nsi: also install pic14 device libraries and
1661             headers
1662
1663 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1664
1665         * device/include/mcs51/c8051f410.h: added interrupt numbers,
1666         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
1667           thanks to Charles Olds
1668
1669 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1670
1671         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
1672
1673 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
1674
1675         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
1676         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
1677         * support/regression/bug1464657.c: added, new test
1678
1679 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1680
1681         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
1682           version number
1683
1684 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1685
1686         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
1687           --no-peep and --peep-file <file> are used don't use default rules but
1688           do use the <file>
1689
1690 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
1691
1692         * src/mcs51/gen.c (genCall): fixed bug 1457608
1693
1694 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1695
1696         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
1697         changes seem to cause (trigger?) problems with the build system.
1698
1699 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
1700
1701         * src/SDCCpeeph.c (operandsLiteral): new, added,
1702           (callFuncByName): inserted operandsLiteral
1703         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
1704
1705 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1706
1707         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
1708         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
1709
1710 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
1711
1712         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
1713           implemented patch 1120823 Thanks to Willy De la Court (normal
1714           interrupts need an interrupt number now if they are made critical),
1715           and enabled nesting of critical functions though not for gbz80
1716           (genCritical, genEndCritical): added functions
1717           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
1718         * src/z80/mappings.i: added "ei" to all mappings
1719
1720 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1721
1722         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
1723         submitted by the Debian SDCC maintainer Aurelien Jarno:
1724         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
1725         archive with gcc 4.1 on mips and wrote the patch"
1726
1727 2006-03-16 Raphael Neider <rneider AT web.de>
1728
1729         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
1730           the left operand is shorter than the result (c* = lit-c* + int),
1731           fixes bug #1450796
1732         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
1733           OP_SYMBOL
1734
1735 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1736
1737         * src/.version: increased version number to 2.5.5
1738         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
1739         linking is done manually in pic16 port's _linkEdit,
1740         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
1741         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
1742         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
1743         allocate asmop as AOP_ACC,
1744         (aopForRemat): added parameter 'bool result' in function declaration,
1745         (pic16_aopGet): return AOP_ACC when accessing WREG,
1746         (pic16_popGetTempReg): minor modification,
1747         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
1748         'pic16_allocWithIdx',
1749         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
1750         calling function in absolute addresses,
1751         (genAssign): take into account AOP_ACC asmop,
1752         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
1753         * src/pic16/pcoderegs.c: some debug functions and lines added,
1754         * src/pic16/ralloc.c (decodeRegType): added but commented out,
1755         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
1756         register too,
1757         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
1758         call to allocReg, not by manually allocating a new one,
1759         (pic16_assignRegisters): now before going through the register
1760         allocating functions mark all registers as free. This eliminates some
1761         side effects resulting from peephole parser done earlier in the backbone
1762
1763 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
1764
1765         * src/SDCCicode.c (geniCodeLogic),
1766         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
1767
1768 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1769
1770         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
1771           (genSend): bugfix, do not allocate and free twice,
1772           (shiftRLong): handle partially overlapping aops
1773         * support/regression/tests/bitopcse.c: fixed warning redefined idata
1774
1775 2006-03-08 Borut Razem <borut.razem AT siol.net>
1776
1777         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
1778           for pic16
1779
1780 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1781
1782         * support/regression/tests/bug1409955.c: new, added
1783         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
1784         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
1785           (aopForSym, aopOp): increment asmop.allocated if reused,
1786           (freeAsmop): decrement asmop.allocated and check for zero instead of
1787           using asmop.freed,
1788           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
1789           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
1790            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
1791            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
1792            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
1793            genSignedRightShift, genRightShift, genDataPointerGet,
1794            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
1795            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
1796             in reverse order from allocation,
1797           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
1798             added swappedLR to keep track
1799         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
1800           pdata & code for GCC, z80, gbz80 & hc08
1801         * support/regression/tests/zeropad.c: moved defines to testfwk.h
1802
1803 2006-03-08 Raphael Neider <rneider AT web.de>
1804
1805         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
1806
1807 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
1808
1809         * device/include/mcs51/c8051f410.h: new SiLabs mcu
1810         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
1811         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
1812
1813 2006-03-06 Borut Razem <borut.razem AT siol.net>
1814
1815         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
1816           made the linker quiet
1817
1818 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
1819
1820         * src/pic16/gen.c (genPcall): fixed bug #1443644
1821         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
1822         which dumps before the function entry point a data byte which represents
1823         the number of the local variables used by the specified function, added
1824         'xinst' for initial support for Extended Instruction Support,
1825         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
1826         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
1827         port->fun_prefix anymore (may change later),
1828         (genFunction, genEndFunction): do not store/restore local registers for
1829         _main (this should take care the --main-return command line option in
1830         the future),
1831         (genOr): removed some legacy pic-port instructions,
1832         * src/pic16/genarith.c (genAddLit): re-enabled old code because
1833         performing operations with SFR's causes data to be written more than
1834         once to each SFR. Perhaps SFRs should be handled in special cases...
1835         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
1836         pcode.h
1837         * src/pic16/main.c (_process_pragma): stack bound checking did not take
1838         into account for stack starting position,
1839         (struct OPTIONS pic16_optionsTable): added command line argument
1840         --extended or -y for Extended Instruction Support,
1841         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
1842         (deassignLRs): *** perhaps the most important change, old 'for' code
1843         (commented out for reference), didn't account for some registers which
1844         were left marked 'not free' after a pointer operation. The change
1845         reduces register usage a lot in some cases
1846
1847 2006-03-04 Borut Razem <borut.razem AT siol.net>
1848
1849         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
1850           _clean
1851         * support/regression/tests/bug-524697.c: decreased array size for
1852           mcs51 to fit into the internal RAM
1853         * support/regression/Makefile.in: a little bit more verbose
1854
1855 2006-03-03 Borut Razem <borut.razem AT siol.net>
1856
1857         * support/regression/fwk/lib/testfwk.c,
1858           support/regression/fwk/include/testfwk.h: introduced function
1859           _prints(), nonrecursive _printn(), call _initEmu() from main()
1860         * support/regression/ports/gbz80/support.asm,
1861           support/regression/ports/ucz80/support.asm,
1862           support/regression/ports/z80/support.asm,
1863           support/regression/ports/ds390/support.c,
1864           support/regression/ports/hc08/support.c,
1865           support/regression/ports/host/support.c,
1866           support/regression/ports/mcs51/support.c,
1867           support/regression/ports/xa51/support.c: added empty _initEmu()
1868           function
1869         * support/regression/ports/pic16/gpsim.cmd,
1870           support/regression/ports/pic16/spec.mk,
1871           support/regression/ports/pic16/support.c,
1872           support/regression/Makefile.in: added pic16 regression test
1873
1874 2006-03-01 Raphael Neider <rneider AT web.de>
1875
1876         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
1877           genConstPointerGet): use safe way of generating MOVFF to cover
1878             literals as well as registers, fixes bug #1440527
1879         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
1880             dereference
1881           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
1882             more correctly, fixes bug #1232186
1883           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
1884         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
1885             gplink guess the correct processor in more cases, applied patch
1886             from Till Riedel attached to and fixing bug #1436552
1887
1888 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1889
1890         * support/regression/tests/array.c: added, contains check for #1434401
1891         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
1892
1893 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1894
1895         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
1896         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
1897         * device/include/mcs51/c8051f326.h,
1898         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
1899         * device/include/mcs51/c8051f000.h,
1900         * device/include/mcs51/c8051f018.h,
1901         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
1902           PCON_IDLE,PCON_STOP and added sfr16 definitions
1903
1904 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1905
1906         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
1907           genGetWord): fixed bug 1409955
1908
1909 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1910
1911         * device/include/hc08/mc68hc908gp32.h,
1912         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
1913
1914 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1915
1916         * src/SDCCast.c (constExprValue): return NULL if not a value
1917         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
1918         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
1919         * support/regression/tests/bitfields.c: enabled signed bitfield for all
1920
1921 2006-02-13 Borut Razem <borut.razem AT siol.net>
1922
1923         * src/regression/ptrarg.c: added, fails due to bug #1430967
1924         * src/regression/Makefile: ptrarg.c added, ...
1925
1926 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1927
1928         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
1929         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
1930
1931 2006-02-11 Borut Razem <borut.razem AT siol.net>
1932
1933         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
1934           print "Processor: xxx" message to stdout only if --verbose
1935
1936 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
1937
1938         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
1939         * support/regression/tests/bug1426356.c: added
1940         * support/regression/tests/bitfields.c: removed 2 tests
1941
1942 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
1943
1944         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
1945         * device/include/mcs51/c8051f330.h,
1946         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
1947           PCON_IDLE,PCON_STOP and added sfr16 definitions
1948         * device/lib/_divsint.c,
1949         * device/lib/_divuint.c,
1950         * device/lib/_divulong.c,
1951         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
1952           register bank bug for small stackauto
1953
1954 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
1955
1956         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
1957
1958 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
1959
1960         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
1961         * all.dsp: corrected several bin paths
1962         * device/include/mcs51/c8051f120.h,
1963         * device/include/mcs51/c8051f300.h,
1964         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
1965           to PCON_IDLE,PCON_STOP
1966         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
1967         * device/lib/printf_large.c (output_float): fixed bug 1388703
1968         * support/regression/tests/bug1057979.c: added test for bug 1388703
1969
1970 2006-02-08 Raphael Neider <rneider AT web.de>
1971
1972         * src/pic/pcode.c (pciTRIS): fixed typo,
1973           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
1974           (LinkFlow): fixed handling of flows that end in a call,
1975           (ReuseReg): perform safety check earlier
1976         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
1977             to work with flows at the beginning of a pBlock,
1978             fixes #1426557 (Symbol not previously defined),
1979           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
1980             usage information
1981           (RemoveUnusedRegisters): update register usage info
1982         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
1983             created, reuse existing ones instead
1984         * src/pic/gen.c (genPcall): fixed #1424719
1985
1986 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
1987
1988         * link/z80/lkmain.c,
1989         * link/z80/lklex.c,
1990         * link/z80/lkdata.c,
1991         * link/z80/aslink.h: fixed build on current cygwin:
1992         replaced getline() by lk_getline()
1993
1994 2006-02-01 Borut Razem <borut.razem AT siol.net>
1995
1996         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
1997           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
1998           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
1999           src/regression/bool1.c, src/regression/bool2.c,
2000           src/regression/bool3.c, src/regression/call1.c,
2001           src/regression/compare.c, src/regression/compare10.c,
2002           src/regression/compare2.c, src/regression/compare3.c,
2003           src/regression/compare4.c, src/regression/compare5.c,
2004           src/regression/compare6.c, src/regression/compare7.c,
2005           src/regression/compare8.c, src/regression/compare9.c,
2006           src/regression/configword.c, src/regression/for.c,
2007           src/regression/inline.c, src/regression/mult1.c,
2008           src/regression/nestfor.c, src/regression/or1.c,
2009           src/regression/pointer1.c, src/regression/ptrfunc.c,
2010           src/regression/rotate1.c, src/regression/rotate2.c,
2011           src/regression/rotate3.c, src/regression/rotate4.c,
2012           src/regression/rotate5.c, src/regression/rotate6.c,
2013           src/regression/rotate7.c, src/regression/string1.c,
2014           src/regression/struct1.c, src/regression/sub.c,
2015           src/regression/sub2.c, src/regression/switch1.c,
2016           src/regression/while.c, src/regression/xor.c,
2017           src/regression/create_stc, src/regression/simulate,
2018           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
2019           regression tests
2020         * src/regression/gpsim_assert.h: added
2021
2022 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
2023
2024         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
2025         ((void (code *) (void)) 0) ();
2026         * as/hc08/aslex.c,
2027         * as/hc08/aslink.h,
2028         * as/hc08/asm.h,
2029         * as/hc08/asmain.c,
2030         * as/hc08/lkdata.c,
2031         * as/hc08/lklex.c,
2032         * as/hc08/lkmain.c,
2033         * as/mcs51/aslex.c,
2034         * as/mcs51/aslink.h,
2035         * as/mcs51/asm.h,
2036         * as/mcs51/asmain.c,
2037         * as/mcs51/lkdata.c,
2038         * as/mcs51/lklex.c,
2039         * as/mcs51/lkmain.c,
2040         * as/z80/aslex.c,
2041         * as/z80/asm.h,
2042         * as/z80/asmain.c: fixed build on current cygwin:
2043         replaced getline() by as_getline()
2044
2045 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
2046
2047         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
2048         declarator in the symbol chain
2049         * src/SDCCsymt.h,
2050         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
2051         parameter list for function pointers
2052         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
2053         * support/regression/tests/bug-716242.c: added
2054
2055 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
2056
2057         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
2058         offset if possible
2059         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
2060
2061 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
2062
2063         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
2064         inifinitely recurseable, added static
2065         * support/regression/tests/bug-1408066.c: added
2066
2067 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
2068
2069         * src/SDCCicode.h,
2070         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
2071         renamed, added possibility to create "postLoopLbl"-labels
2072         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
2073         newiTempLoopHeaderLabel
2074         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
2075         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
2076         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
2077         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
2078         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
2079         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
2080         (basicInduction): fixed bug #136564, made static,
2081         (loopInduction): changed parameter of basicInduction, made static,
2082         (addPostLoopBlock): added
2083         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
2084         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
2085         findLoopEndSeq
2086         * support/regression/tests/bug-136564.c: added
2087         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
2088         --std-sdcc99 to LIBSDCCFLAGS
2089
2090 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
2091
2092         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
2093         while loop
2094         * support/regression/tests/bug-1406131.c: added
2095
2096 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
2097
2098         * src/SDCCast.c (decorateType): fix promotion of unary minus
2099         * src/SDCCsymt.c (computeType): beautified
2100         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
2101         (valUnaryPM, valComplement): fix sign and promotion,
2102         (valNot): ANSI: result type is int (SDCC: unsigned char)
2103         * support/regression/tests/uminus.c: speedup by removing superflous
2104         test case 'int'
2105         * support/regression/tests/onebyte.c: added promotion and signedness
2106         tests for unary minus
2107         * support/regressions/tests/bug-477927.c: disable warning about
2108         uninitialized variables
2109         * support/regression/tests/not.c: added
2110
2111 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
2112
2113         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
2114         * src/mcs51/gen.c (gen51Code): show final register usage after
2115         fillGaps in asm with --i-code-in-asm
2116         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
2117         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
2118         incUsed, rliveClear, adjustIChain): made static,
2119         (setFromRange): excluded because it's unused,
2120         (findPrevUseSym, markWholeLoop): added,
2121         (findPrevUse): rewritten; fixes bug 895992; now a complete search
2122         through all branches of predecessors enables sdcc to emit the warning
2123         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
2124         (rlivePoint): made static, added parameter emitWarnings which is only
2125         true during the first run out of two,
2126         (findRecursiveSucc, findRecursivePred): removed,
2127         (computeLiveRanges): made static, added parameter emitWarnings,
2128         (dumpIcRlive): added for debugging only
2129         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
2130         removed prototype of setFromRange()
2131         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
2132         in call of computeLiveRanges()
2133         * support/regression/tests/bug-895992.c: added
2134         * support/regression/tests/bug-971834.c: added
2135         * support/valdiag/tests/bug-895992.c: added
2136         * support/valdiag/tests/bug-971834.c: added
2137
2138 2005-12-18 Raphael Neider <rneider AT web.de>
2139
2140         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
2141           (genUnpackBits): improved code for direct operands,
2142           (genPackBits): improved code for literal assignment to bitfields
2143             and for direct destination operands (no FSR indirection),
2144             prevented redundant AND, fixes #1362800,
2145           (AccLsh): added parameter to disable masking of the result
2146         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
2147           skip instructions with side-effects (like incfsz),
2148           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
2149         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
2150         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
2151           fixes #1375263
2152
2153 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
2154
2155         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
2156         volatile variables as spill location
2157
2158 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
2159
2160         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
2161         replacing literals
2162         * support/regression/tests/bug-1376320.c: added
2163
2164 2005-12-08 Raphael Neider <rneider AT web.de>
2165
2166         * src/pic/device.c: renamed is_shared to pic14_is_shared
2167         * src/pic/gen.c (genIfx): re-enabled handling of sbits
2168         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
2169           (is_valid_identifier): added for above workaround
2170
2171 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
2172
2173         * device/lib/Makefile.in: fixed to enable port-specific-objects
2174         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
2175           char, thanks Hubert Sack
2176         * doc/sdccman.lyx: documented --xstack-loc,
2177           elaborated a bit more on interrupts and pitfalls,
2178           removed "setjmp/longjmp unsupported",
2179           documented some unsupported C99 features
2180         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
2181         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
2182           if, thanks Hubert Sack
2183         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
2184         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
2185           make make_library
2186         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
2187           regression tests can report resource usage (rfe 700441)
2188         * support/regression/collate-results.py: report resource usage
2189         * support/regression/ports/ds390/spec.mk,
2190         * support/regression/ports/hc08/spec.mk,
2191         * support/regression/ports/mcs51/spec.mk,
2192         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
2193         * support/regression/ports/ds390/uCsim.cmd,
2194         * support/regression/ports/hc08/uCsim.cmd,
2195         * support/regression/ports/mcs51/uCsim.cmd,
2196         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
2197         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
2198           library, use the default one
2199         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
2200           building the library
2201
2202 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2203
2204         * config.dsp: added dependency on .version and configure_vc.awk
2205         * device/include/setjmp.h: updated for --stack-auto and --xstack
2206         * device/include/mcs51/at89c51snd1c.h: corrected line endings
2207         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
2208         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
2209         * device/lib/libsdcc.lib: added _setjmp
2210         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
2211           (decorateType): fixed bug 1372851,
2212           (optimizeGetHbit): fixed warning
2213         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
2214           array initialisation
2215         * support/regression/tests/bug1057979.c: added test for bug 1358192
2216         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
2217
2218 2005-12-03 Borut Razem <borut.razem AT siol.net>
2219
2220         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
2221           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
2222
2223 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2224
2225         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
2226         createIval): implement symbol independant "flexible array member",
2227         (createIvalCharPtr): implemented flexible array initialisation with a
2228         string
2229         * src/SDCCsymt.c (copyStruct): removed,
2230         (getSize): fixed misleading comment,
2231         (getAllocSize): removed, the additional allocation size is now in
2232         sym->flexArrayLength,
2233         (checkStructFlexArray): new, syntax checks for flexible array members,
2234         (compStructSize): added syntax checks for "flexible array members"
2235         (copyStruct): removed,
2236         (copyLinkChain): removed inefficient fix for bug 770487
2237         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
2238         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
2239         symbol->flexArrayLength
2240         * src/SDCCerr.c,
2241         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
2242         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
2243         * support/regression/tests/structflexarray.c: added
2244         * support/valdiag/tests/structflexiblearray.c: added
2245
2246 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2247
2248         * src/SDCCast.c (decorateType): fixed bug 1368489
2249         * support/Util/SDCCerr.c,
2250         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
2251
2252 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2253
2254         * device/include/mcs51/at89c51snd1c.h: added file submitted by
2255           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
2256
2257 2005-11-27 Borut Razem <borut.razem AT siol.net>
2258
2259         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
2260           support/cpp2/mkdeps.h: added command line option
2261           -obj-ext=<extension> to SDCPP to define object file externion, used
2262           for generation of make dependencies (-M)
2263         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
2264
2265 2005-11-26 Borut Razem <borut.razem AT siol.net>
2266
2267         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
2268           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
2269           added pic and pic16 libraries
2270
2271 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2272
2273         * device/include/float.h: Corrected typo in prototype of __fsgt
2274
2275 2005-11-25 Borut Razem <borut.razem AT siol.net>
2276
2277         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
2278           added creation of model-mcs51-stack-auto libraries
2279
2280 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
2281
2282         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
2283         and fields-list too
2284         * src/SDCCast.c (createIvalArray): removed obsolete comment
2285
2286 2005-11-24 Borut Razem <borut.razem AT siol.net>
2287
2288         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
2289           added missing device/lib/mcs51/crt*.asm sources
2290
2291 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
2292
2293         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
2294
2295 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
2296
2297         * device/lib/_fs2schar.c,
2298         * device/lib/_fs2sint.c,
2299         * device/lib/_fs2slong.c: optimized inline asm
2300
2301 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2302
2303         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2304           Better handling of floats between -1.0 and 0.0.
2305
2306 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2307
2308         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
2309           (the missing "if"s prohibited removal of redundant labels)
2310
2311 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2312
2313         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2314           Properly convert floats between -1.0 and 0.0 to long, int, and char
2315           types (max integer value of negative floats tends to zero).
2316         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
2317           Removed changes made so to work properly with floats between
2318           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
2319           and _fs2char.c
2320
2321 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
2322
2323         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
2324         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
2325         (genCast) cosmetic change
2326         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
2327         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
2328         from mcs51
2329         * support/regression/tests/bitfields (testSignedBitfields): added
2330
2331 2005-11-18 Borut Razem <borut.razem AT siol.net>
2332
2333         * sdcc/device/lib/Makefile.in: remove all unnecessary files
2334         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
2335           introduced SILENT option to make building of pic16 libraries less
2336
2337 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2338
2339         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
2340           Now they work properly with floats between -1.0 and 0.0
2341         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
2342
2343 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
2344
2345         * src/SDCCicode.c (printOperand): added missing else
2346
2347 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
2348
2349         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
2350         reformatted for better readability
2351         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
2352         signed bitfields
2353
2354 2005-11-17 Borut Razem <borut.razem AT siol.net>
2355
2356         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
2357           introduced SILENT option to make building of pic16 libraries less
2358           verbose - used for nightly snapshot build
2359         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
2360           available on Win32 platforms.
2361         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
2362           medium, large, pic and pic16
2363
2364 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2365
2366         * device/lib/printf_large.c: Temporary patch for bug 1358192:
2367           printf("%f"...) sets fraction to zero.
2368
2369 2005-11-16 Raphael Neider <rneider AT web.de>
2370
2371         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
2372           fixes #1357221
2373         * src/pic/gen.c (genIfx): implemented for CARRY bit
2374         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
2375           to generic pointers, fixes #1357332,
2376           (pic16_movLit2f): NEW,
2377           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
2378
2379 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2380
2381         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
2382
2383 2005-11-11 Raphael Neider <rneider AT web.de>
2384
2385         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
2386         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
2387           compute pointer's type from operand,
2388           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
2389           improved single bit reads, fixes bug #1353379
2390
2391 2005-11-09 Borut Razem <borut.razem AT siol.net>
2392
2393         * support/scripts/sdcc.nsi: added lib/pic to the package
2394
2395 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
2396
2397         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
2398
2399 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
2400
2401         * support/regression/tests/bug1348008.c: added
2402         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
2403         * support/regression/tests/bug1337835.c: updated comment
2404
2405 2005-11-06 Borut Razem <borut.razem AT siol.net>
2406
2407         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
2408           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
2409           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2410           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
2411           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
2412           dynamic construction of cl_error_class and derivates - 2.nd try
2413
2414 2005-11-05 Borut Razem <borut.razem AT siol.net>
2415
2416         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
2417           bug, which caused Bus Errors on sparc solaris
2418
2419 2005-11-04 Borut Razem <borut.razem AT siol.net>
2420
2421         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
2422           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
2423           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2424           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
2425           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
2426           and derivates to resolve the initialization problem on OSX
2427
2428 2005-11-02 Borut Razem <borut.razem AT siol.net>
2429
2430         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2431           corrected typo - #include <winsock2.h>
2432
2433 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
2434
2435         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
2436           (_asxxxx_mapping): added org directive for future enhancements
2437
2438 2005-11-01 Borut Razem <borut.razem AT siol.net>
2439
2440         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2441           enabled sockets on WIN32
2442         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
2443
2444 2005-10-31 Borut Razem <borut.razem AT siol.net>
2445
2446         * support/regression/generate-cases.py: escape backslashes in {testcase}:
2447           WIN32 backslash path delimiters should be escaped when used in C strings
2448         * support/regression/tests/bitfields.c: exclude failing assertions for
2449           __CYGWIN32__ and __MINGW32__ hosts
2450
2451 2005-10-30 Borut Razem <borut.razem AT siol.net>
2452
2453         * src/SDCCutil.c: corrected double comparison typo
2454
2455 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
2456
2457         * device/lib/medium/Makefile: added for new memory model medium
2458         * device/include/asm/mcs51/features.h: updated for medium/pdata
2459         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
2460           added Multiply & Accumulate sbit's and MAC0_PAGE define
2461         * device/include/mcs51/c8051f300.h: added sfr16 definitions
2462         * device/include/mcs51/c8051f310.h: added sfr16 definitions
2463         * device/lib/_mullong.c: update for medium model
2464         * device/lib/incl.mk: added medium model
2465         * doc/sdccman.lyx: documented medium model
2466         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
2467         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
2468         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
2469         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
2470           (allocParms): set SCLS and OCLS to pdata for medium model
2471         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
2472           for pdata,
2473           (powof2): return <0 if not power of 2
2474         * src/avr/gen.c (genBitWise): use updated powof2
2475         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
2476           (shiftR2Left2Result): small optimization in setup, save acc when storing,
2477           (shiftLLeftOrResult): use B if necessary
2478         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
2479         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
2480         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
2481         * support/regression/Makefile.in: added test-mcs51-medium
2482         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
2483
2484 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
2485
2486         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
2487         specifier unsigned
2488         * device/lib/time.c (mktime): fixed bug 1334315
2489
2490 2005-10-28 Raphael Neider <rneider AT web.de>
2491
2492         * device/include/pic/p16f_common.inc: added common declarations
2493         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
2494
2495 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2496
2497         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
2498           (aopPutUsesAcc): added to predict accumulator use,
2499           (assignResultValue): save acc if necessary,
2500           (genMinusDec): store result if indirectly addressed,
2501           (genDivOneByte):  save acc if necessary,
2502           (movLeft2Result): bugfix if left already in acc,
2503           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
2504             attention to accumulator use (esp. pdata),
2505           (genReceive): receive pdata correctly
2506         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
2507         * src/SDCCicode.h: added isOperandInPagedSpace prototype
2508
2509 2005-10-27 Raphael Neider <rneider AT web.de>
2510
2511         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
2512
2513 2005-10-27 Raphael Neider <rneider AT web.de>
2514
2515         * .version: changed version to 2.5.4
2516         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
2517         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
2518           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
2519             arithmetics support routines
2520         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
2521         * device/lib/Makefile.in: also create installdir for pic
2522
2523         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
2524           pic14 port as well
2525         * src/pic/device.c (dump_sfr): rewritten to delegate register
2526           placement to the linker (use `extern sym' rather than sym EQU addr),
2527           (validAddress): fixed to check last specified address
2528         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
2529           (popGetLit): truncate literal value to 8 bit,
2530           (popGet): moved assert to more appropriate place
2531           (popGetExternal): create pCode operand from and mark the according
2532             symbol as being `extern'
2533           (popGetAddr): added sanity check on immediate's offset, provide
2534             GPOINTER tag on demand
2535           (aopPut): fixed for immediates,
2536           (mov2w_op): move operand's address or contents to WREG (depending on
2537             operand type), safer variant of mov2w,
2538           (movwf,call_libraryfunc): NEW, handy abbreviations,
2539           (get_argument_pcop,get_return_val_pcop,pass_argument,
2540           get_returnvalue): interface for accessing function parameters and
2541             return values,
2542           (assignResultValuei,genRet): use new parameter/return value interface
2543           (pic14_getDataSize): back to old version handling generic pointers,
2544           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
2545             provided implementation and/or fixed old one,
2546           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
2547             calls, removed legacy 8051 reference code
2548           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
2549           (loadSignToC): NEW, move the operands sign bit to CARRY,
2550           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
2551             genRightShiftSigned, accepts negative shift counts,
2552           (setup_fsr): load FSR and adjust IRP (indirect memory access),
2553           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
2554             generic pointers, __data pointers and __code pointers,
2555           (genUnpackBits,genPackBits): rewritten to work with generic pointers
2556             and signed bitfields, limit bitfields to 8 bit,
2557           (genDataPointerGet): fixed number of bytes read,
2558           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
2559           (genPointerGet,genPointerSet): fixed handling of __code pointers,
2560             pointers to constant data are no longer assumed to point to __code
2561             space, removed invalid pointer types,
2562           (bitpatternFromVal): retrieve the PICs representation of an integer
2563             or float literal,
2564           (genDataPointerSet): fixed assigning to po_immediate operands,
2565           (genGenPointerSet): implemented as library call,
2566           (genIfx): fixed incorrect condition,
2567           (genAddrOf): limit generic pointers' addresses to 2 bytes,
2568             provide GPOINTER tag according to destination's storage class,
2569           (genCast): added code to handle casting to generic pointers, added
2570             sign-/zero extension of the result
2571           (aop_isLitLike,op_isLitLike): fixed handling of immediates
2572         * src/pic/gen.h: added macros to access IRP bit in STATUS register
2573         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
2574           extend the result
2575         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
2576           address/register resides in the shared banks
2577           (emitSymbolToFile): improved to handle global and `pinned' symbols,
2578             put all variables into separate sections (have the linker arrange
2579             them)
2580           (picglue): put init code and interrupt handlers in separate sections
2581         * src/pic/main.c: added port specific options table, modified to PORT
2582           structure to make GPOINTERs 3 byte, added pic14_options
2583           (_pic14_do_link): private linking routine (update paths to libraries,
2584             add libsdcc.lib by default)
2585         * src/pic/main.h: declare pic14_options
2586         * src/pic/pcode.c: fixed instructions i/o relations,
2587           (RegCond): reverted to correct version,
2588           (newpCodeOpLit): truncate literals to 8 bit,
2589           (genericPrint): added debug output,
2590           (getRegFromInstruction): fixed for various operand types, simplified
2591           (BuildFlow): fixed broken handling of isntructions with labels
2592           (LinkFlow): start at last instruction in flow (skip trailing comments),
2593             pass the flow on to the next instruction after CALL
2594           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
2595           (insertPCodeInstruction): fixed inserting after a skip instruction,
2596           (DoBankSelect): fixed for labeled instructions
2597           (OptimizepBlock): honor --nopeep switch
2598           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
2599         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
2600         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
2601           (pCodeOptime2pCodes): allow disabling this optimization via
2602             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
2603             but is still buggy), started implementation of a dataflow based
2604             pCode optimization (CSE + dead code elimination)
2605           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
2606         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
2607           names are independant of the stack location and therefore portable across
2608           devices
2609
2610 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2611
2612         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
2613           (selectSpil): fixed bug 1337835 by not spilling bit variables
2614         * support/regression/tests/bug1337835.c: added test for this bug
2615         * src/mcs51/peeph.def: restart after rule 3.c,
2616           addded rules 263.x to optimize loading constants
2617
2618 2005-10-26 Raphael Neider <rneider AT web.de>
2619
2620         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
2621         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
2622           (genAssign): emit warning when casting literals to generic pointer
2623             type, also applies when taking the address of a fixed variable,
2624           (genCast): improved casting to generic pointers
2625         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
2626           extern variables, added verbose error message
2627         * device/include/pic16/{string.h,errno.h}: added #pragma library c
2628
2629 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
2630
2631         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
2632         carry must be complemented too
2633         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
2634         could be emitted by genMinus
2635         * src/SDCCval.c (constVal): fixed bug 1305065
2636
2637 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
2638
2639         * src/SDCCast.c (addCast): added promotion for bit variables
2640         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
2641         promotion casts + optimisation
2642         (optimizeGetWord): fix warning 'i' might be used uninitialized
2643         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
2644         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
2645
2646 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
2647
2648         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
2649         all chars are promoted to int; promotion should be handled in SDCCast.c
2650
2651 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2652
2653         * device/lib/_strcmp.c: Fixed bug 1326457
2654
2655 2005-10-11 Raphael Neider <rneider AT web.de>
2656
2657         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
2658         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
2659
2660 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
2661
2662         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
2663         * support/regression/tests/sfr16.c: added test for the sfr32 bug
2664
2665 2005-10-04 Raphael Neider <rneider AT web.de>
2666
2667         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
2668           device/lib/pic16/pics.all: added pic18f1320
2669         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
2670
2671 2005-09-30 Raphael Neider <rneider AT web.de>
2672
2673         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
2674         * src/pic16/devices.inc: NEW, provides device descriptions
2675         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
2676
2677 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
2678
2679         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
2680           GETHBIT
2681
2682 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
2683
2684         * doc/sdccman.lyx: updated Highest Order Bit documentation,
2685           documented Any Order Bit, Higher Order Byte and Higher Order Word
2686         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
2687         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
2688           (optimizeGetAbit): new, to get any bit, not only the high bit,
2689           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
2690           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
2691           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
2692           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
2693             RIGHT_OP: also try GETBYTE, GETWORD optimization,
2694             GETABIT, GETBYTE, GETWORD: decorate them,
2695           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
2696           (ast_print): added GETABIT, GETBYTE, GETWORD
2697         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
2698         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
2699           (geniCodeBinary): new generic binary icode,
2700           (ast2iCode): added GETABIT, GETBYTE, GETWORD
2701         * src/port.h: updated comment for PORT.hasExtBitOp
2702         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
2703           (genGetByte): new, to get a single byte,
2704           (genGetWord): new, to get a word from a long,
2705           (gen51Code): added GETABIT, GETBYTE, GETWORD
2706         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
2707
2708 2005-09-23 Raphael Neider <rneider AT web.de>
2709
2710         * configure.in, configure: have device/lib/pic configured
2711         * device/lib/Makefile.in: added model-pic14
2712         * device/lib/clean.mk: added pic/ to clean rule
2713         * device/lib/pic: added rudimentary pic14 library providing support
2714           functions for multiplication/division/generic pointer access
2715         * src/SDCCopt.c (convilong): mark support functions as extern
2716           for pic14 port as well
2717         * src/pic/gen.c (genMult): added assertions,
2718           (genpic14Code): emit warning on unhandled iCodes
2719         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
2720         * src/pic/pcode.c (pCodeOpCopy),
2721         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
2722           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
2723           SFR_REGISTER}), made safe for future extensions
2724         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
2725           instructions even if preceeded by SKIP instructions (also remove
2726           them); removed unused code
2727         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
2728           prevents leaving parts of the structure uninitialized after copying
2729
2730 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
2731
2732         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
2733           ago by me
2734         * support/regression/tests/addsub.c: added test for the bug
2735
2736 2005-09-21 Raphael Neider <rneider AT web.de>
2737
2738         * device/include/pic16/pic18f1220.h,
2739           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
2740         * device/lib/pic16/Makefile.rules: added missing opening paren
2741         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
2742           are provided in genutils.c,
2743           (genUminusFloat,genUminus,genCmpEq): added asserts on different
2744           operand/result sizes,
2745           (genCmp): assert on NULL pointers first, then check deref'ed values
2746         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
2747           result size
2748
2749 2005-09-18 Raphael Neider <rneider AT web.de>
2750
2751         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
2752           as these are now unused,
2753           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
2754         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
2755           local, avoids uninitialized pointer dereference on r->name
2756         * src/pic16/ralloc.c (newReg): fixed indentation
2757
2758 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
2759
2760         * src/SDCCval.c (constVal): fixed bug 730366
2761         * support/Util/SDCCerr.c,
2762         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
2763
2764 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
2765
2766         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
2767
2768 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
2769
2770         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
2771
2772 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
2773
2774         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
2775           (hex2dec): made hex_digit unsigned char, removed ascii dependance
2776         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
2777           (hex2dec): made hex_digit unsigned char, removed ascii dependance
2778         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
2779         * packihx/packihx.c (hexDigit): made c unsigned char
2780         * as/mcs51/lklibr.c (fndsym),
2781         * link/z80/lkgb.c (gb),
2782         * link/z80/lklibr.c (fndsym),
2783         * link/z80/lkrloc.c (relr),
2784         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
2785         * src/SDCC.lex (checkCurrFile, process_pragma),
2786         * src/SDCCglue.c (spacesToUnderscores),
2787         * src/SDCCmain.c (setParseWithComma, processFile),
2788         * src/asm.c (tvsprintf, printCLine),
2789         * src/avr/gen.c (emitcode, aopPut),
2790         * src/ds390/gen.c (emitcode),
2791         * src/hc08/gen.c (emitcode, emitinline),
2792         * src/mcs51/gen.c (emitcode, genInline),
2793         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2794           tokenizeLineNode),
2795         * src/pic/ralloc.c (debugLog),
2796         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
2797           tokenizeLineNode),
2798         * src/pic16/ralloc.c (debugLog),
2799         * src/z80/main.c (_process_pragma):
2800            made all ctype.h function calls safe
2801         * src/SDCCopt.c: include math.h for fabs
2802         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
2803           and used them throughout the code to make ctype.h function calls safe
2804         * src/ds390/main.c (asmLineNodeFromLineNode),
2805         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
2806         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
2807            unsigned char*
2808         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
2809           (newpCodeAsmDir): made ctype.h function calls safe
2810         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
2811           pic16_emitcode):  made lbp unsigned char*
2812         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
2813           (pic16_newpCodeAsmDir): made ctype.h function calls safe
2814         * src/xa51/gen.c (emitcode),
2815         * src/z80/gen.c (_emit2): made lbp unsigned char*
2816         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
2817            char*
2818
2819 2005-09-05 Raphael Neider <rneider AT web.de>
2820
2821         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
2822           access bank splitpoint
2823
2824 2005-09-05 Raphael Neider <rneider AT web.de>
2825
2826         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
2827
2828 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
2829
2830         * .version: changed to version 2.5.3
2831         * doc/sdccman.lyx: changed version to 2.5.3,
2832           documented --codeseg and --constseg and pragma codeseg and constseg,
2833           documented bit parameters (reentrant) and bit returning
2834         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
2835            currFunc->recvSize, but is this ok for all ports?
2836           (ast2iCode): result of ~ on unsigned char must be cast to int for
2837            bool to work
2838         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
2839           function pointers in bit space
2840         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
2841           (processFuncArgs): call port.reg_parm() with reentrancy info
2842         * src/port.h,
2843         * src/avr/main.c,
2844         * src/ds390/main.c,
2845         * src/hc08/main.c,
2846         * src/pic/main.c,
2847         * src/pic16/main.c,
2848         * src/xa51/main.c,
2849         * src/z80/main.c: port.reg_parm prototype extended with
2850           "bool reentrant" parameter
2851         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
2852           options.stackAuto for allocating bit register parameters
2853         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
2854           (genSend): set BitBankUsed if it is,
2855           (selectRegBank): factored out of genCall for use in genPcall,
2856           (genCall): removed redundant dtype assignmen, use selectRegBank,
2857           (genPcall): handle returning in Carry properly, save in F0 if needed,
2858           (genReceive): handle bit register parameters
2859         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
2860           (mcs51_assignRegisters): enable bit registers for all reentrant
2861            functions and don't set BitBankUsed unconditionally
2862         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
2863         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
2864         * support/regression/tests/funptrs.c: added tests for BOOL and for return
2865
2866 2005-08-27 Borut Razem <borut.razem AT siol.net>
2867
2868         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
2869         ppc-osx (Darwin) does not support -u option. It seems that it is
2870         supported only on Linux - GNU cp
2871
2872 2005-08-25 Borut Razem <borut.razem AT siol.net>
2873
2874         * sim/ucsim/gui.src/serio.src/Makefile.in,
2875           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2876           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2877           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
2878           install and strip, since the strip at /usr/ccs/bin should be used
2879           on solaris
2880
2881 2005-08-24 Borut Razem <borut.razem AT siol.net>
2882
2883         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
2884
2885 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
2886
2887         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
2888         ffffffffu
2889
2890 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
2891
2892         * as/mcs51/aslink.h: completed lkrloc.c prototypes
2893         * as/mcs51/lkmain.c (link_main): fixed warning
2894         * device/include/stdbool.h: ds390 has no advanced bit support yet
2895         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
2896         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
2897         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
2898           and updated their macros
2899         * src/SDCCval.c (constVal): updated comment for renamed b_long
2900
2901 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
2902
2903         * as/mcs51/asdata.c: changed ctype['['] to BINOP
2904         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
2905           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
2906           (oprio): set priority for '['
2907         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
2908            and adb_24_bit
2909         * as/mcs51/asm.h: added defines R_BIT and S_BIT
2910         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
2911         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
2912         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
2913           added overlayable BIT_BANK area
2914         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
2915           (summary2): explain 'T' in legenda
2916         * as/mcs51/lkrloc.c: replaced old K&R style,
2917           (relr): added R_BIT processing,
2918           (errmsg): added "Bit-addressable relocation error",
2919           (adb_bit): added for converting from byte- to bit-addressable space,
2920           (adb_24_bit): added for converting from byte- to bit-addressable space
2921         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
2922            used in reentrant functions now even as return value
2923         * device/lib/_gptrput.c (_gptrput): removed obsolete code
2924         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
2925           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
2926         * src/SDCCglobl.h: added indicator BitBankUsed
2927         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
2928            the bit registers b0-b7
2929         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
2930           (geniCodeCast): fixed bug 1263853,
2931           (geniCodeLogicAndOr): put result in bool or char,
2932           (geniCodeReceive): added parameter func for accessing the return type,
2933           (geniCodeFunctionBody): pass func to geniCodeReceive
2934         * src/SDCCmain.c: added indicator BitBankUsed
2935         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
2936         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
2937           (checkSClass): don't put automatic bool/bit on stack,
2938           (checkFunction): removed check on function cannot return bit
2939         * src/SDCCsymt.h: added newBoolLink prototype
2940         * src/mcs51/gen.c (rb1regs): added bit registers,
2941           (movc): created for assigning to carry,
2942           (pushReg, popReg): created for pushing registers,
2943           (sameRegs): check both AOP_REG and AOP_CRY types,
2944           (aopOp): handle bit registers,
2945           (aopPut): optimization no self-assign,
2946           (saveRegisters): push reg->base (bits) only once for bit registers,
2947            and use pushReg,
2948           (unsaveRegisters): pop reg->base only once and use popReg,
2949           (assignResultValue): added parameter func and return in carry for bits,
2950           (genIpush): optimization no reload in A if not changed,
2951           (genSend): bit parameters in reentrant functions are passed in bit
2952            registers by first assigning to bits in B, then save registers and
2953            copy B to bits,
2954           (genCall): handle returning in Carry properly, save it in F0 if needed,
2955           (genPcall): updated assignResultValue call, this is not safe yet for bit
2956            returning function !!!
2957           (genFunction): don't generate equ's for bit registers and use pushReg,
2958           (genEndFunction): take care of bit returning functions and use popReg,
2959           (genRet): return bit in Carry,
2960           (genIfx): optimize bit registers and other directly addressable bits,
2961           (genReceive): updated assignResultValue call
2962         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
2963           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
2964            registers when using stack-auto
2965         * src/mcs51/ralloc.c (_G): added allBitregs,
2966           (regs8051): added the bit registers,
2967           (createStackSpil): use macro IS_BIT,
2968           (getRegBit): added to allocate a bit register, else spill,
2969           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
2970           (updateRegUsage): factored out to ease stepping while debugging,
2971           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
2972            also allocate bit registers,
2973           (fillGaps): handle bit registers,
2974           (findAllBitregs): added to create bit vector with all bit registers,
2975           (mcs51_allBitregs): returns this bit vector,
2976           (mcs51_assignRegisters): when using stack-auto use bit registers for
2977            passing parameters and creating local variables
2978         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
2979
2980 2005-08-22 Borut Razem <borut.razem AT siol.net>
2981
2982         * device/lib/Makefile.in: replaced find option -or with -o
2983           to make it run on solaris
2984
2985 2005-08-22 Raphael Neider <rneider AT web.de>
2986
2987         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
2988           fixes #1265442 (crash on Solaris)
2989
2990 2005-08-20 Borut Razem <borut.razem AT siol.net>
2991
2992         * configure, configure.in: added tests for libsocket and libnsl libraries,
2993           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
2994           from support/regression/Makefile.in
2995         * support/regression/Makefile.in: added
2996         * device/lib/pic16/Makefile.common.in: force make to use bash shell
2997         * sim/ucsim/libtool: regenerated on sparc-solaris
2998         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2999           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
3000           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
3001           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
3002           sparc-solaris, which doesn't use GNU ld linker
3003         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
3004         * as/Makefile: find on sparc-solaris does not support -maxdepth option
3005
3006 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
3007
3008         * src/mcs51/peeph.def: updated comments
3009
3010 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3011
3012         * device/lib/_gptrget.c,
3013         * device/lib/_gptrput.c: slightly shorter
3014         * doc/sdccman.lyx: incremented version
3015         * src/mcs51/peeph.def: moved peephole comments to the line of first
3016           change to better keep line correlation, reanimated 186.e
3017         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
3018
3019 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
3020
3021         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
3022           David Saxton with quotes around file name.
3023
3024 2005-08-15 Borut Razem <borut.razem AT siol.net>
3025
3026         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
3027           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
3028           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
3029           make tests run on x86_64 platform
3030
3031 2005-08-13 Raphael Neider <rneider AT web.de>
3032
3033         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
3034           as it might be executed DURING a build (parallel make is wonderful)
3035
3036 2005-08-13 Raphael Neider <rneider AT web.de>
3037
3038         * device/lib/Makefile.in (port-specific-objects-pic16):
3039           revert to cp $(PORT)/bin/*.* $(PORTDIR)
3040         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
3041           dependency
3042         * device/lib/pic16/Makefile.rules: build subdirs before creating
3043           the library, removed builddir rule, create $(builddir) early in
3044           recurse rule, use empty recurse rule for leaf directories
3045         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
3046           mkdir errors (race condition), removed duplicate suffix "hex"
3047           from clean rules
3048         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
3049         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
3050           prevents mkdir -p from aborting on Alpha
3051
3052 2005-08-12 Raphael Neider <rneider AT web.de>
3053
3054         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
3055           db-statements in order to allow for arrays of pointers in code
3056           sections to be placed without interspersed 0-padding, fixes
3057           bug #1256215
3058         * (emitStatistics): fixed division by zero for pic18f1220
3059         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
3060           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
3061         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
3062         * (pic16_pCodeConstString): keep track of already emitted string
3063           literals to prevent "duplicate definitions of symbol _str_NR"
3064         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
3065           debug message
3066         * device/lib/Makefile.in: ignore failing PIC16 library builds
3067         * device/lib/pic16/Makefile: do not build if gputils are missing
3068         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
3069
3070 2005-08-10 Raphael Neider <rneider AT web.de>
3071
3072         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
3073           my last commit)
3074
3075 2005-08-10 Raphael Neider <rneider AT web.de>
3076
3077         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
3078           Rokas' patch to add the new fixed point type "__fixed16x16"
3079         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
3080           functions for __fixed16x16 arithmetics
3081         * device/lib/pic16: reimplemented the build system to support
3082           a separate build directory, better handling of libio (create
3083           the library in a separate subdir for each architecture) and
3084           easier configuration (centralized in Makefile.common)
3085
3086 2005-08-07 Raphael Neider <rneider AT web.de>
3087
3088         * src/pic16/gen.c (genrshTwo): fixed sign extension
3089         * src/pic16/device.c: added pic18f2320, 4220 and 4320
3090         * device/include/pic16/pic18f2220.h: changed some bit definitions,
3091           added T0CONbits
3092         * device/include/pic16/pic18f4220.h: NEW, header for
3093           pic18f4220 and pic18f4320
3094         * device/include/pic16/pic18fregs.h: added new devices,
3095           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
3096         * device/include/pic16/signal.h: resolved name clashes
3097           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
3098           to also allow testing for interrupt enable bits, added
3099           comments on how to use the macros
3100         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
3101         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
3102           register definitions for the devices
3103         * device/lib/pic16/pics.all: added new devices
3104         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
3105           allocated memory
3106         * device/lib/pic16/libc/stdlib/memfree: do not count
3107           the block header as free memory
3108         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
3109           simplified and added missing end-of-blocklist-marker
3110           (reported by Peter Onion, fixes #1252814)
3111         * (_mergeHeapBlock): fixed loop condition
3112         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
3113           len==0, restructured code
3114         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
3115           up a bit, reduced bitfield accesses, prevent endless loops
3116           in case of heap corruption
3117         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
3118           "unreferenced arguments/must return a value" warnings
3119         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
3120           replaced BAUDREG with SPBRG
3121         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
3122           device/lib/pic16/debug/gstack/gstack.c: replaced
3123           _naked, _asm, _endasm with __naked, __asm, __endasm
3124
3125 2005-08-05 Raphael Neider <rneider AT web.de>
3126
3127         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
3128           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
3129
3130 2005-08-05 Borut Razem <borut.razem AT siol.net>
3131
3132         * device/lib/Makefile.in: added missing ';'
3133         * configure: removed ^M characters
3134
3135 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3136
3137         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
3138           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
3139           License
3140
3141 2005-08-04 Borut Razem <borut.razem AT siol.net>
3142
3143         * configure.in: pic16 libraries build 2nd try - enable running
3144           configure in device/lib/pic16
3145         * configure: regenerated from configure.in
3146         * device/lib/Makefile.in: create $(PORT)/bin directory
3147
3148 2005-08-03 Raphael Neider <rneider AT web.de>
3149
3150         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
3151           to get/set values via pointers
3152         * (genUnpackBits,genPackBits): changed detection of
3153           ptr->bitfield vs. sym.bitfield, fixed access via generic
3154           pointers, removed dead (wrong) code for multibyte bitfields
3155         * (genNearPointerGet, genGenPointerGet): removed useless code,
3156           fixed bitfield detection, fixes #1250594
3157         * (genNearPointerSet): removed useless code
3158         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
3159           and introduced macro pic16_emitpcode that conditionally emits
3160           the origin of the following pCode (useful for debugging SDCC)
3161         * src/pic16/pcode.c: changed (and disabled) some debug outputs
3162         * (createDefmap): fixed handling of LFSR for --optimize-df
3163
3164 2005-08-02 Borut Razem <borut.razem AT siol.net>
3165
3166         * device/lib/Makefile.in: pic16 libraries build enabled since
3167           gputils-0.13.2 are now localy installed at sourceforge's compile farm
3168
3169 2005-08-02 Raphael Neider <rneider AT web.de>
3170
3171         * src/pic16/gen.c (genPackBits): removed deprecated warning
3172         * (genGenPointerSet): fixed bitfield detection
3173
3174 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3175
3176         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
3177
3178 2005-07-31 Raphael Neider <rneider AT web.de>
3179
3180         * device/lib/pic16/libdev/pic18f458.c,
3181           device/include/pic16/pic18f458.h: added missing T0CONbits
3182
3183 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3184
3185         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
3186
3187 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
3188
3189         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
3190
3191 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3192
3193         * device/include/mcs51/at89c51ed2.h: added.
3194
3195 2005-07-23 Raphael Neider <rneider AT web.de>
3196
3197         * src/pic/gen.h: added emitpcode macro for debugging
3198         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
3199           and replace by macro adding debug information on demand
3200         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
3201         * (gencjne): tried to fix; replaced with correct (slower) code
3202         * (gen{Unp,P}ackBits): fixed single bit access
3203         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
3204         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
3205           previous instruction
3206         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
3207           register has to be handled with care (forbidding movement
3208           of assignments/uses, removing assignments completely, ...)
3209         * (pCodeOptime2pCodes): make use of regIsSpecial
3210         * added lots of debugging output (commented out)
3211         * src/pic/rallloc.c (deassignLRs): prevent operand registers
3212           from being reused as result UNLESS it is known to work
3213
3214 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3215
3216         * support/Util/dbuf.h: include <stddef.h> for size_t
3217         * .version: changed to version 2.5.2
3218
3219 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3220
3221         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
3222
3223 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3224
3225         * src/hc08/gen.c (genMinus): fixed bug #1241835,
3226           (genModOneByte): removed needless psha/pula
3227
3228 2005-07-22 Raphael Neider <rneider AT web.de>
3229
3230         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
3231           have PIC14 handled like PIC16, fixes broken pic14 linker calls
3232         * src/pic/gen.c (resolveIfx): do not "invent" labels
3233         * (genSkipc): changed to positive logic
3234         * (genSkipCond): removed as no longer needed
3235         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
3236           backport from PIC16
3237         * (genLeftShift): check operands are in different registers
3238         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
3239           INCF does not update CARRY...
3240         * src/pic/main.c: fixed _linkCmd
3241         * src/pic/pcode.c (unlinkpCode): added inactive code
3242         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
3243           alive (do not assign result and operand overlapping registers)
3244
3245 2005-07-22 Raphael Neider <rneider AT web.de>
3246
3247         * src/pic/device.c (dump_sfr): replaced register declaration with
3248           call to emitSymbolToFile() to avoid duplicate symbols
3249         * (assignRelocatableRegisters): do not declare external symbols
3250         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
3251           right (take size of type, not etype)
3252         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
3253         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
3254         * (packRegsForAccUse): disabled assignment of WREG as
3255           the result reg to prevent occurence of just fixed #1235003,
3256           fixes #1242954
3257         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
3258           symbols (avoids duplicate symbols in .asm file)
3259         * (pic14emitRegularMap): use emitSymbolToFile()
3260         * src/pic/gen.c (aopOp): fixed spillLocation handling
3261         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
3262         * (genDataPointerSet): removed unneccessary variables/output
3263
3264 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
3265
3266         * as/mcs51/lkarea.c: enlarged codemap for banked memory
3267         * device/lib/mcs51/crtbank.asm: added # to 0x0F
3268
3269 2005-07-21 Raphael Neider <rneider AT web.de>
3270
3271         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
3272           architecture cannot handle them efficiently, fixes bug #1235003
3273         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
3274           check for empty sets before using them (fixes bug #1232190)
3275
3276 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
3277
3278         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
3279           (lnksect2): generate warnings for memory overlap
3280         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
3281           constseg to set the name of these segments so you can instruct the linker
3282           to place them in banks
3283         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
3284         * src/SDCCglobl.h: added MODEL_HUGE to enum,
3285           added code_seg and const_seg to options
3286         * src/SDCCglue.c (emitMaps): use options.const_seg,
3287           (createInterruptVect): put interrupt vectors in segment HOME,
3288           (glue): put HOME before static segment and put the main glue in HOME,
3289           (glue): use options.code_seg
3290         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
3291         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
3292           these segments so you can instruct the linker to place them in banks
3293           (linkEdit): use code_loc for HOME segment which should be the first
3294           segment in code memory now
3295         * src/SDCCmem.c: fixed more stuff like bug 1238386
3296         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
3297           (changePointer): don't change function pointers to code pointers for
3298           banked functions,
3299           (compareType): added exceptional check for banked function pointers
3300         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
3301         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
3302           after static in code memory
3303         * src/mcs51/gen.c: added aopLiteralLong prototype,
3304           (aopForSym): use getSize for functions,
3305           (genCall): generate banked calls over one trampoline __sdcc_banked_call
3306           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
3307           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
3308           the segment,
3309           (genPcall): use call for literal function pointers and generate banked
3310           calls over the one trampoline so there's only one place for the user to
3311           modify according to his/hers hardware,
3312           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
3313           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
3314         * src/mcs51/main.c: added keyword banked,
3315           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
3316         * support/Util/SDCCerr.c,
3317         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
3318           needed for passing the bank and address to the trampoline
3319         * device/lib/mcs51/crtbank.asm: added for bankswitching
3320         * device/lib/mcs51/Makefile: added crtbank
3321
3322 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3323
3324         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
3325           for fields at offset 0 of a struct or union as reported
3326           on 2005-07-07 in the developer mailing list.
3327
3328 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
3329
3330         * src/SDCCmem.c: fixed bug 1238386
3331
3332 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3333
3334         * src/mcs51/peeph.def: added labelrefcounting for peepholes
3335           (patch #1144962), added peephole 300, enabled 259.x
3336         * doc/sdccman.lyx: removed screenshot and provided link instead
3337
3338 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3339
3340         * doc/sdccman.lyx: added section about debugging with ddd
3341         * doc/figures/ddd_example.eps: screenshot of debugging session
3342
3343 2005-07-04 Raphael Neider <rneider AT web.de>
3344
3345         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
3346           like CODE pointers, fixes #1115683
3347         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
3348           call, fixes bugs #1232211, #1228110,
3349           fixed wrong casts to pCodeFlow from pCodeInstructions
3350
3351 2005-07-04 Raphael Neider <rneider AT web.de>
3352
3353         * src/pic/gen.c (popGet): changed assert to allow for
3354           bit operands
3355         * (popGetAddr): changed signature to provide
3356           an additional index, patched all call sites
3357         * (genCmpEq): handle literal-like operands correctly
3358         * (genAddrOf): added sanity checks on __code/__data pointers
3359         * (genAssign): added handling of symbols from __code section
3360         * (gencjne): do not generate code for comparisons whose result
3361           is neither stored nor used, fixes bug #1171114
3362         * (AccLsh, AccRsh): operate on operand instead of WREG
3363         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
3364           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
3365           by known count
3366         * rewrote complete shift-by-literal logic, commented unused
3367           functions out
3368         * (genConstPointerGet): get multiple bytes (if result size > 1),
3369           fixed handling of non-immediate addresses
3370         * (genPointerGet): handle CODE pointers like CONST pointers
3371         * (genpic14Code): insert C-SRC lines as Cource-pCodes
3372         * ({aop,op}_isLitLike): NEW, single place to decide whether an
3373           operand is to be treated as a literal or not
3374         * (mov2w,genPcall,genCmpEq),
3375           src/pic/genarith.c: use aop_isLitLike() to decide between
3376           literal/register contents
3377         * (addSign): added missing offset
3378         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
3379           only emit comment in debug-mode,
3380           use {aop,op}_isLitLike throughout the file
3381         * src/pic/glue.c: fix initializers for pointers (work in progress)
3382         * src/pic/pcode.c (get_op): honor index on _const symbols
3383         * ({reset,dump}pCodeStatistics): NEW, estimate code size
3384         * (dumppBlock): added pCode size estimation
3385         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
3386           check for IS_SYMOP before OP_SYMBOL'ing
3387         * fixed indentation, compacted switch-statements
3388         * (allocReg): find free register and allocate it instead of
3389           allocating new registers all the time
3390         * (deassignLRs): prevent POINTER_GET's from being assigned the same
3391           registers as its operands (necessary only for multibyte GETs)
3392
3393 2005-07-01 Raphael Neider <rneider AT web.de>
3394
3395         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
3396           debugging .asm-output macros FENTRY + FEXIT
3397         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
3398           way... I wonder...
3399         * (emitpComment): NEW, printf to pCode
3400         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
3401           offset handling
3402         * (popGetAddr): NEW, variant of popGet to access an immediates
3403           high(er) bytes instead of the n'th byte of memory they reference,
3404           replaced popGet with popGetAddr where neccessary
3405         * (genDataPointerGet): reactivated and fixed implementation
3406         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
3407           accesses
3408         * (genDataPointerSet): fixed multibyte assignments
3409         * (genpic14Code): fixed --i-code-in-asm handling
3410         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
3411         * (genPlus): fixed index-out-of-bounds error
3412         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
3413         * src/pic/ralloc.c: added debugging output macro FENTRY2
3414         * (spillThis): fixed indentation, enbraced for-body for clarity
3415         * (rematStr): commented out as now unused
3416         * (regTypeNum): commented out special spill case (overwrites
3417           arbitrary values)
3418         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
3419
3420 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
3421
3422         * doc/sdccman.lyx: documented sfr16/sfr32,
3423           added example for using storage class with function pointers
3424         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
3425
3426 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
3427
3428         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
3429         * device/lib/_itoa.c,
3430         * device/lib/_ltoa.c: optimized codesize
3431         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
3432           but don't know how to suppress the double warning.
3433         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
3434         * support/Util/SDCCerr.c,
3435         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
3436
3437 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
3438
3439         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
3440           fixed old K&R prototypes
3441         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
3442         * device/lib/_gptrget.c,
3443         * device/lib/_gptrgetc.c,
3444         * device/lib/_gptrput.c: changed versions for new memory indicator values,
3445           also new versions for small generic pointers and banked generic pointers
3446         * src/port.h: added const_name
3447         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
3448         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
3449         * src/SDCCcse.c (findPrevIc): check all associative operators
3450         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
3451         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
3452         * src/SDCCmem.c: updated comments,
3453           set far-space to 0 for pdata, results in optimized code
3454         * src/SDCCmem.h: added macro CONST_NAME
3455         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
3456           moving the info into the highest bits, see also gptrget/gptrput
3457         * src/src.dsp: added sdcc.ico to project files
3458         * src/avr/gen.c (genCast): fixed bug 0x%d
3459         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
3460         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
3461           relation between ptr_type and DCL_TYPE,
3462           (genCast): fixed bug 0x%d
3463         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
3464           (CODE)" for const_name
3465         * src/hc08/gen.c (genCast): fixed bug 0x%d
3466         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
3467           (hc08_port): added "CONST (CODE)" for const_name
3468         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
3469           (aopForRemat, adjustArithmeticResult): disconnected direct relation
3470           between ptr_type and DCL_TYPE,
3471           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
3472           operand* and took AOP() inside function so sfr-ness can be checked,
3473           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
3474           new prototype,
3475           (genFunction, genEndFunction): optimized stack setup,
3476           (genMinus): optimized for literals with ending zeroes (in bytes),
3477           (genCast): fixed bug 0x%d
3478         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
3479           (mcs51_port): added "CONST (CODE)" for const_name
3480         * src/mcs51/peeph.def: made rule 226 more generic
3481         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
3482         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
3483         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
3484         * src/z80/main.c (z80_port): added NULL for const_name,
3485           (gbz80_port): added NULL for const_name
3486         * support/regression/tests/bug663539.c,
3487         * support/regression/tests/sfr16.c: new tests
3488
3489 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3490
3491         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
3492
3493 2005-06-24 Raphael Neider <rneider AT web.de>
3494
3495         * device/lib/pic16/libdev/pic18f[68][567]20.c:
3496           corrected typos...
3497         * device/include/pic16/signal.h: added USBIF
3498           and SIG_USB
3499
3500 2005-06-24 Raphael Neider <rneider AT web.de>
3501
3502         * device/lib/pic16/libdev/pic18f2455.c,
3503           device/include/pic16/pic18f2455.h: NEW
3504         * device/include/pic16/pic18fregs.h,
3505           device/lib/pic16/pics.all,
3506           src/pic16/device.c: added 18f2455
3507         * device/lib/pic16/libdev/pic18f[68][567]20.c,
3508           device/include/pic16/{pic18f[68][567].h,usart.h}:
3509           replaced MULTIPLE_USARTS define with more relaible
3510           compatibility sfrs (for USART access)
3511
3512 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
3513
3514         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
3515           and the output asm file line is printed on two lines.
3516
3517 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3518
3519         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
3520           BGT, BLE, BHI, and BLS instructions
3521         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
3522           genCmpEq): removed
3523         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
3524           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
3525           fixes bug #1216342
3526         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
3527
3528 2005-06-15 Raphael Neider <rneider AT web.de>
3529
3530         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
3531         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
3532         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
3533           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
3534           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
3535
3536 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3537
3538         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
3539           Marcel Telka in bug #1215704
3540
3541 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
3542
3543         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
3544           located in shared memory bank.
3545
3546 2005-05-31 Raphael Neider <rneider AT web.de>
3547
3548         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
3549           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
3550           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
3551
3552 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
3553
3554         * device/lib/_strncpy.c: fixed the fix
3555
3556 2005-05-26 Raphael Neider <rneider AT web.de>
3557
3558         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
3559           initializers with \0, bug #1208187
3560         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
3561           intializers with \0, bug #1208187
3562
3563 2005-05-26 Raphael Neider <rneider AT web.de>
3564
3565         * src/pic16/glue.c (pic16_printIvalChar): fixed string
3566           initializers with \0, bug #1208187
3567         * src/pic16/main.c (_process_pragma): added sanity checks
3568           for stack position and size, emit warnings when appropriate
3569
3570 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
3571
3572         * device/lib/_strncpy.c: fixed not filling with \0
3573
3574 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3575
3576         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
3577           createFunction),
3578         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
3579           compound_statement),
3580         * src/SDCCsymt.h,
3581         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
3582
3583 2005-05-24 Raphael Neider <rneider AT web.de>
3584
3585         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
3586
3587 2005-05-24 Raphael Neider <rneider AT web.de>
3588
3589         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
3590           TRISE definitions, closes bug #1162453
3591
3592 2005-05-22 Raphael Neider <rneider AT web.de>
3593
3594         * src/pic16/main.c (_process_pragma): check for missing
3595           arguments to pragmas code and udata
3596         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
3597           consistency fixes to match other headers (thanks to Jim Paris)
3598         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
3599
3600 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
3601
3602         * src/SDCCicode.c (isOperandEqual): fixed missing ;
3603
3604 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
3605
3606         * support/regression/tests/bug1198642.c: new test
3607         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
3608         * src/SDCCcse.c (findPrevIc): added comment, please have a look
3609         * support/scripts/resource.h,
3610         * support/scripts/resource.rc,
3611         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
3612         * support/scripts/sdcc.ico: added 32x32 icon
3613
3614 2005-05-18 Raphael Neider <rneider AT web.de>
3615
3616         * device/lib/pic16/libdev/pic18f*.c,
3617         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
3618           keywords to "__sfr" and "__at (X)"
3619         * device/include/pic16/pic18fregs.h: added pic18f4520
3620         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
3621           #1203088 (MPLAB compatibility)
3622
3623 2005-05-17 Raphael Neider <rneider AT web.de>
3624
3625         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
3626         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
3627         * device/lib/pic16/pics.all: added new devices
3628         * src/pic16/device.c: added support for pic18f4520
3629
3630 2005-05-16 Raphael Neider <rneider AT web.de>
3631         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
3632         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
3633         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
3634           convenience function for bit access
3635
3636 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
3637
3638         * device/lib/printf_large.c: fixed bug 1193299
3639         * support/regression/tests/bug1057979.c: added test %3.3s
3640
3641 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3642
3643         * device/include/mcs51/8051.h,
3644         * device/include/mcs51/8052.h: made parseable with lint
3645         * device/include/mcs51/lint.h: added include file for (sp)lint
3646         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
3647         * doc/cdbfileformat.lyx,
3648         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
3649
3650 2005-05-14 Raphael Neider <rneider AT web.de>
3651
3652         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
3653         * device/lib/pic16/libc/stdlib/itoa.c (new)
3654         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
3655         * device/lib/pic16/libio/Makefile: exclude subdir according to
3656           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
3657         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
3658         * src/pic16/gen.c (genFunction): prevent annoying warning
3659         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
3660           nameclashes on BeOS
3661         * support/cpp2/cppmain.c (cpp_output_string): new
3662         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
3663           fixes bug 1116802
3664
3665 2005-05-13 Borut Razem <borut.razem AT siol.net>
3666
3667         * src/SDCCmain.c (linkEdit): fixed bug 1195202
3668
3669 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3670
3671         * .version: changed to version 2.5.1; back to bleeding edge development
3672
3673 2005-05-11 Borut Razem <borut.razem AT siol.net>
3674
3675         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
3676           generate PDF version 1.3 documents
3677
3678 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3679
3680         * .version: changed to version 2.5.0
3681
3682 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3683
3684         * doc/sdccman.lyx: updated weblinks, index and smaller updates
3685
3686 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3687
3688         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
3689         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
3690         well as many smaller updates.
3691         * .version: changed to version 2.5.0-pre1
3692
3693 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3694
3695         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
3696
3697 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
3698
3699         * support/regression/tests/bug1185672.c: added
3700         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
3701           bug 1185672
3702         * src/mcs51/gen.c (genCall): added comments, made it look safer
3703         * src/mcs51/gen.c (genEndFunction): simplified
3704
3705 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
3706
3707         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
3708
3709 2005-04-14 Borut Razem <borut.razem AT siol.net>
3710
3711         * fixed bug 1045046 - SIGSEGV with really simple code?:
3712           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
3713           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
3714
3715 2005-04-14 Borut Razem <borut.razem AT siol.net>
3716
3717         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
3718           src/pic16/device.h: temporarily disabled experimental #inline pragma
3719           for 2.5.0 release
3720
3721 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
3722
3723         * device/include/z80/stdio.h,
3724         * device/include/z80/string.h: removed these highly incomplete files so
3725           SDCC can use the default ones in device/include/
3726
3727 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3728
3729         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
3730         gcc warning.
3731         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
3732         fix sdcpp warnings.
3733
3734 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3735
3736         * device/include/malloc.h: removed redundant __reentrant prototypes
3737         * device/lib/_mullong.c: added working xstack variant in asm (C version
3738           doesn't pass regression tests)
3739         * device/lib/bpx.c: used __data and made bpx char for mcs51
3740         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
3741           (createFunction): fixed bug with xstackPtr
3742         * src/SDCCcse.c: corrected comments
3743         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
3744           (killDeadCode, eBBlockFromiCode): removed unused code
3745         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
3746           corrected comments
3747         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
3748           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
3749           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
3750           (genModOneByte): fixed warning in MSVC
3751         * src/mcs51/main.c (): added comments
3752         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
3753
3754 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
3755
3756         * src/SDCCmain.c (linkEdit): oops, changed one line too many
3757
3758 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
3759
3760         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
3761
3762 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
3763
3764         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
3765         characters arrays of larger size than the declared one.
3766
3767 2005-04-10 Borut Razem <borut.razem AT siol.net>
3768
3769         * src/pic/gen.c (genInline),
3770           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
3771           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
3772           (findNextInstruction), (findPrevInstruction),
3773           (findInstructionUsingLabel),
3774           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
3775         * src/pic/pcode.c (findLabel): added missing '\n'
3776         * src/src.dsp: added SDCCdwarf2.c to the project
3777
3778 2005-04-09 Borut Razem <borut.razem AT siol.net>
3779
3780         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
3781
3782 2005-04-08 Raphael Neider <rneider AT web.de>
3783
3784         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
3785           into the chain after a given one) and mergeDefmapSymbols (combine
3786           defmap entries for each symbol per pcode)
3787         * (createDefmap): have defmap entries merged in the end
3788         * (defmapReplaceSymRef): split defmap entries covering two accesses to
3789           a symbol before replacing one access type's symbol, merge symbols in
3790           the end (replacement symbol might already have an entry)
3791         * (assignValnums): keep reference to written WREG intact
3792
3793 2005-04-08 Raphael Neider <rneider AT web.de>
3794
3795         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
3796           Alpha)
3797
3798 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
3799
3800         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
3801         bytes
3802
3803 2005-04-07 Raphael Neider <rneider AT web.de>
3804
3805         * device/include/pic16/usart.h: added compatibility defines for
3806           devices with more than one USART
3807         * device/include/pic16/pic18f[68][567]20.h: activated above defines
3808
3809 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3810
3811         * device/lib/Makefile.in: updated for port specific include
3812
3813 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3814
3815         * support/regression/ports/mcs51/spec.mk: added mcs51 include
3816
3817 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
3818
3819         * device/include/8051.h,
3820         * device/include/8052.h,
3821         * device/include/at89S8252.h,
3822         * device/include/at89c55.h,
3823         * device/include/at89x051.h,
3824         * device/include/at89x51.h,
3825         * device/include/at89x52.h,
3826         * device/include/mcs51reg.h,
3827         * device/include/reg51.h,
3828         * device/include/reg764.h,
3829         * device/include/regc515c.h,
3830         * device/include/sab80515.h: (re)moved these 12 files
3831         * device/include/mcs51/8051.h,
3832         * device/include/mcs51/8052.h,
3833         * device/include/mcs51/at89S8252.h,
3834         * device/include/mcs51/at89c55.h,
3835         * device/include/mcs51/at89x051.h,
3836         * device/include/mcs51/at89x51.h,
3837         * device/include/mcs51/at89x52.h,
3838         * device/include/mcs51/mcs51reg.h,
3839         * device/include/mcs51/reg51.h,
3840         * device/include/mcs51/reg764.h,
3841         * device/include/mcs51/regc515c.h,
3842         * device/include/mcs51/sab80515.h: and added them here
3843
3844 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
3845
3846         * device/include/stdarg.h: changed SDCC specific keywords to double
3847           underlined form.
3848         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
3849           mcs51 and ds390.
3850         * device/include/hc08/mc68hc908gp32.h,
3851         * device/include/hc08/mc68hc908jb8.h,
3852         * device/include/hc08/mc68hc908jkjl.h,
3853         * device/include/hc08/mc68hc908qy.h: fixed comments
3854         * device/include/mcs51/README: updated
3855         * device/include/mcs51/c8051f120.h: added PINRSF
3856         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
3857         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
3858           amidst code. Also inline is not supported.
3859
3860 2005-04-06 Raphael Neider <rneider AT web.de>
3861
3862         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
3863         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
3864           callers stack/frame pointers
3865
3866 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
3867
3868         * device/include/pic16/usart.h: added, missing in previous commit,
3869         * device/include/pic16/adc.h: fixed typo,
3870         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
3871         commit,
3872         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
3873         <p18fxxx.inc>
3874         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
3875         uninitialized because a bug appears with gplink
3876         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
3877         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
3878         complains for unrecognised option
3879
3880 2005-04-05 Raphael Neider <rneider AT web.de>
3881
3882         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
3883           structs as well (using memcpy)
3884         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
3885           on ISRs (GOTO has no label)
3886         * src/pic16/device.h: added OF_OPTIMIZE_DF
3887         * src/pic16/main.c: added compiler switch --optimize-df to enable the
3888           new data flow analysis/optimization
3889         * src/pic16/pcode.c: added (prototypes for and implementation of)
3890           dataflow analysis functions, fixed pCodeInstructions' inCond and
3891           outCond values, made RCALL a branch instruction
3892         * (pic16_unlinkpCode): keep C line if possible
3893         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
3894           C line moved if possible
3895         * (pic16_getRegFrompCodeOp): NEW, improved version of...
3896         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
3897           to use new pic16_getRegFrompCodeOp (works for more SFRs)
3898         * (pic16_BuildFlow): fixed skip instructions with label (did not start
3899           new flow)
3900         * (pic16_getJumptabpCode): NEW, needed in...
3901         * (LinkFlow): fixed handling of jumptables, calls and conditional
3902           branches
3903         * (pic16_InsertCommentAfter): NEW
3904         * (pic16_pCodeReplace): made verbose and flow preserving
3905         * (AnalyzeFlow): added call to data flow analysis
3906         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
3907         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
3908         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
3909
3910 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3911
3912         * src/SDCCast.c (decorateType): fixed bug #1105626
3913
3914 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
3915
3916         * device/include/asm/pic16/features.h,
3917         * pic18f*.h headers,
3918         * device/include/pic16/adc.h,
3919         * device/include/pic16/delay.h,
3920         * device/include/pic16/i2c.h,
3921         * device/include/pic16/malloc.h,
3922         * device/include/pic16/stdio.h,
3923         * device/include/pic16/stdlib.h,
3924         * device/include/pic16/string.h,
3925         * device/lib/pic16/libc/stdio/printf_tiny.c,
3926         * device/lib/pic16/libc/stdio/printf_small.c,
3927         * device/lib/pic16/libc/stdio/strmgpsim.c,
3928         * device/lib/pic16/libc/stdio/strmmssp.c,
3929         * device/lib/pic16/libc/stdio/strmusart.c,
3930         * device/lib/pic16/libc/stdio/vfprintf.c,
3931         * device/lib/pic16/libc/stdlib/ltoa.c,
3932         * device/lib/pic16/libc/stdlib/putchar.c,
3933         * device/lib/pic16/libc/stdlib/x_ftoa.c,
3934         * device/lib/pic16/libc/stdlib/memchrpgm.c,
3935         * device/lib/pic16/libc/stdlib/memchrram.c,
3936         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
3937         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
3938         * device/lib/pic16/libio/adc/adcbusy.c,
3939         * device/lib/pic16/libio/adc/adcread.c,
3940         * device/lib/pic16/libio/adc/adcsetch.c,
3941         * device/lib/pic16/libio/usart/ubaud.c,
3942         * device/lib/pic16/libio/usart/ubusy.c,
3943         * device/lib/pic16/libio/usart/udrdy.c,
3944         * device/lib/pic16/libio/usart/uopen.c,
3945         * device/lib/pic16/libio/usart/uputc.c,
3946         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
3947         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
3948         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
3949         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
3950         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
3951         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
3952         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
3953         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
3954         specific keywords to double underlined form,
3955         * device/lib/pic16/libc/Makefile.rules,
3956         * device/lib/pic16/libsdcc/Makefile.rules,
3957         * device/lib/pic16/libm/Makefile,
3958         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
3959         to compile with C standard set in Makefile.common
3960         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
3961         rand.c and crc.c in compilation process,
3962         * device/lib/pic16/libsdcc/int/divuint.c,
3963         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
3964         `c' from signed to unsigned,
3965         * device/lib/pic16/startup/crt0.c,
3966         * device/lib/pic16/startup/crt0i.c,
3967         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
3968         keywords to double underlined form, bug fixes in _do_cinit function
3969         which prevented the correct initialization of the .idata segment,
3970         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
3971         core to enter a infinite loop
3972         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
3973
3974 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3975
3976         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
3977
3978 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3979
3980         * device/include/Makefile.in: add support for hc08 subdirectory
3981         * device/include/hc08/: new subdirectory
3982         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
3983         Lucas Loizaga, thanks!
3984         * device/include/hc08/mc68hc908qy.h,
3985         * device/include/hc08/mc68hc908gp32.h,
3986         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
3987         their own directory. Changed internal macro names to use the compiler
3988         reserved namespace. Changed SDCC specific keywords to double
3989         underlined form.
3990         * device/include/math.h,
3991         * device/include/malloc.h,
3992         * device/include/stdarg.h,
3993         * device/include/stdbool.h
3994         * device/include/string.h,
3995         * device/include/tinibios.h,
3996         * device/include/ds400rom.h,
3997         * device/include/8051.h,
3998         * device/include/8052.h,
3999         * device/include/80c51xa.h,
4000         * device/include/at89c55.h,
4001         * device/include/at89S8252.h,
4002         * device/include/at89x51.h,
4003         * device/include/at89x52.h,
4004         * device/include/ds80c390.h,
4005         * device/include/reg764.h,
4006         * device/include/regc515c.h,
4007         * device/include/sab80515.h,
4008         * device/include/mcs51/c8051f000.h,
4009         * device/include/mcs51/c8051f018.h,
4010         * device/include/mcs51/c8051f020.h,
4011         * device/include/mcs51/c8051f040.h,
4012         * device/include/mcs51/c8051f060.h,
4013         * device/include/mcs51/c8051f120.h,
4014         * device/include/mcs51/c8051f300.h,
4015         * device/include/mcs51/c8051f310.h,
4016         * device/include/mcs51/c8051f320.h,
4017         * device/include/mcs51/c8051f330.h,
4018         * device/include/mcs51/c8051f350.h,
4019         * device/include/z180.h: Changed SDCC specific keywords to double
4020         underlined form.
4021
4022 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
4023
4024         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
4025         18F4455,
4026         * (pic16_assignConfigWordValue): disable testing of configuration
4027         register value with config mask,
4028         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
4029         function with port->fun_prefix,
4030         * (genFunction): when generating a naked interrupt function never
4031         create an absolute segment placed in interrupt vector address, place
4032         the actual interrupt function at IVA instead, when an interrupt
4033         function is generated with unspecified interrupt then do not create
4034         the absolute section,
4035         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
4036         code for generating a call to generic pointer get/put function with
4037         a call to function pic16_callGenericPointer(),
4038         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
4039         the call to the generic pointer get/put functions with prefixing the
4040         function name with port->fun_prefix,
4041         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
4042         * src/pic16/main.c (_process_pragma): prefix function with
4043         port->fun_prefix,
4044         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
4045         calling assembler, old 18Fxxxx macro is deprecated,
4046         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
4047         PC_ASMDIR in while condition,
4048         * (findInstruction): add PC_ASMDIR in while condition,
4049         * (buildCallTree): prefix main with port->fun_prefix,
4050         * (pic16_pCode2str): fixed bug that didn't emit the memory access
4051         identifier for variable with banked access in instructions BTFSS,
4052         BTFSC, BCF, BSF, BTG
4053         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
4054         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
4055         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
4056         perform optimization when enviroment variable NO_REG_OPT is set,
4057         * (insideLRBlock): NEW, return 1 if register is inside an
4058         INF_LOCALREGS block,
4059         * (RemoveRegFromLRBlock): remove a register that is completely
4060         eliminated by register optimization, but it is still left in local
4061         register store/restore in/from stack block,
4062         * (Remove2pcodes): after removing register, check to see if it
4063         should be removed from local register store/restore in/from stack
4064         block,
4065         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
4066         DUMMY_READ_VOLATILE,
4067
4068         * device/include/pic16/adc.h: minor prototype modifications and
4069         update,
4070         * device/include/pic16/malloc.h: added GPL notice various
4071         modifications,
4072         * device/include/pic16/stdint.h: NEW, standard header for ints
4073         * device/include/pic16/delay.h: NEW, header for delay functions,
4074         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
4075         delay1mtcy,
4076         * device/include/pic16/signal.h: NEW, header providing helper macros
4077         for implementing signal handlers,
4078         * device/include/pic16/stdio.h: added prototypes for functions,
4079         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
4080         prototypes for stdin and stdout, added macro PUTCHAR to
4081         automatically implement putchar function prototype,
4082         * device/include/pic16/usart.h: modified and updated USART library,
4083         * device/lib/pic16/libio/adc/,
4084         * device/lib/pic16/libio/i2c: some modifications to improve library
4085         performance,
4086         * device/lib/pic16/libc/stdio/: modifications for the new printf*
4087         family of functions,
4088         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
4089         family of functions and other sources,
4090         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
4091         of the PIC18Fxx[28] devices,
4092         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
4093         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
4094         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
4095         _do_cinit function, because the previous failed when local variables
4096         where not placed in the same memory bank,
4097         * device/lib/pic16/libsdcc/char/: various modifications to improve
4098         library performance,
4099         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
4100         information on the new functions of the c library and more...
4101
4102 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4103
4104         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
4105
4106 2005-03-26 Raphael Neider <rneider AT web.de>
4107
4108         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
4109           if condition == CARRY)
4110         * (genCmp): adapted to new genSkipc semantics
4111         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
4112           on rIfx (genCmp was broken)
4113
4114 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4115
4116         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
4117         * src/z80/main.c (_keywords[]),
4118         * src/SDCCglobal.h (struct options),
4119         * src/SDCC.y,
4120         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
4121         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
4122         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
4123         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
4124         always available in leading double underscore form. The C99 support is
4125         mostly missing, but it's a start.
4126         * support/regression/tests/bug-227710.c: fixed nonconforming use of
4127         reserved identifier "__data".
4128
4129 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4130
4131         * src/mcs51/peeph.def: fixed bug 1170013
4132
4133 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
4134
4135         * device/include/mcs51reg.h: fixed bug 842007
4136
4137 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4138
4139         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
4140         last time.
4141
4142 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4143
4144         * src/port.h (struct PORT),
4145         * src/avr/ralloc.c (avr_assignRegisters),
4146         * src/avr/main.c,
4147         * src/ds390/ralloc.c (ds390_assignRegisters),
4148         * src/ds390/main.c,
4149         * src/hc08/ralloc.c (hc08_assignRegisters),
4150         * src/hc08/main.c,
4151         * src/mcs51/ralloc.c (mcs51_assignRegisters),
4152         * src/mcs51/main.c,
4153         * src/pic/ralloc.c (pic14_assignRegisters),
4154         * src/pic/main.c,
4155         * src/pic16/ralloc.c (pic16_assignRegisters),
4156         * src/pic16/main.c,
4157         * src/xa51/ralloc.c (xa51_assignRegisters),
4158         * src/xa51/main.c,
4159         * src/z80/ralloc.c (z80_assignRegisters),
4160         * src/z80/ralloc.h,
4161         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
4162         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
4163         * src/SDCCcse.h,
4164         * src/SDCCdflow.c (computeDataFlow),
4165         * src/SDCCdflow.h,
4166         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
4167         * src/SDCCloop.h,
4168         * src/SDCCcflow.c (*),
4169         * src/SDCCcflow.h,
4170         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
4171         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
4172         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
4173         immedDom() returning wrong block; probably fixes bug #1160833)
4174
4175 2005-03-20 Borut Razem <borut.razem AT siol.net>
4176
4177         * support/scripts/inc2h.pl: WIN32 port
4178
4179 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
4180
4181         * device/lib/makefile.in: added abs.c and labs.c
4182
4183 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
4184
4185         * device/include/stdint.h: added
4186         * device/lib/abs.c: added
4187         * device/lib/labs.c: added
4188         * device/include/stdlib.h: added abs() and labs() prototypes
4189         * device/lib/libsdcc.lib: added abs and labs
4190         * device/include/float.h,
4191         * device/lib/_fsmul.c,
4192         * device/lib/printf_fast.c,
4193         * device/lib/printf_tiny.c: updated comments
4194
4195 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4196
4197         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
4198         bug #1164313
4199
4200 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4201
4202         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
4203         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
4204
4205 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
4206
4207         * device/lib/printf_large.c: removed inline assembly for portability and
4208           readability. Use printf_fast if speed or size are more important.
4209         * src/pic16/gen.c: removed conditions around use of DEBUGpc
4210         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
4211
4212 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
4213
4214         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
4215         prevent compiler warning
4216
4217 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4218
4219         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
4220         moved to level 0 and declared as static. Also they are explicit
4221         placed in access bank. This was necessery because some times they
4222         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
4223         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
4224         optimizations. Currently only compare to unsigned char is implemented,
4225         * src/pic16/gen.c: added fReturnIdx array,
4226         * (struct resolvedIfx) is moved to gen.h and made public,
4227         * (struct _G): added sregsAlloc and sregsAllocSet fields,
4228         * (aopForSym): added an optimization to directly store in stack of
4229         the operand of a SEND iCode,
4230         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
4231         but as registers instead (AOP_REG) using the fReturnIdx array,
4232         * (pic16_freeAsmop): remove the freed register from the
4233         _G.sregsAlloc field,
4234         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
4235         a compare of 'WREG',
4236         * (pic16_popGetTempRegCond): changed function prototype, now
4237         function takes also a bitVector argument v which holds the current
4238         set of registers that are allocated for stack access by aopForSym,
4239         registers allocated in aopForSym for accessing stack symbols are not
4240         any more part of the functions usedRegs field,
4241         * (genCall): some times aopOp is called for a stack variable to be
4242         send, aopForSym might perform the push, if this is true make sure
4243         that genCall doesn't push the variable twice by testing _G.resDirect,
4244         * (genFunction): changed testing for unspecified interrupt number
4245         from 256 to INTNO_UNSPEC,
4246         * modified selection scheme of frame pointer generation. Previously
4247         if function did use local registers a frame pointer was generated,
4248         now a frame pointer is generated only if function has arguments
4249         (that need PLUSW2 register access), or has stack arguments, or the
4250         compiler is not instructed to omit the frame pointer,
4251         * (genEndFunction): before restoring local registers that were saved
4252         in the function preamble, also restore the registers that *might*
4253         have been allocated for stack access,
4254         * (genRet): removed some old comments,
4255         * (genCmp, the active (RN's) version): added a call to the
4256         pic16_genCmp_special function to perform the compare with a more
4257         robust and optimized way,
4258         * (genInline): a feature has been added in inline code generation,
4259         which allows a wildcard variable substitution when writing inline
4260         assembly. Code is incomplete and experimental therefore undocumented,
4261         * (genCast): changed order of aopOp for result and right to allow
4262         aopForSym to directly load the result if possible,
4263         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
4264         perform an optimized compare on some selected special occasions,
4265         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
4266         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
4267         generate an IVT any more,
4268         * src/pic16/main.c (pic16_optionsTable): added command line option
4269         --optimize-cmp,
4270         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
4271         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
4272         macros,
4273         * src/pic16/NOTES: Raphael Neider added in list of active developers
4274         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
4275         jumptable_end to prevent bug #,
4276         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
4277         inCond and outCond fields,
4278         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
4279         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
4280         turn off register spilling,
4281         * (packRegsForOneUse): synced with other ports' versions although it
4282         is not used currently,
4283         * (pic16_packRegisters): added an optimization while reading
4284         structure bitfields, some registers may be saved (malloc code is
4285         decreased by 80 bytes)
4286
4287 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
4288
4289         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
4290         left is a bitfield, if yes, then don't optimize assignment. Perhaps
4291         this can be optimized more?
4292
4293 2005-03-10 Raphael Neider <rneider AT web.de>
4294
4295         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
4296           genNearPointerGet): (hopefully) fixed access to bitfields via
4297           pointers (p->bitN = x; and x = p->bitN; failed)
4298
4299 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
4300
4301         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
4302
4303 2005-03-09 Raphael Neider <rneider AT web.de>
4304
4305         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
4306
4307 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
4308
4309         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
4310         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
4311           (regTypeNum): set REG_BIT type if necessary
4312         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
4313         * support/regression/tests/critical.c: check bug 1144613
4314
4315 2005-03-02 Raphael Neider <rneider AT web.de>
4316
4317         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
4318
4319 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4320
4321         * src/avr/ralloc.c (serialRegAssign),
4322         * src/ds390/ralloc.c (serialRegAssign),
4323         * src/hc08/ralloc.c (serialRegAssign),
4324         * src/mcs51/ralloc.c (serialRegAssign),
4325         * src/pic/ralloc.c (serialRegAssign),
4326         * src/pic16/ralloc.c (serialRegAssign),
4327         * src/xa51/ralloc.c (serialRegAssign),
4328         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
4329
4330 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
4331
4332         * src/SDCCast.c (decorateType): fixed bug 1124787
4333
4334 2005-02-20 Hubert Sack <sack AT digiplan.de>
4335         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4336
4337         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
4338         patch #1121755
4339
4340 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4341
4342         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
4343         to keep the correct label reference count when adding/removing references
4344         to labels. A peephole file using this is appended to patch #1144962.
4345
4346 2005-02-14 Raphael Neider <rneider AT web.de>
4347
4348         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
4349         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
4350         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
4351           retrievals of result operand's value on assignment
4352
4353 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
4354
4355         * device/include/pic16/string.h: modified prototype for memccpy()
4356         to memccpy(void *, void *, char, size_t)
4357         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
4358         check whether to omit frame pointer or not,
4359         * (genInline): convert all occurences of "\n" to LF in inline
4360         assembler blocks, this helps formatting the inline text,
4361         * (pic16_loadFSR0): modified prototype,
4362         * (genNearPointerGet, genNearPointerSet): reorganization of code,
4363         removed some 8051 legacy code,
4364         * (genPackBits): enabled handling bitfields exceeding one byte in size,
4365         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
4366         before allocating temporary registers in functions,
4367
4368 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4369
4370         * support/regression/tests/bitvars.c: corrected the "fix"
4371
4372 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4373
4374         * support/regression/tests/bitvars.c,
4375         * support/regression/tests/bitwise.c,
4376         * support/regression/tests/rotate.c: "fixed" problems on Alpha
4377
4378 2005-02-10 Raphael Neider <rneider AT web.de>
4379
4380         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
4381           different size for Alpha
4382         * src/pic16/gen.c (genCmpEq) : improved compare with 0
4383
4384 2005-02-09 Raphael Neider <rneider AT web.de>
4385
4386         * src/SDCC.lex(doPragma) : save and restore warning options as well
4387           (also added new stack plus clone- and copyAndFreeSDCCERRG())
4388         * have #pragma less_pedantic set the errorlevel to WARNING
4389           (fixes #1117001)
4390         * (cloneOptimize) : fixed wrong malloc's size
4391         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
4392           facilitate correct handling of #pragma (save|restore)
4393
4394 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4395
4396         * src/mcs51/gen.c: removed non-standard C nameless struct/union
4397
4398 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
4399
4400         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
4401
4402 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
4403
4404         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
4405
4406 2005-02-02 Raphael Neider <rneider AT web.de>
4407
4408         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
4409         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
4410         * (pic16_storeForReturn): fixed to allow returning function pointers
4411         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
4412         * device/include/pic16/{stddef.h,stdbool.h}: added
4413
4414 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
4415
4416         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
4417
4418 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
4419
4420         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
4421         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
4422          appeared to be required
4423
4424 2005-01-31 Borut Razem <borut.razem AT siol.net>
4425
4426         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
4427           include/mcs51 and include/z80 directories to the package
4428
4429 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4430
4431         * src/hc08/gen.c (genFunction): fixed bug #1112752
4432
4433 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4434
4435         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
4436
4437 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4438
4439         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
4440
4441 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
4442
4443         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
4444
4445 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
4446
4447         * device/include/c8051fxxx.h: removed these 6 files
4448         * device/include/mcs51/c8051fxxx.h: added these 11 new files
4449
4450 2005-01-26 Raphael Neider <rneider AT web.de>
4451
4452         * src/pic16/gen.c (genAssign): fixed assignment from longs
4453           in codespace (were cut to three bytes)
4454         * (genDummyRead): implemented (except for CODESPACE...),
4455           fixed bug #1108575
4456         * src/pic16/glue.c (emitStatistics): beautified
4457         * device/lib/pic16/libm/Makefile: added include path
4458
4459 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4460
4461         * src/z80/gen.c (aopPut): fixed bug #1103902
4462
4463 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4464
4465         * device/lib/expf.c: fixed bug #1095792
4466
4467 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
4468
4469         * device/lib/pic16/libm: added Math library sources
4470
4471 2005-01-24 Raphael Neider <rneider AT web.de>
4472
4473         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
4474           to enable upcast to pCodeOpReg2 (there is no type tag to
4475           differenciate the two and pic16_popGet2p cast into PCOR2)
4476         * src/pic16/main.c (_process_pragma): fixed another malloc bug
4477           (sizeof(sectNames) changed to sizeof(sectName))
4478           Both patches fix segfaults under MinGW.
4479
4480 2005-01-23 Raphael Neider <rneider AT web.de>
4481
4482         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
4483           Safe_[mc]?alloc()'ed variables
4484         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
4485           of (byte sized) temporaries (assign them to WREG for now)
4486         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
4487           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
4488           this might fix SIGSEGVs on MinGW...
4489         * src/SDCCopt.c (killDeadCode): restored original behaviour
4490           (volatile operands might get thrown away though)
4491
4492 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
4493
4494         * src/pic16/gen.c: fixed bug #1106975,
4495         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
4496         pointer update, INTCON is saved, global interrupts are disabled and
4497         restored after updateing TOS.
4498         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
4499         * added function attribute 'shadowregs' to take advantage of shadow
4500         registers,
4501         * added function attribute 'wparam' as an alternative to the wparam
4502         pragma,
4503         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
4504         user declares a non-ISR function as 'shadowregs',
4505         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
4506
4507 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
4508
4509         * .version: bumped version number to 2.4.8
4510         * device/lib/pic16/pics.all: list of PIC18F devices supported by
4511         pic16 port,
4512         * device/lib/pic16/libio/i2c/: I2C module support library,
4513         * device/include/pic16/i2c.h: I2C support library header,
4514         * device/lib/pic16/libc/stdio/: standard IO support sources,
4515         * (printf_small.c): printf_small() source, supports float print,
4516         * (printf_tiny.c): printf_tiny() source, does not support floats,
4517         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
4518         enable global optimizations for entire library source, other
4519         Makefiles in the source tree are also modified to reflect this,
4520         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
4521         function,
4522         * doc/sdccman.lyx: updated to reflect new changes,
4523         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
4524         sym->onStack if-case,
4525         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
4526         sbit, idata, _idata, xdata, _xdata,
4527         * added pragma library, to link an external library, (see doc),
4528         * removed command line options, --pomit-config-words, --pomit-ivt,
4529         --pleave-reset-vector,
4530         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
4531         when calling assembler to reflect memory model used, also define
4532         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
4533         reflect stack model used,
4534         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
4535         on stack return NULL,
4536
4537 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4538
4539         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
4540           of the operands is volatile. Fixes #1020220
4541
4542 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
4543
4544         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
4545         * (OptimizeRegUsage): make sure that there is really no other flow where
4546           the first pCode is used
4547
4548 2005-01-22 Raphael Neider <rneider AT web.de>
4549
4550         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
4551           to fix #1106967 (pCode->seq are not set up correctly)
4552
4553 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4554
4555         * src/SDCCglue.c (glue): make sure code area is declared before the
4556         static initialization area.
4557
4558 2005-01-21 Raphael Neider <rneider AT web.de>
4559
4560         * device/lib/Makefile.in: fixed test for pic16 install dir
4561         * device/lib/pic16/*/Makefile*: modified compile flags to enable
4562           optimizations
4563         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
4564           added --optimize-goto compiler switch and pragma wparam documentation
4565         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
4566         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
4567           and PRODH closing bug #1071770 (peephole optimizer)
4568
4569 2005-01-19 Raphael Neider <rneider AT web.de>
4570
4571         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
4572           cmdLine buffers (used when calling sdcpp...) are large enough
4573           (MAX_PATH=256 truncates arguments leading to system halts when
4574           used in MinGW...)
4575         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
4576         * (genUminus): rewritten to for efficiency
4577         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
4578           used uninitialized in some cases)
4579         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
4580           copy the third byte from the int -- now assumes 0x80 (data memory)
4581         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
4582           operands (genAddLit expects the iCode's operands to swapped as
4583           well), fixed leftover bytes (crashed for short left operands)
4584         * (pic16_genMinusDec): performance improvements, removed false
4585           PIC14 emitSKPNCs
4586         * (pic16_genMinus): fixed to cope with differently sized operands
4587         * src/pic16/glue.c (pic16_glue): added new banksel optimization
4588           for --obanksel > 1
4589         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
4590         * src/pic16/graph.[ch]: implementation of directed graphs, used by
4591           new banksel optimization
4592         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
4593           analysis for temporary registers (segfaults...)
4594         * src/pic16/peeph.def: added rule
4595
4596 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
4597
4598         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
4599         which converts a float number to its ASCII representation
4600         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
4601         functions to convert the fractional and integer part of a float to ASCII,
4602         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
4603         realloc.c): added _MALLOC_SPEC to explicit place variables in data
4604         ram
4605         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
4606         _STATMEM macros,
4607         * device/include/pic16/adc.h: added GPL info,
4608         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
4609         a pCodeOp as tested operand,
4610         * (genNearPointerGet): optimized bit testing, does not use
4611         intermediate register for bit value, test directly instead with
4612         BTFSS, BTFSC, works only for single bits,
4613         * (genpic16Code): dump the name of the iCode in the asm,
4614         * src/pic16/ralloc.c (decodeOp): removed static declaration and
4615         renamed to pic16_decodeOp,
4616         * (serialRegAssign): do not allocate a temporary register for iCode
4617         sequences that test a single bit for 1/0
4618
4619 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
4620
4621         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
4622         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
4623         access stack and frame pointers. They are initially assigned to
4624         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
4625         accessing SFRs. Updated all occurences of modification of stack or
4626         frame pointer in gen.c and pcode.c,
4627         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
4628         assigning of a literal value to pointers,
4629         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
4630         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
4631         selected
4632
4633 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
4634
4635         * doc/sdccman.lyx: update documentation about stack pragma, added
4636         some info for stack memory models
4637
4638 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4639
4640         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
4641
4642 2005-01-08 Raphael Neider <rneider AT web.de>
4643
4644         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
4645           udata sections to fix bug #1097823
4646
4647 2005-01-05 Raphael Neider <rneider AT web.de>
4648
4649         * src/pic16/gen.c (genGenericShift): added handling of differently
4650           sized left operand and result
4651
4652 2005-01-04 Raphael Neider <rneider AT web.de>
4653
4654         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
4655         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
4656           to hold the condition bit)
4657         * added new version of genCmp (old code available via #define)
4658         * added new version of genShiftLeft/genShiftRight in a generic
4659           way, now supports shifting by negative values
4660         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
4661           shiftCount (expected by genGenericShift)
4662         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
4663         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
4664           dump
4665         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
4666           is an invalid literal too...)
4667
4668 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
4669
4670         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
4671         from Raphael Neider,
4672         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
4673         for 8-bit literals. This fixes some literal operands which are sign
4674         extended to 16-bits ints when instruction needs only 8-bits.
4675
4676 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
4677
4678         * device/lib/logf.c: added mcs51 assembly version
4679         * device/lib/expf.c: added mcs51 assembly version
4680         * device/lib/_logexpf.c: new shared asm code for expf and logf
4681         * device/include/math.h: add defines for assembly math library
4682         * device/lib/Makefile.in: build new _logexpf.c
4683         * device/lib/libfloat.lib: use new _logexpf.c
4684
4685 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4686
4687         * src/pic/device.c
4688         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
4689           device types which have less than 0x7f registers.
4690
4691 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
4692
4693         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
4694
4695 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4696
4697         * device/lib/printf_fast.c: only build on supported arch.
4698         * device/lib/printf_tiny.c: only build on supported arch.
4699         * device/lib/printf_fast_f.c: only build if asm float lib
4700         * device/lib/_fsget1arg.c: only build if asm float lib
4701         * device/lib/_fsget2args.c: only build if asm float lib
4702         * device/lib/_fsnormalize.c: only build if asm float lib
4703         * device/lib/_fsreturnval.c: only build if asm float lib
4704         * device/lib/_fsrshift.c: only build if asm float lib
4705         * device/lib/_fsswapargs.c: only build if asm float lib
4706         * device/include/stdio.h: don't provide print_fast,
4707           print_fast_f, print_tiny prototypes if --xstack used
4708
4709 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
4710
4711         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
4712         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
4713           to the SOURCES
4714
4715 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
4716
4717         * device/lib/printf_fast_f.c: same as printf_fast, but
4718           with floating point enabled
4719         * device/lib/printf_fast.c: minor tweaks
4720         * device/include/stdio.h: add printf_fast_f
4721
4722 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4723
4724         * src/SDCCmain.c: make --float-reent default for mcs51
4725         * device/lib/_fsadd.c: added mcs51 assembly version
4726         * device/lib/_fssub.c: added mcs51 assembly version
4727         * device/lib/_fsmul.c: added mcs51 assembly version
4728         * device/lib/_fsdiv.c: added mcs51 assembly version
4729         * device/lib/_fseq.c: added mcs51 assembly version
4730         * device/lib/_fsneq.c: added mcs51 assembly version
4731         * device/lib/_fsgt.c: added mcs51 assembly version
4732         * device/lib/_fslt.c: added mcs51 assembly version
4733         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
4734         * device/lib/Makefile.in: add _fscmp to build
4735         * device/lib/libfloat.lib: add _fscmp to build
4736
4737 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
4738
4739         * device/lib/_fs2slong.c: added mcs51 assembly version
4740         * device/lib/_fs2sint.c: added mcs51 assembly version
4741         * device/lib/_fs2schar.c: added mcs51 assembly version
4742         * device/lib/_fs2ulong.c: added mcs51 assembly version
4743         * device/lib/_fs2uint.c: added mcs51 assembly version
4744         * device/lib/_fs2uchar.c: added mcs51 assembly version
4745         * device/lib/_slong2fs.c: added mcs51 assembly version
4746         * device/lib/_sint2fs.c: added mcs51 assembly version
4747         * device/lib/_schar2fs.c: added mcs51 assembly version
4748         * device/lib/_ulong2fs.c: added mcs51 assembly version
4749         * device/lib/_uint2fs.c: added mcs51 assembly version
4750         * device/lib/_uchar2fs.c: added mcs51 assembly version
4751         * device/include/float.h: added #define to select asm vs c
4752
4753 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
4754
4755         * device/lib/printf_fast.c: improvements to float output
4756         * device/include/float.h: add defines for assembly float library
4757         * device/lib/_fsget1arg.c: receive 1 float arg
4758         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
4759         * device/lib/_fsnormalize.c: normalize a float
4760         * device/lib/_fsreturnval.c: return float, various helper routines
4761         * device/lib/_fsrshift.c: right shift a float's mantissa
4762         * device/lib/_fsswapargs.c: swap 2 floats
4763         * device/lib/Makefile.in: build these 6 new files for mcs51
4764         * device/lib/libfloat.lib: add these 6 files to the library
4765
4766 2004-12-26 Borut Razem <borut.razem AT siol.net>
4767
4768         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
4769           built by gcc 3.4.2
4770
4771 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
4772
4773         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
4774           and fully reentrant and register bank neutral.
4775         * device/lib/printf_fast.c: added float (not enabled by default),
4776           added compact/slower integer (also not enabled by default),
4777           improved size/speed of fast integer code, other minor changes
4778         * device/include/stdio.h, device/lib/Makefile.in,
4779           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
4780
4781 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
4782
4783         * src/pic16/pcode.c: declaring variables other than at the start of a
4784           block is not supported in C by VC6.
4785
4786 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
4787
4788         * applied a previous patch from Raphael Neider that wasn't included
4789         in the previous commits, which fixes infinite loops within jumptable
4790         improvements,
4791         * made some fixes that previous patches introduced
4792
4793 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
4794
4795         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
4796         that fixes an issue with AOP_PCODE asmop's offset,
4797         * (pic16_popCopyReg): update instance field too,
4798         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
4799         function of pic port,
4800         * (genCmp, genAnd, genAssign),
4801         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
4802
4803 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
4804
4805         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
4806         variables initial values to idata section,
4807         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
4808         variables in some functions. This utilizes parmBytes field of iCode
4809         structure to hold the offset of the variable in stack. (might be
4810         able to use the stack field too?)
4811         * applied patch from Raphael Neider # ### , # ###
4812         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
4813         variable initial values in idata section,
4814         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
4815         for static variables with initial value
4816         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
4817         applied fix in while loop from Raphael Neider.
4818
4819 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
4820
4821         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
4822         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
4823         * src/ds390/ralloc.c (serialRegAssign): spill bits
4824         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
4825         * support/Util/SDCCerr.c,
4826         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
4827         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
4828         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
4829
4830 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
4831
4832         * device/include/sdcc-lib.h: inserted LGPL, added includes
4833           asm/ds390/features.h and asm/mcs51/features.h
4834         * device/include/asm/default/features.h,
4835         * device/include/asm/gbz80/features.h,
4836         * device/include/asm/z80/features.h: added empty _AUTOMEM
4837           and _STATMEM
4838         * device/include/asm/ds390/features.h,
4839         * device/include/asm/mcs51/features.h: added files with defines for
4840           _AUTOMEM and _STATMEM indicating automatic and static storage class
4841         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
4842         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
4843         * src/SDCCicode.c (geniCodeCast),
4844         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
4845         * src/SDCCloop.c (loopInduction): removed unused variable lr
4846         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
4847           to convertToFcall to include char modulo (RFE 1065037), added check
4848           if left operand is unsigned and use abs of literal value
4849         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
4850           as it doesn't work after conversion from peephole.def to peephole.rul
4851         * src/mcs51/gen.c (toBoolean): added check for size,
4852           (genModOneByte): optimized code for signed char modulo a literal
4853           power of 2 (thanks to Hubert Sack),
4854           (genRRC): removed unnecessary "clr c",
4855           (genRLC): replaced "add a,acc" with cheaper "rlc a"
4856         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
4857           jump optimization,
4858           swapped rules 256.c and 256.d,
4859           extended 256.d by using new multiple checks (thanks Erik),
4860           added rules 256.e and 256.f,
4861           updated rule 261.a and 261.b to new generated code
4862         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
4863
4864 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4865
4866         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
4867           induction related bugs, including first part of bug #1074377
4868
4869 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
4870
4871         * applied patch from bug-report #1076292,
4872         * applied patches for genAnd and Goto-optimizations for Raphael
4873         Neider,
4874         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
4875         dump a less iCode information,
4876         * src/pic16/device.h (pic16_options_t): added field debgen,
4877         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
4878         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
4879         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
4880         puclic,
4881         * (various functions): added macros FENTRY and FENTRY2 to functions,
4882         to emit function prologue,
4883         * (various functions): fixed indentation,
4884         * (genNearPointerGet): fixed loading of FSR0,
4885         * (genPackBits): applied patch from Raphael Neider to fix updating
4886         of FSR0 and touching only the modified bits,
4887         * src/pic16/genarith.c (various functions): added macros FENTRY to
4888         emit function prologue in comments,
4889         * src/pic16/pcode.h: added functions debugf2, debugf3,
4890         * src/pic16/ralloc.c: partial fix for packForPush caused
4891         segmentation fault,
4892
4893 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4894
4895         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
4896           <stsp AT users.sourceforge.net> with reversed byte order
4897         * support/regression/tests/rotate.c: added (ds390 skips some tests)
4898
4899 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4900
4901         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
4902           bug #1074377
4903         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
4904         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
4905
4906 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4907
4908         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
4909
4910 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4911
4912         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
4913           conditions,
4914           (setFromConditionArgs): friendly operand parser for peephole rules,
4915           (operandBaseName, operandsNotRelated): new peephole condition
4916           "operandsNotRelated" -- similar to "operandsNotSame", but takes
4917           architecture specific register naming into account, handles n-way
4918           comparisons, and supports quoted literals
4919         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
4920
4921 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4922
4923         * src/mcs51/peeph.def: fixed bug #1076940
4924
4925 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
4926
4927         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
4928
4929 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4930
4931         Adding support for replacing ljmps with sjmps in jumptables
4932         generated for switch statements. For now you need to set the
4933         environment variable SDCC_SJMP_JUMPTABLE to enable this.
4934         Now 4 algorithms for mcs51 jumptable generation are used:
4935         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
4936         addresses loaded pc-relative for up to 112 cases and stack-pushing
4937         target addresses loaded with offset from dptr for up to 256 cases.
4938
4939         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
4940         * src/mcs51/main.c: adapted constants for switch table generation
4941         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
4942
4943 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
4944
4945         * device/lib/printf_large.c (_print_format): fixed bug 1073386
4946         * support/regression/tests/bug1057979.c: added test for bug 1073386
4947
4948 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4949
4950         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
4951         compilers
4952
4953 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
4954
4955         * src/pic16/device.h,
4956         * src/pic16/genarith.c,
4957         * src/pic16/glue.c,
4958         * src/pic16/main.c,
4959         * src/pic16/pcode.c: applied patches #1068154 and #1070213
4960
4961 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
4962
4963         Large cummulative patch for pic16 port.
4964         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
4965         to call when a stack overflow occurs,
4966         * (malloc.h): added CVS Id tag,
4967         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
4968         variable,
4969         * added libc directory. The current version of LibC contains string
4970         functions, ctype functions and macros and some functions of the
4971         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
4972         be extensively tested in the future. Standard disclaimer here.
4973         Library is not automatically build yet. But one can build it by
4974         invoking 'make' inside the libc directory.
4975         * added ADC library under libio. Preliminary version yet.
4976
4977         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
4978         * src/pic16/gen.c (aopForRemat): asmop size is filled by
4979         aopForRemat() now and not by pic16_aopOp(),
4980         * (pic16_popGetTempReg): removed warning messgae when allocating
4981         temporary registers, its a buggy feature and will be removed,
4982         * (pic16_popGet): set register instance field in AOP_CRY,
4983         * (pic16_outBitC): fixed for results in size greater than 1,
4984         * (genUminusFloat): fixed for pic16, ported code from mcs51,
4985         * (pic16_storeForReturn): optimized return of 0,
4986         * (genCmp): experimental code for new genCmp which uses PIC18's
4987         special compare&skip instructions. Initial tests fail some times
4988         with variables grater than 1 byte in size, so new code is disabled,
4989         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
4990         a single bit,
4991         * (genCast): began a fix to optimize the casting of a bit to another
4992         bit, now assigning a bitfield to another bitfield will fail, sorry,
4993         * src/pic16/main.c: disabled the use of lr-support feature,
4994         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
4995         * added some function prototypes, added function _debugf prototype,
4996         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
4997         bits with offset (case PO_GPR_BIT),
4998         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
4999         command line,
5000         * (isBankInstruction): modified to return 0 for no banking instruction,
5001         and 1 for banking instruction,
5002         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
5003         caused stop processing pCodes after a inline assembly block,
5004         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
5005         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
5006         registers when it shouldn't,
5007         * src/pic16/ralloc.c (allocReg): add preliminary support for
5008         supporting a limited set of temporary registers,
5009
5010 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5011
5012         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
5013           genDataPointerSet): ensure assignments always copy in MSB to LSB
5014           order,
5015           (loadRegFromAop): recognize CLRH optimization,
5016           (genFunction): optimize RECEIVE iCodes in reentrant functions
5017
5018 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5019
5020         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
5021           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
5022           selected.
5023         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
5024         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
5025           contiguous with data
5026
5027 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5028
5029         * device/lib/_gptrget.c (_gptrget),
5030         * device/lib/_gptrgetc.c (_gptrgetc),
5031         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
5032           instead of sjmp to ret
5033         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
5034           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
5035
5036 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5037
5038         * .version: bumped version to 2.4.7
5039         * device/lib/_gptrget.c (_gptrget): is now _naked
5040         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
5041         * device/lib/_gptrput.c (_gptrput): is now _naked
5042         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
5043           (createFunction): fixed xstack
5044         * src/SDCCglue.c (emitMaps): set allocation required for bit area
5045         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
5046           or bit either,
5047           (geniCodeCritical): store original interrupt state in an iTemp bit
5048           var unless stack-auto
5049         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
5050         * src/SDCCmain.c (setIncludePath): added include/target to search path
5051         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
5052         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
5053           prototype,
5054           (processFuncArgs): put bit vars in bit area
5055         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
5056           unsaveRBank): fixed xstack,
5057           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
5058           (genFunction, genEndFunction): fixed xstack,
5059           (genAssign): optimization don't walk backwards through mem
5060         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
5061         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
5062         * support/regression/Makefile: also make library (for stack-auto) when
5063           making "all" and added "test-mcs51-xstack-auto"
5064         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
5065         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
5066         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
5067         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
5068         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
5069           make-library by MAKE_LIBRARY
5070         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
5071           regression tests for xstack
5072         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
5073         * support/regression/tests/critical.c: test for critical on mcs51
5074
5075 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5076
5077         * support/regression/ports/ucz80/spec.mk: use include and lib files from
5078           built version of sdcc instead of installed version
5079
5080 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5081
5082         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
5083         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
5084           vprintf.c now
5085         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
5086         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
5087           WARNING: remove device/lib/build/z80/printf.o by hand when
5088           updating from previous build!
5089         * device/lib/z80/printf.c: updated comment
5090         * support/regression/tests/bug1057979.c: test all ports now
5091         * support/regression/tests/bug1065458.c: file added
5092
5093 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5094
5095         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
5096           *_start and *_end symbols for static functions
5097
5098 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
5099
5100         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
5101           and search crt0.o in all library paths,
5102           (setIncludePath): proper handling of --nostdinc,
5103           (setLibPath): proper handling of --nostdlib
5104         * support/regression/Makefile,
5105         * support/regression/ports/ds390/spec.mk,
5106         * support/regression/ports/gbz80/spec.mk,
5107         * support/regression/ports/hc08/spec.mk,
5108         * support/regression/ports/mcs51/spec.mk,
5109         * support/regression/ports/mcs51-large/spec.mk,
5110         * support/regression/ports/mcs51-stack-auto/spec.mk,
5111         * support/regression/ports/z80/spec.mk: use include and lib files from
5112           built version of sdcc instead of installed version
5113         * doc/sdccman.lyx: fixed typo in --nostdinc
5114
5115 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
5116
5117         * src/pic/pcode.c,
5118         * src/pic/device.c,
5119         * src/pic/ralloc.c,
5120         * src/pic/gen.c : added support to generate code for struct bit fields.
5121
5122 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5123
5124         * as/xa51/xa_version.h,
5125         * device/include/errno.h,
5126         * device/include/regc515c.h,
5127         * device/lib/_itoa.c,
5128         * device/lib/_ltoa.c,
5129         * device/lib/ser_ir_cts_rts.c,
5130         * sim/ucsim/xa.src/glob.cc,
5131         * sim/ucsim/xa.src/inst_gen.cc,
5132         * sim/ucsim/xa.src/xa_bit.cc,
5133         * sim/ucsim/xa.src/xa_sfr.cc,
5134         * sim/ucsim/z80.src/inst_dd.cc,
5135         * sim/ucsim/z80.src/inst_fdcb.cc,
5136         * support/scripts/keil2sdcc.pl,
5137         * src/pic16/pic16.dsp,
5138         * src/pic16/pic16a.dsp: corrected cvs line endings
5139         * device/lib/printf_large.c: fixed bug 1057979
5140         * src/pic16/gen.c: fixed non-C standard code
5141         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
5142         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
5143         * support/regression/ports/mcs51/support.c: reload T1 asap
5144         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
5145           pdata use and clear idata startup behaviour
5146         * support/regression/tests/bug1057979.c: added
5147
5148 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
5149
5150         * device/examples/ds390/ow390/ad26.h,
5151         * device/examples/ds390/ow390/cnt1d.h,
5152         * device/examples/ds390/ow390/crcutil.c,
5153         * device/examples/ds390/ow390/ownet.h,
5154         * device/examples/ds390/ow390/owsesu.c,
5155         * device/examples/ds390/ow390/swt12.h,
5156         * device/examples/ds390/ow390/swtoper.c,
5157         * device/examples/ds390/ow390/temp10.h,
5158         * device/examples/ds390/ow390/thermodl.c,
5159         * device/examples/ds390/tinitalk/tinitalk.dsp,
5160         * device/examples/ds390/tinitalk/tinitalk.dsw,
5161         * device/examples/mcs51/clock/hw.h,
5162         * device/examples/mcs51/simple2/go.bat,
5163         * device/examples/serialcomm/windows/serial.h,
5164         * device/examples/xa51/dummy.c,
5165         * device/examples/xa51/hello.c,
5166         * device/include/80c51xa.h,
5167         * device/include/at89x051.h: corrected cvs line endings
5168
5169 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
5170
5171         * src/pic16/main.c (options): added command line --gstack, to trace
5172         stack over/under flows,
5173         * added pragma 'wparam' to allow passing first byte of function
5174         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
5175         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
5176         call to __gstack_test function and sets up the symbol as extern,
5177         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
5178         * popaop): added call to pic16_testStackOverflow,
5179         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
5180         wparamList list,
5181         * (genCall, genPcall): now all parameters are passed via stack
5182         except in functions that are pass to wparam pragma in which WREG is
5183         used too,
5184         * (genPcall): REENTRANT flag is checked to see if variable prototype
5185         contains reentrant keyword, don't call a non-reentrant function, via
5186         a reentrant function pointer or vice versa, functions are never
5187         passed via WREG,
5188         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
5189         D.Winkler,
5190         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
5191         SIGSEGV when accessing a NULL register stucture,
5192         * (pic16_printGPointerType): modified to handle UPPER modifier for
5193         function initializers, changed prototype of function to simpler one,
5194         * (pic16_printIvalFuncPtr): check to see if function is already
5195         added in externs list,
5196         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
5197         optimized a move from W to SFR with a move to the same register
5198         later after a CALL,
5199         * device/lib/pic16/debug: NEW directory, contains debug features
5200         which are enabled when linking with libdebug.lib, currently command
5201         line option --gstack enables stack pointer tracing for over/under
5202         flow, corresponding sources are in debug/gstack
5203
5204 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
5205
5206         * doc/sdccman.lyx: updated SDCC version,
5207         * (PIC16 port): update list of command line options,
5208         * src/pic16/device.h (structure pic16_options_t): added field gstack
5209         to enable stack overflow tracing on push/pops,
5210         * src/pic16/device.c (statistics structure): added statistics
5211         structure,
5212         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
5213         pic16_dump_int_registers): increase statistics counters for each
5214         * variable which is encountered
5215         * (pic16_dump_usection): emit each .udata variable to its own udata
5216         section,
5217         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
5218         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
5219         parameters via stack, otherwise use old scheme,
5220         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
5221         assembler output file,
5222         * src/pic16/main.c: added command line options --gstack to enable
5223         push/pop tracing for stack overflow,
5224         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
5225         instructions): added size of each instruction,
5226         * (pic16_countInstruction): estimate size of instructions in
5227         the_pFile list, inline assembly blocks are not counted,
5228         * (pic16_FixRegisterBanking): trace previous register usage, when
5229         banksel optimizations is greater than 0, don't emit a redudant
5230         banksel directive,
5231
5232 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
5233
5234         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
5235         * src/pic16/ralloc.c : applied same fix for pic16.
5236         * src/pic/gen.c : tidied it up a little.
5237
5238 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5239
5240         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
5241         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
5242
5243 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5244
5245         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
5246
5247 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5248
5249         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
5250         non-reentrant function __modsint in the interrupt function (thus
5251         corrupting math operations during serial I/O)
5252         * device/lib/ser_ir.c: as above, changed buffersize
5253         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
5254         256.c,d for zeroing
5255         * doc/Makefile: added option -t for rsync
5256
5257 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5258
5259         * src/SDCCast.h (struct ast),
5260         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
5261
5262 2004-10-20 Borut Razem <borut.razem AT siol.net>
5263
5264         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
5265         package
5266
5267 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
5268
5269         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
5270         makefile targets,
5271         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
5272         support functions to replace long sequences of MOVFF's from access
5273         bank registers to stack and vice versa,
5274         * src/pic16/device.h: added new field opt_flags, where optimization
5275         flags can be set to enable certain features,
5276         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
5277         * pBlock, (genFunction, genEndFunction): surroung loop for
5278         saving/loading used registers in stack with PC_INFO pCodes,
5279         INF_LREGS. Code in between can then be optimized by pCode optimizer
5280         to support function calls,
5281         * (genDataPointerSet): fixed bug which loaded float fields in
5282         structures with corrupt data,
5283         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
5284         in a standard way debug info on stderr. Feature used for developing
5285         and debugging only,
5286         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
5287         obsolete chunks of code,
5288         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
5289         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
5290         * pic16/src/pcode.c (pic16_newpCodeInfo,
5291         * (pic16_newpCodeOpLocalRegs),
5292         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
5293         feature,
5294         * (pic16_pCodeConstString): printing of the initial value of a
5295         symbol as a comment is inhibited since parsing was already done by
5296         copyStr and output is corrupt,
5297         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
5298
5299 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5300
5301         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
5302
5303 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
5304
5305         * as/mcs51/lkarea.c: removed old K&R style,
5306           (lnksect): changed check on boundary error,
5307           (lnksect2): changed check on boundary error,
5308           (lnksect2): extend XSTK to end of page if size = 1
5309         * as/mcs51/lkmain.c: removed old K&R style,
5310           (Areas51): create l_IRAM symbol
5311         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
5312         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
5313           model-mcs51-stack-auto, added model-mcs51-xstack-auto
5314         * device/lib/_mullong.c: added version to be compiled with xstack
5315         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
5316         * device/lib/mcs51/crtxclear.asm: clear pdata as well
5317         * device/lib/mcs51/crtxstack.asm: fixed comment
5318         * src/SDCCglue.c: maxInterrupts defaults to 0,
5319           (emitMaps): added pdata,
5320           (createInterruptVect): (re)moved default,
5321           (glue): added pdata,
5322           (glue): moved __start__xstack to XSTK with default size 1
5323         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
5324           and options.float_rent when options.stackAuto is set,
5325           (linkEdit): only write XDATA_NAME if provided on command line
5326         * src/SDCCmem.h,
5327         * src/SDCCmem.c: added pdata
5328         * src/port.h: added pdata_name to PORT
5329         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
5330           (saveRegisters, unsaveRegisters): removed usage of B,
5331           (genMinus): fixed accumulator clash,
5332           (genJumpTab): added comment, this needs another look
5333         * src/mcs51/gen.c: added check for "B in use" paranoia,
5334           added pushB() and popB()
5335         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
5336           chance
5337         * src/avr/main.c,
5338         * src/ds390/main.c,
5339         * src/hc08/main.c,
5340         * src/mcs51/main.c,
5341         * src/pic/main.c,
5342         * src/pic16/main.c,
5343         * src/xa51/main.c,
5344         * src/z80/main.c: (reset_regparms) made void parameter explicit and
5345           added PSEG (PAG,XDATA) or NULL to port specifier
5346         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
5347         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
5348           (_mcs51_genInitStartup): removed __start__xstack equ,
5349           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
5350         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
5351         * src/z80/gen.c (_rleAppend): fixed warnings
5352         * support/regression/tests/zeropad.c: added pdata test
5353         * .version: bumped to 2.4.6
5354
5355 2004-10-17 Borut Razem <borut.razem AT siol.net>
5356
5357         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
5358         as a part of nightly build
5359
5360 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
5361
5362         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
5363         WREG holds the first byte function parameters,
5364         * (aopForSym): take special case for symbols which are in FARSPACE
5365         but in CODESPACE too,
5366         * (assignResultValue): modified to take into account _G.useWreg,
5367         * (genCall): don't use wreg for parameter passing when function is
5368         declared as reentrant, too, added optimization INCF to stack
5369         pointer when stack parameter count is 1,
5370         * (genFunction, genEndFunction): refurnished and fixed to not using
5371         wreg for passing parameters when function has varargs or is
5372         reentrant, fixed bug with symbol name compare for generating
5373         functions in absolute address,
5374         * (pic16_storeForReturn): refurnished,
5375         * (genCmp): began writing a new version of the function, not ready
5376         yet, therefore it is disabled,
5377         * (genAssign): do not read code memory when assigning a function to
5378         a pointer function,
5379         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
5380         array of characters, not pointer,
5381         * (pic16initialComments): in debug mode emit an .ident directive for
5382         the assembler,
5383         * (_process_pragma): emit a new warning type (internal to pic16)
5384         when setting stack to default length, emit a similar warning when
5385         placing a function at absolute address and address is not word aligned
5386         * (_pic16_parseOptions): added 'return TRUE' statement,
5387         * (_pic16_linkEdit): if compiling a source, then add the source's
5388         file object, first in the list of objects to link,
5389
5390 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
5391
5392         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
5393         * src/pic/main.c : removed VC warning.
5394         * src/pic/gen.c : changed comment.
5395
5396 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
5397
5398         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
5399         reference to a deprecated symbol _GPTRREG was causing failure to
5400         link. Thanks G. M. Gallant for the info.
5401
5402 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
5403
5404         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
5405         comments for Bugs item #954788.
5406
5407 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
5408
5409         * src/pic16/device.c (pic16_dump_gsection,
5410         * pic16_groupRegistersInSection): handle symbols declared to be in
5411         access bank differently,
5412         * src/pic16/gen.c (struct _G): added field resDirect,
5413         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
5414         send values read from stack directly to result and don't allocate
5415         temporary values,
5416         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
5417         same registers,
5418         * (pic16_sameRegsOfs): NEW,
5419         * (freeAsmop): if _G.resDirect is set then do not mark registers as
5420         free because they were not allocated from temporary pool,
5421         * pic16_popRegFromString): workaround to fix a problem with
5422         allocating variables twice or never,
5423         * (genGenPointerGet): using PRODL instead of FSR0H,
5424         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
5425         instead of FSR0H,
5426         * (genAssign): take advantage of the _G.resDirect flag,
5427         * (genCast): around line 11844, use mov2f instead of directly
5428         MOVFF'ing between operands to account for literal values,
5429         * src/pic16/genutils.c: some new debug functions for gpsim have been
5430         added,
5431         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
5432         float with integer part only,
5433         * src/pic16/main.c (_process_pragma): handle pragma udata access to
5434         place variables in access bank
5435         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
5436         updated sources to reflect recent changes in gen.c
5437
5438 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
5439
5440         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
5441         sources that searched for headers in installation path, now the
5442         device/include/pic16 is used,
5443         * src/pic16/glue.c (pic16glue),
5444         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
5445         .line directives if not in debug mode, this suppresses assembler's
5446         warnings for ignored directives
5447
5448 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5449
5450         * src/port.h: made reset_regparms prototype void parameter explicit.
5451         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
5452         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
5453         * doc/sdccman.lyx: documented warning disabling and how to use
5454           printf_large to make it print floats.
5455         * device/include/stdbool.h: NEW
5456         * device/lib/_atof.c,
5457         * device/lib/_divuint.c,
5458         * device/lib/_divulong.c,
5459         * device/lib/expf.c,
5460         * device/lib/printf_large.c,
5461         * device/lib/sincosf.c,
5462         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
5463         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
5464           a completely reentrant lib.
5465
5466 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
5467
5468         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
5469         * device/include/pic16/stdio.h: fixed bug with colon
5470
5471 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
5472
5473         * device/include/pic16/stdio.h,
5474         * device/include/pic16/stdlib.h,
5475         * device/include/pic16/math.h: NEW
5476         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
5477         declared as _naked to reduce overhead
5478         * device/lib/Makefile.in (target port-specific-objects-pic16):
5479         changed * to *.* so to ignore the CVS directory,
5480         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
5481         stacked variables back in stack,
5482         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
5483         corruption
5484
5485 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
5486
5487         * .version: bumped version number to 2.4.5
5488         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
5489         * support/Util/SDCCerr.c (messages structure): added entry for
5490         W_POSSBUG2
5491
5492         Large cumulative patch for pic16 port and libraries.
5493         * device/include/pic16/sdcc-lib.h,
5494         * device/include/pic16/stdarg.h,
5495         * device/include/asm/pic16/features.h,
5496         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
5497         * device/include/pic16/float.h: changes reentrant keyword with
5498         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
5499         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
5500         updated target build-libraries to include objects from gptr,
5501         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
5502         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
5503         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
5504         all function headings,
5505         * src/SDCCmain.c: added global parameter userIncDirsSet,
5506         * (parseCmdLine): when option -I is encountered add directory to
5507         userIncDirsSet too,
5508         * src/version.awk: added space between control and long,
5509         * src/pic16/NOTES: added some notes for the port,
5510         * src/pic16/gen.c: added prototype for mov2fp function,
5511         * (fReturnpic16[]): properly named return value registers,
5512         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
5513         * (aopForSym): added code to handle symbols with onStack flag set,
5514         symbols onStack are allocated PTRSIZE bytes,
5515         * (aopFreeAsmop): handles special case where asmops are stack objects,
5516         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
5517         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
5518         added argument lock to trace flaws in allocating temporary registers
5519         when developing port,
5520         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
5521         * (pic16_popRegFromString): reenabled allocating a direct register
5522         from string,
5523         * (assignResultValue): various beautifications,
5524         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
5525         referenced function argument,
5526         * (genIpush): reenabled to allow stacked arguments, handles only
5527         ic->parmPush iCodes,
5528         * (genCall, genPcall): major changes to allow for variable argument
5529         functions, fixed a bug with falsely restoring stack pointer after
5530         returning from call,
5531         * (genFunction): pending code for critical function,
5532         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
5533         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
5534         * (genNearPointerGet): fixed bug with indirect reading, was always
5535         reading from INDF0
5536         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
5537         pointers,
5538         * (genAddrOf): rewrote code to take address of a stacked function parameter
5539         * (genCast): fixed casting to generic pointer type,
5540         * src/pic16/gen.h: added AOP_STA,
5541         * (struct asmop): added field stk,
5542         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
5543         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
5544         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
5545         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
5546         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
5547         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
5548         generic pointers,
5549         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
5550         and library paths,
5551         * (pic16_port structure): generic pointer size is set to 3,
5552         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
5553         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
5554         compiler warning,
5555         * src/pic16/ralloc.c (allocReg): prevent allocating register when
5556         operand is an iTemp,
5557
5558 2004-09-24 Martin Helmling <mh AT octo-soft.de>
5559
5560         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
5561         * debugger/mcs51/simi.c: addapt new syntax of s51
5562
5563 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
5564
5565         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
5566         * src/pic16/pcode.c: commented out some calls to free() in order to
5567         fix bug #989576,
5568
5569 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5570
5571         * src/SDCCicode.h,
5572         * src/SDCCicode.c (isiCodeInFunctionCall),
5573         * src/avr/ralloc.c (selectSpil),
5574         * src/pic/ralloc.c (selectSpil),
5575         * src/pic16/ralloc.c (selectSpil),
5576         * src/ds390/ralloc.c (selectSpil),
5577         * src/hc08/ralloc.c (selectSpil),
5578         * src/xa51/ralloc.c (selectSpil),
5579         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
5580         stack in the middle of a function call sequence (fixes bug #1020268)
5581         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
5582         costs associated with the minimum switch case.
5583
5584 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5585
5586         * src/SDCC.lex: fixed bug #1030549
5587
5588 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5589
5590         * src/SDCCcse.h (struct cseDef),
5591         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
5592         over a function call if the CSE is derived from a symbol whose
5593         address has been taken (fixes bug #1029883)
5594         * support/regression/tests/bug-1029883: a new regression test for
5595         this bug
5596
5597 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5598
5599         * src/hc08/gen.c (emitinline): fixed bug #1029778
5600         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
5601         to a cast object is no longer a syntax error ("fixes" bug #1030006,
5602         and starts toward RFE #905167)
5603
5604 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
5605
5606         * src/pic16/gen.c (mov2f): New function to move an operand to
5607         another without considering if it is a literal or a register,
5608         * (pic16_sameRegs): don't check if they are both AOP_REG,
5609         * (AccRsh): removed andmask=0 lines,
5610         * (genLeftShift): duplicated to be improved in future versions,
5611         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
5612         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
5613         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
5614         * (pic16initMnemonics): added initialization for POC_INFSNZW,
5615         * (insertBankSwitch): fixed inserting banksel directives algorithm
5616         for instructions that follow a skip instruction, this fixes a report
5617         for broken subtraction code generation,
5618         * src/pic16/ralloc.c (deassignLRs): do not free register if current
5619         iCode is a left op, just in case result and right share the same
5620         registers
5621
5622 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5623
5624         * src/hc08/main.c,
5625         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
5626         preservation of HX
5627         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
5628         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
5629         on 2004-09-12; it was buggy
5630
5631 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
5632
5633         * src/SDCCsymt.h: removed RESULT_CHECK
5634         * src/SDCCast.c,
5635         * src/SDCCglue.c,
5636         * src/SDCCval.c,
5637         * src/pic/glue.c,
5638         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
5639
5640 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
5641
5642         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
5643         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
5644         configuration values no more rejected by compiler, they are assigned
5645         to configuration registers with a warning message instead,
5646         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
5647         the for-loop so last conf register is emitted too,
5648         * (_pic16_initPaths): link library libsdcc.lib by default,
5649         * (_hasNativeMulFor): modified test for multiplication according to
5650         Raphael Neider's remarks. Integer multiplication is also done with
5651         support functions,
5652         * device/include/pic16/pic18fregs.h: corrected type error in while
5653         testing and including 18f6720 header file
5654
5655 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
5656
5657         * src/pic16/device.h (pic16_options): removed field use_crt,
5658         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
5659         until an optimization to handle single bits is added,
5660         * (pic16_loadFSR0): moved before genUnpackBits,
5661         * (genAnd): some white lines removed,
5662         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
5663         leave_reset flags in pic16_options when using crt modules,
5664
5665 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
5666
5667         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
5668           for bugs 898889 & 979599. Also used some safer print instructions.
5669
5670 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
5671
5672         * src/pic16/device.h (pic16_options_t): added field use_crt,
5673         crt_name, no_crt,
5674         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
5675         catch a probable future bug,
5676         * src/pic16/gen.c: aopIdx function commented out,
5677         * (genAssign): commented out old code which used aopIdx,
5678         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
5679         code, added if conditionals to take into account the --use-crt
5680         command line options,
5681         * src/pic16/main.c (pic16_optionsTable): added new command line
5682         options, --use-crt= and --no-crt,
5683         * (_pic16_linkEdit): now the proper crt object is added in the
5684         linker command line except than when --no-crt is specified,
5685         * src/pic16/pcode.c,
5686         * src/pic16/pcode.h: added some structures and functions for a new
5687         optimization scheme to compansate for instruction overhead between
5688         same iCodes, this scheme is currently under development and is not
5689         working in any way,
5690         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
5691         to && operator,
5692         * device/lib/pic16/startup/crt0i.c,
5693         * device/lib/pic16/startup/crt0iz.c: added global char variable
5694         __uflags to force the generation of an idata section
5695
5696 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
5697
5698         * doc/Makefile,
5699         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
5700         * doc/sdccman.lyx: updated sdcc version to 2.4.4
5701
5702 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5703
5704         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
5705         Frieder) and clarified the default code optimization mode
5706
5707 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5708
5709         * src/SDCC.lex (doPragma, process_pragma),
5710         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
5711         "opt_code_size", and "opt_code_balanced"
5712         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
5713         regrouped options by category, added support for category headers
5714         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
5715         and "--opt-code-size"
5716         * doc/sdccman.lyx: documented these new options and pragmas
5717         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
5718         preference into account
5719
5720 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5721
5722         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
5723           geniCodePreDec): Fixed bug 904237 by generating a warning
5724         * src/SDCCerr.h,
5725         * src/SDCCerr.c: added warning W_SIZEOF_VOID
5726
5727 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
5728
5729         * src/pic/device.c : When no max ram set validate full memory range.
5730         * src/pic/pcode.c,
5731         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
5732
5733 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
5734
5735         * device/lib/_gptrget.c,
5736         * device/lib/_gptrput.c: updated comment
5737         * device/lib/calloc.c,
5738         * device/lib/free.c,
5739         * device/lib/malloc.c,
5740         * device/lib/realloc.c: added LGPL, made them reentrant-safe
5741         * src/SDCCcse.c (cseBBlock),
5742         * src/SDCCicode.c (printOperand, geniCodeArray),
5743         * src/SDCCicode.h (struct operand): fixed bug 868103
5744         * support/regression/tests/bug-868103.c: added
5745         * src/SDCCast.c (searchLitOp),
5746         * src/SDCCcse.h (struct cseDef),
5747         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
5748         * src/SDCCicode.h (struct operand),
5749         * src/SDCCsymt.h (struct sym_link),
5750         * src/avr/gen.c (hasInc),
5751         * src/ds390/gen.c (hasInc),
5752         * src/hc08/gen.c (genPlusIncr, hasInc),
5753         * src/mcs51/gen.c (hasInc),
5754         * src/pic16/glue.c (pic16_printIvalChar),
5755         * src/pic16/ralloc.c (regWithIdx),
5756         * src/xa51/gen.c (hasInc) : removed warnings
5757         * src/SDCCast.c (createBlock): added comment ???
5758         * src/hc08/ralloc.c: updated comments
5759
5760 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5761
5762         * doc/sdccman.lyx: updated section on switch statements, added
5763         section about semaphore locking
5764         * doc/Makefile: added option -info for latex2html
5765         * device/lib/_gptrget.c,
5766         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
5767
5768 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5769
5770         * src/pic/device.h,
5771         * src/pic/device.c,
5772         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
5773          maxram is less than 0x100.
5774
5775 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
5776
5777         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
5778
5779 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5780
5781         * src/port.h,
5782         * src/mcs51/main.c,
5783         * src/ds390/main.c,
5784         * src/z80/main.c,
5785         * src/hc08/main.c,
5786         * src/pic/main.c,
5787         * src/pic16/main.c,
5788         * src/avr/main.c,
5789         * src/xa51/main.c
5790         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
5791         a jump table is the best form for a switch statement, including
5792         automatic insertion of missing cases to make the case range
5793         continuous. Developed in collaboration with Frieder Ferlemann.
5794
5795 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5796
5797         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
5798         accumulator result if it needs sign extension
5799
5800 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5801
5802         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
5803
5804 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5805
5806         * device/lib/gbz80/printf.c,
5807         * device/lib/z80/printf.c: removed define for NULL
5808
5809 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
5810
5811         * as/xa51/xa_link.c,
5812         * device/examples/ds390/ow390/ad26.c,
5813         * device/examples/ds390/ow390/cnt1d.c,
5814         * device/examples/ds390/ow390/counter.c,
5815         * device/examples/ds390/ow390/ds2480.h,
5816         * device/examples/ds390/ow390/ds2480ut.c,
5817         * device/examples/ds390/ow390/findtype.c,
5818         * device/examples/ds390/ow390/gethumd.c,
5819         * device/examples/ds390/ow390/owllu.c,
5820         * device/examples/ds390/ow390/ownetu.c,
5821         * device/examples/ds390/ow390/swt12.c,
5822         * device/examples/ds390/ow390/swtloop.c,
5823         * device/examples/ds390/ow390/temp.c,
5824         * device/examples/ds390/ow390/temp10.c,
5825         * device/examples/ds390/ow390/thermo21.c,
5826         * device/examples/ds390/ow390/tinilnk.c,
5827         * device/examples/ds390/ow390/tstfind.c,
5828         * device/examples/serialcomm/windows/serial.cpp,
5829         * device/examples/serialcomm/windows/test_serialcomm.cpp,
5830         * device/include/reg51.h: fixed line endings for cvs
5831
5832 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5833
5834         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
5835         packRegsForAccUse, packRegisters): new accumulator register
5836         packing algorithm
5837         * support/regression/ports/hc08/support.c (_putchar): suppress
5838         warning of unused variable
5839         * src/SDCCicode.c: added SWAP entry to codeTable
5840
5841 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
5842
5843         * device/lib/sprintf.c: forgot to add this file before previous commit
5844
5845 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
5846
5847         * src/pic16/gen.c (genPackBits): added operand right in function
5848         parameters, load result directly if p_type is POINTER (that is
5849         called by genNearPointerSet)
5850         * (genUnPackBits): added operand left in function parameters,
5851         * (genNearPointerGet, genNearPointerSet): prevent the loading of
5852         FSR0 if accessing bitfields,
5853
5854 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
5855
5856         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
5857           _print_format; updated printf, sprintf, vsprintf
5858         * device/include/asm/default/features.h: corrected comment/define
5859         * device/lib/Makefile.in: added sprintf.c
5860         * device/lib/libsdcc.lib: added sprintf module
5861         * device/lib/printf_large.c,
5862         * device/lib/vprintf.c,
5863         * device/lib/sprintf.c: totally refactored printf_large and vprintf
5864           into these 3 files
5865         * support/regression/Makefile: changed ALL_PORTS into a usefull default
5866         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
5867         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
5868           hc08 test
5869         * support/regression/tests/zeropad.c: define idata as data for hc08
5870
5871 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5872
5873         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
5874         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
5875         labels are referenced at least once (even if a reference is not found)
5876         * src/hc08/gen.c (emitcode): set isComment flag for comments
5877         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
5878         loads), rules 6a..6b (optimize jumps to return)
5879
5880 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5881
5882         * device/lib/acosf.c (acosf),
5883         * device/lib/asinf.c (asinf),
5884         * device/lib/atanf.c (atanf),
5885         * device/lib/ceilf.c (ceilf),
5886         * device/lib/cosf.c (cosf),
5887         * device/lib/coshf.c (coshf),
5888         * device/lib/cotf.c (cotf),
5889         * device/lib/fabsf.c (fabsf),
5890         * device/lib/floorf.c (floorf),
5891         * device/lib/log10f.c (log10f),
5892         * device/lib/logf.c (logf),
5893         * device/lib/sinf.c (sinf),
5894         * device/lib/sinhf.c (sinhf),
5895         * device/lib/sqrtf.c (sqrtf),
5896         * device/lib/tanf.c (tanf),
5897         * device/lib/tanhf.c (tanhf),
5898         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
5899         replaced all instances of "reentrant" in the library functions
5900         defined in math.h with this macro.
5901         * support/regression/tests/float_trans.c: reenabled test for hc08
5902
5903 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
5904
5905         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
5906         erroneously deleted
5907
5908 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5909
5910         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
5911         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
5912         multi-byte volatile operands are used
5913         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
5914         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
5915         initialization to area GSINIT0 so that it would always precede
5916         any static initializers in GSINIT
5917         * support/regression/tests/zeropad.c: fixed idata define for hc08
5918         * support/regression/tests/bug-927659.c,
5919         * support/regression/tests/float_trans.c: disabled tests for hc08
5920         pending missing library routines
5921         * .version: increased version number to 2.4.4 - hc08 port now passes
5922         regression tests
5923
5924
5925 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
5926
5927         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
5928         * Makefile.common.in,
5929         * as/Makefile,
5930         * as/hc08/Makefile.in,
5931         * as/mcs51/Makefile.in,
5932         * as/z80/Makefile.in,
5933         * debugger/mcs51/Makefile.in,
5934         * device/include/Makefile.in,
5935         * device/lib/Makefile.in,
5936         * doc/Makefile,
5937         * link/Makefile,
5938         * link/z80/Makefile.in,
5939         * packihx/Makefile.in,
5940         * sim/ucsim/main_in.mk,
5941         * sim/ucsim/avr.src/Makefile.in,
5942         * sim/ucsim/doc/Makefile.in,
5943         * sim/ucsim/gui.src/serio.src/Makefile.in,
5944         * sim/ucsim/hc08.src/Makefile.in,
5945         * sim/ucsim/s51.src/Makefile.in,
5946         * sim/ucsim/xa.src/Makefile.in,
5947         * sim/ucsim/z80.src/Makefile.in,
5948         * src/Makefile.in,
5949         * support/cpp2/Makefile.in,
5950         * support/librarian/Makefile,
5951         * support/makebin/Makefile: added DESTDIR to the install path proposed
5952         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
5953         * doc/sdccman.lyx: added DESTDIR documentation
5954
5955 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
5956
5957         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
5958         instruction for interrupt handlers, use fast returns when returning
5959         from high priority interrupts
5960
5961 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5962
5963         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
5964         code generation
5965         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
5966         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
5967         bugs, ported much of Bernhard's code from mcs51
5968         * src/mcs51/gen.c (genSend),
5969         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
5970         than one when calling a reentrant function
5971         * device/lib/_mullong.c: defined an alternate struct layout for big
5972         endian ports (hc08)
5973
5974 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5975
5976         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
5977         test
5978
5979 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5980
5981         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
5982         are sane and complete before asking the port its prefered parameter
5983         passing method (fixes bug #1017633)
5984         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
5985         and _ret3
5986
5987 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5988
5989         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
5990         problem in bitfields >= 8 bits.
5991
5992 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5993
5994         * src/SDCCsymt.c: undid changes that were not meant to be committed
5995
5996 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5997
5998         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
5999
6000 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
6001
6002         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
6003           copied and wrong bit got inverted
6004
6005 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6006
6007         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
6008         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
6009         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
6010         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
6011         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
6012         assignments to bitfields at known addresses
6013         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
6014         reads from bitfields at known addresses
6015         * src/hc08/ralloc.c (packRegisters),
6016         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
6017         genhc08Code): optimize pointer get values used as conditionals
6018         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
6019         and branch
6020
6021 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6022
6023         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
6024         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
6025         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
6026         as conditionals
6027
6028 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6029
6030         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
6031
6032 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6033
6034         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
6035         related problems
6036
6037 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
6038
6039         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
6040
6041 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6042
6043         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
6044         mcs51 port
6045
6046 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6047
6048         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
6049
6050 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6051
6052         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
6053         cases use more compact code.
6054
6055 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
6056
6057         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
6058
6059 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6060
6061         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
6062
6063 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6064
6065         * src/SDCCsymt.h,
6066         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
6067         parameter of changePointer() from symbol* to sym_link*
6068         * src/SDCCast.c (decorateType): call changePointer() for CAST op
6069         * src/SDCCsymt.c (compareType): void* type is castable to other
6070         pointers, but not necesarily an exact match.
6071         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
6072         is no longer blindly treated as an exact match.
6073         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
6074
6075 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
6076
6077         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
6078
6079 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
6080
6081         * src/pic/gen.c,
6082         * src/pic/pcode.c,
6083         * src/pic/ralloc.h,
6084         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
6085
6086 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
6087
6088         * src/pic/device.c,
6089         * src/pic/device.h,
6090         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
6091
6092 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6093
6094         * src/mcs51/gen.c (emitcode): fixed bug #992819
6095
6096 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
6097
6098         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
6099           there's no need to make it worse
6100
6101 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6102
6103         * src/mcs51/ralloc.c (deassignLR),
6104         * src/ds390/ralloc.c (deassignLR),
6105         * src/hc08/ralloc.c (deassignLR),
6106         * src/z80/ralloc.c (deassignLR),
6107         * src/pic/ralloc.c (deassignLR),
6108         * src/pic16/ralloc.c (deassignLR),
6109         * src/avr/ralloc.c (deassignLR),
6110         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
6111         rlivePoint): fixed another part of bug #971834
6112
6113 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6114
6115         * src/z80/main.c: enabled "critical" keyword
6116         * src/z80/mappings.i,
6117         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
6118         functions (fixes bug #979646)
6119         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
6120
6121 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6122
6123         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
6124           such as c:\mydir.
6125
6126 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
6127
6128         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
6129           doesn't disable too much optimizations
6130
6131 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
6132
6133         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
6134
6135 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
6136
6137         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
6138
6139 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
6140
6141         * src/pic/gen.c tidied up tabs
6142         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
6143         * src/pic/main.c tidied up tabs
6144         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
6145         * src/pic/pcoderegs.c tidied up tabs
6146         * src/pic/ralloc.c tidied up tabs
6147
6148 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
6149
6150         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
6151         to S_FIXED for pic16 port and when symbol is not in level 0,
6152         allocate for S_REGISTER storage class and pic16 port, too,
6153         * src/pic16/device.h: prototype for checkSym,
6154         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
6155         * (pic16_assignConfigWordValue): test the value and the mask to
6156         validate that the value is suitable for the configuration word,
6157         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
6158         collect extern declared symbols, don't emit symbol twice, check
6159         first if symbol is in publics set first,
6160         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
6161         * added command line '--fstack' which enables an experimental
6162         feature for stack access, too buggy to be used yet...
6163         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
6164         * (pic16_allocDirReg): when register has storage class S_REGISTER
6165         allocate in pic16_dynAccessRegs,
6166         * device/include/pic16/pic18f????.h: modified configuration word
6167         naming convention, words started as CONFIG0H but should be CONFIG1H
6168
6169 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6170
6171         * device/include/mcs51reg.h: fixed bug 970993
6172
6173 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
6174
6175         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
6176         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
6177         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
6178         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
6179         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
6180         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
6181           error/warning numbers,
6182           added function setWarningDisabled()
6183         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
6184         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
6185           _memcmp.c _memmove.c calloc.c realloc.c free.c
6186         * support/regression/tests/malloc.c: added tests for new functionality
6187         * support/regression/tests/zeropad.c: added tests for truncated initializers
6188           and initialized char arrays starting with '\x0'
6189         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
6190
6191 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
6192
6193         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
6194
6195 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6196
6197         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
6198         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
6199         peephole 177.e. Thanks to anonymous
6200
6201 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
6202
6203         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
6204         function isn't used in the source but referenced as a
6205         variable initializer then declare it as extern in .asm file
6206
6207 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
6208
6209         * .version: increased version number to 2.4.3
6210
6211         Adding version extension according to ChangeLog CVS revision
6212         * src/Makefile.in (target all): added dependency 'version.h'
6213         * (rule version.h): added rule to create version.h from ChangeLog,
6214         * (rule dep): added dependency version.h,
6215         * src/version.awk: AWK script to create version.h
6216         * src/SDCCdwarf2.c (dwWriteModule),
6217         * src/SDCCglue.c (initialComments),
6218         * src/SDCCmain.c (printVersionInfo): modified to write after
6219         version string the version extension number,
6220         * src/SDCCutil.c: included "version.h"
6221         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
6222         number,
6223         * src/SDCCutil.h: added prototype for getBuildNumber
6224
6225         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
6226         includeDirsSet, too,
6227         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
6228         const char [] is found in function prototype...
6229
6230         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
6231         moving to WREG with source is already in WREG,
6232         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
6233         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
6234         * (aopForSym): stack'ed symbols are partially supported, added
6235         if-clause to support symbols in FARSPACE,
6236         * (sameRegs): added test for AOP_ACC to see if registers are same,
6237         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
6238         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
6239         * (pic16_popRegFromString): will not allocate a new register if it
6240         doesn't find one by name, bug may have introduced...
6241         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
6242         * (genIpush): revived to use pic16 port's stack,
6243         * (genAddrOf): added incomplete case for stack'ed operand,
6244         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
6245         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
6246         can handle multibyte operands,
6247         * src/pic16/glue.c (pic16_printIval*): some debug info added,
6248         * (pic16initialComments): added message for MPLAB compatibility
6249         mode enabled,
6250         * src/pic16/main.h: prototype for pic16_mplab_comp,
6251         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
6252         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
6253         * (_pic16_linkEdit): NEW, handles link stage, transferred here
6254         because of increased complexity of procedure,
6255         * (_process_pragma): stack pragma changed to format 'stack pos len',
6256         emit symbol '_stack_end' to conform with gplink,
6257         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
6258         to search for register,
6259         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
6260         PO_GPR_REGISTER,
6261         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
6262         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
6263         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6264         case for PO_GPR_REGISTER,
6265         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
6266         dies, the new era is ahead !...
6267         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
6268         pic16_dynInternalRegs,
6269         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
6270         * (pic16_allocDirReg): minor optimizations and bug fixes,
6271         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
6272
6273         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
6274         load stack and frame pointer with address of 'stack_end' symbol
6275
6276 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
6277
6278         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
6279         without source code but only variable initializers
6280
6281 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
6282
6283         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
6284         external are not declared as extern to reduce overhead while linking
6285
6286 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
6287
6288         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
6289
6290 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
6291
6292         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
6293           Yee Keat for the patch
6294         * src/SDCCast.c (decorateType): fixed bug #979599
6295         * src/ds390/gen.h: removed local fReturnSizeDS390
6296         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
6297         * src/ds390/gen.c (genAnd, genOr, genXor),
6298         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
6299
6300 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
6301
6302         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
6303         add relFilesSet to $3, manipulate $2 to handle linking of object
6304         files without source files in command line,
6305         * device/include/pic16 (all headers): added ID location macros,
6306         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
6307         entries for ID location bytes,
6308         * (pic16_assignIdByteValue): NEW,
6309         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
6310         added field dumpcalltree to pic16_options_t,
6311         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
6312         is used instead of pic16_Gstack_base_addr, check if (ifx) before
6313         emitting rFalseIfx label after check_carry label,
6314         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
6315         pic16_emitDIRegs), NEW
6316         * (pic16glue): dump .calltree file when option --calltree found,
6317         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
6318         * (_pic16_genAssemblerPreamble): emit ID locations after
6319         configuration registers,
6320         * (pic16_linkCmd): modifications of the link command,
6321         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
6322         * (pic16_pCodeInitRegisters): don't init stack registers,
6323         * (pic16_findPrevInstruction): fixed bug,
6324         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
6325         bug with immediate registers,
6326         * (buildCallTree): traces stack push and pop,
6327         * (pct2): dump also stack usage for each function,
6328         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
6329         * (pic16_allocDirReg): various modifications,
6330         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
6331         fixed to 1,
6332
6333 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
6334
6335         * src/pic16/pcode.c: removed buggy double colon
6336
6337 2004-07-01 Borut Razem <borut.razem AT siol.net>
6338
6339         * support/scripts/sdcc.nsi: added include/pic16 to setup
6340
6341 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
6342
6343         * device/lib/Makefile.in: fixed bug in target objects-pic16,
6344         * device/lib/pic16/Makefile: prefixed with dash (-) command under
6345         target 'clean',
6346         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
6347         specific command line arguments. Also added sample lkr script
6348         for placing a variable at a specific memory bank.
6349         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
6350         at a specific memory bank,
6351         * (pic16_dump_isection): fixed bug which caused string literals to
6352         be omitted when dumping idata section,
6353         * (pic16_groupRegistersInSection): added code to handle registers
6354         in specific memory banks,
6355         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
6356         public, all references are renamed too,
6357         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
6358         AOP_DPTR2,
6359         * (pic16_storeForReturn): added case to handle when dest is WREG,
6360         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
6361         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
6362         pic16_rel_udata, check to see if that register is marked as being
6363         a member of a specific memory bank,
6364         * (pic16_printIvalCharPtr): added code to add string literals either
6365         to code or the idata sections,
6366         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
6367         also accept the 'udata' pragma,
6368         * src/pic16/main.h: new structure types sectName and sectSym
6369         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
6370         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
6371         * (pic16_findPrevInstruction): fixed, it returned nothing,
6372         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
6373         instruction combinations,
6374         * (pic16_FixRegisterBanking): heavily reorganised,
6375         * (pic16_AnalyzeBanking): if generating banksel directives is
6376         disabled, then don't call FixRegisterBanking at all,
6377         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
6378         completely removed,
6379         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
6380
6381 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
6382
6383         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
6384         Phuah Yee Keat <yk.phuah AT nestac.com>
6385
6386 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
6387
6388         * src/pic16/glue.c (pic16createInterruptVect): function now emits
6389         correctly the IVT even if it is relocated to some other location
6390
6391 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
6392
6393         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
6394         * device/include/pic16/pic18f2220.h: NEW,
6395         * device/lib/pic16/libdev/pic18f2220.c: NEW,
6396         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
6397         * src/pic16/device.c (struct Pics16): added info for 18f2220,
6398         * src/pic16/device.h (struct pic16_options): added ivt_loc and
6399         nodefaultlibs, ivt_loc is the location of the interrupt vector
6400         table, and nodefaultlibs signs that default libraries should not be
6401         linked in link stage,
6402         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
6403         according to --ivt-loc argument,
6404         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
6405         when pragma stack is found,
6406
6407 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6408
6409         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
6410         256 (range check), 257 (do while), 258.a-f (bit banging
6411         f.e. on 3-wire SPI bus)
6412
6413 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6414
6415         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
6416         variables used exclusively within a loop
6417
6418 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
6419
6420         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
6421
6422 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6423
6424         * src/SDCClrange.c (computeClash): fixed bug #971834
6425
6426 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6427
6428         * src/mcs51/gen.c (genCmp): fixed bug #975903
6429         * src/hc08/gen.c (operandsEqu),
6430         * src/ds390/gen.c (operandsEqu),
6431         * src/z80/gen.c (operandsEqu),
6432         * src/pic/gen.c (operandsEqu),
6433         * src/pic16/gen.c (operandsEqu),
6434         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
6435         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
6436
6437 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6438
6439         * src/SDCCcse.c (cseBBlock): fixed bug #966963
6440
6441 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
6442
6443         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
6444         default case in switch statement,
6445         * glue.c (pic16_initPointer): expr is initialised via decoarteType
6446         to eliminate problem with initialisation of pointers, but problem
6447         still exists,
6448         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
6449         * (emitStaticSegment): removed various lines emitting debug info,
6450         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
6451         added processor registers for utilizing EEPROM,
6452         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
6453         configurable and set 8
6454
6455 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
6456
6457         * .version: increased version number to 2.4.2,
6458
6459         Cumulative patch for pic16 port
6460         * src/pic16/device.c: changed scheme to dump initial values for
6461         variables in idata segment, all print_idata* functions were removed,
6462         now the pic16_printIval* will be called,
6463         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
6464         * _pic16_printPointerType, pic16_printPointerType,
6465         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
6466         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
6467         NEW, similar to the respective functions in SDCCglue.c,
6468         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
6469         way, emitting hex bytes,
6470         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
6471
6472 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6473
6474         * src/avr/ralloc.c (serialRegAssign),
6475         * src/xa51/ralloc.c (serialRegAssign),
6476         * src/pic/ralloc.c (serialRegAssign),
6477         * src/pic16/ralloc.c (serialRegAssign),
6478         * src/hc08/ralloc.c (serialRegAssign),
6479         * src/z80/ralloc.c (serialRegAssign),
6480         * src/ds390/ralloc.c (serialRegAssign),
6481         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
6482
6483 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6484
6485         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
6486         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
6487
6488 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
6489
6490         Cumulative patch for pic16 port:
6491         * src/pic16/device.h (typedef PIC16_device) modified fields for
6492         defining microcontrollers,
6493         * src/pic16/device.c: added new info for all devices in Pics16 array,
6494         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
6495         to be optimised out by the pCode optimiser,
6496         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
6497         specially, bug reported by G.M. Gallant,
6498         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
6499         as force'd so that cannot be optimised out by pCode optimiser,
6500         * src/pic16/pcode.c,
6501         * src/pic16/pcodepeeph.c,
6502         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
6503         they are disabled by default, but can be enabled explicit with
6504         command argument --denable-peeps, for testing,
6505         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
6506         --pomit-ivt in COMPILE_FLAGS
6507
6508 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6509
6510         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
6511           compilation on MSVC
6512
6513 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6514
6515         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
6516
6517 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6518
6519         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
6520         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
6521
6522 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
6523
6524         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
6525         would only assign 0x300001 register.
6526
6527 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
6528
6529         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
6530         in COMPILE_FLAGS. Thanks to G. Gallant for report.
6531
6532 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6533
6534         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
6535         for ds80c400
6536         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
6537         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
6538         added peephole 254 (left shift), 255 (jump table)
6539
6540 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
6541
6542         * device/lib/Makefile.in: removed comment line with model-pic16,
6543         * (target port-specific-objects-pic16): the libraries and objects
6544         are copied to the build directory form the device/lib/pic16/bin
6545         directory
6546
6547         Cumulative patch concerning pic16 port:
6548         * library directory has been re-organized,
6549         * added support for PIC18F1220,
6550         * added headers and library sources for chips 18f1220,18f6520,
6551         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
6552
6553         * configuration registers setting has changed, now each supported
6554         device has a complete description of the registers it uses,
6555         * all initialisations are moved to idata sections, these section
6556         can be absolute or relocatable,
6557         * fixed initialisation of codespace variables,
6558         * fixed warning about PCLATU and gpsim,
6559         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
6560         * (genAssign): use table reads when assigning from variables in codespace,
6561         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
6562         char/int variables placed in codespace,
6563         * (pic16_emitConfigRegs): NEW, emits a list with configuration
6564         registers set in .asm file, no need for --pomit-config-words anymore,
6565         * (pic16glue): some 8051 legacy segments are commented out
6566         (to be removed completely),
6567         * added support for alternative assembler and linker with --asm=
6568         and --link= command line arguments,
6569         * peepholes are disabled automatically in the port, no need to
6570         specify on command line,
6571         * port supports natively char/int/long multiplication, but converts
6572         all divisions to support functions,
6573         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
6574         to the file set in variable $2,
6575         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
6576         strings in ASCII format and not in hex,
6577         * ralloc.c (serialRegAssign): added a triplet of conditional calls
6578         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
6579         allocate proper register if iCodes aren't temporary,
6580
6581 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
6582
6583         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
6584
6585 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
6586
6587         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
6588         is commented out
6589
6590 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6591
6592         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
6593         computed address is reused
6594         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
6595         multi-byte bitfields
6596
6597 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6598
6599         * src/z80/gen.c: (genArrayInit): must check for pointers too
6600
6601 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
6602
6603         * support/regression/tests/zeropad.c: never meant to commit the
6604           nestedstruct test: removed, added check for GCC version
6605
6606 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
6607
6608         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
6609         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
6610         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
6611           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
6612           bugs 928906 and 954082 half-empty initializers
6613         * src/SDCCsymt.h,
6614         * src/SDCCsymt.c (getAllocSize): added for above fix
6615         * src/z80/gen.c (genArrayInit): fixed bug 741044
6616         * support/regression/tests/zeropad.c: added tests
6617
6618 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
6619
6620         * src/pic16/device.c (pic16_dump_section): corrected bug which
6621         caused some symbols of the libraries to be misplaced
6622
6623 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6624
6625         * src/pic16/glue.c,
6626         * src/pic16/ralloc.h,
6627         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
6628         to fix conflict with pic port
6629
6630 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
6631
6632         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
6633         externs configuration variables,
6634         * src/pic16/ralloc.h,
6635         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
6636         prototype in header, commented out some debug messages
6637
6638 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
6639
6640         * src/pic16/glue.c,
6641         * src/pic16/main.c,
6642         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
6643         for gpasm COFF object generation. Thanks to D. Hawkins for
6644         his patch info
6645
6646 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6647
6648         * src/ds390/main.c,
6649         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
6650         Brock for spotting this)
6651         * src/ds390/gen.c (genEndFunction),
6652         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
6653         interrupt handler and critical. Disable push/pop optimizations when
6654         peephole optimizations disabled.
6655
6656 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6657
6658         Updated pic16 library sources and headers.
6659         * device/lib/pic16/pic18f*/ ,
6660         * device/include/pic16/*.h: modified to handle structured SFR
6661         definitions
6662
6663 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
6664
6665         * src/port.h (PORT structure): added hook initPaths, now each
6666         port can declare its own default search paths,
6667         which can been seen with the --print-search-dirs option,
6668         see pic16 port for example,
6669         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
6670         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
6671         * (doPrintSearchDirs): NEW, replaces in a central manner the
6672         printing of search dirs which was split in set*Paths functions,
6673         * (main): added call to port->initPaths and doPrintSearchDirs,
6674         * src/avr/main.c,
6675         * src/ds390/main.c,
6676         * src/hc08/main.c,
6677         * src/izt/i186.c,
6678         * src/izt/tlcs900h.c,
6679         * src/mcs51/main.c,
6680         * src/pic/main.c,
6681         * src/pic16/main.c: modified port structures to reflect addition of
6682         initPaths hook,
6683
6684         * src/pic16/device.c (regCompare): registers are finally sorted by name,
6685         * (pic16_dump_section): for registers in same address reserve memory once,
6686         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
6687         to no_banksel,
6688         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
6689         result is greater in size than right or left,
6690         * (pic16_genUMult8X8_8): there are some cases where the result can
6691         be 16 bits size, so handle these,
6692         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
6693         * (pic16_outBitC): modified to emit pcodes,
6694         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
6695         or not,
6696         * (genDivOneByte): implemented algorithm to divide 8-bits,
6697         * (genCmp): uncommented goto, but issues still exist,
6698         * (genAnd): fixed a bug with variables >8bits,
6699         * (genPackBits): optimization added that uses BCF/BSF to change a
6700         single bit,
6701         * (genAssign): fixed bug when assigning floating point literals,
6702         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
6703         __sdcc_gsinit_startup label,
6704         * src/pic16/main.c (_pic16_init): removed search directory
6705         initialisations,
6706         * (_pic16_initPaths): NEW, used to initialise search directories,
6707         * (_hasNativeMulFor): support functions for all except char/int
6708         multiplication, and char division,
6709         * (PIC16_port struct): modified entry for native mul support,
6710         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
6711         no_banksel option,
6712         * (buildCallTree): call to register_usage is ifdef'ed out,
6713
6714 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6715
6716         * device/include/string.h: applied Stas Sergeev's patch to make this
6717         header file compatible with the preprocessor -Wundef option
6718         * src/SDCCmain.c (main): abort compilation if preprocessor reports
6719         failure (fixes bug #941458)
6720
6721 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6722
6723         * src/SDCCopt.c (killDeadCode): fixed bug #907733
6724         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
6725         that the variable, not the function, should be static
6726         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
6727         to be consistent with non-literal case
6728
6729 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6730
6731         * src/SDCCast.c (isConformingBody): fixed bug #949967
6732         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
6733         convilong): fixed bug #952086
6734
6735 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6736
6737         * src/SDCCmem.c (allocVariables): fixed bug #955321
6738
6739 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6740
6741         * src/hc08/main.c (_hc08_genAssemblerEnd),
6742         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
6743         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
6744         completely eliminated the use of a temporary file
6745         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
6746         when more than one file linked
6747         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
6748
6749 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6750
6751         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
6752         which fixes bug #543481
6753         * support/regression/tests/bug-751703.c: fixed comments left from a
6754         cut and paste error
6755         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
6756         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
6757         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
6758         scopes
6759         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
6760         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
6761         are now changed to underscores in moduleName
6762
6763 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6764
6765         * as/mcs51/lkmem.c: better fix for bug #954173
6766
6767 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
6768         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6769
6770         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
6771         * device/include/c8051f000.h,
6772         * device/include/c8051f120.h,
6773         * device/include/c8051f300.h,
6774         * device/include/c8051f310.h,
6775         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
6776         PWM16) and detab'ed
6777
6778 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6779
6780         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
6781         and mailing lists, doc'ed --no-peep-comments, removed reference
6782         to knoppix (newest version has no LyX/LaTeX), other minor changes
6783         * src/SDCCglue.c (glue): save 2 bytes stack space with
6784         option --main-return. The ljmp could probably be avoided too
6785
6786 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6787
6788         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
6789
6790 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6791
6792         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
6793         * src/SDCCopt.c (isLocalWithoutDef),
6794         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
6795         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
6796         (credit to Maarten Brock for patch #949363, on which this is based)
6797         * support/regression/tests/bug-751703.c: some test cases of extern used
6798         within inner scopes.
6799
6800 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6801
6802         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
6803         SPEC_STRUCT
6804         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
6805         struct definitions
6806         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
6807         dwWriteLabel): fix to create valid debugger symbols even when
6808         the module name has non-alphanumeric symbols in it
6809         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
6810         when a variable's allocation has been optimized away
6811
6812
6813 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6814
6815         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
6816         * src/hc08/main.c,
6817         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
6818         * src/mcs51/main.c,
6819         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
6820         * src/ds390/main.c,
6821         * src/z80/gen.c (z80_emitDebuggerSymbol),
6822         * src/z80/main.c,
6823         * src/pic/gen.c (pic14_emitDebuggerSymbol),
6824         * src/pic/main.c,
6825         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
6826         * src/pic16/main.c,
6827         * src/avr/gen.c (avr_emitDebuggerSymbol),
6828         * src/avr/main.c,
6829         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
6830         * src/xa51/main.c,
6831         * src/SDCCdebug.c (emitDebuggerSymbol),
6832         * src/SDCCdebug.h,
6833         * src/port.h: added a debugger struct to the port struct. Added a
6834         callback for defining debugger symbols
6835
6836         * src/SDCCast.c (createLabel),
6837         * src/SDCC.y (labeled_statement): mark all compiler generated labels
6838         with isitmp = 1
6839         * src/SDCCicode.h,
6840         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
6841         iCode back to the ast for the function
6842
6843         * src/hc08/ralloc.c (hc08_assignRegisters),
6844         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
6845         unneeded fields from the regs struct.
6846         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
6847         pushReg() & pullReg() functions instead of emitcode()
6848
6849         * src/hc08/gen.c (genLabel, genhc08Code),
6850         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
6851
6852         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
6853         debugger hooks
6854
6855         * src/hc08/gen.c (genEndFunction, genhc08Code),
6856         * src/hc08/gen.h,
6857         * src/mcs51/gen.c (genEndFunction, gen51Code),
6858         * src/mcs51/gen.h,
6859         * src/ds390/gen.c (genEndFunction, gen390Code),
6860         * src/ds390/gen.h,
6861         * src/z80/gen.c (genEndFunction, genZ80Code),
6862         * src/z80/gen.h,
6863         * src/z80/z80.h,
6864         * src/pic/gen.c (genEndFunction, genpic14Code),
6865         * src/pic/gen.h,
6866         * src/pic16/gen.c (genEndFunction, genpic16Code),
6867         * src/pic16/gen.h,
6868         * src/avr/gen.c (genEndFunction, genAVRCode),
6869         * src/avr/gen.h,
6870         * src/xa51/gen.c (genEndFunction, genXA51Code),
6871         * src/xa51/gen.h,
6872         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
6873         specific code to cdbFile.c and out of the backend code generators
6874
6875         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
6876         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
6877         starting address is now 0
6878
6879         * as/hc08/asm.h,
6880         * as/hc08/m08pst.c,
6881         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
6882         assembler directive for DWARF support
6883         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
6884
6885         * src/src.dsp,
6886         * src/Makefile.in,
6887         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
6888
6889 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6890
6891         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
6892         and inappropriate peephole optimization in jump tables
6893
6894 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6895
6896         * as/hc08/m08pst.c,
6897         * src/SDCCglue.c: sdccopt works for the hc08 port now
6898
6899 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
6900
6901         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
6902
6903 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6904
6905         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
6906
6907 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6908
6909         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
6910         rules
6911         * src/SDCCmain.c,
6912         * src/SDCCglobl.h,
6913         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
6914         comments from the peephole optimizer replacement rules
6915         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
6916         symbols
6917         * src/SDCCcse.c (updateSpillLocation),
6918         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
6919         equivalents
6920         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
6921         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
6922         objects far pointers
6923
6924 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6925
6926         * src/SDCCsymt.h: a missing part of my last change
6927         * src/pic/ralloc.c (regTypeNum),
6928         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
6929
6930 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6931
6932         * src/SDCCicode.h,
6933         * src/SDCCicode.c (aggrToPtrDclType),
6934         * src/SDCCptropt.h,
6935         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
6936         ptrPseudoSymConvert),
6937         * src/pic/ralloc.c (regTypeNum),
6938         * src/pic16/ralloc.c (regTypeNum),
6939         * src/hc08/ralloc.c (regTypeNum),
6940         * src/ds390/ralloc.c (regTypeNum),
6941         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
6942         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
6943
6944 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6945
6946         * link/z80/lkmain.c (afile),
6947         * as/hc08/lkmain.c (afile),
6948         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
6949         prevent a pointer problem when a filename has no directory and
6950         no extension specified.
6951
6952 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6953
6954         * link/z80/lkmain.c (afile): allow periods in directory names
6955         * link/z80/lkmain.c (afile),
6956         * as/mcs51/lkmain.c (afile),
6957         * as/hc08/lkmain.c (afile): allow linker script file to have an
6958         extension other than ".lnk"
6959         * link/z80/lklex.c (getfid),
6960         * link/z80/lkmain.c (parse),
6961         * as/mcs51/lklex.c (getfid),
6962         * as/mcs51/lkmain.c (parse),
6963         * as/hc08/lklex.c (getfid),
6964         * as/hc08/lkmain.c (parse): Support comments in the linker script
6965         file on lines by themselves and after filenames
6966
6967 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6968
6969         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
6970
6971 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6972
6973         * src/z80/peeph-z80.def: removed some peephole rules that don't
6974         work with multibyte arithmetic (fixed bug #937126)
6975         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
6976         to registers and not global variables
6977         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
6978         geniCodePreInc, geniCodePostDec, geniCodePreDec,
6979         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
6980         checking for assignments not internally generated (fixed bug #931895)
6981         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
6982         structure member (fixed bug #930072)
6983
6984 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6985
6986         * src/SDCCmain.c (linkEdit),
6987         * src/hc08/main.c (_hc08_parseOptions),
6988         * as/hc08/Makefile.in,
6989         * as/hc08/aslink.h,
6990         * as/hc08/asm.h,
6991         * as/hc08/m08pst.c,
6992         * as/hc08/lkrloc.c (relr, rele),
6993         * as/hc08/lkarea.c (lnkarea)
6994         * as/hc08/lkmain.c (afile, parse),
6995         * as/hc08/lkelf.c: support for ELF output
6996         * as/hc08/lks19.c (s19),
6997         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
6998
6999 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7000
7001         * as/mcs51/lkihx.c: Fixed bug #899105.
7002
7003 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7004
7005         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
7006         .dsp files from Unix to DOS.
7007
7008 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7009
7010         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
7011         function pointers; we have been compliant for several months now.
7012         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
7013         change that was accidently commented out
7014         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
7015         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
7016         bug #922319
7017
7018 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7019
7020         * src/hc08/gen.c: output of all of the internal debugging information
7021         is now controlled by the D() macro; it is disabled by default
7022
7023 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7024
7025         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
7026         harder to keep the same registers during a CAST iCode
7027         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
7028         long via int can be done in a single cast, if the signedness is
7029         correct.
7030         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
7031         putchar() in tinibios.c in ds390's library
7032
7033 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
7034
7035         * src/SDCCast.c (decorateType): fixed bug #898889,
7036         cast result of a literal complement too
7037         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
7038         fixed check for bitfields
7039
7040 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
7041
7042         * src/SDCCicode.c (geniCodeLogic): made it static,
7043         (geniCodeLogicAndOr): added in order to fix bug #905492,
7044         (ast2iCode): fixed bug #905492
7045         * support/regression/tests/bug-905492.c: added
7046         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
7047         (processParms): fixed bug #927659: don't copy parms, this will clear
7048         decorated flag
7049         * support/regression/tests/bug-927659.c: added
7050
7051 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
7052
7053         * src/SDCCast.c (addCast): don't cast float to char
7054         * device/lib/libsdcc.lib: added _memmove
7055
7056 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
7057
7058         * device/lib/large/Makefile: fixed parallel execution by
7059         replacing `make` by `$(MAKE)`
7060
7061 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7062
7063         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
7064         offsets (fixes bug #923936)
7065
7066 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
7067
7068         * device/lib/small/Makefile: fixed parallel execution by
7069         replacing `make` by `$(MAKE)`
7070
7071 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
7072
7073         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
7074
7075 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
7076
7077         * src/pic/gen.c (genCpl): multi-byte complements were not working.
7078         * src/regression/Makefile: Regression test was not running.
7079
7080 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
7081
7082         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
7083         complement if possible
7084         * src/SDCCval.c (valComplement),
7085         * src/SDCCicode.c (operandOperation): fixed complement of literal
7086         * support/regression/tests/onebyte.c (testComplement): added
7087
7088 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
7089
7090         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
7091         return an optimized tree; actually replace actParm with the new tree
7092         * src/SDCCast.h: added some parantheses to remove side effects
7093         * support/regression/tests/bug-920866.c
7094
7095 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
7096         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
7097         Bit operands were not being handled properly in the pic14 port.
7098         (now src/regression/add.c passes again).
7099
7100 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7101
7102         * src/SDCC.y (labeled_statement): case and default no longer require
7103         a following statement (RFE #893037)
7104
7105 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7106
7107         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
7108         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
7109         disabled (fixes bug #916294)
7110         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
7111         "mov a,acc"; patch provided by Lenny Story
7112         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
7113
7114 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7115
7116         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
7117         functions
7118         * src/ds390/gen.c (genFunction, genEndFunction),
7119         * src/ds390/ralloc.c (ds390_assignRegisters),
7120         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
7121         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
7122         pushed if there are parameters passed on the stack. Also, a cleaner
7123         way to decide if r0/r1 should be pushed/popped. (Together they fix
7124         bug #918693)
7125
7126 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7127
7128         * doc/sdccman.lyx,
7129         * device/lib/mcs51/crtpagesfr.asm,
7130         * device/lib/mcs51/crtxinit.asm,
7131         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
7132         to avoid confusion with Si Lab's SFRPAGE register.
7133
7134 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7135
7136         * src/SDCCglue.c (emitMaps): allow public sfr variables
7137         * src/SDCCglue.c (initialComments): include compiler build date
7138         with compiler version and put the timestamp of the generated
7139         assembly file on a serperate line to be less confusing.
7140         * src/port.h: added genInitStartup hook
7141         * src/avr/main.c,
7142         * src/ds390/main.c,
7143         * src/hc08/main.c,
7144         * src/pic/main.c,
7145         * src/pic16/main.c,
7146         * src/xa51/main.c,
7147         * src/z80/main.c: genInitStartup initialize as NULL (default to
7148         historical behaviour)
7149         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
7150         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
7151         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
7152         library instead of hard coding it into the compiler.
7153         * support/regression/ports/mcs51-stack-auto/spec.mk,
7154         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
7155         * device/lib/mcs51/Makefile,
7156         * device/lib/small/Makefile,
7157         * device/lib/large/Makefile,
7158         * device/lib/mcs51/crtpagesfr.asm,
7159         * device/lib/mcs51/crtstart.asm,
7160         * device/lib/mcs51/crtxclear.asm,
7161         * device/lib/mcs51/crtxinit.asm,
7162         * device/lib/mcs51/crtclear.asm,
7163         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
7164         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
7165         and into user configurable files.
7166         * device/lib/clean.mk: clean mcs51 directory too
7167         * support/regression/tests/longlit.c: added static to T1 declaration
7168         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
7169         accesses in the initialization code
7170
7171 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7172
7173         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
7174         OSCTRIMVAL as noted in bug #916008
7175
7176 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7177
7178         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
7179         in loops with multiple exits (reported as incorrect registers
7180         used by Martin Helmling in Sdcc-user list)
7181
7182 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7183
7184         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
7185         made ds390 register extensions look less like error messages
7186
7187 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7188
7189         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
7190         reported by Adam Wozniak in Sdcc-user list
7191
7192 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
7193
7194         * src/SDCCast.c (decorateType): fixed with bug and promotion in
7195         arithmetic optimizations, added debug output
7196
7197 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
7198
7199         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
7200         * sdcc.spec: updated and split sdcc into 3 rpms
7201         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
7202         needed for literals of LEFT_OP and '+'
7203         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
7204         introduced RESULT_TYPE_NOPROM
7205         (geniCodeMultiply): fixed logic for decision if mul is optimized to
7206         left shift
7207         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
7208         limited promotion to int only for '*'
7209         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
7210
7211 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
7212
7213         * src/pic16/gen.c (genSkip),
7214         (genc16bit2lit), (gencjneshort): commented out
7215         (is_LitOp): new helper function, checks operand type
7216         (genCmpEq): rewritten
7217
7218 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
7219
7220         * support/regression/tests/bug-908454.c: added
7221
7222 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
7223
7224         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
7225         * src/SDCCicode.c (usualBinaryConversions): op needs int type
7226         (geniCodeCast): cosmetic, don't preserve bit storage class
7227         (geniCodeLeftShift): added promotion
7228         (geniCodeLogic): fixed regression
7229         * src/SDCCsymt.c (computeTypeOr): accept bits too
7230         (compareType): 2nd part of fix for bug #908454, needed for bitfields
7231
7232 2004-03-07  Borut Razem <borut.razem AT siol.net>
7233
7234         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
7235
7236 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
7237
7238         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
7239         version of pic16_genPackRegisters which does not check if ic is a
7240         CAST operator,
7241         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
7242         function cause string1.c regression test fails
7243
7244 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
7245
7246         * sim/ucsim/configure.in,
7247         * sim/ucsim/configure,
7248         * sim/ucsim/doc/Makefile.in: use docdir
7249         * src/SDCC.y: fixed sbit atrributes
7250         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
7251         * src/SDCCast.c (decorateType): |^& need special promotion handling
7252         * src/SDCCast.h,
7253         * src/SDCCsymt.h: moved definition of RESULT_TYPE
7254         * src/SDCCsymt.h (computeType),
7255         * src/SDCCicode.c: computeType() needs op
7256         * src/SDCCsymt.c (checkTypeSanity),
7257         * doc/sddman.lyx: "plain" bitfields are unsigned
7258         * src/SDCCsymt.c (computeTypeOr): added
7259         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
7260         |^& ops
7261         * src/SDCCval.c (val*): computeType() needs op
7262         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
7263         * support/regression/tests/onebyte.c: added tests for |^&
7264
7265 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
7266
7267         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
7268         for writing icode into asm output.
7269
7270 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
7271
7272         * src/pic16/device.c: added some debug lines enabled
7273         with macro DEBUG_CHECK,
7274         * src/pic16/genarith.c: more debug in genPlus,
7275         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
7276         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
7277         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
7278         * (aopForSym): onStack symbols are re-placed in data memspace,
7279         and onStack flag is cleared,
7280         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
7281         copy temporary pcodeop,
7282         * (genPcall): added warning for not updating PCLATU,
7283         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
7284         always true for pic16 port,
7285         * (genMultOneWord): NEW, supports integer multiplication,
7286         * (genMult): modified to call genMultOneWord,
7287         * (ifxForOp): added warning when return NULL,
7288         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
7289         flag is set before call to operandFromSymbol for implicit
7290         added structures,
7291         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
7292         options.intlong_rent are set by default,
7293         * (_hasNativeMulFor): modified to allow port generation of integer
7294         multiplication,
7295         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
7296         set regtype to REG_SFR for all registers, restricting seting the
7297         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
7298
7299 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7300
7301         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
7302         more than 500 times in the regression tests
7303
7304 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7305
7306         * support/Util/SDCCerr.h,
7307         * support/Util/SDCCerr.c,
7308         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7309         enumerator_list),
7310         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
7311         for symbol conflicts.
7312         * support/valdiags/tests/enum.c,
7313         * support/valdiags/tests/tentdecl.c,
7314         * support/valdiags/tests/struct.c: expect possible error messages
7315         referring to original symbol definitions.
7316         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
7317         * src/SDCCsymt.h,
7318         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
7319
7320 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
7321
7322         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
7323
7324 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
7325
7326         * src/pic16/ralloc.c (newReg): fixed bug #908929
7327
7328 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7329
7330         * src/ds390/gen.c: added missing #include "main.h"
7331
7332 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
7333
7334         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
7335         checking if symbol is already in set,
7336         * src/pic16/device.h: prototype for checkAddSym,
7337         * src/pic16/gen.c: (_G): added entry interruptvector,
7338         * (assignResultValue): removed some commented out lines,
7339         * (genFunction): check for ISR via sym->type, absolute section for
7340         interrupt code is created via a new pBlock, the goto instruction is
7341         placed now correctly at the interrupt vector position, changed all
7342         references from ivec to _G.interruptvector,
7343         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
7344         is the interrupt is a high priority one, same for return from ISR,
7345         * src/pic16/glue.c: changed all calls of addSetHead for publics and
7346         externs to calls of checkAddSym,
7347         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
7348         pic16_pcode_verbose flag is set,
7349         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
7350         * src/pic16/pcoderegs.c: message about how many registers are saved
7351         will only be emitted if pic16_pcode_verbose flag is set,
7352
7353 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7354
7355         * src/ds390/ralloc.h,
7356         * src/ds390/ralloc.c (ds390_regWithIdx),
7357         * src/ds390/gen.c (emitcode),
7358         * src/ds390/main.h,
7359         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
7360         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7361         ds390operandCompare, getRegsRead, getRegsWritten,
7362         initializeAsmLineNode): customized instruction size calculation for
7363         ds390, started basis for some register optimizations
7364         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
7365         corresponding assembly output
7366         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
7367         missing push/pop of r0/r1. Optimized push/pops
7368
7369 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7370
7371         * src/mcs51/main.c (instructionSize): fixed ACALL size
7372         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
7373
7374 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
7375
7376         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
7377         the sorting of rlist with NULL elements
7378         * (print_idataType, print_idata): NEW to create idata sections
7379         * src/pic16/device.h: idataSymSet new variable
7380         * src/pic16/gen.c (genFunction): fixed some bugs in string
7381         comparing, improved the absolute section creation for ISRs,
7382         added FSR0L/FSR0H in registers that are saved in an ISR,
7383         * (genInline): fixed the processing of inline snippets,
7384         now they undergo no process by the peephole optimizer
7385         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
7386         are placed in idataSymSet,
7387         * (pic16emitStaticSeg): extern symbols are added in externs,
7388         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
7389         switching when aboslute variables are placed in access bank memory
7390         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
7391         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
7392         commented out with #if,
7393         * (pic16_packRegisters): reintroduce the check for CAST because some
7394         symbols are not correctly handled,
7395         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
7396         pCodeInstruction instead of pCode,
7397         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
7398         pCodeAsmDir definition,
7399         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
7400         directive, then the argument directive is emitted without the leading
7401         tab, hack for inline labels which must be in the first column,
7402         * (compareLabel,pic16_findNextInstruction),
7403         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
7404         * (insertBankSwitch): modified for the new pCodeAsmDir,
7405
7406 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7407         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
7408
7409         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
7410         instance,
7411         * (pushSide): commented out with #if,
7412         * (assignResultValue): fixed some typos in saving
7413         registers,
7414         * (genPcall): FIXED and sync'ed with genCall,
7415         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
7416         * (genNearPointerGet): fixed to handle some more cases,
7417         implementation scheme via table reads,
7418         * (genConstPointerGet): modified to access code memory correct,
7419         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
7420         and improved to handle some cases
7421         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
7422         instead of "RETLW" for init data
7423         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
7424         not IN_DIRSPACE, work around to reduce bank switching when aboslute
7425         variables are placed in access bank memory (<0x80 and >=0xf80),
7426         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
7427         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
7428         TBLWT_POSTDEC,TBLWT_PREINC
7429         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
7430         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
7431         directives
7432         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
7433         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
7434         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
7435         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
7436
7437 2004-02-29  Borut Razem <borut.razem AT siol.net>
7438
7439         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
7440         support/Util/findme.h, support/Util/system.h: enhance binary relative
7441         search for lib and include by using findProgramPath()
7442
7443 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7444
7445         * src/SDCCpeeph.h,
7446         * src/SDCCpeeph.c (pcDistance),
7447         * src/port.h,
7448         * src/mcs51/ralloc.h,
7449         * src/mcs51/ralloc.c (mcs51_regWithIdx),
7450         * src/mcs51/main.h,
7451         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
7452         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7453         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
7454         size calculation port specific, started basis for some register
7455         optimizations
7456         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
7457         missing push/pop of r0/r1. Optimized push/pops
7458         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
7459         * device/lib/_modsint.c (_modsint),
7460         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
7461         and stack version so regression tests pass
7462
7463 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
7464
7465         * src/Makefile.in (dep): include SLIBOBJS in dependency check
7466         * src/SDCCast.c (decorateType): catch another small optimization
7467         with '?' operator
7468         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
7469         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
7470         modified to finally use computeType() all over SDCC,
7471         see Feature Request #877103
7472         * src/SDCCval.h: cosmetic
7473         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
7474         valCompare(); regression tested in muldiv.c
7475         * support/regression/tests/muldiv.c (testMod): mod sign follows
7476         dividend only
7477
7478 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
7479
7480         * src/SDCCast.c (decorateType): fixed bug #902362
7481         * doc/INSTALL.txt: fixed install instructions for win32
7482
7483 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
7484
7485         * device/include/Makefile.in (install): fixed by replacing spaces
7486         by tabs
7487         * doc/README.txt,
7488         * doc/INSTALL.txt: updated for release
7489         * doc/sdccman.lyx: added warning for --xstack being buggy
7490
7491 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
7492
7493         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
7494         to eliminate build warnings.
7495         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
7496
7497 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
7498            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7499
7500         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
7501         removed -penable-stack, added comment for stack pragma, added
7502         warning for not initializing the stack/frame registers, removed
7503         comment at interrupts section
7504
7505         Stack is made permanent, there is no ability to disable stack usage.
7506         * src/pic16/device.h,
7507         * src/pic16/device.c: removed all references to USE_STACK macro,
7508         * src/pic16/device.c (pic16_dump_section): when no elements in
7509         rlist, free rlist before return,
7510         * (pic16_dump_int_registers): NEW, internal registers are a new set
7511         of general purpose registers reused by each function,
7512         * (checkAddReg): returns 1 if registers is added to set,
7513         * (pic16_groupRegistersInSection): when a registers is of type
7514         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
7515         * src/pic16/device.h: memRange and Assigned Memory are deleted,
7516         SRCASECMP macro is moved here from device.c
7517         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
7518         PO_PCLATU, PO_PRODL, PO_PRODH,
7519         * (pic16_pCodeOpType, genMinus,
7520         changed compares to "a" register, with AOP_ACC,
7521         * (pic16_genPlus): fixed some bugs and indented properly,
7522         * (pic16_addSign): changed size to size+offset in the MOVWF
7523         instruction,
7524         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
7525         multiply 8-bit operand by literal, result is 8-bit,
7526         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
7527         multiply 2 8-bit operand, result is 8-bit,
7528         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
7529         genUMult8X*_16,
7530         * src/pic16/gen.c: changed accUse to contain WREG only,
7531         * (pic16_emitcomment): renamed to pic16_emitpcomment,
7532         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
7533         true, do not use immediate addressing any more unless sym is a
7534         pointer in codespace,
7535         * (aopForRemat): do not use immediate addressing when symbol not in
7536         codespace and when symbol's address is requested,
7537         * (aopOp): for-loop in if(sym->accUse) is modified for the new
7538         accUse size (= 1),
7539         * (aopGet): added case for AOP_ACC and don't return "accumulator
7540         bug" but WREG instead,
7541         * (popGetTempReg): pushes contents of temporary register in stack,
7542         * (popReleaseTempReg): pops contents of temporary register from
7543         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
7544         * (pic16_popGet): separated case AOP_ACC to return register WREG
7545         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
7546         or PO_IMMEDIATE and initializes their instance/offset appropriately,
7547         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
7548         the use of immediate pointers to certain cases only.
7549
7550         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
7551         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
7552         * (assignResultValue, genCall, genRet): modified to use the new
7553         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
7554         genPcall is still broken,
7555         * (genFunction): added code to create 'A' type pBlocks when
7556         interrupt functions are generated, code not extensively tested yet,
7557         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
7558         * (genEndFunction): modified so ISRs pop stored registers from stack,
7559         * (genMultOneByte): cleanup,
7560         * (AccRsh): added flag andmask, to and result with appropriate mask,
7561         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
7562         * (genDataPointerGet): fixed and reenabled its use,
7563         * (genNearDataPointerGet): bugs fixed,
7564         * (genDataPointerSet): bugs fixed,
7565         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
7566         pic16_DumpSymbol, pic16_DumpOp,
7567         * src/pic16/genutils.h: function prototypes for the above functions,
7568         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
7569         pointers,
7570         * (pic16emitRegularMap): many many many improvements, but needs a
7571         major cleanup,
7572         * src/pic16/main.c: enable_stack in pic16_options is removed,
7573         * (_pic16_parseOptions): removed command line options -penable-stack,
7574         * (_process_pragma): emit stack symbol only when stack pragma is
7575         processed,
7576         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
7577         redirected to FSR0L/FSR0H pair,
7578         * (pic16_get_op, pic16_get_op2): modifications and improvements,
7579         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
7580         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
7581         for immediates,
7582         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
7583         * (dumpPicOptype): NEW,
7584         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
7585         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
7586         with movff instruction,
7587         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
7588         added pic16_int_regs, some packRegsFor* functions are commented out,
7589         because produce errors,
7590         * src/pic16/NOTES: minor modifications
7591
7592 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7593
7594         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
7595         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
7596         --pack-iram.
7597         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
7598         * as/mcs51/lkaomf51.c: fixed bug #895763
7599
7600 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
7601
7602         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
7603
7604 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7605
7606         * doc/sdccman.lyx: added details about the HC08 storage classes and
7607         interrupts, fixed the register usage info for z80 & gbz80
7608
7609 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
7610
7611         * doc/sdccman.lyx: added more pic16 port documentation
7612         * device/include/pic16/: added header pic18fregs.h
7613
7614 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
7615
7616         * doc/sdccman.lyx: added Vangelis' contribution
7617
7618 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7619
7620         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
7621         extend to the next CALL or PCALL, not just to the next CALL.
7622
7623 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
7624
7625         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
7626
7627 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7628
7629         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
7630         bug #895752 and a better fix for bug #716790
7631
7632 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7633
7634         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
7635
7636 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7637
7638         * doc/sdccman.lyx: minor changes, minor changed
7639
7640 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
7641
7642         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
7643         which can't handle SDCC_NEWONEBYTEOPS,
7644         (geniCodeMultiply): removed conversion from mult to shift for pic14
7645         and pic16
7646
7647 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7648
7649         * src/hc08/gen.h,
7650         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
7651         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
7652         thus fixing bug #895406
7653
7654 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
7655
7656         * device/lib/_modsint.c,
7657         * device/lib/_modslong.c: sign follows divisor only
7658         * src/hc08/gen.c (genMultOneByte): if result size is 1,
7659         signs or signedness can be ignored
7660         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
7661         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
7662         added optimization for IFX,
7663         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
7664         arguments;
7665         reenabled optimization for IFX, which was removed on 2004-01-11
7666         * src/SDCCast.h: added return type IFX
7667         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
7668         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
7669         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
7670         SDCC_OLDONEBYTEOPS selects the old behaviour
7671         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
7672         changed again and commented promotion rule
7673         * src/SDCCval.c (valDiv): promotion no longer necessary
7674         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
7675         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
7676         rewritten
7677         * support/regression/tests/onebyte.c: added
7678
7679 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
7680
7681         * gen.c (genInline): reverted to old code for assemnling inline
7682         code because of bug reported James Chadd
7683
7684 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
7685
7686         * ralloc.h: missing declarations from previous patch,
7687         seems that patch for ralloc.h was never applied, fixed
7688
7689 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7690            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7691
7692         * pcode.c,
7693         * pcode.h,
7694         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
7695         indirect addressing. Marked FSR0 as deprecated
7696         * gen.c (pointerCode): commented out, not needed now
7697         (pic16_popGet2p): new MOVFF helper function
7698         (genGenPointerGet),
7699         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
7700         (shiftRLong): removed duplicate debugging info
7701
7702 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7703
7704         * src/ds390/gen.c (genNearPointerGet),
7705         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
7706         optimization with bits, but not bitfields.
7707         * src/ds390/ralloc.c (packRegisters),
7708         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
7709
7710 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
7711
7712         * src/SDCCcse.c (algebraicOpts): copy operands before modification
7713
7714 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7715
7716         * src/SDCCsymt.h,
7717         * src/SDCCicode.c (operandFromSymbol),
7718         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
7719         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
7720         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
7721         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
7722         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
7723         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
7724         bug #892038
7725         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
7726         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
7727         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
7728         * src/SDCCsymt.c (newSymbol),
7729         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7730         enumerator_list),
7731         * src/SDCCval.h,
7732         * src/SDCCval.c (newiList): fixed bug #885705
7733
7734 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7735
7736         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
7737         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
7738
7739 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7740
7741         * device/include/c8051f120.h,
7742         * device/include/c8051f300.h,
7743         * device/include/c8051f310.h: added/updated header files for Silicon
7744         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7745         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
7746         in new section Submitting patches
7747
7748 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7749
7750         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
7751         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7752         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7753         genGenPointerSet),
7754         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
7755         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7756         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7757         genGenPointerSet),
7758         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
7759         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7760         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7761         genGenPointerSet),
7762         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
7763         genFarPointerGet, genCodePointerGet, genGenPointerGet,
7764         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
7765         genGenPointerSet): fixed bug #892400
7766         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
7767         to eliminate build warnings.
7768         * src/SDCCast.c (processParms),
7769         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
7770         fixed bug 751859
7771         * support/valdiag/valdiag.py: added GCC to the list of defines active
7772         when compiling with gcc
7773
7774 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7775
7776         * support/Util/SDCCerr.h,
7777         * support/Util/SDCCerr.c,
7778         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
7779         with an incomplete type (fixed bug #883734)
7780         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
7781
7782 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7783
7784         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
7785
7786 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7787
7788         * src/SDCCast.c (decorateType),
7789         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
7790         function pointer implementation
7791         * support/regression/tests/funptrs.c: added tests to verify both forms
7792         of function pointers work correctly. Added tests to verify parameters
7793         are passed in the correct order.
7794
7795 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
7796
7797         * device.c (regCompare): registers are sorted by ascending
7798         address and increasing size,
7799         * main.c (_pic16_finaliseOptions): removed the declaration
7800         of compiler macro MCU. Now a macro of the format pic18fxxxx
7801         will be defined from the command line
7802
7803 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7804             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
7805
7806         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
7807         PCOP_RLCF was overwritten!
7808         * gen.c (genSkip): commented out calls to pic16_emitcode,
7809         * (genCmpEQ): fixed "long" compares, only high word did get compared,
7810         * (genlshTwo),
7811         * (genRRC): added debugging info,
7812         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
7813         overwritten while shifting,
7814         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
7815         overwritten while shifting,
7816         * (AccLsh),
7817         * (AccRsh),
7818         * (shiftLLeftOrResult),
7819         * (shiftRLeftOrResult),
7820         * (shiftRLong),
7821         * (shiftLLong): Implemented with pic16_emitpcode
7822         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
7823         * (genLeftShift): Fixed bug, operand for shift by variable always
7824         was "and"ed with 0x0f,
7825         * (genLeftShiftLiteral),
7826         * (genrshTwo),
7827         * (genRightShiftLiteral): added debugging info,
7828         * (genrshFour): added comment,
7829         * (genRightShift): determined signedness from operand "left"
7830         instead of "result"
7831
7832 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7833
7834         * src/SDCCicode.c (geniCodeParms),
7835         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
7836         function pointers, fixed function pointer bugs #861242 and #861896
7837
7838 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7839
7840         * device/include/c8051f000.h,
7841         * device/include/c8051f120.h,
7842         * device/include/c8051f300.h: added header files for Silicon
7843         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
7844
7845 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
7846
7847         * src/SDCCast.c (processParams): added new type flow and restructured
7848         (gatherAutoInit): added new type flow
7849         (addCast): cosmetic changes
7850         (getLeftResultType): added new type flow for array indices, patch
7851         provided by Stas, see FR #877103
7852         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
7853         array index patch by Stas
7854         * src/SDCCast.h: added prototype getResultTypeFromType()
7855         * src/SDCCval.h,
7856         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
7857         * src/pic/glue.c (pic14emitStaticSeg),
7858         * src/pic16/glue.c (pic16emitStaticSeg),
7859         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
7860         for initialization of symbols
7861         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
7862         * support/Util/SDCCerr.h:
7863         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
7864         * .version: bumped version number to 2.3.8
7865         * device/include/Makefile.in (install),
7866         * doc/Makefile (install): changed to 'rm `find ...`' construct to
7867         avoid warnings
7868
7869 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
7870
7871         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
7872         Slade Rich fixed an optimization bug
7873         * src/pic/pcodepeep.c,
7874         * src/pic/pcoderegs.c
7875         * doc/Makefile (install): added test for directory
7876
7877 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7878
7879         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
7880         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
7881         * src/pic/ralloc.c (getRegPtr, getRegGpr),
7882         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
7883         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
7884         * as/mcs51/asexpr.c (term),
7885         * as/hc08/asexpr.c (term): fixed bug #887146
7886
7887 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7888
7889         * src/z80/gen.c (genMult): handle single byte result product
7890         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
7891         DUMMY_READ_VOLATILE (fixed bug #886367)
7892
7893 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7894
7895         * support/regression/tests/libmullong.c: fixed logic, on little endian
7896         hosts we ended without a mullong_wrapper()
7897
7898 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7899
7900         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
7901         virus/worm forged address usage.
7902
7903 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
7904
7905         Fixed promotion, it should be done on AST level:
7906         * src/SDCCast.c (addCast): added promotion to int
7907         (decorateType): updated call to upCast()
7908         * src/SDCCicode.c (geniCodeLeftShift): removed call to
7909         usualUnaryConversions()
7910
7911 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
7912
7913         * support/regression/tests/literalop.c (mulWrapper): Added a
7914         wrapper to remove integer overflow warnings.
7915
7916         * support/regression/tests/float_trans.c: Made work on host.
7917
7918         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
7919         location of sz80.
7920
7921         * support/regression/generate-cases.py (main): Changed from inline
7922         to a main method.
7923
7924         * doc/Makefile (install): Changed to depth first to get rid of
7925         missing directory install warning.
7926
7927         * as/Makefile (install-doc): Made work on Mac.
7928
7929 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
7930
7931         * src/SDCCast.c: added an additional type flow in decorateType() of
7932         opposite direction, see feature request #860006; it's enabled at runtime
7933         by setting the environment variable SDCC_NEWTYPEFLOW
7934         * src/SDCCast.h: changed prototype of decorateType()
7935         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
7936         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
7937         'char' to 'int' can be omitted, if both operands are 'unsigned char';
7938         see feature request #877103
7939         * src/SDCCval.c: updated call of decorateType()
7940         (valBitwise): fixed bug #882876
7941         (valMinus): added promotion
7942         (valLogicAndOr): result is unsigned
7943         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
7944         * src/SDCCsymt.c (computeType),
7945         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
7946         must not cause an unsigned operation
7947         * src/pic/glue (pic14emitRegularMap),
7948         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
7949
7950 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
7951
7952         * src/pic/pcode.c (PCodeID): commented out left over debug code
7953
7954 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
7955
7956         * support/valdiag/tests/overflow.c: added shift tests
7957         * src/pic/device.c,
7958         * src/pic/gen.c,
7959         * src/pic/gen.h,
7960         * src/pic/glue.c,
7961         * src/pic/main.c,
7962         * src/pic/pcode.c,
7963         * src/pic/pcode.h,
7964         * src/pic/pcodepeep.c,
7965         * src/pic/pcoderegs.c,
7966         * src/pic/ralloc.c,
7967         * src/pic/ralloc.h: applied patch from Slade Rich;
7968         added support for multiple code pages and multiple RAM banks on the
7969         PIC 14 port. The ASM files now no longer simply assume all the
7970         code / RAM are in the same page / bank. This means the linker can
7971         safely allocate code/RAM of separate ASM files to different pages/banks.
7972         * doc/sdccman.lyx: added Slade's tips
7973         * src/mcs51/peeph.def: fixed bug #880768
7974
7975 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7976
7977         * src/hc08/ralloc.c (rematStr): fixed bug #879282
7978         * src/SDCCast.c (decorateType): fixed bug #880197
7979
7980 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
7981
7982         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
7983         getopt.h.
7984
7985         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
7986         strtof is not part of C89 and isn't included with Mac OS X.
7987
7988 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7989
7990         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
7991         shiftL2Left2Result): fixed bug #879326
7992         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
7993         (genMultOneByte): fixed bug in signed vs unsigned multiplication
7994         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
7995         address fetch for clr instruction
7996         * device/lib/hc08/_mulint.c: created optimized assembly version
7997         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
7998
7999 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
8000
8001         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
8002         proposed in FR #877103
8003
8004 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
8005
8006         * src/SDCCval.c (cheapestVal): added missing checks
8007         * src/SDCCicode.c (usualBinaryConversions): fixed condition
8008         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
8009
8010 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
8011
8012         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
8013         equal operands
8014
8015 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
8016
8017         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
8018         loaded with the linker search paths (-L arguments) and the libraries
8019         to be linked with the current source (-l arguments). Changes
8020         currently will affect only the pic16 port.
8021         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
8022         include path the port specific paths and port specific libraries,
8023         * gplink command now contains the $3 argument,
8024         * src/pic16/device.h,
8025         * src/pic16/device.c,: structure PIC_device is made public and
8026         renamed to PIC16_device, the same for variable Pics which is renamed
8027         to Pics16. Updated all references to them.
8028         * src/pic16/glue.c (pic16glue): corrected bug with code
8029         initialization which bypassed the variable initializations block.
8030
8031         * device/lib/pic16/Makefile.rules: removed --penable-stack from
8032         COMPILE_FLAGS and added the --nostdinc option
8033
8034 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8035
8036         * device/include/mc68hc908jb8.h: Register defs for another member
8037         of the hc08 family. Contributed by Bjorn Bringert - thanks!
8038
8039 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
8040
8041         Documenting changes from previous commits.
8042         * configure.in (version 1.56),
8043         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
8044         when generating output files to configure the pic16 library,
8045         but now I've commented it out, since gputils aren't installed in the
8046         SF compile farm, so library won't compile
8047
8048         * device/lib/Makefile.in (version 1.56): initially I've added in
8049         target 'all' the prerequestive 'model-pic16' so it compiled the
8050         pic16 library, but now I've commented it out for the same reasons
8051         above,
8052         * added targets 'model-pic16' and 'objects-pic16' to compile the
8053         library
8054         * added target 'port-specific-objects-pic16' to handle the
8055         generated libraries and copy them into the build/ directory
8056         * added target 'clean-intermediate-pic16' to clean intermediate
8057         files into pic16 directory
8058         * in target 'installdirs' added line to create directory pic16 in
8059         the installation path
8060
8061         * device/include/Makefile.in (version 1.11): in target 'install'
8062         added lines to copy all header files to installation path,
8063         * in target 'installdirs' added line create directory for pic16
8064         headers in the installation path
8065
8066 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
8067
8068         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
8069          a function call
8070
8071 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
8072
8073         * configure,
8074         * device/lib/configure.in,
8075         * device/lib/configure: fixed for autoconf 2.57
8076
8077 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8078
8079         * src/z80/main.c (_parseOptions): fixed the portmode= command line
8080         option so that it actually works. Made it specific to the z80, since
8081         the gbz80 doesn't have these kinds of I/O ports.
8082
8083 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8084
8085         * device/include/z180.h,
8086         * device/lib/_memcpy.c,
8087         * device/lib/_memmove.c,
8088         * device/lib/_mulint.c,
8089         * device/lib/ser_ir.c,
8090         * device/lib/ser_ir_cts_rts.c,
8091         * device/lib/_strcmp.c,
8092         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
8093         * src/z80/main.c (_process_pragma): add support for pragmas bank and
8094         portmode; added deprecation warning for bank= and protmode= forms.
8095         Also, guard against buffer overflow.
8096         * src/z80/gen.c (aopGet): generate better code for sfr banked read
8097
8098 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8099
8100         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
8101         changed interrupt vector table generation to only emit declared vectors.
8102         * device/include/Makefile.in: added missing backslash
8103         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
8104
8105 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
8106
8107         Mainly changes to support compilation of the device libraries
8108         * src/pic16/device.c: stack is allocated via symbol and not
8109         via literal number. The symbol is placed in the corresponding
8110         position of the data ram
8111         * (pic16_dump_section): relocatable and absolute uninitialized
8112         data are now emitted in sorted order to reduce section naming,
8113         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
8114         weren't marked as being in the access bank,
8115
8116 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
8117
8118         Added portion of GNU PIC Library under the directory
8119         device/include/pic16 and device/lib/pic16. These files
8120         contain the declarations of SFRs for the PIC18Fxx2 devices.
8121         The directory is initialized via configure from toplevel.
8122
8123 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
8124
8125         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
8126         the spilllocations to be compared correctly
8127
8128 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8129
8130         * src/SDCCast.c (decorateType): fixed bug introduced today
8131
8132 2004-01-12  Borut Razem <borut.razem AT siol.net>
8133
8134         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
8135         doc/sdccman.lyx: upper case pragmas are deprecated
8136
8137 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8138
8139         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
8140         in simpler and even better code
8141
8142 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
8143
8144         * src/SDCCicode.c (operandOperation): fixed bug #874819
8145         * src/SDCCast.c (decorateType): fixed
8146         char foo (unsigned long ul) { return ul > 0; }
8147
8148 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8149
8150         * doc/sdccman.lyx: Moved and added some sections, small changes
8151         all over. Telling LaTeX to be less strict with word spacing
8152         to better keep the right margin. Changed some notes about
8153         maintainance of the ports in section 3.2.1 - is it OK like this?
8154
8155 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8156
8157         SDCC source changes:
8158         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
8159         convilong): modified to inform the pic16 port that builtin functions
8160         are external
8161
8162         PIC16 PORT specific changes:
8163         * src/pic16/device.c pic16_dump_equates() added,
8164         processor registers declared internally by the port are emitted in
8165         the translation as equates,
8166         * src/pic16/gen.c: inline code is passed unprocessed to the
8167         translation,
8168         * (pic16_popGetLit2): fnuction modified to take second operand as
8169         pCodeOp pointer and not as literal,
8170         * (popRegFromIdx): prefixed with pic16_,
8171         * (pic16_popCombine2): modified to receive already allocated pCode
8172         operands,
8173         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
8174         * (genFunction): initializes local stack frame and pushes on stack
8175         all the registers used by this function,
8176         * (genEndFunction): restores all registers from stack and restores
8177         stack frame,
8178         * src/pic16/glue.c (pic16emitRegularMap): various changes and
8179         improvements,
8180         * (pic16glue): changed the program startup sequence,
8181         * added new dbName code 'A' for functions placed in absolute section
8182         * src/pic16/main.c: added function attribute _naked,
8183         * added pragma 'code' to place a fnuction at an absolute address,
8184         * added command line arguments --debug-ralloc and --pcode-verbose,
8185         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
8186         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
8187         * (pic16_newpCodeOpLit2): modified to take the second operand as
8188         pCodeOp pointer,
8189         * (pic16_printpBlock): modified to emit each function in a separate
8190         section,
8191         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
8192         UPPER for immediate operands,
8193         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
8194         instruction,
8195         * src/pic16/peeph.def: all peepholes with movff are commented out,
8196         because there is a problem in the pcode peep optimizer,
8197         * src/pic16/ralloc.c: the register allocator can now reuse local
8198         function symbols for another function. This saves register usage.
8199         * src/pic16/ralloc.h: added flag isLocal in structure regs,
8200
8201         Added file src/pic16/NOTES with information about program writing on
8202         the current port version.
8203
8204 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8205
8206         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
8207         and peephole 252 (array access)
8208
8209 2004-01-09  Borut Razem <borut.razem AT siol.net>
8210
8211         * src/SDCCmain.c : fixed #872250: -l command line defined library
8212           files are scanned before standard library files
8213
8214 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8215
8216         * src/SDCCast.c (decorateType): fixed bug #874046
8217
8218 2004-01-09  Borut Razem <borut.razem AT siol.net>
8219
8220         * support/scripts/sdcc.nsi: remove previous installation
8221
8222 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8223
8224         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
8225         bytes for last interrupt vector (mcs51)
8226         * sdcc.spec: fixed typo
8227
8228 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8229
8230         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
8231         gen51Code): more efficient parameter receive for --model-large
8232         ("bug" #845294)
8233
8234 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8235
8236         * src/ds390/main.c,
8237         * src/z80/main.c: added missed needLinkerScript flags (more than
8238         one port structure defined in these file)
8239         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
8240         bug #795325
8241
8242 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
8243
8244         * src/SDCCmain.c: removed various references to DEFAULT_PORT
8245         * src/port.h: added flag needLinkerScript in port->linker
8246         structure to inform whether to create a .lnk file or not,
8247         * src/avr/main.c,
8248         * src/ds390/main.c,
8249         * src/hc08/main.c,
8250         * src/mcs51/main.c,
8251         * src/pic/main.c,
8252         * src/pic16/main.c,
8253         * src/xa51/main.c,
8254         * src/z80/main.c: changed appropriately to configure
8255         needLinkerScript flag
8256         * src/pic/gen.c,
8257         * src/pic16/gen.c (genAddrOf): fixed bug #863624
8258         * src/pic/glue.c: added variable udata_section_name to
8259         override default uninitialized data segment definition for
8260         devices only with SHAREBANK memory (reported from Erik Epetrich)
8261         * (pic14emitOverlay): modified to emit a commented overlay segment
8262         directive when no overlay data exist
8263         * (picglue): modified to emit uninitialized data segment
8264         according to udata_section_name
8265         * src/pic/main.c (_pic14_parseOptions): added command line
8266         options --udata-section-name=[name] to override default
8267         udata definition name
8268         * modified _linkCmd and _asmCmd to include compiler passed
8269         arguments via -W option
8270         * src/pic16/main.c: added $l in _asmCmd, changed extension for
8271         object file from '.rel' to '.o' in port->linker structure,
8272         changed size of fptr from 2 to 3 in port structure
8273
8274 2004-01-07  Borut Razem <borut.razem AT siol.net>
8275
8276         * support/scripts/sdcc.nsi: update PATH
8277         * support/scripts/sdcc.ico: craeted
8278
8279 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
8280
8281         * device/include/Makefile.in: fix install
8282         * doc/Makefile: fix install
8283
8284 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8285
8286         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
8287         in bug #860505
8288         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
8289         how the function variable allocation summary is displayed; also
8290         include information about variables allocated to the overlay
8291         segment
8292
8293 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8294
8295         * as/mcs51/lkmain.c: Help about -Y option
8296         * as/mcs51/lkarea.c: Fixed gcc warnings
8297
8298 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
8299
8300         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
8301         fixed warning
8302         * support/valdiag/tests/overflow.c: added
8303         * src/SDCCast.c (decorateType),
8304         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
8305         LEFT_OP (left shift)
8306
8307 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8308
8309         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
8310         (default behaviour).
8311
8312 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8313
8314         A python script to validate compiler diagnostic messages. It can be
8315         used to verify that sdcc complains about bad c source code and
8316         gives a good location of the error.
8317         * support/valdiag/Makefile,
8318         * support/valdiag/valdiag.py,
8319         * support/valdiag/tests/*
8320
8321 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8322
8323         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
8324         * src/SDCCsymt.c (newEnumType),
8325         * src/SDCCsymt.h
8326         * support/Util/SDCCerr.c,
8327         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
8328         enum related bugs.
8329         * support/regression/tests/enum.c: added test for enum values that
8330         require at least 2 bytes of storage.
8331
8332 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
8333
8334         * src/common.h: added ifndef/define/endif macros
8335         around the header file.
8336         Bug reported from Jesus Calvino-Fraga
8337
8338 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
8339
8340         * sdcc.spec: updated
8341         * device/include/Makefile.in: don't install CVS directories
8342         * device/lib/Makefile.in: added removal of CVS directories after install
8343         * doc/Makefile: fixed install, added local_icons
8344         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
8345         * src/mcs51/gen.c (genRightShift): fixed bug #870788
8346         * src/ds390/gen.c (genRightShift): fixed bug #870788
8347         * src/SDCCast.c (decorateType): fixed bug #870781
8348
8349 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
8350
8351         PIC16 port related changes:
8352         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
8353         added variable stackPos,
8354
8355         * gen.c: genCall, assignResultValue: added support for
8356         pushing/retrieving function parameters to/from stack,
8357         genFunction,genEndFunction: setup stack frame for the
8358         generated function,
8359         genAddrOf: will be changed according to bug 863624
8360
8361         * added files genutils.c and genutils.h which contain gen*
8362         debugged and optimised functions extracted from gen.c
8363
8364         * glue.c: added variable 'externs' which holds extern symbols,
8365         pic16emitRegularMap: is modified to properly handle relocatable
8366          symbols under the new scheme,
8367         pic16createInterruptVect: is modified
8368         pic16printPublics: is modified to emit 'global' assembler directives,
8369         added pic16_printExterns to print extern symbols,
8370         pic16glue: initializes stack/frame pointer in the beginning of
8371         the assembly output. Temporary hack, will be corrected later,
8372         because gplink yet does not support stack and SDCC does not
8373         yet support a type of crt0.o object to create the final binary.
8374
8375         * Removed many lines that contain 8051 legacy code.
8376         * The code is finally placed under a 'code' directive.
8377         * Added port specific options.
8378
8379         * _process_pragma: simplified since now we do not need *special*
8380         include file to define SFR registers. But a separate header
8381         will be needed. This will be developed later.
8382         * _pic16_parseOptions: added, parses port specific options:
8383         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
8384         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
8385         --preplace-udata-with=
8386
8387         * _pic16_setDefaultOptions: modified to initialize section names,
8388         but hack is temporarly out of order since it needs improvement.
8389         * _pic16_genAssemblerPreamble: configuration words are emitted by
8390         their address instead of their name. This part is incomplete and
8391         supports only the 18Fxx2 devices. Other devices will emit an error
8392         during assembly since they do not contain the same set of config
8393         registers
8394         * _pic16_genIVT: is modified,
8395
8396         * pcode.c: added definitions for some hardware registers that are needed
8397         for stack support
8398         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
8399         All PCI entries are updated. Now LFSR is supported.
8400         * Removed pic16_pciTRIS is mentioned by mdubuc in source
8401         * added pic16_newpCodeOpLit2 to support instructions with
8402         two literal arguments
8403         * pic16_pCode2str: corrected code that emits assembler instructions
8404         with two literal operands and those that have an access bit modifier
8405         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
8406         this fixes a bug which caused some labels to be lost, when an
8407         assembler directive was added, i.e. banksel,
8408         * pic16_FixRegisterBanking: improved logic that causes the insertion
8409         of bank switching,
8410         * InlineFunction: functions that are called once, are not any more
8411         inlined. This can be a port option in the future,
8412
8413         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
8414
8415         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
8416         hold the corresponding uninitialized symbols,
8417         * pic16_allocProcessorRegister: registers have explicit marked the
8418         accessBank field,
8419         * pic16_allocInternalRegister: registers are explicit marked as
8420         not used,
8421         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
8422         processing list, so bit registers were lost,
8423         *
8424
8425         * ralloc.h: added field 'accessBank' and original symbol operand
8426         in register definition,
8427         * removed the field isMapped from register definition,
8428
8429         ** Several functions have been removed from various sources:
8430         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
8431         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
8432         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
8433         pic16_assignRelocatableRegisters
8434
8435         ** others have been introduced:
8436         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
8437         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
8438
8439 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
8440
8441         * support/scripts/inc2h.pl: changed definition of BIT_AT
8442         to emit 'sbit at' instead of 'bit at'. This was a request.
8443
8444         PIC16 port related preliminary changes:
8445         * gen.c: prefixed function popRegFromString with
8446         pic16_ and all references to it corrected
8447         * pcode.c: all pic16_pc_* hardware registers prefixed
8448         with underscore (_),
8449         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
8450         * ralloc.c: newReg(): when register is REG_SFR then
8451         set address to rIdx,
8452         pic16_allocProcessorRegister(): marks register wasUsed=0
8453         pic16_writeUsedRegs(): added a call to assign processor
8454         registers via pic16_assignFixedRegisters
8455
8456 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8457
8458         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
8459         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
8460         variables in unused register banks.  Also the SSEG is placed
8461         wherever there is enough space for it, and IDATA can be anywhere
8462         in internal RAM.  For now compile using -Wl-Y[stack_size].
8463         The mem file is different for this option as well, since it
8464         makes no sense of talking about DSEG lenght.
8465
8466 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
8467
8468         * src/SDCClrange.c: fixed bug 869095 that caused segfault
8469         in certain cases, e.g. when ROM assignment, patch provided
8470         from Albert den Haan.
8471
8472 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
8473
8474         Many signedness and type propagation fixes:
8475         * src/SDCCicode.c: made geniCodeCast() static
8476         replaced SPEC_ by IS_ (cosmetic)
8477         (operandOperation): fixed div and mod operation
8478         (usualBinaryConversions): added support for promotion of char
8479         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
8480         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
8481         (geniCodeAdd): an array index will stay unsigned, even if promoted
8482         from char to int
8483         (geniCodeArray): ditto
8484         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
8485         * src/SDCCsymt.c (computeType): added more support for char;
8486         promotion of char is selectable by promoteCharToInt, fixed signedness
8487         for all cases
8488         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8489         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8490         * src/SDCCval (val*): replaced signedness calculation by
8491         computeType()
8492         rearranged if-branches (cosmetic)
8493         (valShift): added warning W_SHIFT_CHANGED
8494         (valCompare): fixed problem with different types
8495         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
8496         * support/regression/tests/literalop.c: added many cases
8497         * support/regression/tests/ast_constant_folding.c: changed finally to
8498         'unsigned int'
8499         * .version: new year, new version: 2.3.7
8500         * src/SDCCmain.c (main): applied patch #866468
8501         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
8502         provided by Scott Bronson
8503         * doc/sdccman.lyx: updated documentation for sdcdb
8504         updated and added chapter tips
8505
8506 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8507
8508         * src/SDCCsymt.h: missing from yesterday's commits
8509
8510 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8511
8512         * src/SDCC.y (struct_or_union_specifier),
8513         * support/Util/SDCCerr.c,
8514         * support/Util/SDCCerr.h: verify that struct & union tags are used
8515         as declared.
8516
8517 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8518
8519         * src/SDCCglobl.h: missing from yesterday's commits
8520
8521 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8522
8523         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
8524         sft_attributes, struct_declaration, parameter_declaration,
8525         type_name, start_block, declaration_list),
8526         * src/SDCC.lex (check_type): support redefinition of typedef names
8527
8528 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8529
8530         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
8531         aligned xdata arrays. Erik helped me with the if clause.
8532
8533 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8534
8535         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
8536         warning
8537
8538 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8539
8540         * src/SDCCast.h,
8541         * src/SDCCast.c (newAst_),
8542         * src/SDCCicode.h,
8543         * src/SDCCicode.c (ast2iCode, newiCode),
8544         * src/SDCCglobl.h,
8545         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
8546         expr, statement, expression_statement, selection_statement,
8547         iteration_statement, expr_opt, jump_statement): foundation for tracking
8548         sequence points
8549         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
8550         point code too)
8551
8552 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8553
8554         * support/Util/SDCCerr.c,
8555         * src/SDCCast.h,
8556         * src/SDCCast.c (createCase, createDefault, decorateType),
8557         * src/SDCClabel.c (labelUnreach),
8558         * src/SDCC.y (labeled_statement, jump_statement): More improvements
8559         to error messages.
8560         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
8561         (with thanks to Stas Sergeev)
8562         * device/include/time.h,
8563         * device/lib/time.c (CheckTime): suppress unreachable code warning
8564
8565 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8566
8567         * src/SDCCast.c (createIvalCharPtr),
8568         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
8569         bug #753752)
8570         * support/regression/tests/nullstring.c: tests for these two bugs
8571
8572 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8573
8574         * support/Util/SDCCerr.h,
8575         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
8576         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
8577         about storage class and 'at' used inside struct or union
8578         * src/SDCCBBlock.c (iCodeFromeBBlock),
8579         * src/SDCCcse.c (ifxOptimize),
8580         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
8581         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
8582         printIval, emitStaticSeg, emitOverlay),
8583         * src/SDCClabel.c (deleteIfx),
8584         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
8585         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
8586         gatherAutoInit, processParms),
8587         * support/Util/SDCCerr.h,
8588         * support/Util/SDCCerr.c (werrorfl): Support for better error location
8589         reporting for post-parse errors.
8590
8591 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8592
8593         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
8594         implicit casts via union; they don't work on big endian systems
8595         (possible fix for bug #861138)
8596
8597 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8598
8599         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
8600         * src/mcs51/main.c: fixed the fix for bug #737001
8601
8602 2003-12-15  Borut Razem <borut.razem AT siol.net>
8603
8604         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
8605
8606 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8607
8608         * support/makebin/makebin.c: put output in binary mode
8609
8610 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8611
8612         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
8613         xdata and data memory on startup. Set the environment variable
8614         SDCC_NOGENRAMCLEAR to disable this.
8615         * src/mcs51/peephole.def,
8616         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
8617         (allows non-interrupt and interrupt code to safely compete for a resource
8618         without the non-interrupt code having to disable interrupts)
8619
8620 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8621
8622         * src/SDCCicode.c (geniCodeAdd),
8623         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
8624         with valFromType if type might be a pointer and host is big endian).
8625         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
8626         types, not just integer types.
8627         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
8628         multiply defined with mismatching "at" address.
8629
8630 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8631
8632         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
8633         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
8634         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
8635         with embedded nulls (fixed bug #753752)
8636
8637 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8638
8639         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
8640         Apparently this did not see much testing (endless loop)
8641
8642 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8643
8644         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
8645
8646 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8647
8648         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
8649         gracefully handle NULL memmap pointers
8650
8651 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8652
8653         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
8654         instead of deleting the iCode when an operand is volatile
8655         * src/z80/gen.c (genDummyRead),
8656         * src/mcs51/gen.c (genDummyRead),
8657         * src/ds390/gen.c (genDummyRead),
8658         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
8659         not just IC_RIGHT
8660         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
8661         * src/SDCC.y: fixed bug #850420
8662
8663 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8664
8665         Applied z80 i/o port patch from Peter Townson and fixed some operators
8666         to better handle operands in A register.
8667         * device/include/z180.h
8668         * src/SDCC.y
8669         * src/SDCCglue.c
8670         * src/z80/gen.c
8671         * src/z80/gen.h
8672         * src/z80/main.c
8673         * src/z80/peeph-z80.def
8674         * src/z80/peeph.def
8675         * src/z80/z80.h
8676
8677 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8678
8679         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
8680
8681 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8682
8683         * device/lib/hc08/_mullong.c: Removed extra #endif
8684
8685 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8686
8687         * sim/ucsim/hc08.src/inst.cc,
8688         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
8689         carries from x to h
8690         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
8691         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
8692         * device/include/stdarg.h: fixed varargs for hc08
8693         * device/lib/Makefile.in,
8694         * device/lib/hc08/Makefile,
8695         * device/lib/hc08/_mulint.c,
8696         * device/lib/hc08/_mullong.c: fixed some endian problems
8697
8698 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8699
8700         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
8701         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
8702         * device/lib/_gptrget.c,
8703         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
8704
8705 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8706
8707         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
8708         * src/SDCCast.c (astErrors): fixed bug #846007
8709         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
8710
8711 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8712
8713         * src/SDCCast.c (decorateType): disabled a transformation I added in
8714         revision 1.188 (access to fields of a structure at an absolute address);
8715         it breaks with bitfields, extern declarations, and gcse analysis.
8716         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
8717         could be assigned through a pointer, so don't complain.
8718         * src/SDCCast.c (astErrors),
8719         * src/SDCCast.h,
8720         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
8721
8722 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
8723
8724         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
8725         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
8726         output of __config directives, since gpasm now supports them
8727         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
8728         pre-processor macro, i.e. -DMCU=p18f452
8729         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
8730         and modified to handle 'cast' icode similarly to '=' icode
8731         * src/pic16/device.h (typedef struct PIC_device): added field
8732         'extMIface' to indicate that chip has external memory interface
8733         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
8734         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
8735         18F8720
8736
8737 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8738
8739         * src/SDCC.y (pointer): fixed bug #846006
8740         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
8741         * src/SDCCast.c (decorateType): fixed bug #846009
8742         * src/ds390/peeph.def,
8743         * src/ds390/gen.c (genAnd, genOr),
8744         * src/mcs51/peeph.def,
8745         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
8746
8747 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8748
8749         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
8750         * src/SDCCdflow.c
8751         * src/SDCCcse.c
8752         * src/SDCCcse.h
8753         * src/SDCCBBlock.h
8754         * src/SDCCBBlock.c
8755
8756 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
8757
8758         fixed bug #845089
8759         * src/SDCCbitv.h,
8760         * src/SDCCbitv.c: added function to free a bitvector
8761         * src/SDCClrange.h,
8762         * src/SDCClrange.c: added function to recompute the liveranges
8763         * src/avr/ralloc.c,
8764         * src/ds390/ralloc.c,
8765         * src/hc08/ralloc.c,
8766         * src/mcs51/ralloc.c,
8767         * src/pic/ralloc.c,
8768         * src/pic16/ralloc.c,
8769         * src/xa51/ralloc.c,
8770         * src/z80/ralloc.c: recompute the liveranges after register packing
8771
8772 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
8773
8774         * src/SDCCloop.c (newInduction): fixed bug #845630
8775
8776 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8777
8778         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
8779         inadvertantly left behind from my 2003-11-12 change
8780
8781 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8782
8783         Updated headers I neglected to commit yesterday.
8784         * src/SDCClrange.h,
8785         * src/SDCCicode.h
8786
8787 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8788
8789         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
8790         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
8791         * src/SDCCopt.c (eBBlockFromiCode),
8792         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
8793         the creation of the key hash table from the sequencing so it can be used
8794         earlier (for some GCSE bug fixes still pending)
8795
8796 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8797
8798         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
8799         * support/regression/tests/addsub.c: testing genPlus shortcut
8800
8801 2003-11-15  Borut Razem <borut.razem AT siol.net>
8802
8803         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
8804
8805 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8806
8807         * src/SDCCcse.c (cseBBlock): fixed bug #527779
8808         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
8809         ordering is immaterial.
8810         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
8811
8812 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8813
8814         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
8815         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
8816         (SIGSEV) of bug #840381
8817         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
8818         unlink new file before rename if new and old filenames are the same)
8819
8820 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8821
8822         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
8823         uninitialized variables) for the mcs51. Set environment variable
8824         SDCC_GENRAMCLEAR to test.
8825         xdata initialization slightly shorter
8826
8827 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8828
8829         * src/SDCCsymt.h,
8830         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
8831         #838241 & 780691 (basicly the same bug)
8832         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
8833         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
8834
8835 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
8836
8837         * src/SDCCmain.c (linkEdit): "fix" #834252
8838
8839 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8840
8841         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
8842         * src/SDCCast.h,
8843         * src/SDCC.y: fixed bug #819403
8844
8845 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8846
8847         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
8848         the reentrant attribute.
8849         * src/hc08/gen.c (genPackBits): added missing stack readjustment
8850         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
8851         simulation
8852         * src/SDCCast.c (decorateType): fixed bug with storage class not being
8853         updated during pointer dereference; f.e. ~(((char *)1)*) was being
8854         erroneously reduced to a literal.
8855         * src/hc08/ralloc.c (packRegisters, rematStr),
8856         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
8857         some cases
8858
8859 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8860
8861         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
8862         * doc/sdccman.lyx: changed from 'article' to 'book'
8863         * doc/Makefile: readded test_suite_spec and cdbfileformat
8864
8865 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
8866
8867         * device/include/stdlib.h: include malloc.h to comply with ANSI
8868         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
8869
8870 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8871
8872         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
8873         * doc/clean.mk: also remove *.out files
8874         * doc/sdccman.lyx: some additions, larger top/bottom margins
8875
8876 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8877
8878         * src/SDCC.y: fixed bug #837365
8879         * support/regression/tests/bitopcse.c
8880         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
8881         a symbol (might be valop instead)
8882         * device/lib/Makefile.in: added errno.c to HC08SOURCES
8883         * device/lib/clean.mk: added hc08 to the cleaning list
8884
8885 2003-11-04  Borut Razem <borut.razem AT siol.net>
8886
8887         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
8888           made 2003-11-04
8889         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8890           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
8891           malloc is declared in standard stdlib.h
8892
8893 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8894
8895         * device/lib/hc08/Makefile: need to clean .rel not .o files
8896         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
8897
8898 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8899
8900         * src/port.h,
8901         * src/hc08/main.c,
8902         * src/mcs51/main.c,
8903         * src/ds390/main.c,
8904         * src/z80/main.c,
8905         * src/avr/main.c,
8906         * src/pic/main.c,
8907         * src/pic16/main.c,
8908         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
8909         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
8910         tests (which uses the port's oclsExpense function)
8911         * src/SDCC.y,
8912         * src/SDCCast.c,
8913         * src/SDCCicode.c,
8914         * src/hc08/gen.c,
8915         * src/ds390/gen.c,
8916         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
8917
8918 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8919
8920         * src/SDCCcse.c (ifxOptimize),
8921         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
8922         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
8923         deleting the IFX iCode.
8924         * src/hc08/ralloc.c: reduced unneeded slocs
8925         * src/hc08/gen.c: fixed bug in asmopToBoolean
8926
8927 2003-11-04  Borut Razem <borut.razem AT siol.net>
8928
8929         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
8930           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
8931           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
8932           transferred to configure
8933
8934 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
8935
8936         Use headers defined in the C[++] standards:
8937         * sim/ucsim/gui.src/serio.src/fileio.cc
8938         * sim/ucsim/gui.src/serio.src/frontend.cc
8939         * sim/ucsim/gui.src/serio.src/main.cc
8940         * sim/ucsim/gui.src/serio.src/posix_signal.cc
8941         * support/Util/NewAlloc.c
8942         * as/hc08/lklibr.c
8943         * as/mcs51/lklibr.c
8944         * as/z80/aslist.c
8945         * as/z80/assym.c
8946
8947 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8948
8949         * Added MSVC projects for hc08 assembler and linker:
8950         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
8951         /as/hc08/link_hc08.dsp
8952
8953 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
8954
8955         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
8956
8957 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
8958
8959         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
8960
8961 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8962
8963         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
8964
8965 2003-10-31  Borut Razem <borut.razem AT siol.net>
8966
8967         * support/cpp2/cpplib.h,
8968           support/cpp2/cpplib.c,
8969           support/cpp2/cpplex.c,
8970           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
8971           to switch _asm block preprocessing on / off. Default is
8972           #pragma preproc_asm +
8973
8974 2003-10-31  Borut Razem <borut.razem AT siol.net>
8975
8976         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
8977           when outputting comment blocks (when executed with -C option) and
8978           _asm (SDCPP specific) blocks
8979
8980 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8981
8982         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
8983
8984 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
8985
8986         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
8987
8988 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
8989
8990         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
8991         * src/SDCCast.c (decorateType): fixed bug #832664
8992
8993 2003-10-31  Borut Razem <borut.razem AT siol.net>
8994
8995         * support/cpp2/cpplex.c: fixed for SDCPP:
8996           comments(when executed with -C option) and _asm blocks
8997           were included even if they where in skipped #if block.
8998           Applied solution from GCC cpp 3.3.2
8999
9000 2003-10-31  Borut Razem <borut.razem AT siol.net>
9001
9002         * src/SDCC.lex: sdcc now understands both formats:
9003           '# <line_number> <file_name>' and
9004           '#line <line_number> <file_name>'
9005         * support/cpp2/cppmain.c: sdcpp now generates the standard
9006           '# <line_number> <file_name>' instead of former
9007           '#line <line_number> <file_name>'
9008
9009 2003-10-30  Borut Razem <borut.razem AT siol.net>
9010
9011         * support/cpp2/cpphash.h,
9012         * support/cpp2/cpplib.h
9013         * support/cpp2/cpplex.c,
9014         * support/cpp2/cppmain.c,
9015         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
9016
9017 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9018
9019         Fixed a number of problems revealed by bug #827883.
9020         * src/SDCCloop.c (loopInvariants): Spill location of the
9021         result operand should be recomputed if extracted from
9022         a loop. Also, don't extract assignments of an iTemp
9023         from a literal.
9024         * src/SDCCast.c (isConformingBody): loop reversal should
9025         not occur if the control variable is involved with a
9026         relational operator.
9027
9028 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
9029
9030         * .version: bumped to 2.3.6 to reflect the big improvements
9031         made by Erik and Klaus. Thanks!
9032
9033 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
9034
9035         Replaced the livrange code.
9036         * src/SDCClrange.c: added new LR code
9037         * src/SDCCloop.c,
9038         * src/SDCCBBlock.h: removed remainig parts from old LR code
9039         * src/ds390/ralloc.c,
9040         * src/ds390/gen.c: minor fixes to make it work with new code
9041
9042 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9043
9044         * as/hc08/asm.h,
9045         * as/hc08/lkrloc.c,
9046         * src/hc08/gen.c,
9047         * src/hc08/ralloc.c: Fix various warnings related to the hc08
9048         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
9049         (tweaked fix for bug #818696)
9050
9051 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9052
9053         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
9054
9055 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9056
9057         * src/SDCCmain.c,
9058         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
9059         * src/mcs51/gen.c (gencjneshort),
9060         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
9061         more efficient (per Scott Bronson's suggestion)
9062
9063 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9064
9065         Extended the semantics of the critical keyword to include
9066         individual statements. See RFE #827755 and #799831
9067         * src/SDCC.y
9068         * src/SDCCicode.c
9069         * src/SDCCopt.c
9070         * src/SDCCast.c
9071         * support/Util/SDCCerr.c
9072         * support/Util/SDCCerr.h
9073         * src/mcs51/gen.c
9074         * src/ds390/gen.c
9075         * src/hc08/gen.c
9076
9077 2003-10-19  Borut Razem <borut.razem AT siol.net>
9078
9079         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
9080
9081 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9082
9083         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
9084         Fixed bug #818696
9085         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
9086         and predecrement operand is displayed
9087
9088 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
9089
9090         * src/SDCCval.c (valMinus): fixed bug #826041
9091
9092 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9093
9094         Some hc08 related updates that I missed earlier
9095         * sim/ucsim/stypes.h
9096         * support/regression/ports/hc08/spec.mk
9097
9098 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9099
9100         New target "hc08" for the Motorola 68hc08 family of micros
9101
9102         * configure
9103         * configure.in
9104         * Makefile
9105         * src/hc08/*
9106         * src/SDCCmain.c
9107         * src/port.h
9108         * sim/ucsim/hc08.src/*
9109         * sim/ucsim/configure.in
9110         * src/ucsim/configure
9111         * sim/ucsim/packages_in.mk
9112         * as/hc08/*
9113         * as/Makefile
9114         * device/include/mc68hc908qy.h
9115         * device/lib/hc08/*
9116         * device/lib/Makefile.in
9117         * support/regression/ports/hc08/*
9118         * support/regression/Makefile
9119
9120 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9121
9122         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
9123         regression test
9124         * src/ds390/gen.c (genCast): fixed bug #821957
9125
9126 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
9127
9128         * device/lib/logf.c: "fixed" overlay bug
9129         * support/regression/ports/host/spec.mk: added m library
9130         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
9131         * support/regression/tests/float_trans: added (for Eric)
9132
9133 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
9134
9135         * src/mcs51/gen.c (genCpl): fixed bug
9136         http://sf.net/mailarchive/message.php?msg_id=6263915
9137
9138 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
9139
9140         * src/SDCCast.c (decorateType): added extended constant folding
9141         * src/SDCCsymt.c (computeType): cleanup
9142         * src/SDCCval.c (valShift): minor optimization
9143         * support/regression/tests/ast_constant_folding.c: added
9144
9145 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9146
9147         * src/SDCCmain.c: removed some unintended changes
9148
9149 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9150
9151         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
9152         * src/z80/gen.c: fixed part of bug #817589
9153         * src/SDCCsymt.c (checkFunction): fixed bug #817895
9154
9155 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
9156
9157         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
9158         * src/SDCCcflow.c
9159         * src/SDCCcse.c
9160         * src/SDCCdflow.c
9161         * src/SDCClabel.c
9162         * src/SDCClrange.c
9163         * src/SDCCmem.c
9164         * src/SDCCopt.c
9165         * src/SDCCpeeph.c
9166         * src/SDCCset.c
9167         * src/avr/ralloc.c
9168         * src/ds390/ralloc.c
9169         * src/izt/ralloc.c
9170         * src/mcs51/ralloc.c
9171         * src/pic/ralloc.c
9172         * src/pic16/ralloc.c
9173         * src/xa51/ralloc.c
9174         * src/z80/ralloc.c
9175         * src/z80/gen.c: removed unused label "release:"
9176
9177 2003-10-06  Borut Razem <borut.razem AT siol.net>
9178
9179         * src/SDCC.lex: removed definition of unused variables
9180           save_optimize and save_options
9181
9182 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
9183
9184         * clean.mk: removed '=' in "-maxdepth=1"
9185         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
9186         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
9187
9188 2003-10-06  Borut Razem <borut.razem AT siol.net>
9189
9190         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
9191           my_unput() replaced by unput()
9192
9193 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
9194
9195         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
9196         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
9197         type-punned pointer will break strict-aliasing rules"
9198         Old LR behaviour is again default; Klaus' LR can be choosen by
9199         defining the environment variable LRKLAUS
9200         * src/SDCCBBlock.h
9201         * src/SDCCloop.c
9202         * src/SDCClrange.c
9203         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
9204         * clean.mk: fixed removal of files in bin/CVS/
9205         * device/lib/clean.mk: fixed removal of directories small and large
9206         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
9207         * src/SDCCicode.c,
9208         * src/SDCCval.c: removed superflous test for pedantic
9209
9210 2003-10-05  Borut Razem <borut.razem AT siol.net>
9211
9212         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
9213           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
9214           message "unmatched #pragma SAVE and #pragma RESTORE"
9215
9216 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9217
9218         * doc/sdccman.lyx: various additions and updates (interrupts, inline
9219           assembly, critical functions, atomic, nojtbound)
9220
9221 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
9222
9223         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
9224         * src/SDCCBBlock.h
9225         * src/SDCCloop.c
9226         * src/SDCCloop.h
9227         * src/SDCClrange.c
9228
9229 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9230
9231         * src/z80/gen.h,
9232         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9233         * src/mcs51/gen.h
9234         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9235         * src/ds390/gen.h
9236         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9237         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
9238         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
9239
9240 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9241
9242         * src/z80/gen.c (genRet): fixed bug #524753
9243         * src/z80/gen.c (genCast): fixed internal error on cast from
9244         pointer to long
9245         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
9246         fix for bug #477835 to the z80
9247         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
9248         for tracking iCodes in the peephole optimizer for z80
9249
9250 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9251
9252         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
9253         the other part of bug #814548
9254         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
9255
9256 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
9257
9258         * src/SDCCcse.c: fixed part of bug #814548
9259
9260 2003-09-28  Borut Razem <borut.razem AT siol.net>
9261
9262         * src/asm.c: rewrite of printILine() to use temporary file instead
9263           a pipe
9264         * src/xa51/main.c: commented out declaration of int rewinds
9265
9266 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9267
9268         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
9269
9270 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9271
9272         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
9273         * src/asm.c (printILine): Fixed bug #811015
9274
9275 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9276
9277         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
9278         freeing.
9279
9280 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9281
9282         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
9283         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
9284         to correctly handle general case of AOP_PAIRPTR
9285         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
9286
9287 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9288
9289         * src/mcs51/ralloc.c (fillGaps),
9290         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
9291         register positioning bug)
9292
9293 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
9294
9295         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
9296
9297 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9298
9299         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
9300         genCodePointerGet, genGenPointerGet, genFarPointerSet,
9301         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
9302         (ralloc doesn't intentionally do this now, but perhaps later)
9303         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
9304         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
9305         register positioning bugs (Fixed bug #762602 and #795325)
9306         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
9307         (Fixed bug #808779)
9308         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
9309         lines that --i-code-in-asm generates
9310
9311 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9312
9313         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
9314         trying to fclose a FILE* that was already closed.
9315
9316 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9317
9318         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
9319         of const struct should be treated as if const themselves)
9320
9321 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
9322
9323         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
9324
9325 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9326
9327         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
9328         Unix (/n) and DOS (/r/n) line terminations.
9329
9330 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9331
9332         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
9333         bug #613775
9334
9335 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9336
9337         * src/mcs51/gen.c (genFunction, genEndFunction),
9338         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
9339         and restore of EA so that stack offsets to parameters are
9340         correct when using both critical and reentrant/stack-auto.
9341         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
9342         size (can be triggered in error if sloc is shared between
9343         different sized objects)
9344         * device/include/float.h: fixed macros to explicitly use
9345         unsigned long where needed
9346
9347 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
9348
9349         Feature req. 799831: added code to allow nesting of critical functions
9350         * src/mcs51/gen.c (genFunction, genEndFunction)
9351         * src/ds390/gen.c (genFunction, genEndFunction)
9352
9353 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9354
9355         * src/SDCCsymt.c (sclsFromPtr),
9356         * src/SDCCsymt.h,
9357         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
9358         support for standard C idiom of memory mapped variables; for
9359         example, *((xdata int*)0x1234) = 1 is now internally equivalent
9360         to xdata int at 0x1234 tempvar = 1.
9361         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
9362         provided by Akiya ISHIDA
9363
9364 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
9365
9366         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
9367         * src/SDCCval.c (constVal): added reduction from int to char
9368         * src/SDCCval.c (valMult, valDiv): fixed sign handling
9369         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
9370         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
9371         to ignore the sign
9372         * support/regression/tests/shifts.c: fixed
9373
9374 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9375
9376         * src/z80/gen.c (genXor): Fixed bug #805445
9377
9378 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9379
9380         Fixed bug #621531 (const & volatile confusion in the type chain).
9381         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
9382         refer to the const or volatile state of the pointer itself.
9383
9384         * src/SDCCast.c
9385         * src/SDCCglue.c
9386         * src/SDCCicode.c
9387         * src/SDCCsymt.c
9388         * src/SDCCval.c
9389         * src/SDCC.y
9390         * src/SDCCsymt.h
9391         * src/pic/gen.c
9392         * src/pic/ralloc.c
9393         * src/pic16/gen.c
9394         * src/pic16/ralloc.c
9395         * support/regression/tests/const.c
9396
9397 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9398
9399         When checking for duplicated modules, use absolute paths
9400         instead of relative paths.  Files changed:
9401
9402         * as/mcs51/lklib.c
9403         * link/z80/lklib.c
9404
9405 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9406
9407         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
9408
9409 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9410
9411         * device/include/string.h: added size_t typedef, changed
9412         prototypes to use size_t, eliminated separate reentrant and
9413         non-reentrant declarations, added _memmove declaration
9414         * device/lib/_memcpy.c: changed to use size_t instead of int,
9415         changed /4 to >>2 to avoid division library call
9416         * device/lib/_memcmp.c,
9417         * device/lib/_memset.c,
9418         * device/lib/_strncat.c,
9419         * device/lib/_strncpy.c,
9420         * device/lib/_strncmp.c: changed to use size_t instead of int
9421         * device/lib/_memmove.c: new file (fixed bug #772294)
9422         * device/lib/Makefile.in: added _memmove.c
9423         * device/lib/z80/asm_strings.s: fixed bug #772290
9424         * support/regression/tests/bitfields.c: attempt to fix host assertion
9425         failure on amd64-unknown-linux2.2
9426
9427 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9428
9429         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
9430         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
9431         * as/z80/asmain.c (main): fixed bug #801766
9432
9433 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
9434
9435         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
9436         compilers
9437
9438 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9439
9440         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
9441         reported in bug #800609
9442
9443 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
9444
9445         * Top header beautifications in src/pic16 directory:
9446           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
9447           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
9448           pcoderegs.h, ralloc.c, ralloc.h
9449         * main.c: added top header and GPL license notice
9450         * pcode.c: fixed the if-conditional warning
9451
9452 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
9453
9454         * device/lib/_mullong.c: replaced int by short for gcc
9455
9456 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9457
9458         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
9459         and JUMPTABLE iCodes properly now (worked by accident before)
9460         * src/mcs51/gen.c (leftRightUseAcc),
9461         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
9462         iCode properly now. Use getSize instead of nRegs since a & b
9463         aren't part of the nRegs tally.
9464
9465 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
9466
9467         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
9468         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
9469           before instructions that use the _STATUS register
9470
9471 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
9472
9473         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
9474         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
9475         fetching of the pointer
9476         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
9477         copied from genNearPointerSet()
9478         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
9479         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
9480         If they pop r0/r1 they must be called in the opposite order than aopOp().
9481         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
9482         (resp. --stack-auto), prepared for --xstack
9483
9484 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9485
9486         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
9487
9488 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
9489
9490         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
9491         these ports have their own __sdcc_external_start()
9492
9493 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
9494
9495         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9496         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
9497         type for bits was changed. It resulted in bit variables becoming
9498         global, which is not permitted in PIC 14 assembly output.
9499
9500 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9501
9502         * doc/sdccman.lyx: various additions and updates. Rearranged sections
9503
9504 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9505
9506         Z80 and MCS51 linkers complaint if a public symbol is defined
9507         in more than one library module:
9508
9509         * as/mcs51/lklib.c
9510         * link/z80/lklib.c
9511         * as/mcs51/Makefile.in
9512
9513 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9514
9515         A few small changes that speed up the peephole optimizer.
9516
9517         * src/SDCCpeeph.c
9518
9519 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9520
9521         Try to make the peephole optimizer smarter by maintaining
9522         an association between the assembly source code and the
9523         iCodes that originated them. Put this information to use
9524         with a new peephole rule condition "notVolatile" so that
9525         the rules can be aggressive yet still safe.
9526
9527         * src/SDCCpeeph.c
9528         * src/SDCCpeeph.h
9529         * src/mcs51/gen.c
9530         * src/mcs51/peeph.def
9531
9532 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9533
9534         Fixed bug #741761
9535
9536         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
9537         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
9538         if the left or right operand symbols have the accuse flag set.
9539
9540 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9541
9542         Changed the type of the result of the ! (NOT) operator to char;
9543         previously it returned the same type as the source. This allows
9544         us to eliminate all the genFloatNot functions (all of its target
9545         implementations were very buggy) since !float can use the same
9546         code as !long now.
9547
9548         * src/SDCCicode.c (ast2iCode): ! returns char
9549         * src/mcs51/gen.c (genNot, genNotFloat),
9550         * src/ds390/gen.c (genNot, genNotFloat),
9551         * src/z80/gen.c (genNot, genNotFloat),
9552         * src/pic/gen.c (genNot, genNotFloat),
9553         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
9554
9555 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
9556
9557         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9558         1. Interrupt would not compile properly. Ensure PCLATH register is saved
9559            during interrupts. Ensure WSAVE is located at a shared bank address.
9560         2. Fixed page selection in some places
9561         3. Fixed BTFSS/C to where necessary use registers directly and not simply
9562            the registers name strings.
9563         4. Fixed "signed / unsigned compare" compiler warnings.
9564         5. The PIC port manages its own allocation of the general purpose
9565            registers, but makes no attempt to reuse them. As a result when
9566            compiling it soon runs out of general purpose registers. Some
9567            additional code was added to the files pcode.c and device.c to walk
9568            through the function call tree and rename the registers so that they
9569            get reused.
9570
9571         * src/pic/device.c
9572         * src/pic/gen.c
9573         * src/pic/glue.c
9574         * src/pic/pcode.c
9575         * src/pic/pcode.h
9576         * src/pic/ralloc.c
9577         * src/pic/ralloc.h
9578         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
9579         genPlus() & genMinus() when the result is the same as left or right
9580
9581 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9582
9583         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
9584
9585 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9586
9587         Made bitfield a distinct type from bit so that bitfields
9588         convert as per ANSI C and bits retain their traditional
9589         boolean style behaviour. Implemented bitfield support in
9590         the z80 port.
9591
9592         * src/SDCCsymt.h,
9593         * src/SDCCsymt.c,
9594         * src/SDCCast.c,
9595         * src/cdbFile.c,
9596         * src/mcs51/gen.c,
9597         * src/ds390/gen.c: bit v bitfield split
9598         * src/z80/gen.c: New support for bitfields
9599         * support/regression/tests/bitfields.c: reenabled z80,
9600         added more tests
9601
9602 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9603
9604         Rules 246.x, 247.x relate to bitfields, the others speed up
9605         access to xdata mapped I/O devices.
9606
9607         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
9608
9609 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9610
9611         Cleaned up genPackBits and genUnpackBits and added two helper
9612         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
9613         for literal assignments in genPackBits (thanks to Frieder for
9614         reminding me).
9615
9616         * src/mcs51/gen.c
9617         * src/ds390/gen.c
9618
9619 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9620
9621         Fixed bug #748310 (pointer to function type mishandled when the
9622         function name is omitted). Also fixed a SIGSEGV when a function
9623         attribute (reentrant, etc) is used on a non-function or on a
9624         function but misplaced before the parameter list.
9625
9626         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
9627         bug #748310
9628         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
9629         * support/Util/SDCCerr.h,
9630         * support/Util/SDCCerr.c: Added func attr misuse error msg
9631
9632 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
9633
9634         Fixed bug #787649 by anonymous
9635         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
9636         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
9637
9638 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9639
9640         Fixed numerous bitfield problems.
9641
9642         * src/SDCC.y: More bitfield related error checking
9643         * src/SDCCsymt.h,
9644         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
9645         * support/Util/SDCCerr.h,
9646         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
9647         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9648         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
9649         * support/regression/tests/bitfields.c: tests added
9650
9651 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9652
9653         Made the constant following the "interrupt" keyword optional. If
9654         omitted, the function will not automatically be given an entry
9655         in the interrupt vector table (similar to #pragma NOIV, but
9656         less syntacticly kludgy). The interrupt number is also now
9657         range checked. Also fixed a bug in the high order bit example
9658         in the manual.
9659
9660         * src/SDCC.y
9661         * src/SDCCmem.c
9662         * src/SDCCglue.c
9663         * src/SDCCsymt.h
9664         * support/Util/SDCCerr.c
9665         * support/Util/SDCCerr.h
9666         * doc/sdccman.lyx
9667
9668 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
9669
9670         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
9671         * src/SDCCicode.c (operandOperation): rewritten some ops
9672         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
9673         * src/SDCCsymt.c (computeType): literals are handled the same way as any
9674         other type
9675         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
9676         be re-activated by defining REDUCE_LITERALS)
9677         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
9678         unsigned, but are signed by default
9679         * src/SDCCval.c (constVal): rearranged
9680         * src/SDCCval.c (valMod): preliminary fix
9681         * src/SDCCval.c (valCastLiteral): use TYPE_* types
9682         * support/regression/literalop.c: added, work in progress
9683
9684 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9685
9686         Generate warnings for useless declarations like "char data;"
9687         that don't do what new users expect.
9688
9689         * src/SDCC.y
9690         * support/Util/SDCCerr.h
9691         * support/Util/SDCCerr.c
9692
9693 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
9694
9695         * src/SDCCval.c (valMult): fix overflow detection of negative int
9696
9697 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9698
9699         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
9700
9701         Changes to support big endian targets:
9702
9703         * src/ports.h
9704         * src/SDCCglue.c
9705         * src/avr/main.c
9706         * src/ds390/main.c
9707         * src/izt/i186.c
9708         * src/mcs51/main.c
9709         * src/pic/main.c
9710         * src/pic16/main.c
9711         * src/xa51/main.c
9712         * src/z80/main.c
9713
9714 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
9715
9716         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
9717         * device/lib/time.c: fixed warning "integer overflow in expression"
9718
9719 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
9720
9721         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
9722         * src/SDCCval.c (constVal): changed default to signed; hex and octal
9723         constants are unsigned; added recognition of "u" flag for unsigned
9724         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
9725         * src/SDCCval.c (valDiv, valMod): fixed signdness
9726         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
9727         signedness of modulo, left and right shift
9728         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
9729         * support/Util/SDCCerr.h: added warning W_INT_OVL
9730         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
9731         * src/SDCCast.c (ast_print): improved output of constants
9732
9733 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9734
9735         Fixed some warnings when building with MSVC:
9736
9737         * as/mcs51/asdata.c
9738         * as/z80/asdata.c
9739         * as/mcs51/asm.h
9740         * as/z80/asm.h
9741         * link/z80/aslink.h
9742         * link/z80/lkdata.c
9743         * link/z80/lkeval.c
9744         * link/z80/lkgb.c
9745         * link/z80/lkihx.c
9746         * link/z80/lks19.c
9747         * link/z80/lksym.c
9748         * support/cpp2/cpplib.c
9749         * src/ds390/gen.c
9750         * src/mcs51/gen.c
9751
9752 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
9753
9754         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
9755
9756 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9757
9758         * support/librarian/clean.mk: Do not remove Makefile.
9759         * support/librarian/Makefile: added.
9760
9761 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9762
9763         Added librarian to MSVC build:
9764         * all.dsp
9765         * sdcc.dsw
9766         * support/librarian/librarian.dsp
9767
9768         'configure' not needed for librarian, removed:
9769         * support/librarian/configure
9770         * support/librarian/configure.in
9771         * support/librarian/config_in.h
9772         * support/librarian/Makefile.in
9773
9774         Hopefully these ones built the librarian and the rest of sdcc properly:
9775         * Makefile
9776         * Makefile.common.in
9777
9778         Messed up 'configure', so revert to previous version:
9779         * configure
9780         * configure.in
9781
9782 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
9783
9784         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
9785         there, while the mantissa of a double is "only" 53 bits wide.
9786
9787 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9788
9789         Adding sdcclib to the build.  MSVC project coming soon.
9790         Files added/changed:
9791
9792         * support/librarian/clean.mk
9793         * support/librarian/configure
9794         * support/librarian/configure.in
9795         * support/librarian/config_in.h
9796         * support/librarian/Makefile.bcc
9797         * support/librarian/Makefile.in
9798         * support/librarian/sdcclib.c
9799         * Makefile.bcc
9800         * Makefile
9801         * Makefile.common.in
9802         * configure
9803         * configure.in
9804
9805 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9806
9807         Linker now complaints if linked modules have conflicting options, for
9808         example, one compiled using --model-large and another one compiled with
9809         --model-small.  The following files were modified:
9810
9811         * as/mcs51/asdata.c
9812         * as/mcs51/aslink.h
9813         * as/mcs51/asm.h
9814         * as/mcs51/asmain.c
9815         * as/mcs51/asout.c
9816         * as/mcs51/i51pst.c
9817         * as/mcs51/lkdata.c
9818         * as/mcs51/lklibr.c
9819         * as/mcs51/lkmain.c
9820         * as/z80/asdata.c
9821         * as/z80/asm.h
9822         * as/z80/asmain.c
9823         * as/z80/asout.c
9824         * as/z80/z80pst.c
9825         * link/z80/aslink.h
9826         * link/z80/lkdata.c
9827         * link/z80/lklibr.c
9828         * link/z80/lkmain.c
9829         * src/SDCCglue.c
9830
9831 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9832
9833         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
9834         as/mcs51/lklibr.c: Generate a warning when a library is not found.
9835
9836 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
9837
9838         * src/z80/mappings.i: fix _mul[us][int,long] entries
9839
9840 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9841
9842         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
9843
9844 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
9845
9846         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
9847         * support/regression/tests/bitopcse.c: added
9848         fixed warning:
9849         * src/avr/gen.c:
9850         * src/pic/gen.c:
9851         * src/pic16/gen.c:
9852         * src/z80/gen.c:
9853         * src/xa51/gen.c:
9854
9855 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9856
9857         added support for new library format to z80, gbz80 linkers:
9858         *link/z80/aslink.h
9859         *link/z80/lklex.c
9860         *link/z80/lklib.c
9861         *link/z80/lklist.c
9862
9863 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
9864
9865         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
9866         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
9867
9868 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
9869
9870         added DUMMY_READ_VOLATILE:
9871         * src/SDCC.y:
9872         * src/avr/gen.c:
9873         * src/xa51/gen.c:
9874         * src/z80/gen.c:
9875         * src/pic/gen.c:
9876         * src/pic16/gen.c:
9877         * src/mcs51/gen.c:
9878         * src/ds390/gen.c:
9879         * src/SDCCcse.c (algebraicOpts): many improvements
9880         * src/SDCCcse.h: removed algebraicOpts()
9881         * src/SDCCicode.c (picDummyRead): added
9882
9883 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9884
9885         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
9886         "Insufficient space in data memory".
9887
9888 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9889
9890         * src/mcs51/gen.c: fixed bug #771358
9891         * src/z80/gen.c: fixed bug #759087
9892
9893 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
9894
9895         * src/pic16/glue.c: minor cleanup by Vangelis
9896
9897 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9898
9899         * device/include/regc515c.h: fixed #758477
9900         * device/lib/_gptrget.c: saving some cycles in generic pointer get
9901         * device/lib/_gptrput.c: saved a few bytes
9902         * my tab spacing is 8, yours too?)
9903         * device/lib/_ser.c: process RX bytes earlier than TX bytes
9904         * device/lib/serial.c: process RX bytes earlier than TX bytes
9905         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
9906
9907 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9908
9909         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
9910
9911 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9912
9913     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
9914
9915 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
9916
9917         * device/lib/Makefile.in: bad fix, reverted to 1.43
9918
9919 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
9920
9921         * device/lib/Makefile.in: added missing z80 object files
9922
9923 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
9924
9925         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
9926         pic16 progress by Vangelis:
9927         * src/SDCCglobl.h:
9928         * src/SDCCmain.c:
9929         * src/pic/Makefile:
9930         * src/pic:
9931         * pic/Makefile:
9932         * pic16/device.c:
9933         * pic16/device.h:
9934         * pic16/gen.c:
9935         * pic16/gen.h:
9936         * pic16/genarith.c:
9937         * pic16/glue.c:
9938         * pic16/main.c:
9939         * pic16/pcode.c:
9940         * pic16/pcode.h:
9941         * pic16/pcodepeep.c:
9942         * pic16/peeph.def:
9943
9944 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9945
9946     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
9947
9948 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9949
9950     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
9951     added gbz80 build to MSVC project.
9952     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
9953     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
9954     from 8051 stuff and setup so it links using a .lnk file.
9955
9956 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9957
9958     * support/librarian/sdcclib.c: sdcc librarian.
9959     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
9960     with sdcclib.
9961
9962 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9963
9964     * as/mcs51/lkmain.c: properly handle extensions in function afile.
9965
9966 2003-07-02  Borut Razem <borut.razem AT siol.net>
9967
9968         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
9969         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
9970         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
9971         src/xa51/main.c, src/z80/main.c:
9972         virtualization of glue() function: each port has it's own glue function,
9973         which is accessed by do_glue function pointer in PORT.general structure
9974
9975 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
9976
9977         * DS800C400 fun, improved ROM interface and tinibios.
9978
9979 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
9980
9981         * More support for DS80C400. Now includes beginning of interface to ROM.
9982
9983 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
9984
9985         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
9986
9987 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9988
9989         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
9990
9991 2003-06-19  Borut Razem <borut.razem AT siol.net>
9992
9993         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
9994
9995 2003-06-19  Borut Razem <borut.razem AT siol.net>
9996
9997         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
9998         fixed Z80 port - crt0.o: cannot open.
9999
10000 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
10001
10002         * support/Util/MySystem.c (merge_command): revert bad fix
10003
10004 2003-06-18  Borut Razem <borut.razem AT siol.net>
10005
10006         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
10007
10008 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10009
10010         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
10011         option --use-stdout sends errors to stdout instead of stderr.
10012
10013 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
10014
10015         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
10016
10017 2003-06-15  Borut Razem <borut.razem AT siol.net>
10018
10019         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
10020         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
10021         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
10022         fixed width array of pointers replaced with sets;
10023         multiple include and lib paths ared transferred to preprocessor and linker
10024         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
10025         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
10026         fixed width array of pointers
10027         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
10028         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
10029         fixupPath(), getPathDifference()
10030         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
10031         fixed width array of pointers
10032
10033 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
10034
10035         * src/pic16/ralloc.c: fix warnings
10036         * src/pic16/pcode.c: fix warning
10037
10038 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
10039
10040          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
10041         know all the details, but essentially this set of changes enable
10042         the pic16 port to generate movff instructions and generate assembler
10043         directives,
10044         * src/SDCCmain.c:
10045         * src/pic16/gen.c:
10046         * src/pic16/glue.c:
10047         * src/pic16/pcode.c:
10048         * src/pic16/device.c:
10049         * src/pic16/main.c:
10050         * src/pic16/pcode.h:
10051         * src/pic16/pcoderegs.c:
10052         * src/pic16/ralloc.c:
10053         * src/pic16/ralloc.h:
10054
10055 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10056
10057         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
10058         added option --vc, so sdcc errors and warnings are compatible with
10059         Microsoft Visual Studio.
10060
10061 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10062
10063         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
10064           device/lib/libfloat.lib: added atof function.
10065
10066 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
10067
10068         * doc/sdccman.lyx: updated to Lyx 1.3
10069         * doc/cdbfileformat.lyx: updated to Lyx 1.3
10070         * doc/test_suite_spec.lyx: updated to Lyx 1.3
10071         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
10072
10073 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
10074
10075         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
10076
10077 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10078
10079         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
10080           additions to the "related tools/documentation" section
10081
10082 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
10083
10084         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
10085
10086 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
10087
10088         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
10089         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
10090
10091 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
10092
10093         * doc/sdccman.lyx: fix double dash and other minor things
10094         * doc/Makefile: fix double dash
10095
10096 2003-05-28  Karl Bongers(patches from Martin Helmling)
10097         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
10098           condition and ignore commands.
10099
10100 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10101
10102         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
10103           is in parts still quite out of date, I did changes as far as I felt makes sense
10104           for a non-native english speaker.
10105           Please feel free to add to the manual or to correct my changes.
10106         * doc/Makefile: undid touching the date of intermediate tex files.
10107
10108 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10109
10110         * doc/sdccman.lyx: Manual has an index now
10111
10112 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
10113
10114         Finalize muluint/mulsint and mululong/mulslong merging:
10115         * device/lib/_mulint.c
10116         * device/lib/_mullong.c
10117         * device/lib/gbz80/mul.s
10118         * device/lib/gbz80/stubs.s
10119         * device/lib/z80/mul.s
10120         * device/lib/z80/stubs.s
10121         * src/SDCCsymt.c (initCSupport)
10122
10123 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10124
10125         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
10126         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
10127           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
10128           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
10129           instead of /Zm500.
10130
10131 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10132
10133         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
10134           the regression tests I'm not brave enough to enable 245.b, 245.c
10135         * doc/sdccman.lyx: added latex preamble for hyperref package.
10136           Using pdflatex this will give you a hyperlinked pdf file with
10137           bookmarks. (prepend '%' before /usepackage if this breaks something)
10138
10139 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10140
10141          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
10142
10143 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
10144
10145         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
10146
10147 2003-05-21    <johan AT balder>
10148
10149         * src/SDCCglue.c (printIval): fixed bug #739934
10150
10151 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
10152
10153         Applied patch from bug 737905 (renamed yylineo to mylineno):
10154         * src/altlex.c
10155         * src/SDCCast.c
10156         * src/SDCglobl.h
10157         * src/SDCC.lex
10158         * src/SDCCsymt.c
10159         * src/SDCCval.c
10160         * src/pic16/pcode.c: Cleaned warnings
10161         * src/pic16/pcodeflow.c: Cleaned warnings
10162         * src/pic16/pcoderegs.c: Cleaned warnings
10163
10164 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
10165
10166         * src/pic16/pcode.c: Cleaned warnings
10167         * src/pic16/pcodepeep.c: Cleaned warnings
10168         * src/pic16/ralloc.c: Cleaned warnings
10169
10170 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
10171
10172         * doc/sdccman.lyx: fixed bug 739745
10173         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
10174
10175 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
10176
10177         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
10178         it can be defined with CFLAGS when running configure
10179         * src/SDCCmain.c: fixed compiling + linking with object files
10180
10181 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
10182
10183         * configure.in: configure for pic16 port,
10184             added --disable-pic16-port
10185         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
10186         * src/SDCCmain.c: linkOptions is changed to set *,
10187             added if/endif conditional macros to remove options help
10188             messages from optionsTable when a port is not configured, added
10189             support for the PIc16 port in the ports table, when executing
10190             the compiler with no port specified on command line, a default
10191             port is selected with the new macro DEFAULT_PORT which is
10192             defined in port.h, in setDefaultOptions() linkOptions is removed
10193             from initialization assignment, since now it is a set,
10194             parseCmdLine uses setParseWithComma for linkOptions, in
10195             linkEdit() linkOptions are accessed with new function indexSet()
10196             which returns the i'th item of a set variable. See SDCCset.c, in
10197             linkEdit() when calling buildCmdLine(), added linkOptions as
10198             last argument. Now users can pass arguments to gplink via the
10199             -Wl option, main() uses pic16glue() to glue up pic16 programs
10200         * src/SDCCpeeph.c: various changes to support pic16
10201         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
10202             return the i'th item of the set
10203         * src/SDCCset.h: added function prototype for indexSet()
10204         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
10205         * src/clean.mk: added pic16 in CLEANALLPORTS variable
10206         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
10207             added macro DEFAULT_PORT
10208         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
10209         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
10210             generated
10211         * src/pic16/glue.c: commented out some error producing lines
10212         * src/pic16/main.c: __config directives are commented out to stop
10213             gpasm complaining and test the linkage with gplink, _linkCmd and
10214             _asmCmd changed to be more gplink and gpasm friendly
10215         * src/pic16/peeph.def: peep rule 3 is commented out, since it
10216             produced an error when parsed, peep rule 12 is added to utilize
10217             movff, but it is commented out since the pCode does not support
10218             yet a command with 2 address arguments
10219
10220 2003-05-18    <johan AT balder>
10221
10222         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10223         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10224 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
10225
10226         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
10227   Added feature to script commands from file.
10228
10229 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
10230
10231         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
10232         * src/SDCCutil.c: include ctype.h for win32
10233
10234 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
10235
10236         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
10237
10238 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
10239
10240         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
10241   Fixed so you can set breakpoints prior to run, run does not stop
10242   on entry now.  Add tbreak.  Other enhancements and fixes for use
10243   with ddd.
10244
10245 2003-05-12  Borut Razem <borut.razem AT siol.net>
10246
10247         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
10248
10249 2003-05-11  Borut Razem <borut.razem AT siol.net>
10250
10251         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
10252         the path of bin directory, so that PATH is the only env. variable, which has to be set
10253         in case of standard installation.
10254         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
10255         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
10256         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
10257
10258 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
10259
10260         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
10261         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
10262         temp files are in the port dir; clean the gen/test directory when
10263         generating new test.c
10264         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
10265         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
10266         * support/regression/tests/zeropad.c: added
10267
10268 2003-05-09    <johan AT balder>
10269
10270         * src/SDCCglue.c: fixed bug #597940
10271
10272 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
10273
10274         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10275   cache sfr, optimize next,step, fix off by one sourceline,
10276   support ddd list function.
10277         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
10278
10279 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
10280
10281         * support/regression/HTMLgen.py: added compare_s2f()
10282         * support/regression/Makefile: redo 1.27
10283         * support/regression/generate-cases.py: redo 1.5
10284
10285 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
10286
10287         * support/regression/tests/float.c: workaround 33 bit hex constant
10288         * support/regression/tests/simplefloat.c: fix division for host
10289
10290 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
10291
10292         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
10293         that tame's the PIC's over-aggressive optimizer.
10294
10295 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10296
10297          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
10298          support for MSVC.
10299
10300 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
10301
10302         Initial support for DS80C400. "Hello world" runs on TINIm400
10303         (with polled I/O).
10304
10305 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
10306
10307          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10308          * Some notes on ddd usage added in debugger/README
10309          Martin Helmling adding more features and fixes for ddd GUI debugger.
10310          Code added for nexti, stepi, up, down, and other adjustments.
10311
10312 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
10313
10314         * src/pic/pCodepeep.c non-wildcard asmops are now handled
10315         * src/pic/peeph.def Added two rules to optimize carry manipulation
10316         * src/pic/* removed debug printfs
10317
10318 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
10319
10320         * debugger/mcs51/cmd.c: added header newalloc.h
10321
10322 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
10323
10324         * as/Makefile: new EXEEXT
10325         * as/z80/Makefile: remove trailing slash of BUILDIR
10326         * as/z80/clean.mk: new EXEEXT
10327         * Makefile.common.in: add to CFLAGS (and others), don't replace it
10328         * support/cpp2/Makefile.in: new EXEEXT
10329         * src/pic/glue.c (pic14emitRegularMap): fixed warning
10330
10331 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
10332
10333         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
10334         EXEEXT was introduced to fix all related problems with targets
10335         "clean", "install" and "uninstall"; a couple of further flaws
10336         especially with "clean" have been fixed too
10337         * as/mcs51/Makefile.in
10338         * as/mcs51/clean.mk
10339         * as/z80/Makefile
10340         * Makefile
10341         * clean.mk
10342         * debugger/mcs51/Makefile.in
10343         * debugger/mcs51/clean.mk
10344         * link/z80/Makefile
10345         * link/z80/Makefile.in
10346         * link/z80/clean.mk
10347         * link/Makefile
10348         * packihx/Makefile.in
10349         * packihx/clean.mk
10350         * sim/ucsim/Makefile
10351         * sim/ucsim/clean.mk
10352         * sim/ucsim/avr.src/Makefile.in
10353         * sim/ucsim/avr.src/clean.mk
10354         * sim/ucsim/s51.src/Makefile.in
10355         * sim/ucsim/s51.src/clean.mk
10356         * sim/ucsim/xa.src/Makefile.in
10357         * sim/ucsim/xa.src/clean.mk
10358         * sim/ucsim/z80.src/Makefile.in
10359         * sim/ucsim/z80.src/clean.mk
10360         * sim/ucsim/main_in.mk
10361         * sim/ucsim/packages_in.mk
10362         * sim/ucsim/gui.src/Makefile.in
10363         * sim/ucsim/gui.src/serio.src/Makefile.in
10364         * sim/ucsim/gui.src/serio.src/clean.mk
10365         * src/Makefile.in
10366         * src/clean.mk
10367         * support/cpp2/Makefile.in
10368         * support/cpp2/clean.mk
10369         * support/makebin/Makefile
10370         * support/makebin/clean.mk
10371         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
10372         * doc/sdccman.lyx: --program-suffix no longer needed
10373
10374 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
10375
10376          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
10377          Martin Helmling added support for ddd GUI debugger.
10378          Code added to display assembly, set variables, and other commands
10379          to interface to ddd.
10380
10381 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
10382
10383         * as/Makefile: fix target clean
10384         * as/clean.mk: fix target clean
10385         * as/z80/clean.mk: fix target clean
10386
10387 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
10388
10389         * Makefile.common.in: added  AT EXEEXT AT
10390         * configure.in: removed all mingw32 stuff
10391         * configure: rebuilt from configure.in
10392         * doc/sdccman.lyx: updated section "installation"
10393         * support/scripts/sdcc_mingw32: adapted to configure
10394         * support/scripts/sdcc_cygwin_mingw32: added
10395
10396 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
10397
10398         * src/pic Added object file support for the PIC port
10399         * src/pic Applied patch from Craig Franklin (this started the object file support)
10400         * src/regression Updated the PIC regression tests for object files
10401
10402 2003-04-20  Borut Razem <borut.razem AT siol.net>
10403
10404         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
10405           lklex.c: In function `getfid':
10406           lklex.c:203: warning: array subscript has type `char'
10407         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
10408           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
10409         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
10410           stack handling macros
10411
10412 2003-04-19  Borut Razem <borut.razem AT siol.net>
10413
10414         * "handling space characters in file path" task:
10415         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
10416         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
10417         * support/Util/MySystem.h: make it self-sufficient
10418         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
10419           src/z80/main.c, sdcc/as/mcs51/lklex.c:
10420           handling space characters in file path
10421         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
10422           (it will be used by assemblers, which have their own includes, e.g. gpasm)
10423         * support/Util/MySystem.c: handling space characters in executable's path
10424
10425 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
10426
10427         * as/z80/Makefile: fix permanent rebuild of z80
10428         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
10429         * support/regression/tests/bitfields.c: added Johan's bitfields.c
10430
10431 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
10432
10433         * src/SDCCopt.c: add special case optimization to replace modulo by
10434           a power of two with a bitwise AND.
10435
10436 2003-04-18    <johan AT balder>
10437
10438         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
10439
10440 2003-04-17    <johan AT balder>
10441
10442         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
10443         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
10444
10445 2003-04-13  Borut Razem <borut.razem AT siol.net>
10446
10447         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
10448         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
10449           fixed mingw problem in adl_NORMALIZE_PATH
10450
10451 2003-04-12  Borut Razem <borut.razem AT siol.net>
10452
10453         * fixed "#pragma SAVE/RESTORE can not be nested":
10454         * src/SDCC.lex: reworked pragma handling functions
10455         * sdcc/src/SDCCglobl.h: reworked stack handling macros
10456         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
10457
10458 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
10459
10460         * src/SDCCutil.c (pathEquivalent): defined but not used
10461         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
10462         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
10463         * configure: rebuilt from configure.in
10464         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10465         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10466         * device/include/Makefile.in: replace sdcc_datadir
10467         * device/lib/Makefile.in: replace sdcc_datadir
10468         * Makefile.common.in: add LDFLAGS from configure
10469         * packihx/Makefile.in: use LDFLAGS
10470         * src/Makefile.in: use LDFLAGS
10471         * support/cpp2/Makefile.in: add LDFLAGS from configure
10472         * support/makebin/Makefile: use LDFLAGS
10473         * .version: bumped version number to 2.3.5
10474
10475 2003-04-12  Borut Razem <borut.razem AT siol.net>
10476
10477         * completed "different paths" task:
10478         * src/SDCCmacro.c: fixed bug in handling quotes
10479         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
10480         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
10481
10482 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
10483
10484         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
10485
10486 2003-04-11 kevin Vigor <kevin AT vigor.nu>
10487
10488         * ds390/gen.c ds390/peeph.def: fix bug 706781
10489
10490 2003-04-11  Borut Razem <borut.razem AT siol.net>
10491
10492         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
10493
10494 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
10495
10496         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
10497         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
10498          set - this bit used to not be set...).
10499         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
10500           bad code in PIC Port
10501         * src/regression/and2.c added to test bug 609268
10502         * src/regression/Makefile added and2.c to regression test
10503
10504
10505 2003-04-08    <johan AT CP255758-A>
10506
10507         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
10508         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
10509         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
10510
10511 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
10512
10513         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
10514         fix bug #487815
10515         * support/cpp2/Makefile.in: fix bug #487815
10516         * configure: rebuilt from configure.in
10517         * Makefile.common.in: docdir changed, new path suffixes
10518         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10519         * sdcc_vc_in.h: reflect changes from sdccconf.h
10520         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
10521         * src/SDCCutil.h: remove BINDIR hack
10522         * doc/sdccman.lyx: update new path hierarchy
10523
10524 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10525
10526         * src/SDCCpeeph.c: added okToRemoveSLOC test
10527
10528 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10529
10530         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
10531
10532 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
10533
10534         * src/SDCCpeeph.c: added labelIsReturnOnly test
10535         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
10536
10537 2003-04-05    <johan AT balder>
10538
10539         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
10540         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
10541         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
10542         * src/SDCCast.c: fixed a warning
10543         * src/SDCCast.h: fixed a warning
10544         * src/SDCCicode.c (operandFromAst): fixed a warning
10545
10546 2003-04-04    <johan AT balder>
10547
10548         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
10549         * src/SDCCast.c (decorateType): fixed bug #715076
10550         * src/SDCC.y: fixed bug #702907
10551
10552 2003-04-03    <johan AT balder>
10553
10554         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
10555         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
10556         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
10557         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
10558         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
10559
10560 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
10561
10562         * _decdptr.c: fix return values
10563         * _gptrget.c: fix return values
10564         * _gptrgetc.c: fix return values
10565         * _gptrput.c: fix return values
10566         * _mulint.c: fix return values
10567         * as/z80/Makefile: fix 'make -j' problem
10568
10569 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
10570
10571         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
10572         * configure.in: big cleanup, updated to autoconf 2.5x
10573         * configure: rebuilt from configure.in
10574         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
10575         * sdcc_vc_in.h: reflect changes from sdccconf.h
10576         * doc/Makefile: fixed a flaw in "make install"
10577
10578 2003-04-02    <johan AT balder>
10579
10580         * src/ds390/gen.c (genCmp): no comments
10581         * src/mcs51/gen.c (genCmp): no comments
10582         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
10583         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
10584
10585 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
10586
10587         * support/regression/generate-cases.py: place generated file in given sub directory
10588         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
10589         * support/regression/Makefile: improvements for 'make -j';
10590         side effect: it's simpler and faster now
10591
10592 2003-03-31  Borut Razem <borut.razem AT siol.net>
10593
10594         * src/z80/main.c: link-{port} and as-{port} defined without path
10595         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
10596
10597 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
10598
10599         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
10600
10601 2003-03-30  Borut Razem <borut.razem AT siol.net>
10602
10603         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
10604           changed type of list parameter to set
10605         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
10606         * src/port.h: changed type of do_assemble() parameter to set
10607         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
10608           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
10609           definition of "cppoutfilename" macro with NULL value in preProcess()
10610         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
10611         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
10612         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
10613           replaced with set *binPathSet
10614         * shash_add() deallocates the item, if allready exsists, before adding the new one
10615         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
10616
10617 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
10618
10619         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
10620           a nested for loop bug in the PIC port
10621         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
10622           for loops
10623
10624 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
10625
10626         * support/Util/dbuf.h: remove C++ stuff to make it portable
10627
10628 2003-03-28  Borut Razem <borut.razem AT siol.net>
10629
10630         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
10631           literal strings in stringLiteral()
10632         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
10633         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
10634           to the project
10635
10636 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
10637
10638         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
10639
10640 2003-03-26    <johan AT balder>
10641
10642         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
10643         * src/ds390/gen.c (saveRegisters): catched symbol abuse
10644         * src/SDCCast.c (decorateType): fixed " -v < 3"
10645
10646 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
10647
10648         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
10649         Added Lenny Story's debug infrastructure changes:
10650         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
10651         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
10652         * src/cdbFile.c: added
10653         * src/SDCCdebug.c: added
10654         * src/SDCCdebug.h: added
10655         * src/SDCCast.c (createFunction)
10656         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
10657         * src/SDCCmain.c (parseCmdLine, main)
10658         * src/SDCCmem.c (redoStackOffsets)
10659         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
10660         * src/SDCCsymt.h
10661         * src/common.h
10662         * src/avr/gen.c (genAVRCode)
10663         * src/ds390/gen.c (gen390Code)
10664         * src/mcs51/gen.c (gen51Code)
10665         * src/pic/gen.c (genpic14Code)
10666         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
10667         * src/xa51/gen.c (genXA51Code)
10668         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
10669
10670 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10671
10672         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
10673         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
10674
10675 2003-03-22    <johan AT balder>
10676
10677         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
10678
10679 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
10680
10681         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
10682         * doc/cdbfileformat.lyx: added, written by Lenny Story
10683         * doc/Makefile: added cdbfileformat.lyx
10684         * doc/clean.mk: added cdbfileformat.lyx
10685
10686 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
10687
10688         * src/mcs51/peeph.def: fix bug #705773
10689
10690 2003-03-20    <johan AT balder>
10691
10692         An sfr/sbit can have an "at #" AND an initializer
10693         * src/SDCCsymt.c (checkSClass):
10694         * src/SDCCmem.c (allocGlobal):
10695         * src/SDCCmem.c (allocLocal):
10696         * src/SDCCast.c (createBlock):
10697
10698 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
10699
10700         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
10701
10702 2003-03-16    <johan AT balder>
10703
10704         Undid the hackup of const and volatile, the problem is much bigger
10705         * src/SDCC.y:1.65
10706         * src/SDCCast.c:1.171
10707         * src/SDCCglue.c:1.138
10708         * src/SDCCicode.c:1.146
10709         * src/SDCCsymt.c:1.150
10710         * src/SDCCval.c:1.65
10711
10712 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
10713
10714         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
10715         * src/ds390/gen.c (genAddrOf): fixed bug #704087
10716
10717 2003-03-13    <johan AT balder>
10718
10719         Hackup const and volatile modifiers in type chains a bit:
10720         * src/SDCC.y:1.63
10721         * src/SDCCast.c:1.169
10722         * src/SDCCglue.c:1.136
10723         * src/SDCCicode.c:1.143
10724         * src/SDCCsymt.c1.146
10725         * src/SDCCsymt.h1.59
10726         * src/SDCCval.c:1.63
10727
10728 2003-03-12    <johan AT balder>
10729
10730         * src/SDCCBBlock.h: more LRH debugging junk
10731         * src/SDCCcflow.h: more LRH debugging junk
10732         * src/SDCCloop.c: more LRH debugging junk
10733         * src/SDCC.y (struct_declaration): fixed bug #697590
10734         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
10735         * src/ds390/gen.c (aopForRemat): fixed bug #700031
10736         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
10737
10738 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10739         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
10740         test function names must now match exactly).
10741         * src/SDCCcse.c: added special case in findCheaperOp to allow
10742         extending a short integer. Makes less awful code for bug 700121 test case.
10743
10744 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10745
10746         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
10747         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
10748
10749 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10750
10751         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
10752         actually called (operandsNotEqual() was called for all
10753         operandsNotEqualX tests).
10754
10755 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
10756
10757         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
10758         with shorter literals. Fixes bug 700121.
10759
10760 2003-03-11    <johan AT balder>
10761
10762         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
10763
10764 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
10765
10766         * src/SDCCloop.c (mergeRegions): an evil beast is dead
10767         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
10768
10769 2003-03-10  Borut Razem <borut.razem AT siol.net>
10770
10771         * src/SDCCmain.c: pipe preprocessor's output
10772         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10773         * sdcc_vc_in.h: define pclose as _pclose for WIN32
10774         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10775         which closes all pipes in pipeSet set
10776         * src/SDCCset.c: free deleted item in function deleteSetItem()
10777         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10778         moved from z80 to src subproject
10779         * .version: increased version number to 2.3.4
10780
10781 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
10782
10783         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
10784         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
10785         * support/regression/ports/xa51/spec.mk: fix typo
10786
10787 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
10788
10789         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
10790
10791 2003-03-09  Borut Razem <borut.razem AT siol.net>
10792
10793         * src/SDCCmain.c: pipe preprocessor's output
10794         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
10795         * sdcc_vc_in.h: define pclose as _pclose for WIN32
10796         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
10797         which closes all pipes in pipeSet set
10798         * src/SDCCset.c: free deleted item in function deleteSetItem()
10799         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
10800         moved from z80 to src subproject
10801
10802 2003-03-09  Borut Razem <borut.razem AT siol.net>
10803
10804         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
10805         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
10806         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
10807         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
10808         * src/SDCCglobl.h: unification of WIN32 native definitions
10809
10810 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10811
10812         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
10813
10814 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
10815
10816         * src/configure.in:   check for endianess (even while cross-compiling)
10817         * src/configure:      check for endianess (even while cross-compiling)
10818         * src/configure_in.h: check for endianess (even while cross-compiling)
10819         * src/avr/gen.c:        remove old endianess stuff
10820         * src/mcs51/gen.c:      remove old endianess stuff
10821         * src/ds390/gen.c:      remove old endianess stuff
10822         * src/pic/gen.c:        remove old endianess stuff
10823         * src/pic/genarith.c:   remove old endianess stuff
10824         * src/pic/glue.c:       fix endianess check
10825         * src/pic16/gen.c:      remove old endianess stuff
10826         * src/pic16/genarith.c: remove old endianess stuff
10827         * src/pic16/glue.c:     fix endianess check
10828         * src/xa51/gen.c:       remove old endianess stuff
10829         * src/z80/gen.c:        fix endianess check
10830         * src/SDCCglue.c:       fix endianess check
10831         * src/ds390/peeph.def: fix bug 700036
10832
10833 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
10834
10835         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
10836         * src/configure: find appropriate data-types on host for SDCC's int and long
10837         * src/configure.in: find appropriate data-types on host for SDCC's int and long
10838         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
10839         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
10840
10841 2003-03-07    <johan AT balder>
10842
10843         Just a big NOOP:
10844                 some minor cleanups before the big shot
10845                 OP_DEFS and OP_USES now use Kevin's protection
10846                 new option --nolabelopt
10847
10848         * src/SDCCBBlock.c:
10849         * src/SDCCast.c,:
10850         * src/SDCCcflow.c:
10851         * src/SDCCcse.c:
10852         * src/SDCCicode.c:
10853         * src/SDCCicode.h:
10854         * src/SDCClabel.c:
10855         * src/SDCCloop.c:
10856         * src/SDCCmain.c:
10857         * src/ds390/ralloc.c:
10858         * src/mcs51/ralloc.c:
10859         * src/pic/ralloc.c:
10860         * src/xa51/ralloc.c:
10861         * src/z80/ralloc.c:
10862
10863 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
10864
10865         * src/pic/pcode.c (get_op): fix 64 bit warnings
10866         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
10867         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
10868         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
10869         * support/regression/tests/malloc.c: fix 64 bit warnings
10870
10871 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
10872
10873         * src/mcs51/gen.c (genMinus): fixed bug 696436
10874
10875 2003-03-02  Borut Razem <borut.razem AT siol.net>
10876
10877         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
10878
10879 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
10880
10881         * configure.in: test for mkstemp
10882         * sdccconf_in.h: add HAVE_MKSTEMP
10883
10884 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
10885
10886         * device/include/ctype.h: removed warning while using --stack-auto
10887         * device/include/malloc.h: removed warning while using --stack-auto
10888         * device/include/string.h: removed warning while using --stack-auto
10889
10890 2003-02-23  Borut Razem <borut.razem AT siol.net>
10891
10892         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
10893         because NDEBUG is defined (see man assert)
10894         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
10895
10896 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10897
10898         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
10899         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
10900
10901 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10902
10903         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
10904         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
10905
10906 2003-02-18    <johan AT balder>
10907
10908         * as/mcs51/asmain.c (asmbl): module can start with a digit
10909         * as/z80/asmain.c (asmbl): module can start with a digit
10910
10911 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
10912
10913         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
10914         * src/asm.c: fix pipe() for Mingw32
10915
10916 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
10917
10918         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
10919         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
10920         make -V work again; --c1mode reads now from stdin
10921         * doc/sdccman.lyx: added --c1mode
10922         * support/Util/SDCCerr.c: new messages for c1 mode
10923         * support/Util/SDCCerr.h: new messages for c1 mode
10924         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
10925
10926 2003-02-15    <johan AT balder>
10927
10928         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
10929
10930 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
10931
10932         * doc/sdccman.lyx: Environment variables, -o and other minor things
10933
10934 2003-02-14    <johan AT balder>
10935
10936         * src/xa51/main.c: before anyone really tries to use it :)
10937
10938         * Install doc's in share/sdcc/doc
10939         * removed some obsolete files
10940         * Do a proper make distclean and uninstall
10941         M Makefile.common.in
10942         R sdccbuild.sh
10943         M as/Makefile
10944         M device/include/Makefile.in
10945         M device/lib/Makefile.in
10946         M doc/sdccman.lyx
10947         M link/Makefile
10948         M sim/ucsim/doc/Makefile.in
10949         M src/clean.mk
10950         R src/avr/peeph.rul
10951         R src/xa51/peeph.rul
10952         M support/cpp2/Makefile.in
10953         M support/makebin/Makefile
10954
10955
10956 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
10957
10958         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
10959
10960 2003-02-10  Borut Razem <borut.razem AT siol.net>
10961
10962         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
10963         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
10964         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
10965         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
10966         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
10967         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
10968         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
10969         src/z80/Makefile.bcc: Borland Makefile cleanup
10970         * as/z80/Makefile.bcc: Added Borland Makefile
10971         * support/cpp2/borland.h: Removed
10972
10973 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
10974
10975         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
10976         * src/SDCC.lex: new pragma NOIV
10977         * src/SDCCglobl.h: new pragma NOIV
10978         * src/SDCCmem.c: new pragma NOIV
10979
10980 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10981
10982         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
10983
10984 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10985
10986         * src/SDCCmain.c: signal handling is switched off by --debug
10987         * doc/Makefile: small fix for install; use clean.mk again
10988         * doc/clean.mk: clean *.pdf and *.html too
10989
10990 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
10991
10992         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
10993         * device/lib/printfl.c: fix a ds390 bug by making it portable
10994         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
10995         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
10996         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
10997         * debugger/mcs51/cmd.c: converted multi-line string literals
10998         * sim/ucsim/globals.cc: converted multi-line string literals
10999         * src/SDCCmain.c: introduced signal handler to remove temp files
11000         * doc/Makefile: small tweaks, implement clean
11001         * doc: removed generated files
11002
11003 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11004
11005         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
11006         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
11007         Address Record is not correctly generated for DS390."
11008
11009 2003-02-02  Borut Razem <borut.razem AT siol.net>
11010
11011         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
11012         * as/mcs51/asm.h: fixed compilation with Borland C
11013         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
11014         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
11015         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
11016         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
11017         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
11018         src/z80/Makefile.bcc: delete $(LIB) only if exist
11019         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
11020
11021 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
11022
11023         * device/include/malloc.h: introduced NULL
11024         * device/include/string.h: introduced NULL
11025         * device/include/stdlib.h: introduced NULL
11026         * device/lib/_memcpy.c: removed NULL
11027         * device/lib/_strcat.c: removed NULL
11028         * device/lib/_strchr.c: removed NULL
11029         * device/lib/_strcmp.c: removed NULL
11030         * device/lib/_strcpy.c: removed NULL
11031         * device/lib/_strcspn.c: removed NULL
11032         * device/lib/_strlen.c: removed NULL
11033         * device/lib/_strncat.c: removed NULL
11034         * device/lib/_strncmp.c: removed NULL
11035         * device/lib/_strncpy.c: removed NULL
11036         * device/lib/_strpbrk.c: removed NULL
11037         * device/lib/_strrchr.c: removed NULL
11038         * device/lib/_strspn.c: removed NULL
11039         * device/lib/_strstr.c: removed NULL
11040         * device/lib/_strtok.c: removed NULL
11041         * device/lib/malloc.c: removed NULL, include own header
11042
11043 2003-02-02    <johan AT balder>
11044
11045         * 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
11046         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
11047         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
11048         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
11049         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
11050         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
11051
11052 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11053
11054         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
11055         area 'DATA'"
11056
11057 2003-02-01    <johan AT balder>
11058
11059         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
11060
11061 2003-01-31    <johan AT CP255758-A>
11062
11063         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
11064
11065 2003-01-30    <johan AT balder>
11066
11067         * src/SDCCBBlock.c: automatic bug detection
11068         * src/SDCCicode.c: automatic bug detection
11069
11070 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11071
11072         * src/SDCCglobl.h:   now --xram-size 0 works
11073         * src/SDCCmain.c:    now --xram-size 0 works
11074
11075 2003-01-29    <johan AT balder>
11076
11077         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
11078
11079 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11080
11081         * as/mcs51/aslink.h: Added options --xram-size and --code-size
11082         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
11083         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
11084         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
11085         * src/SDCCglobl.h:   Added options --xram-size and --code-size
11086         * src/SDCCmain.c:    Added options --xram-size and --code-size
11087
11088 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
11089
11090         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
11091         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
11092
11093 2003-01-27    <johan AT balder>
11094
11095         * src/SDCC.y: fixed bug #613764
11096
11097 2003-01-26    <johan AT balder>
11098
11099         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
11100         * src/SDCCsymt.h: fixed bug #673374
11101         * src/SDCCglue.c: fixed bug #661910
11102         * src/SDCCast.c: fixed bug #458099 and 673374
11103
11104 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
11105
11106         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
11107         * as/mcs51/strcmpi.h: added
11108         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
11109         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
11110         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
11111         * as/mcs51/assym.c: strcmpi -> as_strcmpi
11112         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
11113         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
11114         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
11115         * as/mcs51/Makefile.aslink: new module strcmpi
11116         * as/mcs51/Makefile.asx8051: new module strcmpi
11117         * as/mcs51/Makefil.bcc: new module strcmpi
11118         * as/mcs51/Makefile.in: new module strcmpi
11119         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
11120
11121 2003-01-26    <johan AT balder>
11122
11123         * src/SDCCglue.c: reverted back to 1.124
11124         * src/SDCCast.c: reverted back to 1.156
11125         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
11126
11127 2003-01-25    <johan AT balder>
11128
11129         * src/SDCCglue.c: A better fix for bug #661910
11130         * src/SDCCast.c: A better fix for bug #661910
11131         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
11132
11133 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
11134
11135         * src/Makefile.in: remove spawn.o
11136         * src/SDCCmain.c: remove spawn.h
11137         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
11138         * src/spawn.c: removed
11139         * src/spawn.h: removed
11140         * support/regression/ports/ds390/spec.mk: link with -r
11141
11142 2003-01-24    <johan AT CP255758-A>
11143
11144         * src/ds390/gen.c (aopOp): fixed bug #667458
11145         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
11146         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
11147         (createIvalCharPtr): an ival doesn't always have a storage class anymore
11148
11149 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
11150
11151         * src/mcs51/peeph.def: better assembler identation by Frieder
11152         * src/mcs51/gen.c: better assembler identation by Frieder
11153
11154 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
11155
11156         * as/z80/string.h: removed for gcc 3.2
11157         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
11158         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
11159
11160 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
11161
11162         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
11163         * src/SDCCpeeph.c (replaceRule): fix bug #663503
11164         * support/regression/Makefile: separate temp files for ports
11165         * support/regression/generate-cases.py: separate temp files for ports
11166         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
11167         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
11168
11169 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
11170
11171         * moved tinitalk to device/examples/ds390
11172
11173 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
11174
11175         * as/mcs51/lkmem.c: rflag is for DS390
11176         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
11177         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
11178                          (linkEdit): move mem- and map-files the same way as ihx-files
11179         * src/z80/main.c (_setDefaultOptions): removed --generic
11180         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
11181         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
11182         * src/pic/glue.c (picglue): --c1mode works again
11183         * src/pic16/glue.c (pic16glue): --c1mode works again
11184         * src/asm.c (printCLine): fix #660034
11185
11186 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
11187
11188         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
11189         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
11190         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
11191         * as/mcs51/lkmem (summary): better fix for sp problem
11192         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
11193         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
11194         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
11195                                               remove --stack-after-data
11196
11197 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
11198
11199         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
11200         * src/SDCCutil.c (join): ugly bug: missing '\0'
11201         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
11202
11203 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
11204
11205         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
11206         * src/port.h: typo
11207         * src/pic/main.c (_asmCmd): gpasm supports -o
11208         * src/z80/main.c: more general macros
11209         * device/lib/Makefile.in: remove intermediate files
11210
11211 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
11212
11213         * .version: Bumped version number to 2.3.3
11214         * src/SDCCBBlock.c: new option -o
11215         * src/SDCCglobl.h: new option -o
11216         * src/SDCCglue.c: new option -o
11217         * src/SDCCmain.c: new option -o
11218         * src/asm.c: new option -o
11219         * src/ds390/main.c: new option -o
11220         * src/pic/glue.c: new option -o
11221         * src/pic/pcode.c: new option -o
11222         * src/pic/ralloc.c: new option -o
11223         * src/pic16/glue.c: new option -o
11224         * src/pic16/pcode.c: new option -o
11225         * src/pic16/ralloc.c: new option -o
11226         * src/z80/main.c: new option -o
11227         * device/lib/Makefile.in: use -o
11228         * support/regression/ports/ds390/spec.mk: use -o
11229         * support/regression/ports/gbz80/spec.mk: use -o
11230         * support/regression/ports/mcs51/spec.mk: use -o
11231         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
11232         * support/regression/ports/z80/spec.mk: use -o
11233         * support/regression/ports/ucz80/spec.mk: use -o
11234         * support/regression/ports/xa51/spec.mk: use -o
11235         * support/regression/fwk/lib/timeout.c: fix usage string
11236
11237 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
11238         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
11239
11240 2003-01-07    <johan AT balder>
11241
11242         * src/SDCCast.c (decorateType): fixed bug #600035
11243
11244 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
11245         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
11246         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
11247         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
11248         * src/pic/pcode.c: outcommented unused variable to remove warnings
11249         * src/pic/ralloc.c: outcommented unused variable to remove warnings
11250
11251 2003-01-06    <karl AT turbobit.com>
11252         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
11253    regression tests.
11254
11255 2003-01-06    <johan AT balder>
11256
11257         * src/SDCCicode.c: fixed array add
11258
11259 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
11260         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
11261         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
11262
11263 2003-01-04    <johan AT balder>
11264
11265         * src/SDCCval.c (getNelements): fixed the initialized array of structures
11266
11267 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11268         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
11269
11270 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
11271         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
11272         * support/regression/tests/bug-524697.c: fit mem usage into 8032
11273
11274 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
11275         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
11276
11277 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
11278         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
11279
11280 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
11281         * src/mcs51/main.c: removed {bindir}{sep} from aslink
11282
11283 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11284
11285     * in /sdcc/as/mcs51/ changed these files in order to create an
11286     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
11287     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
11288     following files to include the previous two files: aslink.dsp,
11289     Makefile.aslink, Makefile.bcc, and Makefile.in.
11290
11291     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
11292     .adb instead of .cdb
11293
11294 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11295
11296         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
11297         value from option --iram-size.
11298
11299 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11300
11301         * /sdcc/as/mcs51/lklist.c: added boundary check before using
11302         dram[] array.
11303
11304 2002-09-18    <wiml AT hhhh.org>
11305
11306         * SDCClrange.h: exposed setFromRange() and setToRange()
11307         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
11308           packRegsForAccUse() (bug 542397)
11309         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
11310           multiple times and emitting the fetch operations more than once
11311           added aopGetUsesAcc() function to allow binary operators to
11312           fetch their operands in the correct order; made genMinus() emit
11313           compact code for X = LITERAL - Y
11314
11315 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11316         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
11317         sprintf() in line 1267.
11318
11319 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11320         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
11321         like ports.
11322
11323 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11324         Changes to aslink (All the changes are marked with 'JCF'):
11325
11326         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
11327         summary().
11328
11329         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
11330         area BSEG.  Also moves, if possible, the DATA area down into the internal
11331         ram so more space is available.
11332
11333         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
11334         sflag.
11335
11336         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
11337         not bytes.  Function summary() which creates a memory usage summary
11338         file with extension .mem.  Reports of overlaping stack and small stack
11339         size.  If the space for the stack is less than 16 bytes aslink trows a
11340         warning.
11341
11342         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
11343         the 8051.  Option 'y' for memory summary output file.
11344
11345         Changes to sdcc (All the changes are marked with 'JCF'):
11346
11347         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
11348
11349         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
11350         overlaying area for it (uses RegBankUsed[4]).
11351
11352         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
11353         bank zero as used by default.  By default aslink locates the stack
11354         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
11355         the creation of the .mem file.  Delegates the allocation of data area
11356         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
11357         the begining of the stack area to aslink.
11358
11359         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
11360         glue() in SDCCglue.c creates an area for it.
11361
11362 2002-09-03  Borut Razem <borut.razem AT siol.net>
11363         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
11364         sdcc/src/pic/glue.c:
11365         introduced atexit() handler for teporay files removal in case of
11366         errors, assertions, ...
11367
11368 2002-08-29  Borut Razem <borut.razem AT siol.net>
11369         * sdcc/support/cpp2/auto-host_vc_in.h:
11370         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
11371         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
11372         Maybe there is a similar problem with BORLANDC? It should be checked!
11373
11374         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
11375         corrected improper use of assert: the assignment to clr variable was done inside the assert.
11376         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
11377         was not executed, and the compiler (cl) launched a warning:
11378         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
11379
11380 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
11381         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
11382
11383 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
11384         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
11385
11386         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
11387           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
11388           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
11389           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
11390           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
11391           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
11392           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
11393         - added Release configuration in VS projects
11394         - review of compiler an linker options
11395         - VC .exe files are generated in bin_vc directory, not to interfere
11396           with binaries generated from other projects (cygwin, mingw, bcc ...)
11397
11398         * sdcc/src/yacc.dsp: added
11399
11400         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
11401         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
11402         and insert the version number definitions from .version
11403
11404         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
11405
11406         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
11407         added - genarate auto-host.h using auto-host_vc_in.h as template
11408
11409         * sdcc/sdcc_vc.h,
11410         removed from CVS, generated automatically
11411
11412 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
11413         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
11414
11415 2002-08-11  Borut Razem <borut.razem AT siol.net>
11416         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
11417
11418 2002-08-10  Borut Razem <borut.razem AT siol.net>
11419         * src/SDCCmain.c (main):
11420         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
11421         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
11422         The consequence was that some temporary files were not removed.
11423
11424         * src/SDCCglue.c:
11425         unification of code in functions tempfilename() and tempfile():
11426         function tempnam() is defined in Visual Studio 6.0 and .NET
11427
11428         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
11429
11430         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
11431           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
11432         - removed compiler command line option /WX: Treats all warnings as errors
11433         - update a list of source files, included into the project
11434
11435         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
11436           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
11437         changed project type to Generic Project so that can be correcly converted to VS.NET project
11438
11439         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
11440
11441         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
11442
11443         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
11444
11445         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
11446         added return 0 statements after assert() to make compiler happy
11447
11448         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
11449         added newline in the def file to keep MSC compiler satisfied
11450
11451         * sdcc/src/z80/gen.c:
11452         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
11453           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
11454         - solved MSC error in function aopDump()
11455
11456         * sdcc_vc.h: define PREFIX as "\\sdcc"
11457
11458 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
11459         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
11460
11461 2002-06-22  Scott Dattalo <scott AT dattalo.com>
11462         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
11463         - Rewrote the register banking algorithm.
11464         - Added pCode live-range analysis to registers (for now, only non-used and
11465         singly-used registers optimized away)
11466
11467         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
11468
11469         * 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.
11470
11471 2002-05-10  Scott Dattalo <scott AT dattalo.com>
11472         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
11473
11474 2002-04-22  Michael Hope  <michaelh AT vroom>
11475
11476         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
11477
11478         * configure.in (DD_COPT): Added include support required for gbdk.
11479
11480         * .version: Bumped version number just to increase it.
11481
11482         * src/SDCCmain.c: Added -nostdinc to the default options.
11483
11484 2002-04-15  Michael Hope  <michaelh AT vroom>
11485
11486         * device/lib/z80/printf.c (sprintf): Added.
11487
11488         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
11489
11490         * src/z80/peeph.def: Added transpose redundent load rule.
11491
11492         * src/z80/main.c: Added force callee saves for jaune.
11493
11494         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
11495
11496         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
11497
11498 2002-03-28  Johan Knol  <johan AT balder>
11499
11500         * src/SDCCval.c: fixed bug #532436
11501
11502 2002-03-14  Scott Dattalo <scott AT dattalo.com>
11503         * /src/port.h:
11504         Added "char *Processor" field to the port structure.
11505
11506         * /src/SDCCmain.c:
11507         Added -p option. Allows port dependent processor to be specified.
11508
11509         * all ports:
11510         Initialized the new field char *Processor field to NULL in all ports
11511
11512         * /src/pic/*:
11513         Compiler generated registers for interrupt context saving
11514         were not getting allocated.
11515
11516 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
11517
11518         * /src/SDCCast.c:
11519         Fixed left shift. Will promote the left side of a left shift
11520         if a) left shifting more than size of operand or b) when assigned
11521         to something size > size of left side
11522
11523 2002-03-14  Scott Dattalo <scott AT dattalo.com>
11524         * src/pic/*
11525         tons of changes. Register allocation has been
11526         rewritten. Added customization for the various PICs. Flow
11527         analysis is restructured. ...
11528
11529         * src/pic/device.h:
11530         Added
11531
11532         * src/pic/device.c:
11533         Added. device.c is a PIC port hack to accomodate variations
11534         in PIC devices.
11535
11536 2002-03-13  Michael Hope  <michaelh AT vroom>
11537
11538         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
11539
11540 2002-03-04  johanknol  <johanknol AT manik>
11541
11542         * /src/SDCCval.c: fixed
11543
11544         const unsigned char arr[][2] = { { 0, 1 } };
11545         t18.c:1: error: Initializer element is not constant
11546
11547 2002-03-04  bela  <bela AT manik>
11548
11549         * /device/include/mcs51reg.h:
11550         ds89c420 register definition update
11551
11552 2002-03-03    <johan AT FRIJA>
11553
11554         * support/Util/SDCCerr.c: did something, but don't no why anymore
11555
11556         * support/regression/tests/bug-524691.c: made it a little less shy
11557
11558         * src/SDCCast.c (decorateType): fixed bug #524697
11559
11560         * src/SDCCast.c: made some lineno improvements
11561
11562         * src/SDCCval.c (getNelements): changed warning to error
11563
11564         * src/SDCCglue.c (printIvalArray): changed warning to error
11565
11566         * src/SDCCicode.c: fixed a warning for mingw
11567
11568         * src/SDCCast.c (decorateType): fixed the << promotion for ops
11569
11570         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
11571
11572 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
11573
11574         * src/ds390/peeph.def:
11575         Added some more peephole rules
11576
11577         * src/ds390/gen.c: Various fixes & enhancements
11578
11579         * src/SDCClrange.c, src/SDCClrange.h:
11580         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
11581
11582         * src/ds390/ralloc.c:
11583         various fixes & enhancements (ds390) specific
11584
11585         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
11586         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
11587         from rallocs.
11588
11589         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
11590
11591 2002-03-02    <johan AT FRIJA>
11592
11593         * src/SDCCast.c (decorateType): fixed bug #524708
11594
11595         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
11596
11597         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
11598
11599 2002-03-01  Michael Hope  <michaelh AT vroom>
11600
11601         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
11602
11603         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
11604
11605 2002-03-01    <johan AT FRIJA>
11606
11607         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
11608
11609         * src/SDCCast.c (decorateType): fixed bug #524209
11610
11611         * src/SDCCval.c (valNot): fixed bug #524195
11612
11613 2002-02-26    <johan AT balder>
11614
11615         * src/xa51/gen.c: fixed a warning
11616
11617         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
11618
11619         * src/SDCCast.c (decorateType): fixed bug #522534
11620
11621 2002-02-23    <johan AT balder>
11622
11623         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
11624
11625 2002-02-22    <johan AT balder>
11626
11627         * src/SDCCast.c: fixed bug #514865
11628
11629         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
11630
11631 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
11632
11633         * sdcc/src/SDCCloop.c:
11634         Previous fix was not good. basic blocks that have "break" or "return" are
11635         not really partof a loop , but live ranges used in these blocks should
11636         be live thru the entire loop, so set partOfLoop but don't add them to
11637         loop region
11638
11639 2002-02-21    <johan AT FRIJA>
11640
11641         * src/SDCCcse.c: fixed bug #514308
11642
11643 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
11644
11645         * src/SDCCloop.c:
11646         Fixed BUG #519583. If a conditional block ended in a return/break
11647         statement inside a loop, it was not being considered part of the loop.
11648
11649         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
11650
11651 2002-02-10  Karl Bongers <karl AT turbobit.com>
11652
11653         * debugger/*:
11654         Fixed up SDCDB debugger somewhat.  Updated debugger/README
11655         with lots of comments and notes.
11656
11657         * device/examples/test2.c:
11658         Fix bug, "red" variable not being initialized(compiler complained).
11659
11660         * device/examples/Makefile, examples/test3.c:
11661         Add Makefile in device/examples folder, compiles test3.c
11662         for use as a multiple module SDCDB test case.
11663
11664         * sim/ucsim/cmd.src/cmdset.cc:
11665         Took out debug printfs in ucsim "next" command.
11666
11667         * sim/ucsim/xa.src:
11668         Karl and Johan start ucsim XA support.  Most dissassembly working,
11669         about 75% emulation done(plenty of work remaining).
11670
11671         * sim/ucsim/z80.src:
11672         Add Z80 support to ucsim, add test-ucz80 regression test,
11673         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
11674         Notice z80 compiler fails on examples/test3.c/crc code.
11675
11676 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
11677
11678         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
11679         Added support for --parms-in-bank1
11680
11681         * src/ds390/peeph.def:
11682         added a few more peephole optimzations
11683
11684         * src/ds390/main.c:
11685         1) added __builtin_inp & __builtin_outp used to read in data of given length
11686            from a memory mapped port
11687         2) added __builtin_memcmp
11688         3) added __builtin_swapw swap bytes of a short
11689
11690         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
11691         1) handle multiple send & receives from register bank1
11692         2) ralloc can now allocate DPTR1 to some liveRanges
11693
11694         * src/SDCCsymt.c, src/SDCCsymt.h:
11695         changes to handle multiple sends & receives
11696
11697         * src/SDCCptropt.h:
11698         added some pointer arithmetic optimization
11699
11700         * src/SDCCptropt.c:
11701         added some pointer arithmetic optimizations but not stable yet so not
11702         called from anywhere (will get this working shortly)
11703
11704         * src/SDCCopt.c: fixed for multiple sends & receives
11705
11706         * src/SDCCmain.c:
11707         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
11708         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
11709            set preprocessor defines (depending on options)
11710
11711         * src/SDCCicode.c, src/SDCCicode.h:
11712         changes made to handle multiple sends & receives
11713
11714         * src/SDCCglobl.h:
11715         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
11716
11717         * src/SDCCcse.c, src/SDCCcse.h:
11718         added function findbackward def (to be used in upcoming optimization)
11719
11720         * src/SDCCcflow.c, src/SDCCcflow.h:
11721         added function returnAtEnd - to determine if a basic block terminates with
11722         a RETURN iCode
11723
11724         * src/SDCCast.c, src/SDCCast.h:
11725         added option parms-in-bank1
11726
11727         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
11728         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
11729         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
11730         adjusted for --parms-in-bank1 option
11731
11732         * device/include/string.h:
11733         donot redefine "reentrant" keyword
11734
11735         * device/include/ds80c390.h: Added some more SFRs
11736
11737 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
11738
11739         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
11740
11741 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
11742
11743         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
11744
11745 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
11746
11747         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
11748
11749 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
11750
11751         * Added --xram-movc option
11752
11753 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
11754
11755         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
11756
11757 2002-01-11  Johan Knol
11758
11759         * Added math lib of Jesus Calvino-Fraga
11760
11761 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
11762
11763         * src/SDCCmain.c (processFile): fix processing of ../../src.c
11764         * support/regression/Makefile: new target test-mcs51-stack-auto
11765         * support/regression/ports/mcs51-stack-auto/spec.mk: added
11766
11767 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
11768
11769         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
11770
11771 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
11772
11773         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
11774
11775 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
11776
11777         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
11778
11779         * src/SDCCglue.h: add definition for printIvalChar()
11780
11781 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
11782
11783         * src/SDCCast.c: fix #498138 by Johan
11784
11785         * src/SDCCglue.c: fix #498138 by Johan
11786
11787 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
11788
11789         * support/regression/Makefile: fix clean
11790
11791         * support/regression/ports/ds390/support.c: fix transmission of last character
11792
11793 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
11794
11795         * /sdcc/src/ds390/gen.c:
11796         a) improved computing address of stack variable
11797         b) took out some #if 0 code
11798         c) improved parmBytes adjustment
11799         d) improved genPlusIncr & genMinusIncr
11800         e) genCmp could generate bad code (when left assigned to DPTR)
11801         f) Fixed bug in hasInc
11802
11803         * /sdcc/src/ds390/ralloc.c:
11804         a) packRegsForSupport could mess up live information (Fixed)
11805         b) packRegsDPTRuse could be incorrect for left & right shift
11806
11807         * /sdcc/src/mcs51/ralloc.c:
11808         packRegsForSupport could mess up the live information (Fixed)
11809
11810         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
11811
11812         * /sdcc/src/SDCCast.c:
11813         can reverse a loop even if function call is present as long
11814         as the loop control variable is local & is not passed as parameter
11815
11816 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11817
11818         * /sdcc/ChangeLog: *** empty log message ***
11819
11820         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
11821         More builtin function additions for TININative
11822
11823         * /sdcc/src/ds390/ralloc.c:
11824         Had broken the regression testsuite
11825
11826         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
11827
11828         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
11829         Added funcattr hasStackParms will be set for reentrant functions when there
11830         are paramteres on the stack, this helps in minimizing frame pointer generation
11831         typeFromStr can handle function pointers now
11832
11833         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
11834         *** empty log message ***
11835
11836 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11837
11838         * /src/ds390/gen.c, /src/ds390/main.c:
11839         More builtin function additions for TININative
11840
11841         * /src/ds390/ralloc.c:
11842         Had broken the regression testsuite
11843
11844         * /src/SDCCast.c: Fixed a bug in dumptree
11845
11846         * /src/SDCCsymt.c, /src/SDCCsymt.h:
11847         Added funcattr hasStackParms will be set for reentrant functions when there
11848         are paramteres on the stack, this helps in minimizing frame pointer generation
11849         typeFromStr can handle function pointers now
11850
11851         * /doc/builtins.txt, /doc/TININative.txt:
11852         *** empty log message ***
11853
11854
11855 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
11856
11857         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
11858         ALPHA version for -mTININative
11859
11860         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
11861         updated to reflect changes in the port structure
11862
11863         * /src/port.h:
11864         added function do_assemble (similar to do_link) if non-null this function
11865         will be called to do assembly (-mTININative) requires a multi command
11866         assembly
11867         added function genAssemblerEnd will be called to generate assembler Epilogue
11868
11869         * /src/SDCCsymt.c:
11870         added _JavaNative to debug info printing
11871
11872         * /src/SDCCmain.c: added option --tini-libid
11873         added port->do_assemble function (-mTININative) has a multi command assemble
11874
11875         * /src/SDCCglue.c: Disabled "constExpr" check
11876         added port->genAssemblerEnd function
11877
11878         * /src/SDCCglobl.h: Added option --tini-libid value
11879
11880         * /src/SDCCast.h:
11881         tookout optimizeCompare from the header (has no external references)
11882
11883         * /src/SDCCast.c: made one more function "static"
11884
11885 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
11886
11887         * src/z80/mappings.i: Added z80asm support.
11888
11889         * src/z80/main.c: Added z80asm support on --asm=z80asm
11890
11891         * src/z80/gen.c: Fixed asm portability issues.
11892
11893         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
11894
11895         * src/SDCCglue.c (printExterns): Added global/extern split.
11896
11897 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
11898
11899         * support/regression/Makefile: added test for mcs51 model large
11900
11901         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
11902
11903         * support/regression/ports/gbz80/spec.mk: added -mgbz80
11904
11905 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
11906
11907         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
11908
11909 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
11910
11911         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
11912
11913         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
11914
11915 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
11916
11917         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
11918
11919         * support/regression/tests/simplefloat.c: Port to mcs51.
11920
11921 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
11922         * support/regression/tests/bug-485362.c: Added.
11923
11924         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
11925
11926         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
11927
11928         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
11929
11930         * src/z80/gen.c (aopDump): Added a dump function.
11931
11932 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
11933         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
11934
11935         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
11936
11937         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
11938
11939         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
11940
11941         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
11942
11943         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
11944
11945         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
11946
11947         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
11948
11949         * support/regression/ports/ds390/support.c: Use tinibios.
11950
11951         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
11952
11953 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
11954
11955         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
11956         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
11957
11958         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
11959
11960         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
11961
11962 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
11963
11964         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
11965
11966         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
11967         (packRegsForIYUse): Created and optimised.
11968
11969 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11970
11971         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
11972 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
11973
11974         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
11975
11976         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
11977
11978         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
11979
11980 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11981
11982         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
11983
11984         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
11985
11986 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11987
11988         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
11989
11990         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
11991
11992         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
11993
11994 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11995
11996         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
11997         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
11998         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
11999
12000         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
12001
12002         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
12003         (genNotFloat): Added.
12004         (genUminusFloat): Added.
12005
12006         * device/lib/z80/Makefile: Added floating pt stubs.
12007
12008         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
12009
12010         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
12011
12012         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
12013
12014 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
12015
12016         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
12017
12018         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
12019
12020         * sdcc/support/regression/Makefile: Add port ds390.
12021
12022         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
12023
12024         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
12025
12026         * sdcc/support/regression/ports/ds390/spec.mk: Added.
12027
12028         * sdcc/support/regression/ports/ds390/support.c: Added.
12029
12030         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
12031
12032         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
12033
12034         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
12035
12036 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
12037
12038         * device/include/malloc.h: Added z80 and gbz80 support.
12039
12040         * device/lib/gbz80/heap.s: Added.
12041
12042         * device/lib/z80/heap.s: Added.
12043
12044         * device/lib/malloc.c: Added z80 and gbz80 support.
12045
12046         * support/regression/tests/malloc.c (testMalloc): Added.
12047
12048         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
12049
12050         * support/regression/tests/bug-478094.c: Added.
12051
12052         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
12053
12054 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
12055
12056         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
12057
12058         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
12059
12060         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
12061
12062         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
12063
12064         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
12065
12066 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
12067
12068         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
12069
12070 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
12071
12072         * support/regression/tests/bug-477927.c: Added.
12073
12074         * src/z80/peeph.def: Added minor rules.
12075
12076         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
12077
12078         * src/z80/peeph.def: Added jump optimisation modification.
12079
12080 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
12081
12082         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
12083
12084 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
12085
12086         * support/regression/tests/funptrs.c: Added.
12087
12088 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
12089
12090         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
12091
12092 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
12093
12094         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
12095
12096         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
12097
12098         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
12099         (movLeft2ResultLong): Created.
12100
12101         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
12102         (joinPushes): Added.  Joins two char pushes into a word push.
12103
12104 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
12105
12106         * support/cpp2/Makefile.in (install): Added creation of dest dir.
12107
12108         * support/makebin/Makefile (install): Added creation of dest dir.
12109
12110 2001-10-24 Karl Bongers <karl AT turbobit.com>
12111
12112         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
12113
12114 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
12115
12116         * src/z80/ralloc.c: Turned off faulty pack for one use.
12117
12118         * src/z80/peeph-gbz80.def: Removed redundent restart options.
12119
12120         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
12121
12122 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
12123
12124         * support/regression/Makefile: Improved clean
12125
12126         * support/regression/ports/gbz80/spec.mk: Added clean
12127
12128         * support/regression/ports/host/spec.mk: Added clean
12129
12130         * support/regression/ports/z80/spec.mk: Added clean
12131
12132         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
12133
12134         * support/regression/ports/mcs51/timeout.c: little improvements
12135
12136 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
12137
12138         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
12139
12140         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
12141
12142         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
12143
12144 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
12145
12146         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
12147
12148         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
12149
12150 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
12151         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
12152
12153         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
12154
12155         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
12156
12157         * src/mcs51/main.c (_linkCmd): Added bin path to command.
12158
12159         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
12160
12161         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
12162
12163         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
12164
12165         * support/regression/tests/longor.c: Added.
12166
12167 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
12168
12169         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
12170
12171         * as/mcs51/aslink.h: define PATH_MAX
12172
12173         * as/mcs51/asm.h: define PATH_MAX
12174
12175         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
12176
12177         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
12178
12179         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
12180
12181         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
12182
12183         * src/SDCCglobl.h: define PATH_MAX
12184
12185         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
12186
12187         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
12188
12189 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
12190
12191         * src/z80/gen.c (gencjneshort): Fixed
12192
12193         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
12194
12195 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
12196
12197         * support/regression/tests/bug-469671.c: Added.
12198
12199         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
12200
12201 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
12202
12203         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
12204
12205         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
12206
12207 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
12208
12209         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
12210
12211         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
12212
12213         * src/device/lib/_mullong.c : removed hint: nooverlay bug
12214
12215         * src/device/lib/_divuint.c : removed hint: nooverlay bug
12216
12217         * src/device/lib/_divulong.c: removed hint: nooverlay bug
12218
12219         * src/device/lib/_moduint.c : removed hint: nooverlay bug
12220
12221         * src/device/lib/_modulong.c: removed hint: nooverlay bug
12222
12223 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
12224
12225         * 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.
12226
12227         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
12228
12229         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
12230
12231 2001-10-07    <johan AT FRIJA>
12232
12233         * device/lib/gets.c (gets): fixed the return value.
12234
12235 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
12236         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
12237
12238         * 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.
12239
12240         * 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.
12241
12242         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
12243
12244         * src/pic/gen.c: Removed Safe_strdup.
12245
12246         * configure.in: Added option to enable libgc support.
12247
12248         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
12249         (bitVectUnion): Optimised.
12250         (bitVectIntersect): Optimised.
12251         (bitVectBitsInCommon): Optimised.
12252         (bitVectCplAnd): Optimised.
12253
12254         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
12255
12256 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12257
12258         * src/SDCCmain.c: distinguish between assembler debug and plain options
12259
12260         * src/avr/main.c:   remove standard assembler options
12261
12262         * src/ds390/main.c: remove standard assembler options
12263
12264         * src/mcs51/main.c: remove standard assembler options
12265
12266         * src/port.h: removed "PENDING" comment
12267
12268 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12269
12270         * src/device/lib/_mulint.c  : new, with assember functions
12271
12272         * src/device/lib/_mullong.c : new, with assember functions
12273
12274         * src/device/lib/_divuint.c : with assember functions
12275
12276         * src/device/lib/_divsint.c : with assember functions
12277
12278         * src/device/lib/_divulong.c: with assember functions
12279
12280         * src/device/lib/_divslong.c: with assember functions
12281
12282         * src/device/lib/_moduint.c : with assember functions
12283
12284         * src/device/lib/_modsint.c : with assember functions
12285
12286         * src/device/lib/_modulong.c: with assember functions
12287
12288         * src/device/lib/_modslong.c: with assember functions
12289
12290         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
12291
12292         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
12293
12294         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
12295                                       replaced _mululong.c and _mulslong.c by _mullong.c
12296
12297 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12298
12299         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
12300
12301 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12302
12303         * src/SDCCglue.c: test, if win32api is available for MINGW
12304
12305 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12306
12307         * src/SDCCsymt.c: no more _modifier in printTypeChain()
12308         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
12309         * support/regression/ports/gbz80/spec.mk: removed GENERIC
12310         * support/regression/ports/host/spec.mk: removed GENERIC
12311         * support/regression/ports/mcs51/spec.mk: removed GENERIC
12312         * support/regression/ports/z80/spec.mk: removed GENERIC
12313
12314 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
12315
12316         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
12317
12318         * support/regression/tests/bug-467035.c: Created.
12319
12320 2001-10-01    <johan AT FRIJA>
12321
12322         * src/SDCC.y: fixed bug #466586 part 1
12323
12324 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
12325
12326         * SDCCicode.c: z80 has no generic pointers
12327         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
12328
12329 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
12330
12331         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
12332
12333 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
12334
12335         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
12336
12337         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
12338
12339 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
12340
12341         * configure.in: Fixed up so that ucsim is only configured once.
12342
12343         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
12344
12345         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
12346         (getPathDifference): As above.
12347
12348         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
12349
12350         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
12351
12352 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
12353         * .version: Updated to 2.3.1
12354
12355         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
12356         Added copyright header.
12357
12358         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
12359         (assemble): Added support for macro based assembler commands.
12360         (linkEdit): Added support for macro based linker commands.
12361         (preProcess): Changed the pre-processor to use macros.
12362         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
12363         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
12364
12365         * device/lib/z80/crt0.s: Added module name for debugging.
12366
12367 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
12368
12369         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
12370
12371         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
12372
12373         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
12374
12375         * src/Makefile.in: Added SDCCmacro and SDCCutil
12376
12377 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
12378
12379         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
12380
12381 2001-09-16    <johan AT FRIJA>
12382
12383         * 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.
12384
12385 2001-09-15    <johan AT FRIJA>
12386
12387         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
12388         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
12389
12390 2001-09-11    <johan AT FRIJA>
12391
12392         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
12393
12394 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
12395
12396         * support/regression/tests/bug-460444.c: Added test case.
12397
12398         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
12399         (genCast): Added justification for all of the asserts.
12400
12401 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
12402
12403         * support/regression/support.c: _xdata replaced by xdata
12404
12405         * support/regression/spec.mk: removed _generic
12406
12407 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
12408
12409         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
12410
12411         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
12412         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
12413
12414         * src/z80/peeph.def: Added a rule to optimise shift then compare.
12415
12416         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
12417
12418         * support/regression/tests/bug-460010.c: Added test case.
12419
12420         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
12421
12422 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
12423
12424         * support/regression/Makefile: inter-port-clean adjusted for mcs51
12425
12426         * support/regression/testfwk.c: removed workaround for bug #436344
12427
12428         * support/regression/tests/bp.c: use less memory with mcs51
12429
12430         * support/regression/tests/bug-441448.c: use less memory
12431
12432         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
12433
12434         * support/regression/collate-results.py: typo
12435
12436 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
12437
12438         * support/regression/tests/fetchoverlap.c: Added new test case.
12439
12440         * support/regression/tests/bp.c: Added new test case.
12441
12442         * support/regression/tests/bug-448984.c: Added new test case.
12443
12444         * support/regression/tests/pow2shifts.c: Added new test case.
12445
12446         * src/z80/gen.c: Turned off the noise it normally generates for the release.
12447         (genlshTwo): Fixed right shift for count > 8.
12448
12449         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
12450
12451 2001-09-08    <johan AT FRIJA>
12452
12453         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
12454
12455 2001-09-07    <johan AT FRIJA>
12456
12457         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
12458
12459         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
12460
12461 2001-09-06    <johan AT FRIJA>
12462
12463         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
12464         * bernhard noted me at this: "() equals to (void)" (1.38)
12465
12466 2001-09-05    <johan AT FRIJA>
12467
12468         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
12469
12470 2001-09-04    <johan AT FRIJA>
12471
12472         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
12473
12474
12475 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
12476
12477         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
12478
12479 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
12480
12481         * link/z80/aslink.h: Fixed path for PATH_MAX
12482
12483 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
12484
12485         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
12486
12487         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
12488
12489         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
12490
12491         * 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.
12492
12493 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
12494
12495         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
12496         (genCmp): Fixed up genCmp for the GB with longs.
12497
12498         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
12499
12500         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
12501
12502         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
12503
12504         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
12505
12506 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
12507
12508         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
12509
12510 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
12511
12512         * 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.
12513
12514         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
12515
12516 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
12517
12518         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
12519
12520         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
12521
12522 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
12523
12524   * sim/ucsim/configure:    little improvement of Cygwin-detection
12525   * sim/ucsim/configure.in: little improvement of Cygwin-detection
12526   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
12527   * support/regression/tests/bug-221100.c: small changes for mcs51
12528   * support/regression/tests/bug-221168.c: small changes for mcs51
12529   * support/regression/tests/bug-227710.c: small changes for mcs51
12530   * support/regression/tests/staticinit.c: small changes for mcs51
12531   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
12532   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
12533   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
12534
12535 $Revision$